.player-portal-page {
    --portal-border: rgba(148, 163, 184, 0.16);
    --portal-border-strong: rgba(101, 216, 239, 0.32);
    --portal-panel: rgba(13, 27, 44, 0.94);
    --portal-panel-soft: rgba(20, 38, 58, 0.78);
    --portal-dark: rgba(5, 14, 25, 0.97);
    --portal-muted: #9fb0c2;
    --portal-cyan: #65d8ef;
    --portal-gold: #efb957;
    --portal-text: #eef6fc;
}

.player-portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    gap: 18px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--portal-border);
    background:
        radial-gradient(
            circle at 78% 28%,
            rgba(22, 109, 137, 0.18),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            rgba(5, 15, 27, 0.98),
            rgba(13, 30, 48, 0.95)
        );
}

.player-portal-hero-copy {
    align-self: center;
    max-width: 850px;
}

.player-portal-hero-copy h1 {
    max-width: 760px;
    margin: 8px 0 14px;
    font-size: clamp(2.35rem, 5vw, 4.65rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.player-portal-hero-copy p {
    max-width: 75ch;
    margin: 0;
    color: var(--portal-muted);
    line-height: 1.65;
}

.player-portal-identity-card {
    align-self: stretch;
    padding: 22px;
    border: 1px solid var(--portal-border-strong);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(19, 52, 68, 0.7),
            rgba(7, 21, 34, 0.96)
        );
}

.player-portal-identity-card > strong {
    display: block;
    margin-top: 16px;
    font-size: 1.55rem;
}

.player-portal-identity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.player-portal-identity-meta span {
    padding: 5px 9px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    color: var(--portal-muted);
    background: rgba(148, 163, 184, 0.05);
    font-size: 0.7rem;
}

.player-portal-identity-card small {
    display: block;
    margin-top: 17px;
    color: var(--portal-muted);
}

.player-portal-login-section,
.player-portal-authenticated {
    margin-top: 20px;
}

.player-portal-login-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--portal-border);
    border-radius: 17px;
    background: var(--portal-panel);
    text-align: center;
}

.player-portal-login-card h2 {
    margin: 8px 0 12px;
}

.player-portal-login-card p {
    max-width: 68ch;
    margin: 0 auto 20px;
    color: var(--portal-muted);
    line-height: 1.6;
}

.player-portal-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 15px 15px 0 0;
    background: var(--portal-panel);
}

.player-portal-view-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-portal-view-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--portal-border-strong);
    border-radius: 10px;
    color: #dff9ff;
    background: rgba(31, 111, 135, 0.16);
    font: inherit;
    font-weight: 750;
}

.player-portal-privacy-label {
    color: var(--portal-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.player-portal-search {
    display: grid;
    gap: 6px;
}

.player-portal-search > label {
    color: var(--portal-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.player-portal-search > div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 90px auto;
    gap: 8px;
}

.player-portal-search input,
.player-portal-search select,
.player-portal-global-filter select,
.player-portal-filter-row input,
.player-portal-filter-row select {
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--portal-border);
    border-radius: 9px;
    color: var(--portal-text);
    background: rgba(4, 13, 24, 0.9);
    font: inherit;
    font-size: 0.76rem;
}

.player-portal-search small {
    color: var(--portal-muted);
    font-size: 0.66rem;
}

.player-portal-navigation {
    display: flex;
    gap: 4px;
    padding: 9px;
    overflow-x: auto;
    border-right: 1px solid var(--portal-border);
    border-left: 1px solid var(--portal-border);
    background: rgba(5, 14, 25, 0.95);
}

.player-portal-navigation button {
    min-height: 39px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--portal-muted);
    background: transparent;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.player-portal-navigation button.is-active {
    border-color: rgba(239, 185, 87, 0.3);
    color: #f8d795;
    background: rgba(239, 185, 87, 0.09);
}

.player-portal-content {
    padding: clamp(17px, 2.5vw, 28px);
    border: 1px solid var(--portal-border);
    border-radius: 0 0 15px 15px;
    background: rgba(5, 14, 25, 0.82);
}

.player-portal-tab-panel[hidden] {
    display: none;
}

.player-portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.player-portal-section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

.player-portal-global-filter label {
    display: grid;
    gap: 5px;
    color: var(--portal-muted);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.player-portal-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.player-portal-kpi-grid article,
.player-portal-feature-grid article,
.player-portal-analysis-grid article {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 13px;
    background:
        linear-gradient(
            150deg,
            rgba(22, 42, 63, 0.9),
            rgba(8, 18, 31, 0.97)
        );
}

.player-portal-kpi-grid span {
    display: block;
    color: var(--portal-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.player-portal-kpi-grid strong {
    display: block;
    margin: 11px 0 6px;
    font-size: 1.9rem;
}

.player-portal-kpi-grid small {
    color: var(--portal-muted);
    font-size: 0.67rem;
}

.player-portal-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 12px;
    margin-top: 12px;
}

.player-portal-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: var(--portal-panel);
}

.player-portal-panel h3 {
    margin: 5px 0 0;
}

.player-portal-chart-placeholder {
    position: relative;
    display: flex;
    min-height: 230px;
    align-items: flex-end;
    gap: 9px;
    margin-top: 20px;
    padding: 22px;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            rgba(148, 163, 184, 0.08) 25%,
            transparent 26%,
            transparent 49%,
            rgba(148, 163, 184, 0.08) 50%,
            transparent 51%,
            transparent 74%,
            rgba(148, 163, 184, 0.08) 75%,
            transparent 76%
        ),
        rgba(4, 13, 24, 0.62);
}

.player-portal-chart-placeholder::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: 30%;
    left: 4%;
    height: 3px;
    transform: rotate(-4deg);
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--portal-cyan),
            var(--portal-gold)
        );
    box-shadow: 0 0 13px rgba(101, 216, 239, 0.2);
}

.player-portal-chart-placeholder span {
    position: relative;
    z-index: 1;
    padding: 5px 8px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    color: var(--portal-muted);
    background: rgba(5, 14, 25, 0.82);
    font-size: 0.64rem;
}

.player-portal-pillar-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.player-portal-pillar-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 9px;
    align-items: center;
}

.player-portal-pillar-list span {
    display: grid;
    width: 34px;
    height: 34px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 9px;
    color: var(--portal-gold);
    background: rgba(239, 185, 87, 0.09);
    font-size: 0.68rem;
    font-weight: 800;
}

.player-portal-pillar-list strong {
    font-size: 0.76rem;
}

.player-portal-pillar-list i {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(101, 216, 239, 0.36),
            rgba(239, 185, 87, 0.16)
        );
}

.player-portal-feature-grid,
.player-portal-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.player-portal-feature-grid h3,
.player-portal-analysis-grid h3 {
    margin: 0 0 7px;
}

.player-portal-feature-grid p,
.player-portal-analysis-grid p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.player-portal-analysis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-portal-analysis-grid article > span {
    display: block;
    margin-bottom: 15px;
    color: var(--portal-cyan);
    font-size: 0.68rem;
    font-weight: 800;
}

.player-portal-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
    gap: 8px;
    margin-bottom: 12px;
}

.player-portal-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
}

.player-portal-table-wrap table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.player-portal-table-wrap th,
.player-portal-table-wrap td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    text-align: right;
    white-space: nowrap;
}

.player-portal-table-wrap th:first-child,
.player-portal-table-wrap td:first-child {
    text-align: left;
}

.player-portal-table-wrap th {
    color: var(--portal-muted);
    background: #102033;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-portal-table-wrap td {
    font-size: 0.73rem;
}

.player-portal-table-wrap tbody td[colspan] {
    height: 110px;
    color: var(--portal-muted);
    text-align: center;
}

.player-portal-private-badge {
    padding: 6px 10px;
    border: 1px solid rgba(101, 216, 239, 0.32);
    border-radius: 999px;
    color: #dff8ff;
    background: rgba(22, 84, 104, 0.18);
    font-size: 0.67rem;
    font-weight: 750;
}

.player-portal-section-description {
    max-width: 78ch;
    color: var(--portal-muted);
    line-height: 1.55;
}

@media (max-width: 1120px) {
    .player-portal-toolbar,
    .player-portal-hero {
        grid-template-columns: 1fr;
    }

    .player-portal-kpi-grid,
    .player-portal-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-portal-analysis-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-portal-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .player-portal-kpi-grid,
    .player-portal-feature-grid,
    .player-portal-analysis-grid {
        grid-template-columns: 1fr;
    }

    .player-portal-search > div,
    .player-portal-filter-row {
        grid-template-columns: 1fr;
    }

    .player-portal-section-heading,
    .player-portal-view-switch {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-portal-hero {
        padding: 22px 17px;
    }
}

/* CIR_PLAYER_PORTAL_DATA_START */

.player-portal-trend-chart {
    display: grid;
    min-height: 280px;
    margin-top: 16px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(7, 20, 34, 0.74),
            rgba(4, 12, 22, 0.9)
        );
}

.player-portal-trend-chart svg {
    display: block;
    width: 100%;
    min-width: 660px;
    height: 280px;
}

.player-portal-chart-grid-line {
    stroke: rgba(148, 163, 184, 0.11);
    stroke-width: 1;
}

.player-portal-chart-axis-label {
    fill: #8294a7;
    font-size: 11px;
}

.player-portal-chart-point {
    fill: #65d8ef;
    stroke: #0d2435;
    stroke-width: 2;
    transition:
        r 120ms ease,
        fill 120ms ease;
}

.player-portal-chart-point:hover {
    r: 6px;
    fill: #f3c66f;
}

.player-portal-chart-median-line {
    fill: none;
    stroke: #efb957;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(
            0 0 6px rgba(239, 185, 87, 0.24)
        );
}

.player-portal-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 10px;
    color: var(--portal-muted);
    font-size: 0.66rem;
}

.player-portal-chart-legend span::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: -1px;
}

.player-portal-chart-legend .is-cir::before {
    background: #65d8ef;
}

.player-portal-chart-legend .is-median::before {
    border-radius: 999px;
    background: #efb957;
}

.player-portal-pillar-list > div {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.player-portal-pillar-list i {
    position: relative;
    grid-column: 2 / 4;
}

.player-portal-pillar-list i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #65d8ef,
            #efb957
        );
}

.player-portal-pillar-list small {
    grid-column: 2 / 4;
    color: var(--portal-muted);
    font-size: 0.64rem;
}

.player-portal-empty {
    margin: 0;
    color: var(--portal-muted);
    text-align: center;
}

.player-portal-vehicle-name {
    display: grid;
    gap: 3px;
}

.player-portal-vehicle-name small {
    color: var(--portal-muted);
    font-size: 0.63rem;
}

@media (max-width: 760px) {
    .player-portal-trend-chart {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

/* CIR_PLAYER_PORTAL_DATA_END */
