.ipp-page {
    padding: 22px 12px 42px;
}

.ipp-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.ipp-kicker {
    margin: 0 0 6px;
    color: #6d5dfc;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ipp-title {
    margin: 0 0 8px;
    color: #1f2d3d;
    font-weight: 900;
    font-size: 32px;
}

.ipp-subtitle {
    margin: 0;
    max-width: 720px;
    color: #7b8199;
    font-size: 15px;
    line-height: 1.55;
}

.ipp-hero-card {
    min-width: 190px;
    background: linear-gradient(135deg, #ffffff, #f4f1ff);
    border: 1px solid #e7e1ff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 16px 35px rgba(82, 39, 255, .08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ipp-hero-card span,
.ipp-stat span,
.ipp-provider-info span,
.ipp-modal-stats span {
    display: block;
    color: #8c90a9;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.ipp-hero-card strong {
    color: #2a2d3e;
    font-size: 34px;
    font-weight: 900;
}

.ipp-toolbar {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 14px;
    align-items: end;
    background: #fff;
    border: 1px solid #ececf5;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(26, 27, 38, 0.04);
}

.ipp-toolbar label {
    color: #4b5068;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.ipp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ipp-stat {
    background: #fff;
    border: 1px solid #ececf5;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(26, 27, 38, 0.035);
}

.ipp-stat strong {
    color: #2a2d3e;
    font-size: 20px;
    font-weight: 900;
}

.ipp-panel {
    background: #fff;
    border: 1px solid #ececf5;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(26, 27, 38, .04);
}

.ipp-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ipp-panel-head h3 {
    margin: 0 0 4px;
    color: #1f2d3d;
    font-size: 20px;
    font-weight: 900;
}

.ipp-panel-head p {
    margin: 0;
    color: #8c90a9;
}

.ipp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ipp-card {
    border: 1px solid #ececf5;
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    background: #fff;
}

.ipp-card:hover {
    transform: translateY(-2px);
    border-color: #cfc8ff;
    box-shadow: 0 16px 30px rgba(82, 39, 255, .08);
}

.ipp-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ipp-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #f4f2ff;
    color: #6a49ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.ipp-card-main {
    flex: 1;
    min-width: 0;
}

.ipp-card-main h4 {
    margin: 0 0 4px;
    color: #2a2d3e;
    font-size: 15px;
    font-weight: 900;
}

.ipp-card-main p {
    margin: 0;
    color: #8c90a9;
    font-size: 13px;
}

.ipp-badge {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.ipp-badge.is-active {
    background: #ecfdf5;
    color: #047857;
}

.ipp-badge.is-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.ipp-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.ipp-card-stats div {
    background: #fafafe;
    border: 1px solid #ececf5;
    border-radius: 14px;
    padding: 10px;
}

.ipp-card-stats span {
    display: block;
    color: #8c90a9;
    font-size: 11px;
    margin-bottom: 4px;
}

.ipp-card-stats strong {
    color: #2a2d3e;
    font-weight: 900;
    font-size: 14px;
}

.ipp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ipp-card-footer span {
    color: #8c90a9;
    font-size: 12px;
}

.ipp-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    background: #fff;
    border: 1px dashed #d8dbef;
    border-radius: 18px;
    color: #8c90a9;
    padding: 18px;
}

.ipp-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 800;
    border: 1px solid transparent;
}

.ipp-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.ipp-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.ipp-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
}

.ipp-modal.is-open {
    display: block;
}

.ipp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 18, 31, .45);
}

.ipp-modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(1120px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -14px 0 40px rgba(16, 18, 31, .18);
    display: flex;
    flex-direction: column;
}

.ipp-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid #ececf5;
}

.ipp-modal-header h3 {
    margin: 0 0 6px;
    color: #1f2d3d;
    font-size: 24px;
    font-weight: 900;
}

.ipp-modal-header p {
    margin: 0;
    color: #8c90a9;
}

.ipp-icon-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #f5f6fc;
    color: #4b5068;
    font-size: 26px;
    cursor: pointer;
}

.ipp-modal-body {
    padding: 20px 22px 28px;
    overflow-y: auto;
}

.ipp-provider-info,
.ipp-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ipp-provider-info div,
.ipp-modal-stats div {
    background: #fafafe;
    border: 1px solid #ececf5;
    border-radius: 16px;
    padding: 14px;
    min-width: 0;
}

.ipp-provider-info strong,
.ipp-modal-stats strong {
    color: #2a2d3e;
    font-size: 15px;
    font-weight: 900;
    word-break: break-word;
}

.ipp-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ececf5;
    margin: 10px 0 16px;
}

.ipp-tab {
    border: none;
    background: transparent;
    color: #8c90a9;
    font-weight: 900;
    padding: 12px 4px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.ipp-tab.is-active {
    color: #5227ff;
    border-bottom-color: #5227ff;
}

.ipp-tab-panel {
    display: none;
}

.ipp-tab-panel.is-active {
    display: block;
}

.ipp-table-wrap {
    overflow-x: auto;
    border: 1px solid #ececf5;
    border-radius: 18px;
}

.ipp-table {
    margin: 0;
    min-width: 980px;
}

.ipp-table thead th {
    background: #fafafe;
    color: #4b5068;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid #ececf5 !important;
    white-space: nowrap;
}

.ipp-table tbody td {
    vertical-align: middle !important;
    color: #2a2d3e;
    border-top: 1px solid #f0f1f8 !important;
}

.ipp-table strong {
    display: block;
    color: #2a2d3e;
    font-weight: 900;
}

.ipp-table small {
    display: block;
    color: #8c90a9;
    margin-top: 3px;
}

.ipp-table-empty {
    text-align: center;
    color: #8c90a9 !important;
    padding: 26px !important;
}

.ipp-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.ipp-pill.is-soft {
    background: #f4f2ff;
    color: #6a49ff;
}

.ipp-modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {

    .ipp-grid,
    .ipp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ipp-provider-info,
    .ipp-modal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .ipp-hero,
    .ipp-toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ipp-grid,
    .ipp-stats-grid,
    .ipp-provider-info,
    .ipp-modal-stats {
        grid-template-columns: 1fr;
    }

    .ipp-title {
        font-size: 25px;
    }

    .ipp-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}