:root {
    --vip-bg: #06070a;
    --vip-panel: #10131a;
    --vip-panel-2: #151a25;
    --vip-panel-3: #1c2332;
    --vip-line: rgba(151, 164, 195, 0.22);
    --vip-line-hot: rgba(142, 96, 255, 0.48);
    --vip-text: #f6f8ff;
    --vip-muted: #9da9c0;
    --vip-soft: #c6cee0;
    --vip-purple: #8f5cff;
    --vip-blue: #48b9ff;
    --vip-green: #31d07b;
    --vip-amber: #eeaa55;
    --vip-red: #ff6d7d;
}

.vip-page {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 24px 18px 56px;
    color: var(--vip-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vip-page * {
    box-sizing: border-box;
}

.vip-page h1,
.vip-page h2,
.vip-page h3,
.vip-page p {
    margin: 0;
}

.vip-page img {
    display: block;
    max-width: 100%;
}

.vip-hero-shell {
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(460px, 1.15fr);
    gap: 18px;
    align-items: stretch;
    margin: 8px 0 18px;
}

.vip-hero-copy,
.vip-hero-visual,
.vip-section,
.vip-active-bonus,
.vip-credit-panel {
    border: 1px solid var(--vip-line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(18, 22, 33, 0.96), rgba(8, 10, 15, 0.96)),
        var(--vip-panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.vip-hero-copy {
    min-height: 360px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vip-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #292f43, var(--vip-purple));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(143, 92, 255, 0.22);
}

.vip-profile-name {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.vip-profile-rank {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    color: var(--vip-muted);
    font-size: 12px;
    font-weight: 800;
}

.vip-eyebrow,
.vip-credit-eyebrow {
    color: var(--vip-blue);
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 900;
}

.vip-hero-title-block {
    display: grid;
    gap: 8px;
}

.vip-hero-title-block h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.98;
    letter-spacing: 0;
}

.vip-hero-title-block p {
    max-width: 620px;
    color: var(--vip-soft);
    font-size: 14px;
    line-height: 1.55;
}

.vip-progress-panel {
    padding: 14px;
    border-radius: 8px;
    background: rgba(20, 24, 36, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-progress-top,
.vip-progress-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--vip-muted);
    font-size: 12px;
    font-weight: 900;
}

.vip-progress-top strong {
    color: var(--vip-green);
}

.vip-progress-bar {
    height: 9px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #262c3a;
}

.vip-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vip-green), var(--vip-blue), var(--vip-purple));
}

.vip-progress-bottom {
    margin-top: 9px;
}

.vip-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
}

.vip-hero-stat {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-hero-stat span {
    display: block;
    color: var(--vip-muted);
    font-size: 11px;
    font-weight: 900;
}

.vip-hero-stat strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.vip-hero-visual {
    min-height: 360px;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(280px, 1fr) 82px;
}

.vip-hero-art {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.vip-hero-art img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05);
}

.vip-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0.02), rgba(5, 6, 10, 0.58));
    pointer-events: none;
}

.vip-hero-brand,
.vip-hero-floating-card {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 11, 16, 0.72);
    backdrop-filter: blur(14px);
}

.vip-hero-brand {
    left: 16px;
    top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.vip-hero-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f7f3ff, var(--vip-purple));
    color: #0b0d12;
}

.vip-hero-floating-card {
    right: 16px;
    bottom: 16px;
    min-width: 160px;
    border-radius: 8px;
    padding: 12px 14px;
}

.vip-hero-floating-card span {
    display: block;
    color: var(--vip-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.vip-hero-floating-card strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 16px;
}

.vip-hero-banner-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.vip-mini-banner {
    position: relative;
    min-height: 82px;
    padding: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.vip-mini-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    z-index: -1;
}

.vip-mini-banner span {
    color: var(--vip-blue);
    font-size: 11px;
    font-weight: 900;
}

.vip-mini-banner strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.vip-section,
.vip-active-bonus {
    padding: 18px;
    margin-top: 14px;
}

.vip-section-heading,
.vip-credit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.vip-section-heading > div,
.vip-credit-head > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.vip-section-heading h2,
.vip-credit-head h2 {
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0;
}

.vip-credit-head p {
    color: var(--vip-muted);
    font-size: 13px;
    line-height: 1.4;
}

/* Decorative section-icon squares removed — they read as stray coloured blocks.
   Kept as a no-op so any remaining markup references collapse cleanly. */
.vip-section-icon {
    display: none;
}

.vip-count-badge {
    flex: 0 0 auto;
    min-width: 34px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--vip-green);
    background: rgba(49, 208, 123, 0.13);
    border: 1px solid rgba(49, 208, 123, 0.28);
    font-size: 12px;
    font-weight: 900;
}

.vip-reward-cells {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vip-reward-cell {
    min-width: 0;
    min-height: 246px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(151, 164, 195, 0.26);
    background:
        radial-gradient(circle at 50% 12%, rgba(143, 92, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(24, 28, 40, 0.98), rgba(9, 11, 17, 0.98));
    display: grid;
    grid-template-rows: auto 88px 1fr auto auto;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.vip-reward-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%);
    opacity: 0.45;
}

.vip-reward-cell.is-claimable {
    border-color: rgba(49, 208, 123, 0.58);
    box-shadow: 0 0 0 1px rgba(49, 208, 123, 0.08), 0 18px 44px rgba(49, 208, 123, 0.12);
}

.vip-reward-kicker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
}

.vip-reward-mini-gift {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.vip-reward-mini-gift::before,
.vip-reward-mini-gift::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.86);
}

.vip-reward-mini-gift::before {
    width: 1px;
    top: -3px;
    bottom: 1px;
    left: 7px;
}

.vip-reward-mini-gift::after {
    height: 1px;
    left: -3px;
    right: -3px;
    top: 5px;
}

.vip-reward-icon {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    object-fit: contain;
    justify-self: center;
    align-self: center;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.vip-reward-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 5px;
    text-align: center;
}

.vip-reward-copy h3 {
    max-width: 170px;
    color: #fff;
    font-size: 15px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0;
}

.vip-reward-value {
    color: var(--vip-green);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
}

.vip-reward-copy p {
    max-width: 180px;
    color: var(--vip-muted);
    font-size: 11px;
    line-height: 1.35;
}

.vip-btn {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #0a1110;
    background: #252b38;
    font-size: 13px;
    font-weight: 900;
    transition: transform 0.16s ease, opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.vip-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.vip-btn:disabled {
    cursor: default;
    opacity: 0.74;
}

.vip-btn-success {
    color: #06110c;
    background: linear-gradient(180deg, #38da86, #25bf6b);
    box-shadow: 0 12px 24px rgba(49, 208, 123, 0.2);
}

.vip-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #9c6cff, #7645e8);
}

.vip-btn-ghost {
    color: var(--vip-soft);
    background: rgba(14, 17, 25, 0.86);
    border: 1px solid rgba(198, 206, 224, 0.6);
}

.vip-reward-action {
    position: relative;
    z-index: 1;
    width: 100%;
}

.vip-reward-timer {
    font-variant-numeric: tabular-nums;
}

.vip-reward-feedback {
    position: relative;
    z-index: 1;
    min-height: 15px;
    color: var(--vip-muted);
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

.vip-reward-feedback.is-success {
    color: var(--vip-green);
}

.vip-reward-feedback.is-error {
    color: var(--vip-red);
}

.vip-active-bonus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) auto;
    align-items: center;
    gap: 16px;
}

.vip-active-bonus span,
.vip-active-bonus p {
    color: var(--vip-muted);
    font-size: 12px;
}

.vip-active-bonus strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 20px;
}

.vip-active-bonus-progress span {
    display: block;
    margin-top: 8px;
}

.vip-credit-section {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.vip-credit-panel {
    padding: 16px;
}

.vip-credit-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.vip-credit-metric,
.vip-credit-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.vip-credit-metric {
    padding: 12px;
}

.vip-credit-metric span {
    display: block;
    color: var(--vip-muted);
    font-size: 12px;
    font-weight: 800;
}

.vip-credit-metric strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 20px;
}

.vip-credit-history {
    display: grid;
    gap: 8px;
}

.vip-credit-row {
    min-height: 40px;
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.vip-credit-row span {
    min-width: 0;
    color: var(--vip-soft);
    font-size: 12px;
    line-height: 1.35;
}

.vip-credit-row small {
    display: block;
    margin-top: 2px;
    color: var(--vip-muted);
    font-size: 11px;
}

.vip-credit-row strong {
    flex: 0 0 auto;
    color: #fff;
    font-size: 12px;
    text-align: right;
}

.vip-tier-list {
    display: grid;
    gap: 10px;
}

.vip-tier {
    border: 1px solid var(--vip-line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 18, 27, 0.76);
}

.vip-tier.is-current {
    border-color: var(--vip-line-hot);
    box-shadow: 0 0 0 1px rgba(143, 92, 255, 0.08);
}

.vip-tier.is-done {
    border-color: rgba(49, 208, 123, 0.3);
}

.vip-tier summary {
    min-height: 56px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}

.vip-tier summary::-webkit-details-marker {
    display: none;
}

.vip-tier-name {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-weight: 900;
}

.vip-tier-meta {
    color: var(--vip-soft);
    font-size: 12px;
    font-weight: 900;
}

.vip-tier-lock {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--vip-muted);
    border-bottom: 2px solid var(--vip-muted);
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.vip-tier[open] .vip-tier-lock {
    transform: rotate(225deg);
}

.vip-tier-table {
    display: grid;
    border-top: 1px solid var(--vip-line);
}

.vip-tier-row {
    min-height: 46px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.8fr) minmax(120px, 0.6fr);
    gap: 12px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.vip-tier-row:first-child {
    border-top: 0;
}

.vip-tier-head {
    min-height: 38px;
    color: var(--vip-muted);
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 900;
}

.vip-tier-row span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vip-soft);
    font-size: 13px;
    font-weight: 800;
}

.vip-tier-row strong {
    color: #fff;
    font-size: 13px;
}

.vip-tier-row em {
    justify-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--vip-muted);
    background: rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.vip-tier-row.is-complete em {
    color: var(--vip-green);
    background: rgba(49, 208, 123, 0.13);
}

.vip-tier-row.is-active {
    background: rgba(143, 92, 255, 0.11);
}

.vip-benefits-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--vip-line);
    border-radius: 8px;
    background: rgba(9, 11, 16, 0.48);
}

.vip-benefits-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.vip-benefits-table th,
.vip-benefits-table td {
    height: 48px;
    padding: 10px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--vip-soft);
    font-size: 12px;
    font-weight: 800;
}

.vip-benefits-table th:first-child,
.vip-benefits-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left;
    color: #fff;
    background: #121722;
}

.vip-benefits-table th {
    color: #fff;
    background: rgba(143, 92, 255, 0.11);
}

.vip-check,
.vip-miss {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
}

.vip-check {
    background: rgba(49, 208, 123, 0.15);
    border: 1px solid rgba(49, 208, 123, 0.48);
}

.vip-check::before {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--vip-green);
    border-bottom: 2px solid var(--vip-green);
    transform: rotate(-45deg);
}

.vip-miss {
    background: rgba(255, 109, 125, 0.12);
    border: 1px solid rgba(255, 109, 125, 0.34);
}

.vip-miss::before,
.vip-miss::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--vip-red);
}

.vip-miss::before {
    transform: rotate(45deg);
}

.vip-miss::after {
    transform: rotate(-45deg);
}

.vip-rank-gem {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    display: inline-block;
    border-radius: 4px;
    transform: rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: #8b95a7;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.vip-rank-gem--novice { background: linear-gradient(135deg, #6f7788, #c4ccda); }
.vip-rank-gem--bronze { background: linear-gradient(135deg, #7d4129, #e39a65); }
.vip-rank-gem--silver { background: linear-gradient(135deg, #6f7c8d, #edf4ff); }
.vip-rank-gem--gold { background: linear-gradient(135deg, #8d621d, #ffd86d); }
.vip-rank-gem--platinum { background: linear-gradient(135deg, #2a7f9e, #9ef0ff); }
.vip-rank-gem--diamond { background: linear-gradient(135deg, #7350ff, #f0e9ff); }

.vip-contribution-table {
    display: grid;
    gap: 8px;
}

.vip-contrib-row {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 7px;
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(160px, 1fr) 56px;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-contrib-game {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.vip-contrib-bar-wrap {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.vip-contrib-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vip-green), var(--vip-amber));
}

.vip-contrib-pct {
    color: var(--vip-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.vip-note {
    margin-top: 12px;
    color: var(--vip-muted);
    font-size: 12px;
    line-height: 1.45;
}

.vip-claim-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 16px;
}

.vip-claim-modal.open {
    display: grid;
}

.vip-claim-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 8, 0.78);
    backdrop-filter: blur(5px);
}

.vip-claim-dialog {
    position: relative;
    width: min(392px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 14px;
    padding: 20px;
    color: var(--vip-text);
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #12151c;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
}

.vip-claim-dialog * {
    box-sizing: border-box;
}

.vip-claim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.vip-claim-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.vip-claim-brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #8758f4;
}

.vip-claim-brand-mark img {
    width: 23px;
    height: 16px;
    object-fit: contain;
}

.vip-claim-kicker {
    margin-bottom: 2px;
    color: #8f98a8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vip-claim-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.vip-claim-close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #929baa;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.vip-claim-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.vip-claim-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.vip-claim-picker {
    position: relative;
}

.vip-claim-selected {
    position: relative;
    width: 100%;
    min-height: 68px;
    padding: 10px 38px 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #2b303a;
    border-radius: 10px;
    color: #fff;
    background: #181b22;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vip-claim-selected:hover,
.vip-claim-selected[aria-expanded="true"] {
    border-color: rgba(135, 88, 244, 0.72);
    background: #1a1d25;
}

.vip-claim-selected-identity,
.vip-claim-selected-value {
    display: flex;
    align-items: center;
}

.vip-claim-selected-identity {
    min-width: 0;
    gap: 10px;
}

.vip-claim-selected-identity > span:last-child,
.vip-claim-selected-value {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.vip-claim-selected-value {
    margin-left: auto;
    align-items: flex-end;
}

.vip-claim-selected small {
    color: #858e9d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.vip-claim-selected strong {
    max-width: 190px;
    overflow: hidden;
    color: #f5f7fb;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-claim-coin {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #292e38;
    font-size: 12px;
    font-weight: 800;
}

.vip-claim-coin img {
    width: 100%;
    height: 100%;
    display: block;
}

.vip-claim-chevron {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #929baa;
    border-bottom: 1.5px solid #929baa;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.15s ease;
}

.vip-claim-selected[aria-expanded="true"] .vip-claim-chevron {
    transform: translateY(-30%) rotate(225deg);
}

.vip-claim-currencies {
    position: relative;
    display: none;
    margin-top: 7px;
    overflow: hidden;
    border: 1px solid #303641;
    border-radius: 10px;
    background: #181b22;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.vip-claim-currencies.open {
    display: block;
}

.vip-claim-options {
    max-height: min(260px, 42vh);
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: #3a404b transparent;
}

.vip-claim-currency {
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 7px;
    color: #f4f6fa;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.vip-claim-currency:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vip-claim-currency-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.vip-claim-currency .vip-claim-coin {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

.vip-claim-currency strong {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.vip-claim-currency-amount {
    overflow: hidden;
    color: #aab1bd;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-claim-currency.active {
    background: rgba(135, 88, 244, 0.14);
}

.vip-claim-currency.active .vip-claim-currency-amount {
    color: #cbbaff;
}

.vip-claim-currency.zero {
    opacity: 0.48;
}

.vip-claim-empty {
    padding: 16px 12px;
    color: #929baa;
    font-size: 11px;
    text-align: center;
}

.vip-claim-toggle {
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #292e37;
    color: #9ba3b0;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.vip-claim-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vip-claim-toggle-ui {
    position: relative;
    width: 26px;
    height: 15px;
    flex: 0 0 26px;
    border-radius: 999px;
    background: #343945;
    transition: background-color 0.15s ease;
}

.vip-claim-toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #aab1bd;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.vip-claim-toggle input:checked + .vip-claim-toggle-ui {
    background: #8758f4;
}

.vip-claim-toggle input:checked + .vip-claim-toggle-ui::after {
    background: #fff;
    transform: translateX(11px);
}

.vip-claim-toggle input:focus-visible + .vip-claim-toggle-ui,
.vip-claim-selected:focus-visible,
.vip-claim-currency:focus-visible,
.vip-claim-close:focus-visible,
.vip-claim-confirm:focus-visible {
    outline: 2px solid #a886ff;
    outline-offset: 2px;
}

.vip-claim-confirm {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border-radius: 9px;
    color: #07130d;
    background: #42cf82;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
}

.vip-claim-confirm:hover:not(:disabled) {
    background: #4bd78b;
}

.vip-claim-confirm:disabled {
    color: #717988;
    background: #242831;
    box-shadow: none;
    opacity: 1;
}

body.vip-claim-is-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .vip-claim-dialog {
        padding: 17px;
        border-radius: 12px;
    }

    .vip-claim-brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .vip-claim-selected {
        padding-left: 10px;
        gap: 8px;
    }

    .vip-claim-selected strong {
        max-width: 130px;
    }
}

/* ============================================================
   Competitor-parity VIP layout (intro / XP progress / rewards slider
   / benefit tabs / VIP level rows). Uses the same palette tokens above.
   ============================================================ */

.vip-intro {
    margin: 8px 0 16px;
    display: grid;
    gap: 8px;
}

.vip-intro h1 {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1;
    letter-spacing: 0;
}

.vip-intro p {
    max-width: 640px;
    color: var(--vip-soft);
    font-size: 14px;
    line-height: 1.55;
}

.vip-card {
    border: 1px solid var(--vip-line);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(18, 22, 33, 0.96), rgba(8, 10, 15, 0.96)),
        var(--vip-panel);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    padding: 18px;
    margin-bottom: 14px;
}

.vip-card h2 {
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 900;
}

/* ---- VIP Progress (XP track) ---- */
.vip-xp-head {
    margin-bottom: 16px;
    display: grid;
    gap: 5px;
}

.vip-xp-head p {
    color: var(--vip-muted);
    font-size: 13px;
    line-height: 1.45;
}

.vip-xp-track {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.vip-xp-node {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vip-xp-node--next {
    justify-content: flex-end;
}

.vip-xp-node-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.vip-xp-node-copy--end {
    text-align: right;
    justify-items: end;
}

.vip-xp-node-copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.vip-xp-pill {
    align-self: start;
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--vip-amber);
    background: rgba(238, 170, 85, 0.14);
    border: 1px solid rgba(238, 170, 85, 0.32);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.vip-xp-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #262c3a;
    overflow: hidden;
}

.vip-xp-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vip-purple), var(--vip-blue), var(--vip-green));
    box-shadow: 0 0 18px rgba(72, 185, 255, 0.35);
    transition: width 0.4s ease;
}

.vip-xp-bar-label {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: var(--vip-amber);
    font-size: 10px;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

/* Tier gem badge (glowing rounded square holding the rank gem) */
.vip-tier-badge {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at 50% 35%, rgba(143, 92, 255, 0.35), rgba(9, 11, 17, 0.9));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.vip-tier-badge--lg {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 12px;
}

.vip-tier-badge .vip-rank-gem {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.vip-tier-badge--lg .vip-rank-gem {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.vip-tier-badge--novice { box-shadow: 0 10px 26px rgba(139, 149, 167, 0.25); }
.vip-tier-badge--bronze { box-shadow: 0 10px 26px rgba(205, 127, 82, 0.28); }
.vip-tier-badge--silver { box-shadow: 0 10px 26px rgba(197, 209, 222, 0.22); }
.vip-tier-badge--gold { box-shadow: 0 10px 26px rgba(255, 211, 106, 0.28); }
.vip-tier-badge--platinum { box-shadow: 0 10px 26px rgba(126, 231, 255, 0.26); }
.vip-tier-badge--diamond { box-shadow: 0 10px 26px rgba(185, 149, 255, 0.3); }

/* ---- Rewards Slider ---- */
.vip-slider-card { --vip-split: 50%; }

.vip-slider-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.vip-slider-note {
    margin-top: 4px;
    color: var(--vip-muted);
    font-size: 12px;
}

.vip-slider-tabs {
    flex: 0 0 auto;
    display: inline-flex;
    padding: 3px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-slider-tab {
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--vip-muted);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.vip-slider-tab.is-active {
    color: #fff;
    background: rgba(143, 92, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(143, 92, 255, 0.4);
}

.vip-slider-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
}

.vip-slider-label { color: var(--vip-muted); }
.vip-slider-label strong { font-weight: 900; }
.vip-slider-label--rake strong { color: var(--vip-blue); }
.vip-slider-label--loss strong { color: var(--vip-purple); }

.vip-slider-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--vip-blue) 0%, var(--vip-blue) var(--vip-split), var(--vip-purple) var(--vip-split), var(--vip-purple) 100%);
}

.vip-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--vip-panel-2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.vip-slider-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--vip-panel-2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* ---- Benefits: tier tabs + panel ---- */
.vip-benefits-lead {
    margin: -4px 0 14px;
    color: var(--vip-muted);
    font-size: 13px;
}

.vip-benefit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vip-benefit-tab {
    flex: 1 1 110px;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--vip-muted);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.vip-benefit-tab:hover { transform: translateY(-1px); }

.vip-benefit-tab.is-active {
    color: #fff;
    border-color: var(--vip-line-hot);
    background: rgba(143, 92, 255, 0.14);
    box-shadow: 0 0 0 1px rgba(143, 92, 255, 0.2), 0 12px 30px rgba(143, 92, 255, 0.14);
}

.vip-benefit-panel { display: none; }
.vip-benefit-panel.is-active { display: block; }

.vip-benefit-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.vip-benefit-panel-head h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.vip-benefit-panel-sub {
    display: block;
    margin-top: 4px;
    color: var(--vip-muted);
    font-size: 12px;
    line-height: 1.4;
}

.vip-benefit-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ============================================================
   Player stats popover (clickable nickname → player card)
   ============================================================ */

/* VIP rank gem shown before a nickname in chat. */
.chat__vip-gem {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-right: 5px;
    vertical-align: middle;
}
.wanted-player-link {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}
.wanted-player-link:hover {
    color: #48b9ff;
    text-decoration: underline;
}

/* Modal shell — overrides the default white .popup. */
.popup.popup--player-stats {
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(3, 6, 18, 0.6);
    color: #f4f6ff;
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    min-height: 0;
    overflow: hidden;
    padding: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.popup--player-stats * { box-sizing: border-box; }

/* The JS toggles visibility with the `hidden` attribute, but several children below
   set an explicit `display` (flex/grid) which beats the UA `[hidden]{display:none}`
   rule — leaving the spinner, hidden-note and stats all visible at once. Force the
   attribute to win everywhere inside the card. */
.popup--player-stats [hidden] { display: none !important; }

.popup--player-stats .ps-modal {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.popup--player-stats .ps-head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    padding: 18px 22px;
    position: sticky;
    top: 0;
    background: #10131b;
    z-index: 2;
}
.popup--player-stats .ps-head h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #f4f6ff;
}
/* Flat icon-only close — override the global .popup .close box (38px rounded square
   with a light radial-gradient background) that .ps-close inherits via `.close`. */
.popup--player-stats .ps-close,
.popup--player-stats .ps-close.close {
    width: auto;
    height: auto;
    padding: 4px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #9da9c0;
    display: inline-flex;
    line-height: 0;
    transition: color 0.15s ease;
}
.popup--player-stats .ps-close:hover,
.popup--player-stats .ps-close.close:hover { color: #fff; }

.popup--player-stats .ps-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}
.popup--player-stats .ps-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #48b9ff;
    animation: psSpin 0.8s linear infinite;
}
@keyframes psSpin { to { transform: rotate(360deg); } }

.popup--player-stats .ps-body { padding: 20px 22px 24px; }

/* Identity row */
.popup--player-stats .ps-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.popup--player-stats .ps-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background: #1c2332 center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.popup--player-stats .ps-identity-main { flex: 1; min-width: 0; }
.popup--player-stats .ps-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.popup--player-stats .ps-vip-badge {
    display: inline-flex;
    align-items: center;
}
.popup--player-stats .ps-vip-badge .vip-rank-gem {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}
.popup--player-stats .ps-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popup--player-stats .ps-reg {
    display: block;
    font-size: 12px;
    color: #9da9c0;
    margin-top: 3px;
}
.popup--player-stats .ps-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.popup--player-stats .ps-btn {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    transition: filter 0.15s ease, background 0.15s ease;
}
.popup--player-stats .ps-btn--tip {
    background: rgba(49, 208, 123, 0.16);
    color: #4be3a6;
    border: 1px solid rgba(75, 227, 166, 0.35);
}
.popup--player-stats .ps-btn--tip:hover { filter: brightness(1.15); }
.popup--player-stats .ps-btn--ignore {
    background: #1c2332;
    color: #c6cee0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.popup--player-stats .ps-btn--ignore:hover { background: #232c40; }
.popup--player-stats .ps-btn--ignore.is-on {
    background: rgba(255, 109, 125, 0.16);
    color: #ff8b97;
    border-color: rgba(255, 109, 125, 0.4);
}

/* VIP progress */
.popup--player-stats .ps-progress-wrap { margin-bottom: 18px; }
.popup--player-stats .ps-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9da9c0;
    margin-bottom: 6px;
}
.popup--player-stats .ps-xp { color: #c6cee0; font-weight: 600; }
.popup--player-stats .ps-progress {
    height: 6px;
    border-radius: 6px;
    background: #1c2332;
    overflow: hidden;
}
.popup--player-stats .ps-progress span {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #7350ff, #48b9ff);
    transition: width 0.4s ease;
}
.popup--player-stats .ps-progress-ranks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}
.popup--player-stats .ps-mini-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #c6cee0;
}
.popup--player-stats .ps-mini-rank::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 3px;
    transform: rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.popup--player-stats .ps-mini-rank--novice::before { background: linear-gradient(135deg, #6f7788, #c4ccda); }
.popup--player-stats .ps-mini-rank--bronze::before { background: linear-gradient(135deg, #7d4129, #e39a65); }
.popup--player-stats .ps-mini-rank--silver::before { background: linear-gradient(135deg, #6f7c8d, #edf4ff); }
.popup--player-stats .ps-mini-rank--gold::before { background: linear-gradient(135deg, #8d621d, #ffd86d); }
.popup--player-stats .ps-mini-rank--platinum::before { background: linear-gradient(135deg, #2a7f9e, #9ef0ff); }
.popup--player-stats .ps-mini-rank--diamond::before { background: linear-gradient(135deg, #7350ff, #f0e9ff); }

/* Tabs */
.popup--player-stats .ps-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 18px;
    overflow-x: auto;
}
.popup--player-stats .ps-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #9da9c0;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 2px 10px;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.popup--player-stats .ps-tab:hover { color: #f4f6ff; }
.popup--player-stats .ps-tab.is-active {
    color: #3fd0c9;
    border-bottom-color: #3fd0c9;
}

/* Hidden note */
.popup--player-stats .ps-hidden-note {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: #9da9c0;
    background: #151a25;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 26px 16px;
    font-size: 14px;
}

/* Stats grid */
.popup--player-stats .ps-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.popup--player-stats .ps-stat {
    background: #151a25;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 12px 13px;
}
.popup--player-stats .ps-stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9da9c0;
    margin-bottom: 8px;
}
.popup--player-stats .ps-stat-label svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 14px;
}
.popup--player-stats .ps-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #f4f6ff;
    display: block;
    word-break: break-word;
}
.popup--player-stats .ps-stat-value.is-negative { color: #ff6d7d; }
.popup--player-stats .ps-stat-value.is-positive { color: #31d07b; }

@media (max-width: 480px) {
    .popup--player-stats .ps-stats { grid-template-columns: repeat(2, 1fr); }
    .popup--player-stats .ps-identity { flex-wrap: wrap; }
    .popup--player-stats .ps-actions { width: 100%; }
    .popup--player-stats .ps-btn { flex: 1; }
}

/* ===== Чаевые (peer tip) transfer modal ===== */
.popup--tip {
    width: min(400px, calc(100vw - 28px));
    background: #10131b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(3, 6, 18, 0.55);
    padding: 0;
    overflow: hidden;
}
.popup--tip * { box-sizing: border-box; }
.popup--tip [hidden] { display: none !important; }

.popup--tip .tip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.popup--tip .tip-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: #f4f6ff; }
.popup--tip .tip-close,
.popup--tip .tip-close.close {
    width: auto; height: auto; padding: 4px; border-radius: 0;
    background: none; box-shadow: none;
    color: #9da9c0; display: inline-flex; line-height: 0;
    transition: color 0.15s ease;
}
.popup--tip .tip-close:hover { color: #fff; }

.popup--tip .tip-body { padding: 18px 20px 20px; }

.popup--tip .tip-recipient {
    background: #151a25;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.popup--tip .tip-recipient-label {
    display: block;
    font-size: 12px;
    color: #99a1bd;
    margin-bottom: 6px;
}
.popup--tip .tip-recipient-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.popup--tip .tip-recipient-gem { width: 14px; height: 14px; flex-basis: 14px; }
.popup--tip .tip-recipient-main strong {
    color: #fff; font-size: 15px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.popup--tip .tip-recipient-id { color: #7d879f; font-size: 12px; margin-left: auto; }

.popup--tip .tip-field { display: block; }
.popup--tip .tip-field-label {
    display: block; font-size: 12px; color: #99a1bd; margin-bottom: 6px;
}
.popup--tip .tip-amount-row { display: flex; gap: 8px; }
.popup--tip .tip-amount {
    flex: 1; min-width: 0;
    background: #151a25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 11px 13px;
    outline: none;
}
.popup--tip .tip-amount:focus { border-color: #48b9ff; }
.popup--tip .tip-currency {
    flex: 0 0 92px;
    background: #151a25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #f4f6ff;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
}
.popup--tip .tip-balance-hint {
    display: block; font-size: 12px; color: #7d879f; margin-top: 7px;
}

.popup--tip .tip-error {
    background: rgba(255, 109, 125, 0.1);
    border: 1px solid rgba(255, 109, 125, 0.32);
    border-radius: 10px;
    color: #ff8b97;
    font-size: 13px;
    padding: 9px 12px;
    margin-top: 14px;
}

.popup--tip .tip-submit {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #31d07b, #22a45f);
    color: #06210f;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.popup--tip .tip-submit:hover { filter: brightness(1.05); }
.popup--tip .tip-submit:disabled { opacity: 0.6; cursor: default; }
.popup--tip .tip-note {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #7d879f;
    text-align: center;
}

.vip-benefit-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.vip-benefit-item:last-child { border-bottom: 0; }
.vip-benefit-item.is-off { opacity: 0.55; }

.vip-benefit-mark {
    width: 24px;
    height: 24px;
    margin: 0;
}

.vip-benefit-item-copy { display: grid; gap: 3px; min-width: 0; text-align: left; }

.vip-benefit-item-copy strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.vip-benefit-item-copy span {
    color: var(--vip-muted);
    font-size: 12px;
    line-height: 1.4;
}

.vip-benefit-chip {
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--vip-amber);
    background: rgba(238, 170, 85, 0.14);
    border: 1px solid rgba(238, 170, 85, 0.3);
    font-size: 11px;
    font-weight: 900;
}

/* ---- Heat Boost disclosure card (non-cash tracking points) ---- */
.vip-heat-note {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.vip-heat-note-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.vip-heat-note-head h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.vip-heat-note-head p {
    margin-top: 4px;
    color: var(--vip-muted);
    font-size: 12px;
    line-height: 1.4;
}

.vip-heat-status {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--vip-blue);
    background: rgba(72, 185, 255, 0.12);
    border: 1px solid rgba(72, 185, 255, 0.3);
    font-size: 11px;
    font-weight: 900;
    text-transform: lowercase;
}

.vip-heat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-heat-row span { color: var(--vip-soft); font-size: 12px; font-weight: 800; }
.vip-heat-row strong { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---- VIP Levels: per-sublevel XP progress rows ---- */
.vip-level-row {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    display: grid;
    gap: 9px;
}

.vip-level-row:first-child { border-top: 0; }
.vip-level-row.is-active { background: rgba(143, 92, 255, 0.1); }

.vip-level-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.vip-level-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    min-width: 0;
}

.vip-level-tag {
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--vip-purple);
    background: rgba(143, 92, 255, 0.16);
    border: 1px solid rgba(143, 92, 255, 0.34);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.vip-level-stat {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.vip-level-stat strong { color: #fff; font-size: 13px; font-weight: 900; }
.vip-level-stat span { color: var(--vip-muted); font-size: 11px; font-weight: 800; }

.vip-level-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.vip-level-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vip-purple), var(--vip-blue));
}

.vip-level-row.is-complete .vip-level-bar-fill {
    background: linear-gradient(90deg, var(--vip-green), var(--vip-blue));
}

@media (max-width: 1180px) {
    .vip-hero-shell {
        grid-template-columns: 1fr;
    }

    .vip-hero-visual {
        min-height: 300px;
        grid-template-rows: minmax(250px, 1fr) 76px;
    }

    .vip-reward-cells {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .vip-page {
        padding: 14px 10px 42px;
    }

    .vip-hero-copy,
    .vip-section,
    .vip-active-bonus,
    .vip-credit-panel {
        padding: 14px;
    }

    .vip-hero-stats,
    .vip-credit-metrics {
        grid-template-columns: 1fr;
    }

    .vip-reward-cells {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .vip-reward-cell {
        min-height: 226px;
        padding: 11px;
    }

    .vip-reward-icon {
        width: 72px;
        height: 72px;
    }

    .vip-reward-copy h3 {
        font-size: 13px;
    }

    .vip-active-bonus {
        grid-template-columns: 1fr;
    }

    .vip-tier summary,
    .vip-tier-row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
        padding: 12px;
    }

    .vip-tier-lock {
        display: none;
    }

    .vip-contrib-row {
        grid-template-columns: 1fr 54px;
    }

    .vip-contrib-bar-wrap {
        grid-column: 1 / -1;
        order: 3;
    }

    .vip-card {
        padding: 14px;
    }

    .vip-xp-track {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vip-xp-node,
    .vip-xp-node--next {
        justify-content: flex-start;
    }

    .vip-xp-node-copy--end {
        text-align: left;
        justify-items: start;
    }

    .vip-slider-head {
        flex-direction: column;
        gap: 12px;
    }

    .vip-benefit-tab {
        flex-basis: calc(33.333% - 8px);
        min-width: 0;
    }

    .vip-level-row-top {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .vip-reward-cells {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   COMPACT CHAT REDESIGN (Housebets-style single-line messages)  2026-07-24
   Overrides the legacy avatar+bubble layout in main.css. Loaded last, so these
   rules win the cascade. Scoped to .chat--compact so nothing else is affected.
   ============================================================================ */

.chat--compact {
    --cc-bg: #14151b;
    --cc-panel: #1a1c24;
    --cc-line: rgba(255, 255, 255, 0.06);
    --cc-text: #e7e9f2;
    --cc-muted: #8a91a8;
    --cc-accent: #8b5cf6;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cc-bg);
    border-left: 1px solid var(--cc-line);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.theme--dark .chat--compact { background: var(--cc-bg) !important; border-color: var(--cc-line); }

/* ---- Header ---- */
.chat--compact .chat__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    min-height: var(--header-height, 64px);
    border-bottom: 1px solid var(--cc-line);
    background: var(--cc-bg);
}
.chat--compact .chat__title { flex: 0 0 auto; }
.chat--compact .chat__title-text {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.2px;
}
.chat--compact .chat__x {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--cc-muted);
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}
.chat--compact .chat__x:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* ---- Language selector (compact, mirrors reference dropdown) ---- */
.chat-lang { position: relative; margin-left: auto; }
.chat-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    background: var(--cc-panel);
    border: 1px solid var(--cc-line);
    color: var(--cc-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.chat-lang__btn:hover { border-color: rgba(255, 255, 255, 0.14); }
.chat-lang.is-open .chat-lang__btn { border-color: var(--cc-accent); }
.chat-lang__flag { font-size: 16px; line-height: 1; }
.chat-lang__label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.chat-lang__caret { color: var(--cc-muted); transition: transform 0.18s ease; flex: 0 0 auto; }
.chat-lang.is-open .chat-lang__caret { transform: rotate(180deg); }

.chat-lang__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 60;
    width: 200px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 12px;
    background: #12131a;
    border: 1px solid var(--cc-line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    animation: ccLangIn 0.14s ease;
}
@keyframes ccLangIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.chat-lang__opt {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--cc-text);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}
.chat-lang__opt:hover { background: rgba(255, 255, 255, 0.05); }
.chat-lang__opt.is-active { background: rgba(139, 92, 255, 0.14); color: #fff; }
.chat-lang__opt .chat-lang__flag { font-size: 17px; }
.chat-lang__opt-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-lang__opt-check { color: var(--cc-accent); opacity: 0; }
.chat-lang__opt.is-active .chat-lang__opt-check { opacity: 1; }
/* scrollbar */
.chat-lang__menu::-webkit-scrollbar { width: 8px; }
.chat-lang__menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; }

/* ---- Messages area ---- */
.chat--compact .chat__messages {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 6px 12px 4px;
    overflow-y: auto;
    overflow-x: hidden;
}
.chat--compact .chat__messages .ss-content { padding: 8px 0; }

/* ---- Single-line message row ---- */
.chat--compact .chat__msg {
    position: relative;
    display: block;
    margin: 0;
    padding: 6px 34px 6px 10px;
    border-radius: 9px;
    transition: background 0.12s ease;
}
.chat--compact .chat__msg:hover { background: rgba(255, 255, 255, 0.03); }

.chat--compact .chat__line {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--cc-text);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.chat--compact .chat__vip-gem {
    width: 11px;
    height: 11px;
    display: inline-block;
    flex: none;
    margin-right: 5px;
    vertical-align: -1px;
    border-radius: 3px;
    transform: rotate(45deg);
}
.chat--compact .chat__author {
    font-weight: 700;
    color: #c9cce0;
}
.chat--compact .wanted-player-link { color: inherit; }
.chat--compact .wanted-player-link:hover { color: #b9a3ff; text-decoration: none; }
.chat--compact .chat__colon { color: var(--cc-muted); margin-right: 5px; font-weight: 700; }
.chat--compact .chat__text { color: var(--cc-text); }

/* system messages (type_mess 4) */
.chat--compact .chat__msg--system {
    background: rgba(242, 172, 68, 0.07);
    border: 1px solid rgba(242, 172, 68, 0.16);
}
.chat--compact .chat__msg--system .chat__text { color: #f2c471; }

/* your own messages: subtle accent on the name */
.chat--compact .chat__msg--your .chat__author { color: #b9a3ff; }

/* ---- Shared-bet card sits inline in a message row ---- */
.chat--compact .chat__msg .chat-bet-card { margin-top: 6px; }

/* ---- Admin moderation buttons (revealed on hover) ---- */
.chat--compact .chat__buttons-admins {
    position: absolute;
    top: 4px;
    right: 6px;
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.chat--compact .chat__msg:hover .chat__buttons-admins { opacity: 1; }
.chat--compact .chat__buttons-admins a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--cc-muted);
}
.chat--compact .chat__buttons-admins a:hover { background: rgba(246, 70, 93, 0.18); color: #ff6d7d; }
.chat--compact .chat__buttons-admins a .icon { width: 13px; height: 13px; }

/* ---- Bottom: input + footer ---- */
.chat--compact .chat__bottom {
    flex: 0 0 auto;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--cc-line);
    background: var(--cc-bg);
}
.chat--compact .chat__send {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 6px;
    border-radius: 12px;
    background: var(--cc-panel);
    border: 1px solid var(--cc-line);
    transition: border-color 0.15s ease;
}
.chat--compact .chat__send:focus-within { border-color: rgba(139, 92, 255, 0.5); }
.chat--compact .chat__input { flex: 1 1 auto; min-width: 0; }
.chat--compact .chat__input input {
    width: 100%;
    padding: 9px 6px;
    border: 0;
    background: transparent;
    color: var(--cc-text);
    font-size: 13.5px;
    font-weight: 500;
}
.chat--compact .chat__input input::placeholder { color: var(--cc-muted); }
.theme--dark .chat--compact .chat__input input { color: var(--cc-text); }
.theme--dark .chat--compact .chat__input input::placeholder { color: var(--cc-muted); }

.chat--compact .chat__send-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.chat--compact .chat__emoji {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--cc-muted);
    transition: color 0.15s ease, background 0.15s ease;
}
.chat--compact .chat__emoji:hover { color: #cfd3e6; background: rgba(255, 255, 255, 0.05); }
.chat--compact .chat__send-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d4bd6);
    transition: filter 0.15s ease;
}
.chat--compact .chat__send-btn:hover { filter: brightness(1.12); }

/* ---- Footer: online count + rules ---- */
.chat--compact .chat__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
    font-size: 12px;
}
.chat--compact .chat__online { display: inline-flex; align-items: center; color: var(--cc-muted); font-weight: 600; }
.chat--compact .chat__online b { color: #d6d9e8; font-weight: 800; font-variant-numeric: tabular-nums; }
.chat--compact .chat__online-dot {
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #33bf7c;
    box-shadow: 0 0 0 0 rgba(51, 191, 124, 0.5);
    animation: ccPulse 2.4s infinite;
}
@keyframes ccPulse {
    0% { box-shadow: 0 0 0 0 rgba(51, 191, 124, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(51, 191, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(51, 191, 124, 0); }
}
.chat--compact .chat__rules {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--cc-muted);
    font-weight: 600;
    transition: color 0.15s ease;
}
.chat--compact .chat__rules:hover { color: #cfd3e6; }
.chat--compact .chat__rules svg { flex: 0 0 auto; }

/* ---- Mobile: keep the dark compact skin (main.css forces a light bg + a
   decorative :before border on .chat below 1125px; neutralise both here). ---- */
@media only screen and (max-width: 1125px) {
    .chat--compact,
    .theme--dark .chat--compact { background: var(--cc-bg) !important; }
    .chat--compact:before { display: none !important; }
}
@media only screen and (max-width: 400px) {
    .chat-lang__label { max-width: 62px; }
    .chat--compact .chat__title-text { font-size: 16px; }
}

/* ============================================================
   VIP page — restrained reference layout
   ============================================================ */
.vip-page {
    --vip-page-panel: #12151a;
    --vip-page-panel-deep: #0b0d11;
    --vip-page-line: #2a303a;
    --vip-page-text: #f4f6fa;
    --vip-page-muted: #9aa3b2;
    --vip-page-accent: #8758f4;
    --vip-page-progress: #42cf82;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 30px 20px 64px;
    color: var(--vip-page-text);
}

.vip-page-title {
    margin: 0 0 28px;
}

.vip-page-title h1 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.vip-page-title h1 span {
    color: #d8c8ff;
}

.vip-overview {
    min-height: 0;
    padding: 32px;
    display: block;
    border: 0;
    border-radius: 8px;
    background: var(--vip-page-panel);
    box-shadow: none;
    overflow: hidden;
}

.vip-overview-copy {
    min-width: 0;
    display: block;
}

.vip-page .vip-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vip-page .vip-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: block;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #343945;
    box-shadow: none;
}

.vip-page .vip-profile-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.vip-page .vip-profile-rank {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d3d8e1;
    font-size: 12px;
    font-weight: 700;
}

.vip-page .vip-profile-rank .vip-rank-gem,
.vip-page .vip-progress-bottom .vip-rank-gem {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.vip-overview-progress {
    margin-top: 26px;
}

.vip-page .vip-progress-top,
.vip-page .vip-progress-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #d4d8e0;
    font-size: 12px;
    font-weight: 700;
}

.vip-page .vip-progress-top strong {
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.vip-page .vip-progress-bar {
    height: 8px;
    margin-top: 12px;
    border-radius: 2px;
    overflow: hidden;
    background: #2a2f39;
}

.vip-page .vip-progress-fill {
    height: 100%;
    border-radius: 0;
    background: var(--vip-page-progress);
    box-shadow: none;
}

.vip-page .vip-progress-bottom {
    margin-top: 10px;
    color: var(--vip-page-muted);
    font-size: 11px;
}

.vip-page .vip-progress-bottom > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vip-overview-description {
    max-width: none;
    margin: 32px 0 0;
    color: #e4e7ed;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.vip-page .vip-section {
    margin-top: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.vip-page .vip-section-heading {
    min-height: 34px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.vip-page .vip-section-heading > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.vip-page .vip-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.vip-page .vip-section-icon {
    position: relative;
    display: inline-block;
    width: 23px;
    height: 22px;
    flex: 0 0 23px;
    color: var(--vip-page-accent);
}

.vip-page .vip-section-icon--gift {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: url('/images/vip-rewards/gift-icon-v2.png') center / cover no-repeat;
}

.vip-page .vip-section-icon--gift::before {
    display: none;
}

.vip-page .vip-section-icon--gift::after {
    display: none;
}

.vip-page .vip-section-icon--crown {
    height: 20px;
    background: var(--vip-page-accent);
    clip-path: polygon(0 20%, 25% 58%, 49% 4%, 74% 58%, 100% 20%, 88% 100%, 12% 100%);
}

.vip-page .vip-count-badge {
    min-width: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--vip-page-accent);
    font-size: 12px;
    font-weight: 800;
}

.vip-page .vip-reward-cells {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.vip-page .vip-reward-cell {
    min-width: 0;
    min-height: 258px;
    padding: 20px 24px 24px;
    display: grid;
    grid-template-rows: auto 82px 1fr 48px;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--vip-page-line);
    border-radius: 8px;
    background: var(--vip-page-panel);
    box-shadow: none;
}

.vip-page .vip-reward-cell::after {
    display: none;
}

.vip-page .vip-reward-cell.is-claimable {
    border-color: #3a7055;
    box-shadow: none;
}

.vip-page .vip-reward-kicker {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.vip-page .vip-reward-mini-gift {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    border: 0;
    border-radius: 5px;
    background: url('/images/vip-rewards/gift-icon-v2.png') center / cover no-repeat;
    opacity: 1;
}

.vip-page .vip-reward-mini-gift::before,
.vip-page .vip-reward-mini-gift::after {
    display: none;
}

.vip-page .vip-reward-icon {
    width: 82px;
    height: 82px;
    filter: none;
}

.vip-page .vip-reward-copy {
    align-content: center;
    gap: 6px;
}

.vip-page .vip-reward-copy h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.vip-page .vip-reward-value {
    color: var(--vip-page-muted);
    font-size: 12px;
    font-weight: 600;
}

.vip-page .vip-btn {
    min-height: 48px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

.vip-page .vip-btn:hover:not(:disabled) {
    transform: none;
    filter: brightness(1.06);
}

.vip-page .vip-btn-success {
    color: #07130d;
    background: var(--vip-page-progress);
}

.vip-page .vip-btn-ghost {
    color: #fff;
    border: 1px solid #9ca6b6;
    background: transparent;
}

.vip-page .vip-btn:disabled {
    color: #fff;
    border-color: transparent;
    background: #9aa4b4;
    opacity: 1;
}

.vip-page .vip-reward-feedback:empty {
    display: none;
}

.vip-page .vip-reward-feedback:not(:empty) {
    grid-column: 1;
    margin: -2px 0 0;
}

.vip-page .vip-active-bonus {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid var(--vip-page-line);
    border-radius: 8px;
    background: var(--vip-page-panel);
    box-shadow: none;
}

.vip-page .vip-tier-list {
    display: grid;
    gap: 16px;
}

.vip-page .vip-tier,
.vip-page .vip-tier.is-current,
.vip-page .vip-tier.is-done {
    overflow: hidden;
    border: 1px solid var(--vip-page-line);
    border-radius: 8px;
    background: var(--vip-page-panel-deep);
    box-shadow: none;
}

.vip-page .vip-tier summary {
    min-height: 58px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.vip-page .vip-tier-name {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.vip-page .vip-tier-name .vip-rank-gem {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.vip-tier-actions {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.vip-tier-padlock {
    position: relative;
    width: 14px;
    height: 11px;
    border: 1.5px solid #a26332;
    border-radius: 2px;
}

.vip-tier-padlock::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -8px;
    width: 7px;
    height: 8px;
    border: 1.5px solid #a26332;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.vip-tier-padlock.is-unlocked,
.vip-tier-padlock.is-unlocked::before {
    border-color: #4eb473;
}

.vip-tier-chevron {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid #e4e7ec;
    border-bottom: 1.5px solid #e4e7ec;
    transform: rotate(45deg) translate(-2px, 2px);
    transition: transform .16s ease;
}

.vip-page .vip-tier[open] .vip-tier-chevron {
    transform: rotate(225deg) translate(-2px, 2px);
}

.vip-page .vip-tier-table {
    padding: 6px 16px 16px;
    border-top: 1px solid var(--vip-page-line);
    background: var(--vip-page-panel);
}

.vip-page .vip-level-row {
    display: block;
    margin: 0;
    padding: 14px 6px;
    border-top: 1px solid #252a33;
    background: transparent;
}

.vip-page .vip-level-row:first-child {
    border-top: 0;
}

.vip-page .vip-level-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vip-page .vip-level-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.vip-page .vip-level-name .vip-rank-gem {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
}

.vip-page .vip-level-tag {
    padding: 3px 7px;
    border-radius: 4px;
    color: #d5c9f5;
    background: #292336;
    font-size: 10px;
    font-style: normal;
}

.vip-page .vip-level-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--vip-page-muted);
    font-size: 11px;
}

.vip-page .vip-level-stat strong {
    color: #fff;
    font-size: 12px;
}

.vip-page .vip-level-bar {
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 2px;
    background: #2a2f39;
}

.vip-page .vip-level-bar-fill {
    height: 100%;
    border-radius: 0;
    background: var(--vip-page-progress);
    box-shadow: none;
}

@media (max-width: 1050px) {
    .vip-page .vip-reward-cells {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .vip-page {
        padding: 20px 12px 44px;
    }

    .vip-page-title {
        margin-bottom: 18px;
    }

    .vip-page-title h1 {
        font-size: 24px;
    }

    .vip-overview {
        min-height: 0;
        padding: 18px;
    }

    .vip-overview-description {
        margin-top: 24px;
        font-size: 13px;
    }

    .vip-page .vip-section-heading h2 {
        font-size: 20px;
    }

    .vip-page .vip-reward-cells {
        grid-template-columns: 1fr;
    }

    .vip-page .vip-reward-cell {
        min-height: 248px;
    }

    .vip-page .vip-active-bonus {
        grid-template-columns: 1fr;
    }

    .vip-page .vip-tier summary {
        padding: 0 16px;
    }

    .vip-tier-actions {
        gap: 18px;
    }

    .vip-page .vip-level-row-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* ============================================================
   VIP benefit comparison matrix
   ============================================================ */
.vip-page .vip-section-icon--benefits {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.vip-page .vip-section-icon--benefits svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 9px rgba(135, 88, 244, 0.34));
}

.vip-page .vip-benefits-lead {
    max-width: 860px;
    margin: -4px 0 12px;
    color: var(--vip-page-muted);
    font-size: 12px;
    line-height: 1.55;
}

.vip-page .vip-benefits-table-wrap {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #4e5664 #11141a;
    border: 1px solid var(--vip-page-line);
    border-radius: 10px;
    background: #080a0e;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.vip-page .vip-benefits-table-wrap:focus-visible {
    outline: 2px solid var(--vip-page-accent);
    outline-offset: 3px;
}

.vip-page .vip-benefits-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.vip-page .vip-benefits-table-wrap::-webkit-scrollbar-track {
    background: #11141a;
}

.vip-page .vip-benefits-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid #11141a;
    border-radius: 999px;
    background: #4e5664;
}

.vip-page .vip-benefits-table {
    width: 100%;
    min-width: 1040px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 6px;
    padding: 0 6px 6px;
}

.vip-page .vip-benefits-table th,
.vip-page .vip-benefits-table td {
    height: 58px;
    padding: 10px 12px;
    border: 0;
    text-align: center;
    vertical-align: middle;
    color: #e7ebf2;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.vip-page .vip-benefits-table thead th {
    height: 86px;
    color: #aab3c3;
    background: #080a0e;
    white-space: normal;
}

.vip-page .vip-benefits-table thead th:first-child {
    width: 220px;
    z-index: 5;
    color: #7f8999;
    background: #080a0e;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vip-page .vip-benefits-table tbody th {
    width: 220px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    white-space: normal;
}

.vip-page .vip-benefits-table thead th:first-child,
.vip-page .vip-benefits-table tbody th {
    position: sticky;
    left: 0;
}

.vip-page .vip-benefits-table tbody th {
    z-index: 3;
}

.vip-page .vip-benefits-table tbody tr:nth-child(odd) > * {
    background: #0e1116;
}

.vip-page .vip-benefits-table tbody tr:nth-child(even) > * {
    background: #161a20;
}

.vip-page .vip-benefits-table tbody tr > :first-child {
    border-radius: 8px 0 0 8px;
}

.vip-page .vip-benefits-table tbody tr > :last-child {
    border-radius: 0 8px 8px 0;
}

.vip-page .vip-benefits-table .is-current-rank {
    box-shadow: inset 1px 0 rgba(135, 88, 244, 0.4), inset -1px 0 rgba(135, 88, 244, 0.4);
}

.vip-page .vip-benefits-table thead .is-current-rank {
    border-radius: 8px 8px 0 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(135, 88, 244, 0.18), rgba(135, 88, 244, 0.04));
}

.vip-page .vip-benefit-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f5f7fb;
    font-size: 12px;
    font-weight: 800;
}

.vip-page .vip-benefit-rank .vip-rank-gem {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.vip-page .vip-benefit-threshold {
    display: block;
    margin-top: 6px;
    color: #737d8e;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.vip-page .vip-benefit-current {
    display: table;
    margin: 6px auto 0;
    padding: 3px 7px;
    border: 1px solid rgba(168, 132, 255, 0.38);
    border-radius: 999px;
    color: #d9caff;
    background: rgba(135, 88, 244, 0.14);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.vip-page .vip-benefit-cell {
    min-height: 32px;
    display: grid;
    grid-template-columns: 18px auto;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 4px 7px;
}

.vip-page .vip-benefit-cell strong {
    color: #f6f8fb;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.vip-page .vip-benefit-cell small {
    grid-column: 1 / -1;
    color: #7e8898;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
}

.vip-page .vip-benefit-cell .vip-check {
    width: 17px;
    height: 17px;
    margin: 0;
    border: 0;
    background: #38d985;
    box-shadow: 0 0 0 3px rgba(56, 217, 133, 0.08), 0 0 16px rgba(56, 217, 133, 0.14);
}

.vip-page .vip-benefit-cell .vip-check::before {
    width: 6px;
    height: 3px;
    border-width: 0 0 2px 2px;
    border-color: #082516;
}

.vip-page .vip-benefit-off {
    color: #4f5866;
    font-size: 17px;
    font-weight: 500;
}

.vip-benefits-scroll-hint {
    display: none;
    margin-top: 8px;
    color: #707989;
    font-size: 10px;
    text-align: right;
}

@media (max-width: 760px) {
    .vip-page .vip-benefits-lead {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .vip-page .vip-benefits-table {
        min-width: 950px;
    }

    .vip-page .vip-benefits-table thead th:first-child,
    .vip-page .vip-benefits-table tbody th {
        width: 184px;
    }

    .vip-page .vip-benefits-table th,
    .vip-page .vip-benefits-table td {
        padding-inline: 9px;
    }

    .vip-page .vip-benefits-table tbody th {
        font-size: 12px;
    }

    .vip-benefits-scroll-hint {
        display: block;
    }
}
