:root {
    --bg: #080b14;
    --bg-2: #10162b;
    --card: #131a32;
    --card-solid: #151d38;
    --border: rgba(255, 255, 255, 0.11);
    --emerald: #00ff88;
    --emerald-dark: #00c96b;
    --cyan: #38bdf8;
    --gold: #fbbf24;
    --danger: #f87171;
    --text: #f8fafc;
    --muted: #94a3b8;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: Tahoma, system-ui, -apple-system, sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 15% 6%, rgba(0, 255, 136, 0.12) 0%, transparent 42%), radial-gradient(circle at 85% 22%, rgba(56, 189, 248, 0.1) 0%, transparent 45%), linear-gradient(180deg, #080b14 0%, #0f152b 55%, #080b14 100%);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
}

.app-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 13px 96px;
    min-height: 100vh;
    overflow-x: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #161f3d, #111830);
    border: 1px solid rgba(0, 255, 136, 0.22);
    border-radius: 18px;
    padding: 9px 11px;
    margin-bottom: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

.brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    font-size: 14px;
}

.brand-logo {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: #03150c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-pill-btn {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--cyan);
    padding: 4px 8px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.icon-pill-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    color: var(--text);
    width: 26px;
    height: 26px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    background: rgba(8, 11, 20, 0.75);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

    .badge.gold {
        color: var(--gold);
        border-color: rgba(251, 191, 36, 0.4);
    }

    .badge.cyan {
        color: var(--cyan);
        border-color: rgba(56, 189, 248, 0.4);
    }

/* نوار فشرده وضعیت زنده شبکه */
.net-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(19, 26, 50, 0.9);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 11.5px;
    color: var(--muted);
}

.net-strip-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

.net-strip-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
}

/* کارت فشرده وضعیت سرویس در بالای صفحه خانه */
.hero-status-card {
    background: linear-gradient(135deg, rgba(22, 31, 61, 0.95), rgba(15, 21, 43, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.section {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

    .section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
}

/* هسته مرکزی سکه و شورتکات گردونه شانس */
.core-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 35%, rgba(0, 255, 136, 0.14), #131a32 72%);
    border-color: rgba(0, 255, 136, 0.3);
}

.streak-chip {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 99px;
}

.wheel-shortcut-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(0, 255, 136, 0.18));
    border: 1px solid var(--gold);
    color: #fff;
    font-size: 11.5px;
    font-weight: 900;
    padding: 5px 11px;
    border-radius: 99px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
    transition: transform 0.12s;
}

    .wheel-shortcut-btn:active {
        transform: scale(0.95);
    }

    .wheel-shortcut-btn.ready-glow {
        animation: wheelPulse 1.6s infinite ease-in-out;
    }

@keyframes wheelPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 0 18px rgba(0, 255, 136, 0.65);
    }
}

.avira-orb-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 6px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
}

    .avira-orb-wrap:active {
        transform: scale(0.93);
    }

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 255, 136, 0.38);
    pointer-events: none;
}

.ring-1 {
    inset: 0;
    animation: spinSlow 14s linear infinite;
}

.ring-2 {
    inset: 9px;
    border-color: rgba(251, 191, 36, 0.42);
    animation: spinSlowReverse 10s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinSlowReverse {
    to {
        transform: rotate(-360deg);
    }
}

.orb-core {
    width: 102px;
    height: 102px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #1f2d56, #0a0f1f 75%);
    border: 2.5px solid var(--emerald);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.32), inset 0 0 16px rgba(0, 255, 136, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.orb-symbol {
    font-size: 11px;
    font-weight: 900;
    color: var(--emerald);
    letter-spacing: 1px;
}

.orb-coins {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.orb-sub {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}

.goal-tracker-box {
    width: 100%;
    background: rgba(8, 11, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 8px 11px;
    margin-bottom: 9px;
}

.float-spark {
    position: absolute;
    font-size: 13px;
    font-weight: 900;
    color: var(--emerald);
    pointer-events: none;
    z-index: 10;
    animation: floatUp 0.75s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.9);
    }

    100% {
        opacity: 0;
        transform: translateY(-45px) scale(1.2);
    }
}

.streak-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
}

.s-day {
    background: rgba(8, 11, 20, 0.75);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 5px 2px;
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}

    .s-day.done {
        border-color: var(--emerald);
        background: rgba(0, 255, 136, 0.14);
        color: var(--emerald);
    }

    .s-day.bonus {
        border-color: rgba(251, 191, 36, 0.45);
        color: var(--gold);
    }

/* سوییچر تب مدیریت سرویس‌ها */
.sub-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    background: rgba(8, 11, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 12px;
}

.sub-sw-btn {
    padding: 10px 6px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
}

    .sub-sw-btn.active {
        background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
        color: #03150c;
        font-weight: 900;
        box-shadow: 0 4px 14px rgba(0, 255, 136, 0.25);
    }

.step-gb-btn {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.12);
    color: var(--emerald);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
}

input[type=range] {
    width: 100%;
    accent-color: var(--emerald);
    cursor: pointer;
    height: 10px;
    touch-action: pan-x;
    margin: 6px 0;
}

/* بخش بازی‌ها و لیگ هفتگی */
.game-hud {
    display: flex;
    justify-content: space-around;
    background: rgba(8, 11, 20, 0.82);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.game-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 336px;
    height: 390px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 255, 136, 0.4);
    background: #050914;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 255, 136, 0.12);
}

.game-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

canvas#arcadeCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 22, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 5;
}

.league-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 11, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 9px 12px;
    margin-bottom: 7px;
    font-size: 12.5px;
}

    .league-row.top3 {
        border-color: rgba(251, 191, 36, 0.45);
        background: rgba(251, 191, 36, 0.07);
    }

/* کارت‌های دانلود برنامه */
.app-dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.app-dl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: rgba(8, 11, 20, 0.78);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 6px;
    color: var(--text);
}

    .app-dl-card:active {
        border-color: var(--emerald);
    }

    .app-dl-card strong {
        font-size: 12.5px;
        color: var(--emerald);
        margin-bottom: 3px;
    }

    .app-dl-card span {
        font-size: 10px;
        color: var(--muted);
    }

.mini-link-chip {
    display: inline-block;
    text-decoration: none;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: var(--emerald);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 9px;
}

.box-title {
    font-size: 14.5px;
    font-weight: 800;
    margin: 0 0 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hunt-banner {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.16), rgba(251, 191, 36, 0.12));
    border: 1.5px solid var(--emerald);
    border-radius: 20px;
    padding: 13px;
    margin-bottom: 11px;
}

.timer-pill {
    background: rgba(0,0,0,0.45);
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--gold);
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.35);
    }
}

.net-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.net-card {
    background: rgba(8, 11, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 6px;
    text-align: center;
}

.net-val {
    font-size: 16px;
    font-weight: 900;
    margin: 2px 0;
    font-variant-numeric: tabular-nums;
}

.net-lbl {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}

.primary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 800;
    color: #03150c;
    cursor: pointer;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.24);
    transition: transform 0.12s, opacity 0.2s;
}

    .primary-btn:active {
        transform: scale(0.98);
    }

    .primary-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
    }

.sec-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 136, 0.32);
    background: rgba(0, 255, 136, 0.08);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 9px;
}

    .sec-btn:active {
        background: rgba(0, 255, 136, 0.18);
    }

    .sec-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.mini-pill-btn {
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.3);
    color: var(--emerald);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.affiliate-wallet-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 11px;
}

.err-banner {
    display: none;
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    border-radius: 13px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.prog-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
    margin: 9px 0 6px;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald-dark), var(--emerald));
    border-radius: 99px;
    transition: width 0.35s ease;
}

.plan-card {
    background: rgba(8, 11, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 14px;
    margin-bottom: 10px;
}

.plan-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
}

.meta-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
}

.preset-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.preset-chip {
    flex: 1;
    padding: 9px 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

    .preset-chip:active {
        border-color: var(--emerald);
        color: var(--emerald);
    }

.days-pills {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.day-pill {
    flex: 1;
    padding: 10px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

    .day-pill.active {
        border-color: var(--emerald);
        color: #03150c;
        background: var(--emerald);
        font-weight: 900;
    }

.price-summary-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,255,136,0.09);
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 14px;
    padding: 11px 14px;
    margin-bottom: 12px;
}

.text-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(8, 11, 20, 0.85);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    resize: vertical;
}

    .text-input:focus {
        border-color: var(--emerald);
    }

.copy-box {
    background: rgba(8, 11, 20, 0.82);
    border: 1.5px dashed var(--emerald);
    border-radius: 14px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    color: var(--emerald);
    word-break: break-all;
    text-align: center;
    margin: 8px 0;
    user-select: all;
}

.wheel-stage {
    position: relative;
    width: 296px;
    height: 296px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--emerald), var(--cyan), var(--gold), var(--emerald));
    filter: blur(18px);
    opacity: 0.34;
}

canvas#wheel {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 0 0 6px #1c2447, 0 0 28px rgba(0,0,0,0.85);
}

.pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--gold);
    transform-origin: 50% 4px;
    transition: transform 0.06s ease-out;
}

    .pointer.tick {
        transform: translateX(-50%) rotate(-18deg);
    }

.medal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(8, 11, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 9px;
    opacity: 0.55;
}

    .medal-item.unlocked {
        opacity: 1;
        border-color: rgba(0, 255, 136, 0.45);
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(8, 11, 20, 0.7));
    }

.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,255,136,0.12);
    border: 1px solid rgba(0,255,136,0.3);
    color: var(--emerald);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.faq-item {
    background: rgba(8, 11, 20, 0.65);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 9px;
    overflow: hidden;
}

.faq-q {
    padding: 13px 15px;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-a {
    display: none;
    padding: 10px 15px 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.75;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-item.open .faq-a {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(5, 8, 16, 0.94);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

    .modal.tour-backdrop {
        z-index: 120;
        background: #060912;
    }

    .modal.show {
        display: flex;
    }

.modal-card {
    background: var(--card-solid);
    border: 1.5px solid var(--emerald);
    border-radius: 22px;
    padding: 18px;
    width: 100%;
    max-width: 410px;
    box-shadow: 0 16px 48px rgba(0, 255, 136, 0.22);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
}

.oc-msg-box {
    font-size: 13px;
    color: var(--text);
    line-height: 1.75;
    white-space: pre-line;
    background: rgba(8,11,20,0.6);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 12px;
}

.nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 30;
    display: flex;
    background: #0b1020;
    border-top: 1px solid var(--border);
    padding: 7px 6px 10px;
    gap: 4px;
}

    .nav button {
        flex: 1;
        padding: 8px 2px;
        border: none;
        border-radius: 14px;
        background: transparent;
        color: var(--muted);
        font-weight: 700;
        font-size: 10.5px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

        .nav button .n-ico {
            font-size: 18px;
            line-height: 1;
        }

        .nav button.active {
            background: rgba(0, 255, 136, 0.16);
            color: var(--emerald);
            font-weight: 900;
            box-shadow: inset 0 2px 0 var(--emerald);
        }

/* کارت اعلان لیگ فعال بازی در صفحه خانه */
.league-spotlight {
    position: relative;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(56, 189, 248, 0.14));
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    border-radius: 17px;
    padding: 11px 12px 11px 28px;
    margin-bottom: 10px;
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.14);
}

.spotlight-close {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
}

.spotlight-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.spotlight-cta {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #1c1002;
    border: none;
    border-radius: 11px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

/* گرید مقیاس‌پذیر برای چندین بازی */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.game-tile {
    background: linear-gradient(160deg, #162040, #10162b);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    padding: 13px 11px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
}

.game-tile-icon {
    font-size: 32px;
    line-height: 1.1;
}

.game-tile-title {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--text);
}

.game-tile-meta {
    font-size: 11px;
    color: var(--muted);
}

/* راهنمای امتیازات و قوانین بازی */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    font-size: 11.5px;
}

.rule-chip {
    background: rgba(8, 11, 20, 0.72);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 7px 9px;
    line-height: 1.5;
}

/* برندینگ تصویری (لوگو و کاراکتر عروس‌هلندی آویرا) و انیمیشن‌های بازی */
.brand-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 255, 136, 0.35));
    flex-shrink: 0;
}

.lobby-hero-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(0, 255, 136, 0.1));
    border-color: rgba(56, 189, 248, 0.35);
}

.lobby-hero-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lobby-mascot-img {
    width: 66px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 255, 136, 0.25));
    animation: bounceMascot 3.2s ease-in-out infinite;
}

.game-arena-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
    gap: 8px;
}

.game-arena-brand {
    display: flex;
    align-items: center;
    gap: 7px;
}

.game-head-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.45));
}

.game-mascot-wrap {
    position: relative;
    width: 104px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.game-mascot-glow {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, rgba(0, 255, 136, 0) 70%);
    animation: pulseGlow 2.4s ease-in-out infinite alternate;
}

.game-mascot-img {
    position: relative;
    width: 96px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 255, 136, 0.25));
    animation: bounceMascot 2.8s ease-in-out infinite;
}

.game-overlay-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
    margin-bottom: 5px;
}

.game-overlay-desc {
    font-size: 11.8px;
    color: var(--muted);
    max-width: 256px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.game-start-cta {
    width: auto !important;
    min-width: 175px;
    padding: 12px 24px !important;
    font-size: 14px !important;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
    animation: pulseButton 1.8s ease-in-out infinite;
}

@keyframes bounceMascot {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-7px) rotate(1.5deg);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 14px rgba(0, 255, 136, 0.38);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 0 24px rgba(0, 255, 136, 0.65);
    }
}

/* اعلان زنده شکسته شدن رکورد بازی در مینی‌اپ */
.overtake-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(251, 191, 36, 0.14));
    border: 1.5px solid rgba(248, 113, 113, 0.7);
    border-radius: 18px;
    padding: 12px 13px 12px 32px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.22);
    animation: overtakePop 0.28s ease-out;
}

@keyframes overtakePop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.overtake-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.overtake-title {
    font-size: 13px;
    font-weight: 900;
    color: #fca5a5;
    margin-bottom: 4px;
}

.overtake-text {
    font-size: 12px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 9px;
}

.overtake-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.overtake-cta {
    flex: 1;
    background: linear-gradient(135deg, #f87171, #f59e0b);
    color: #1c0804;
    border: none;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(248, 113, 113, 0.35);
}

/* هاب ۳کارته مرکز توجه در بالای تب خانه */
.spotlight-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.hub-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 20px 6px 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(155deg, rgba(22, 31, 61, 0.96), rgba(11, 17, 34, 0.96));
    color: var(--text);
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, border-color 0.2s ease;
}

.hub-tile:active {
    transform: scale(0.96);
}

.hub-tile.hub-tourn {
    border-color: rgba(0, 255, 136, 0.45);
    background: linear-gradient(155deg, rgba(0, 255, 136, 0.14), rgba(15, 22, 43, 0.95));
}

.hub-tile.hub-wheel {
    border-color: rgba(251, 191, 36, 0.45);
    background: linear-gradient(155deg, rgba(251, 191, 36, 0.14), rgba(15, 22, 43, 0.95));
}

.hub-tile.hub-coin {
    border-color: rgba(56, 189, 248, 0.4);
    background: linear-gradient(155deg, rgba(56, 189, 248, 0.14), rgba(15, 22, 43, 0.95));
}

.hub-tile.hub-ready {
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.28);
}

.hub-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9.5px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 99px;
    white-space: nowrap;
}

.hub-badge.emerald {
    background: rgba(0, 255, 136, 0.2);
    color: var(--emerald);
    border: 1px solid rgba(0, 255, 136, 0.45);
}

.hub-badge.gold {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.hub-badge.cyan {
    background: rgba(56, 189, 248, 0.2);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.hub-ico {
    font-size: 22px;
    line-height: 1.1;
    margin-top: 3px;
}

.hub-title {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.hub-sub {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}

/* کارت‌های تورنمنت (چراغ روشن در برابر قفل) */
.tourn-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 900;
    margin: 10px 4px 8px;
    color: var(--text);
}

.tourn-card {
    background: linear-gradient(155deg, rgba(20, 28, 54, 0.96), rgba(12, 17, 34, 0.96));
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 13px;
    margin-bottom: 10px;
    transition: transform 0.14s ease;
}

.tourn-card.unlocked {
    border-color: rgba(0, 255, 136, 0.55);
    box-shadow: 0 8px 22px rgba(0, 255, 136, 0.12);
}

.tourn-card.locked {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(155deg, rgba(16, 21, 39, 0.92), rgba(10, 14, 26, 0.94));
}

.tourn-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.tourn-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.tourn-lamp {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tourn-lamp.on {
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 1.4s infinite;
}

.tourn-lamp.off {
    background: #64748b;
}

.tourn-title {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

.tourn-subtitle {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 8px;
}

.tourn-status-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 8px;
}

.tourn-status-pill.on {
    background: rgba(0, 255, 136, 0.14);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: var(--emerald);
}

.tourn-status-pill.off {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.32);
    color: var(--gold);
}

.tourn-prize-bar-box {
    background: rgba(7, 11, 22, 0.72);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 9px 10px;
    margin-bottom: 10px;
}

.tourn-tier-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.tourn-tier-chip {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
}

.tourn-tier-chip.active {
    background: rgba(0, 255, 136, 0.18);
    border-color: rgba(0, 255, 136, 0.45);
    color: var(--emerald);
}

.tourn-progress-panel {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.09), rgba(56, 189, 248, 0.08));
    border-color: rgba(0, 255, 136, 0.32);
    padding: 12px 13px;
}

/* ============================================================
   نسخه ساده و تمیز لیست تورنمنت‌ها، آکاردئون‌ها و بازی تمام‌صفحه
   ============================================================ */
.games-selector-bar {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.game-sel-pill {
    flex-shrink: 0;
    padding: 8px 13px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: rgba(19, 26, 50, 0.85);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.game-sel-pill.active {
    border-color: var(--emerald);
    background: rgba(0, 255, 136, 0.14);
    color: var(--emerald);
}

.tourn-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tourn-row-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 13px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: linear-gradient(145deg, rgba(20, 28, 54, 0.96), rgba(12, 17, 34, 0.96));
    color: var(--text);
    cursor: pointer;
    text-align: right;
    transition: transform 0.12s ease, border-color 0.2s ease;
}

.tourn-row-item:active {
    transform: scale(0.985);
}

.tourn-row-item.is-active {
    border-color: rgba(0, 255, 136, 0.45);
    box-shadow: 0 5px 16px rgba(0, 255, 136, 0.08);
}

.tourn-row-item.is-locked {
    border-color: rgba(148, 163, 184, 0.2);
    opacity: 0.9;
}

.tourn-row-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.tourn-row-ico {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.tourn-row-text {
    min-width: 0;
    flex: 1;
}

.tourn-row-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tourn-row-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tourn-row-left {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.tourn-state-badge {
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.tourn-state-badge.on {
    background: rgba(0, 255, 136, 0.16);
    color: var(--emerald);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.tourn-state-badge.off {
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.tourn-row-chevron {
    font-size: 13px;
    color: var(--muted);
    font-weight: 900;
}

/* نوار ابزار و آکاردئون‌های صفحه لیگ */
.arena-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.arena-tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arena-tool-btn {
    padding: 7px 10px;
    border-radius: 11px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.08);
    color: var(--emerald);
    font-size: 11.2px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.arena-tool-btn.back {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.arena-tool-btn.open {
    background: rgba(0, 255, 136, 0.22);
    border-color: var(--emerald);
    color: #fff;
}

.arena-accordion {
    padding: 12px 13px;
    border-color: rgba(0, 255, 136, 0.35);
    background: linear-gradient(145deg, rgba(16, 26, 48, 0.96), rgba(9, 14, 28, 0.96));
    animation: fadeIn 0.18s ease-out;
}

.arena-launch-card {
    background: linear-gradient(155deg, rgba(18, 28, 54, 0.98), rgba(10, 15, 30, 0.98));
    border-color: rgba(0, 255, 136, 0.38);
    padding: 14px;
}

.arena-launch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.arena-launch-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 10px;
}

.arena-launch-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.arena-prize-chip {
    font-size: 11px;
    font-weight: 900;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.32);
    padding: 4px 10px;
    border-radius: 99px;
}

/* حالت تمام‌صفحه بازی (Fullscreen Modal) */
.fs-game-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #050914;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: none;
}

.fs-game-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(7, 11, 22, 0.95);
    border-bottom: 1px solid rgba(0, 255, 136, 0.25);
    flex-shrink: 0;
    z-index: 10;
}

.fs-hud-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.fs-hud-item {
    color: var(--muted);
    font-weight: 700;
}

.fs-exit-btn {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    flex-shrink: 0;
}

.fs-canvas-stage {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #050914;
    overflow: hidden;
}

.fs-canvas-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.fs-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 20, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    text-align: center;
    z-index: 15;
}

.fs-result-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    max-width: 260px;
    margin-top: 8px;
}

/* آکاردئون اختصاصی لیگ‌های غیرفعال داخل لیست (بدون امکان ورود به استیج لیگ قفل) */
.tourn-row-wrap {
    display: flex;
    flex-direction: column;
}

.tourn-row-item.is-locked.acc-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: rgba(251, 191, 36, 0.45);
}

.tourn-locked-accordion {
    background: linear-gradient(145deg, rgba(16, 22, 42, 0.96), rgba(9, 13, 26, 0.98));
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 12px 13px;
    animation: fadeIn 0.16s ease-out;
}

.tourn-locked-prize {
    font-size: 12px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 6px;
}

.tourn-locked-cond {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 10px;
}

.tourn-locked-jump {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

.tourn-jump-link {
    padding: 5px 10px;
    border-radius: 9px;
    border: 1px solid rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.12);
    color: var(--emerald);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

/* ============================================================
   گام ۱: هاب چندبازی، نوار اقتصاد ۳ لایه، پودیوم مدرن و میزبان iframe
   ============================================================ */
.arcade-econ-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 11px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(16, 24, 48, 0.94));
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.econ-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 99px;
    background: rgba(6, 10, 22, 0.65);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.games-cards-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.game-hub-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 17px;
    border: 1.5px solid var(--border);
    background: linear-gradient(145deg, rgba(22, 32, 62, 0.95), rgba(11, 16, 34, 0.96));
    color: var(--text);
    cursor: pointer;
    text-align: right;
    transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-hub-card:active { transform: scale(0.985); }

.game-hub-card.selected {
    border-color: var(--emerald);
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.14), rgba(14, 24, 48, 0.96));
    box-shadow: 0 8px 22px rgba(0, 255, 136, 0.16);
}

.game-hub-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.game-hub-meta {
    flex: 1;
    min-width: 0;
}

.game-hub-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-hub-leader {
    font-size: 11px;
    color: var(--gold);
    font-weight: 800;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-hub-my {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 2px;
}

.game-hub-badge {
    font-size: 10.5px;
    font-weight: 900;
    padding: 4px 9px;
    border-radius: 99px;
    background: rgba(0, 255, 136, 0.14);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: var(--emerald);
    white-space: nowrap;
}

/* پودیوم مدرن ۳ نفر برتر در جدول رده‌بندی */
.podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: flex-end;
    gap: 7px;
    margin: 4px 0 12px;
    padding-top: 6px;
}

.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px 9px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: linear-gradient(170deg, rgba(20, 29, 58, 0.94), rgba(9, 13, 28, 0.96));
    position: relative;
}

.podium-slot.p1 {
    border-color: rgba(251, 191, 36, 0.72);
    background: linear-gradient(170deg, rgba(251, 191, 36, 0.18), rgba(14, 20, 42, 0.96));
    padding-top: 14px;
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.16);
}

.podium-slot.p2 {
    border-color: rgba(203, 213, 225, 0.45);
    background: linear-gradient(170deg, rgba(203, 213, 225, 0.11), rgba(12, 18, 38, 0.96));
}

.podium-slot.p3 {
    border-color: rgba(245, 158, 11, 0.42);
    background: linear-gradient(170deg, rgba(245, 158, 11, 0.11), rgba(12, 18, 38, 0.96));
}

.podium-slot.is-me {
    box-shadow: 0 0 0 2px var(--emerald), 0 8px 22px rgba(0, 255, 136, 0.25);
}

.podium-medal {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 4px;
}

.podium-slot.p1 .podium-medal { font-size: 27px; }

.podium-name {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-score {
    font-size: 12px;
    font-weight: 900;
    color: var(--emerald);
    margin-top: 3px;
    font-variant-numeric: tabular-nums;
}

.podium-slot.p1 .podium-score { color: var(--gold); font-size: 13px; }

.ext-game-modal {
    padding: 0;
    background: #050914;
}

.ext-game-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #050914;
}

.beta-tag {
    display: inline-block;
    margin-right: 5px;
    padding: 1px 7px;
    border-radius: 99px;
    background: rgba(192, 132, 252, 0.22);
    border: 1px solid rgba(192, 132, 252, 0.65);
    color: #e9d5ff;
    font-size: 9.5px;
    font-weight: 900;
    vertical-align: middle;
}

/* ============================================================
   گام ۲: گرید ۲ ستونه شیک کارت‌های بازی (فقط لوگو + نام فارسی • بدون سرریز افقی)
   ============================================================ */
.arcade-econ-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 7px 8px;
}

.games-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.game-clean-card {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 20px 10px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(160deg, rgba(22, 33, 66, 0.96), rgba(10, 15, 32, 0.98));
    color: var(--text);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-clean-card:active {
    transform: scale(0.96);
    border-color: var(--emerald);
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.24);
}

.game-clean-card.is-beta {
    border-color: rgba(192, 132, 252, 0.52);
    background: linear-gradient(160deg, rgba(36, 24, 68, 0.94), rgba(11, 15, 34, 0.98));
}

.game-clean-beta-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(192, 132, 252, 0.26);
    border: 1px solid rgba(192, 132, 252, 0.7);
    color: #f3e8ff;
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1.3;
    z-index: 2;
}

.game-clean-emblem {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
    flex-shrink: 0;
}

.game-clean-emblem svg {
    width: 44px;
    height: 44px;
    display: block;
}

.game-clean-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #fff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.selected-game-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.38);
    color: var(--emerald);
    font-size: 12px;
    font-weight: 900;
    max-width: 66%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* توقف کامل انیمیشن‌های پس‌زمینه هنگام اجرای بازی برای حذف لگ و افزایش FPS در موبایل */
body.in-game-paused .app-shell *,
body.in-game-paused .nav * {
    animation-play-state: paused !important;
}
body.in-game-paused .app-shell {
    visibility: hidden;
}

/* ============================================================
   گام ۱۱: کارت شاخص «بازی مسابقه این هفته» و تفکیک بازی‌های تمرین/سکه
   ============================================================ */
.econ-vip-pill {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: var(--emerald);
    font-size: 9px;
    font-weight: 900;
}

.featured-tourn-card {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.16), rgba(0, 255, 136, 0.1) 55%, rgba(14, 22, 44, 0.98));
    border: 1.8px solid rgba(251, 191, 36, 0.68);
    border-radius: 22px;
    padding: 13px;
    margin-bottom: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(251, 191, 36, 0.14);
}

.featured-tourn-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.featured-kicker {
    font-size: 11px;
    font-weight: 900;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.42);
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap;
}

.featured-time-pill {
    font-size: 10px;
    font-weight: 800;
    color: var(--emerald);
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.featured-tourn-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}

.featured-emblem {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.featured-tourn-info {
    flex: 1;
    min-width: 0;
}

.featured-tourn-title {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2px;
}

.featured-tourn-genre {
    font-size: 11px;
    color: var(--cyan);
    font-weight: 800;
    margin-bottom: 4px;
}

.featured-tourn-meta {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
}

.featured-tourn-cta {
    padding: 11px 14px !important;
    font-size: 13.2px !important;
}

.practice-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 4px 9px;
    font-size: 12.5px;
    font-weight: 900;
    color: var(--text);
}

.practice-sub-pill {
    font-size: 10px;
    font-weight: 800;
    color: var(--cyan);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.32);
    padding: 2px 8px;
    border-radius: 99px;
}

.game-clean-coin-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--gold);
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1.3;
    z-index: 2;
}

.practice-mode-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(14, 22, 46, 0.94));
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 16px;
    padding: 11px 13px;
    margin-bottom: 10px;
}

/* ============================================================
   گام ۱۲: کارت و تابلوی گرافیکی شکار کلید بلک‌فرایدی (Wordle-style)
   ============================================================ */
.bf-home-card {
    background: linear-gradient(145deg, rgba(16, 12, 26, 0.98), rgba(28, 20, 42, 0.96) 55%, rgba(12, 18, 36, 0.98));
    border: 1.6px solid rgba(251, 191, 36, 0.65);
    border-radius: 19px;
    padding: 11px 12px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52), 0 0 18px rgba(251, 191, 36, 0.14);
    transition: transform 0.12s ease;
}

.bf-home-card:active {
    transform: scale(0.985);
}

.bf-home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.bf-home-badge {
    font-size: 10.8px;
    font-weight: 900;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.45);
    padding: 3px 9px;
    border-radius: 99px;
}

.bf-home-count {
    font-size: 11px;
    font-weight: 900;
    color: var(--emerald);
    font-variant-numeric: tabular-nums;
}

.bf-mini-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.bf-mini-tile {
    width: 24px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--muted);
}

.bf-mini-tile.on {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.28), rgba(251, 191, 36, 0.22));
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.bf-prog-fill {
    background: linear-gradient(90deg, var(--gold), var(--emerald)) !important;
}

.bf-home-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.bf-home-hint {
    color: var(--muted);
    font-weight: 700;
}

.bf-home-open {
    color: var(--gold);
    font-weight: 900;
    white-space: nowrap;
}

.bf-modal-card {
    border-color: rgba(251, 191, 36, 0.72) !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.8), 0 0 32px rgba(251, 191, 36, 0.16) !important;
}

.bf-notice-box {
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.bf-notice-box.new {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(251, 191, 36, 0.18));
    border: 1.5px solid var(--emerald);
    color: #ecfdf5;
}

.bf-notice-box.info {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #e0f2fe;
}

.bf-notice-box.warn {
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.bf-board-box {
    background: rgba(6, 9, 20, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 11px 10px;
}

.bf-wordle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.bf-tile {
    position: relative;
    width: 42px;
    height: 48px;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 25, 48, 0.9);
}

.bf-tile-num {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8.5px;
    font-weight: 800;
    color: var(--muted);
}

.bf-tile-char {
    font-size: 18px;
    font-weight: 900;
    color: var(--muted);
    margin-top: 4px;
}

.bf-tile.unlocked {
    border-color: var(--emerald);
    background: linear-gradient(150deg, rgba(0, 255, 136, 0.24), rgba(14, 34, 48, 0.96));
    box-shadow: 0 4px 14px rgba(0, 255, 136, 0.22);
}

.bf-tile.unlocked .bf-tile-char {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.55);
}

.bf-tile.just-unlocked {
    border-color: var(--gold);
    background: linear-gradient(150deg, rgba(251, 191, 36, 0.4), rgba(0, 255, 136, 0.26));
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.65);
    animation: bfTileFlip 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bfTileFlip {
    0% { transform: scale(0.6) rotateY(90deg); }
    65% { transform: scale(1.16) rotateY(-10deg); }
    100% { transform: scale(1) rotateY(0deg); }
}

.bf-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bf-tier-row {
    border-radius: 14px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    background: rgba(8, 11, 22, 0.72);
}

.bf-tier-row.ready {
    border-color: rgba(0, 255, 136, 0.55);
    background: rgba(0, 255, 136, 0.08);
}

.bf-tier-row.redeemed {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.08);
}

.bf-tier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11.8px;
}

.bf-tier-tag {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.bf-tier-tag.ready { background: rgba(0, 255, 136, 0.2); color: var(--emerald); }
.bf-tier-tag.done  { background: rgba(251, 191, 36, 0.2); color: var(--gold); }
.bf-tier-tag.lock  { background: rgba(148, 163, 184, 0.15); color: var(--muted); }

.bf-wildcard-box {
    margin-top: 12px;
    border-radius: 15px;
    padding: 11px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* ============================================================
   گام ۱۳: استایل کلیدهای تاریخ‌دار روزانه + باکس تخفیف خودکار بلک‌فرایدی
   ============================================================ */
.bf-mini-tile.today {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.22);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

.bf-mini-tile.exp {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.bf-tile.today {
    border-color: #ef4444;
    background: linear-gradient(150deg, rgba(239, 68, 68, 0.28), rgba(28, 16, 32, 0.95));
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.bf-tile.today .bf-tile-num {
    color: #fca5a5;
}

.bf-tile.expired {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.1);
}

.bf-tile.expired .bf-tile-num {
    color: #fbbf24;
}

.bf-tile.upcoming {
    opacity: 0.65;
}

.bf-math-card {
    margin-top: 12px;
    border-radius: 15px;
    padding: 11px 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1.4px solid rgba(251, 191, 36, 0.45);
}

.bf-math-card.ready {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.16), rgba(251, 191, 36, 0.16));
    border-color: var(--gold);
}

.bf-math-card.done {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
}

.bf-checkout-box {
    margin-bottom: 12px;
    border-radius: 14px;
    padding: 11px 12px;
    background: linear-gradient(145deg, rgba(16, 12, 26, 0.96), rgba(32, 18, 36, 0.94));
    border: 1.5px solid rgba(251, 191, 36, 0.55);
}

.bf-checkout-box.on {
    border-color: var(--emerald);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.16);
}

.bf-toggle-btn {
    width: 100%;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 11.6px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
}

.bf-toggle-btn.on {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
}

.bf-toggle-btn.off {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--muted);
}

/* ============================================================
   گام ۱۴: هسته انرژی کلیکی آویرا (سبک همستر + سطوح + رتبه‌بندی)
   ============================================================ */
.tap-rank-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 11px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: rgba(8, 13, 28, 0.78);
    border: 1px solid rgba(0, 255, 136, 0.32);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.12s ease, border-color 0.2s ease;
}

.tap-rank-bar:active {
    transform: scale(0.98);
}

.tap-rank-lvl {
    font-size: 11.8px;
    font-weight: 900;
    color: var(--gold);
}

.tap-rank-pos {
    font-size: 11px;
    font-weight: 900;
    color: var(--cyan);
    white-space: nowrap;
}

.avira-orb-wrap {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.orb-core {
    transition: transform 0.09s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.orb-shockwave {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.75);
    pointer-events: none;
    animation: orbWaveOut 0.42s ease-out forwards;
}

@keyframes orbWaveOut {
    0% { transform: scale(0.92); opacity: 0.9; }
    100% { transform: scale(1.48); opacity: 0; }
}

.tap-hud-box {
    width: 100%;
    margin: 4px 0 9px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(6, 10, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.tap-hud-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
}

.tap-energy-fill {
    background: linear-gradient(90deg, #f59e0b, #00ff88, #38bdf8) !important;
    transition: width 0.2s ease;
}

.tap-eco-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.tap-eco-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 4px 3px;
    font-size: 10.2px;
    font-weight: 800;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
}

.tap-modal-card {
    border-color: rgba(0, 255, 136, 0.55) !important;
}

.tap-celebrate-card {
    border-color: rgba(251, 191, 36, 0.85) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85), 0 0 40px rgba(251, 191, 36, 0.26) !important;
}

.tap-cel-ico {
    font-size: 46px;
    line-height: 1.1;
    animation: bfTileFlip 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tap-summary-card {
    border-radius: 15px;
    padding: 11px 12px;
    background: rgba(8, 12, 26, 0.9);
    border: 1.5px solid rgba(0, 255, 136, 0.4);
    margin-bottom: 10px;
}

.tap-sub-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 9px;
}

.tap-sub-btn {
    padding: 9px 8px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tap-sub-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(56, 189, 248, 0.18));
    border-color: var(--emerald);
    color: #fff;
}

.tap-levels-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 330px;
    overflow-y: auto;
    padding-left: 2px;
}

.tap-lvl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(10, 14, 28, 0.78);
}

.tap-lvl-row.current {
    border-color: var(--emerald);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.14), rgba(14, 26, 44, 0.92));
}

.tap-lvl-row.done {
    border-color: rgba(251, 191, 36, 0.35);
}

.tap-lvl-row.locked {
    opacity: 0.72;
}

/* ============================================================
   گام ۱۵: باکس گفتگوی آنلاین یکپارچه پشتیبانی در تب پشتیبانی
   ============================================================ */
.sup-chat-card {
    border-color: rgba(0, 255, 136, 0.36);
}

.sup-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.sup-q-chip {
    padding: 8px 7px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.08);
    color: #e0f2fe;
    font-family: inherit;
    font-size: 11.2px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

.sup-q-chip:active {
    transform: scale(0.97);
}

.sup-messages-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 250px;
    min-height: 110px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 14px;
    background: rgba(6, 10, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 9px;
}

.sup-msg {
    max-width: 88%;
    padding: 8px 11px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.65;
    word-break: break-word;
}

.sup-msg.user {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(56, 189, 248, 0.18));
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: #fff;
}

.sup-msg.bot,
.sup-msg.admin {
    align-self: flex-end;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.sup-msg.admin {
    border-color: rgba(251, 191, 36, 0.45);
}

.sup-msg.typing {
    opacity: 0.7;
    font-style: italic;
}

.sup-input-row {
    display: flex;
    gap: 7px;
    align-items: center;
}

.sup-send-btn {
    width: auto !important;
    min-width: 68px;
    padding: 11px 14px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
}

.sup-direct-link {
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 10.8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 2px 4px;
    white-space: nowrap;
}


/* ============================================================================
   گام ۱۶: پالایش بصری، حذف زردهای زننده، تم مشکی-زرشکی بلک‌فرایدی،
   تور نویگیتور تعاملی، گردونه خوانا و افکت‌های جشن بازی‌وار
   ============================================================================ */

/* --- ۱. گردونه شانس خوانا و هماهنگ --- */
.wheel-stage {
    width: 304px;
    height: 304px;
    margin: 12px auto 14px;
}

.wheel-glow {
    background: conic-gradient(from 0deg, var(--emerald), var(--cyan), #818cf8, #e11d48, var(--emerald));
    opacity: 0.3;
}

canvas#wheel {
    width: 304px;
    height: 304px;
    box-shadow: 0 0 0 5px #182342, 0 12px 30px rgba(0, 0, 0, 0.82);
}

.pointer {
    border-top-color: #f43f5e;
    filter: drop-shadow(0 3px 8px rgba(244, 63, 94, 0.65));
}

/* --- ۲. جایگزینی تم زرد/طلایی نوتیف‌ها، تورنمنت‌ها و کاشی‌ها با پالت نیلی/فیروزه‌ای/زمردی --- */
.bot-start-card {
    border-color: rgba(56, 189, 248, 0.36) !important;
    background: linear-gradient(145deg, rgba(14, 24, 48, 0.96), rgba(10, 17, 34, 0.98)) !important;
}

.review-invite-card {
    border-color: rgba(139, 92, 246, 0.36) !important;
    background: linear-gradient(145deg, rgba(30, 22, 58, 0.92), rgba(13, 19, 38, 0.96)) !important;
}

.hub-tile.hub-wheel {
    border-color: rgba(244, 63, 94, 0.42);
    background: linear-gradient(155deg, rgba(225, 29, 72, 0.14), rgba(15, 22, 43, 0.96));
}

.hub-badge.rose {
    background: rgba(244, 63, 94, 0.2);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.48);
}

.league-spotlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(56, 189, 248, 0.12));
    border: 1.5px solid rgba(129, 140, 248, 0.45);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.14);
}

.spotlight-icon {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(129, 140, 248, 0.45);
}

.spotlight-cta {
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    color: #ffffff;
}

.overtake-banner {
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.22), rgba(30, 27, 75, 0.92));
    border: 1.5px solid rgba(244, 63, 94, 0.55);
    box-shadow: 0 10px 26px rgba(190, 18, 60, 0.2);
}

.overtake-title {
    color: #fda4af;
}

.overtake-cta {
    background: linear-gradient(135deg, #e11d48, #6366f1);
    color: #ffffff;
    box-shadow: 0 5px 16px rgba(225, 29, 72, 0.34);
}

.featured-tourn-card {
    background: linear-gradient(145deg, rgba(67, 56, 202, 0.24), rgba(0, 255, 136, 0.08) 55%, rgba(13, 20, 40, 0.98));
    border: 1.5px solid rgba(129, 140, 248, 0.52);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(99, 102, 241, 0.16);
}

.featured-kicker {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(129, 140, 248, 0.45);
}

.arcade-econ-bar {
    background: linear-gradient(135deg, rgba(30, 41, 78, 0.88), rgba(14, 20, 40, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.game-clean-coin-pill {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #bae6fd;
}

.practice-mode-banner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 22, 46, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.32);
}

.tourn-status-pill.off {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #cbd5e1;
}

.tourn-row-item.is-locked.acc-open {
    border-color: rgba(129, 140, 248, 0.48);
}

.tourn-locked-accordion {
    border-color: rgba(129, 140, 248, 0.38);
}

.tourn-locked-prize {
    color: var(--cyan);
}

.tap-energy-fill {
    background: linear-gradient(90deg, #38bdf8, #00ff88) !important;
}

.sup-action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sup-review-btn {
    border-color: rgba(139, 92, 246, 0.42) !important;
    background: rgba(139, 92, 246, 0.12) !important;
    color: #ddd6fe !important;
}

.sup-msg.admin {
    border-color: rgba(56, 189, 248, 0.42);
}

/* باکس‌بندی خلوت و خوانای کارت دعوت دوستان */
.ref-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.ref-mini-box {
    background: rgba(8, 12, 24, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 9px 8px;
    text-align: center;
}

.ref-mini-val {
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 2px;
}

.ref-mini-lbl {
    font-size: 10.5px;
    color: var(--muted);
}

/* --- ۳. تم اختصاصی لوکس مشکی ابسیدین + زرشکی بلک‌فرایدی (بدون زرد) --- */
.bf-home-card {
    background: linear-gradient(145deg, #09090e 0%, #170d16 55%, #0c0d14 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.58);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(225, 29, 72, 0.16);
}

.bf-home-badge {
    color: #ffe4e6;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.34), rgba(159, 18, 57, 0.42));
    border: 1px solid rgba(244, 63, 94, 0.62);
}

.bf-home-count {
    color: #e2e8f0;
}

.bf-mini-tile.on {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.24), rgba(16, 185, 129, 0.18));
    border-color: var(--emerald);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.28);
}

.bf-mini-tile.exp {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.bf-prog-fill {
    background: linear-gradient(90deg, #e11d48, #fb7185, #00ff88) !important;
}

.bf-home-open {
    color: #fda4af;
}

.bf-modal-card {
    background: linear-gradient(165deg, #0b0b10 0%, #160c14 50%, #0a0c14 100%) !important;
    border: 1.6px solid rgba(244, 63, 94, 0.56) !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.88), 0 0 36px rgba(225, 29, 72, 0.2) !important;
}

.bf-unlock-hero {
    text-align: center;
    padding: 8px 10px 12px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 35%, rgba(225, 29, 72, 0.24), rgba(10, 10, 16, 0.7) 75%);
    border: 1px solid rgba(244, 63, 94, 0.36);
}

.bf-hero-key-badge {
    position: relative;
    z-index: 3;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(145deg, #e11d48, #881337);
    border: 2px solid #fda4af;
    box-shadow: 0 0 26px rgba(244, 63, 94, 0.65);
    animation: fxCoinFlip 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bf-unlock-title {
    font-size: 15.5px;
    font-weight: 900;
    color: #ffffff;
    margin-top: 4px;
}

.bf-unlock-sub {
    font-size: 11.6px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-top: 4px;
}

.bf-board-box {
    background: rgba(6, 7, 12, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bf-tile {
    background: rgba(18, 20, 30, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.bf-tile.just-unlocked {
    border-color: #fb7185;
    background: linear-gradient(150deg, rgba(225, 29, 72, 0.45), rgba(0, 255, 136, 0.22));
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.65);
}

.bf-tile.expired {
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(148, 163, 184, 0.1);
}

.bf-tile.expired .bf-tile-num {
    color: #cbd5e1;
}

.bf-math-card {
    background: rgba(12, 14, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
}

.bf-math-card.ready {
    background: linear-gradient(145deg, rgba(190, 18, 60, 0.24), rgba(14, 18, 30, 0.96));
    border-color: rgba(244, 63, 94, 0.58);
}

.bf-kpi-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.bf-kpi-cell {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
}

.bf-kpi-cell.hi {
    background: linear-gradient(145deg, rgba(225, 29, 72, 0.28), rgba(15, 23, 42, 0.9));
    border-color: rgba(244, 63, 94, 0.5);
}

.bf-kpi-val {
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.bf-kpi-lbl {
    display: block;
    font-size: 9.8px;
    color: var(--muted);
    margin-top: 3px;
}

.bf-kpi-plus {
    font-size: 13px;
    font-weight: 900;
    color: var(--muted);
}

.bf-mini-note {
    text-align: center;
    font-size: 10.8px;
    color: var(--muted);
    margin-top: 8px;
}

.bf-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bf-stat-lbl {
    font-size: 11px;
    color: #cbd5e1;
}

.bf-stat-big {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}

.bf-actions-wrap {
    margin-top: 12px;
}

.bf-enter-app-btn {
    padding: 13px !important;
    font-size: 13.8px !important;
    box-shadow: 0 8px 22px rgba(0, 255, 136, 0.25);
}

.bf-crimson-cta {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    font-family: inherit;
    font-size: 13.8px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.38);
}

.bf-enter-sec-btn {
    margin-top: 8px;
    border-color: rgba(0, 255, 136, 0.38) !important;
    color: var(--emerald) !important;
}

.bf-buy-now-btn {
    border-color: rgba(244, 63, 94, 0.48) !important;
    color: #fda4af !important;
}

.bf-wildcard-details {
    margin-top: 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.28);
    overflow: hidden;
}

.bf-wildcard-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 11px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 800;
    color: #e2e8f0;
}

.bf-wildcard-summary::-webkit-details-marker {
    display: none;
}

.bf-wc-pill {
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(56, 189, 248, 0.16);
    color: var(--cyan);
}

.bf-wildcard-inner {
    padding: 0 11px 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 9px;
}

.bf-checkout-box {
    background: linear-gradient(145deg, #0b0b12, #180d16);
    border: 1.5px solid rgba(244, 63, 94, 0.5);
}

.bf-toggle-btn.on {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
}

/* --- ۴. افکت‌های هیجانی بازی‌وار (Canvas ذرات + نور چرخان + چرخش ۳بعدی) --- */
.fx-confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

.fx-stage {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 2px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx-sunburst {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(0, 255, 136, 0.24) 0deg 14deg,
        transparent 14deg 30deg
    );
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, transparent 72%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, transparent 72%);
    animation: fxSpinRays 9s linear infinite;
}

.fx-stage-crimson .fx-sunburst {
    background: repeating-conic-gradient(
        from 0deg,
        rgba(244, 63, 94, 0.34) 0deg 14deg,
        transparent 14deg 30deg
    );
}

.fx-burst-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.55);
    animation: fxPulseRing 1.6s ease-out infinite;
}

.fx-stage-crimson .fx-burst-ring {
    border-color: rgba(244, 63, 94, 0.65);
}

.fx-emblem-spin {
    position: relative;
    z-index: 3;
    font-size: 46px;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.5));
    animation: fxCoinFlip 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fx-stage.fx-muted .fx-sunburst,
.fx-stage.fx-muted .fx-burst-ring {
    display: none;
}

.fx-stage.fx-muted .fx-emblem-spin {
    filter: none;
    animation: none;
}

.win-modal-card {
    border-color: rgba(0, 255, 136, 0.45) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 255, 136, 0.16) !important;
}

.tap-celebrate-card {
    border-color: rgba(0, 255, 136, 0.62) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.86), 0 0 36px rgba(0, 255, 136, 0.22) !important;
}

@keyframes fxSpinRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fxPulseRing {
    0% { transform: scale(0.72); opacity: 0.9; }
    100% { transform: scale(1.38); opacity: 0; }
}

@keyframes fxCoinFlip {
    0% { transform: scale(0.35) rotateY(220deg); opacity: 0; }
    65% { transform: scale(1.18) rotateY(-14deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

/* --- ۵. تور راهنمای نویگیتور تعاملی (Spotlight Overlay) --- */
.tour-spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    pointer-events: auto;
}

.tour-cutout {
    position: fixed;
    border-radius: 18px;
    border: 2px solid var(--emerald);
    box-shadow: 0 0 0 9999px rgba(4, 7, 15, 0.82), 0 0 26px rgba(0, 255, 136, 0.55);
    pointer-events: none;
    transition: top 0.26s ease, left 0.26s ease, width 0.26s ease, height 0.26s ease, opacity 0.2s ease;
}

.tour-card {
    position: fixed;
    left: 14px;
    right: 14px;
    max-width: 410px;
    margin: 0 auto;
    background: linear-gradient(155deg, #131c36, #0b1122);
    border: 1.5px solid rgba(56, 189, 248, 0.48);
    border-radius: 18px;
    padding: 13px 14px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.85);
    transition: top 0.26s ease;
    z-index: 9502;
}

.tour-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tour-step-pill {
    font-size: 10.5px;
    font-weight: 900;
    color: var(--cyan);
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 2px 9px;
    border-radius: 99px;
}

.tour-skip-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    padding: 2px 4px;
}

.tour-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.tour-card-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tour-card-title {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}

.tour-card-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.65;
}

.tour-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.2s ease, background 0.2s ease;
}

.tour-dot.active {
    width: 20px;
    background: var(--emerald);
}

.tour-actions {
    display: flex;
    gap: 8px;
}

.tour-prev-btn {
    margin-top: 0 !important;
    width: auto !important;
    min-width: 76px;
    padding: 10px 14px !important;
    font-size: 12.5px !important;
    justify-content: center;
    align-items: center;
}

.tour-next-btn {
    flex: 1;
    padding: 10px 14px !important;
    font-size: 13px !important;
}


/* ============================================================================
   گام ۱۷: چیدمان خلوت تب خانه، دعوت دوستان پررنگ، باکس چت بزرگ پشتیبانی و آکاردئون انحصاری
   ============================================================================ */

/* --- ۱. تب خانه: کاشی دعوت و درآمد + هسته کلیکی خلوت + حضور روزانه یکپارچه --- */
.hub-tile.hub-ref {
    border-color: rgba(56, 189, 248, 0.42);
    background: linear-gradient(155deg, rgba(56, 189, 248, 0.14), rgba(15, 22, 43, 0.96));
}

.core-stage-clean {
    padding: 13px 13px 12px;
}

.daily-strip-wrap {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.daily-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 7px;
}

.daily-checkin-btn {
    margin-top: 9px;
    padding: 11px !important;
    font-size: 13px !important;
}

.daily-checkin-btn:disabled {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(0, 255, 136, 0.25) !important;
    color: var(--emerald) !important;
    box-shadow: none !important;
    padding: 8px 10px !important;
    font-size: 11.8px !important;
    opacity: 0.9;
}

.home-ref-strip {
    border-color: rgba(56, 189, 248, 0.34);
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.96), rgba(10, 16, 32, 0.98));
    padding: 12px 13px;
}

/* --- ۲. تب پشتیبانی: باکس گفتگوی بزرگ و اصلی + نوار چیپ تک‌خطی + آکاردئون‌های انحصاری --- */
.sup-chat-hero {
    padding: 12px 12px 11px;
    border-color: rgba(0, 255, 136, 0.34);
}

.sup-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 9px;
}

.sup-header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sup-messages-roomy {
    height: clamp(285px, 46vh, 430px);
    max-height: none !important;
    min-height: 260px !important;
    padding: 12px 11px;
    margin-bottom: 8px;
    background: rgba(6, 10, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.sup-quick-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.sup-quick-strip::-webkit-scrollbar {
    display: none;
}

.sup-q-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 99px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.09);
    color: #e0f2fe;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.sup-q-pill:active {
    transform: scale(0.96);
}

.sup-text-input {
    padding: 11px 12px !important;
    font-size: 13px !important;
}

.sup-quota-line {
    font-size: 10.3px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

/* آکاردئون‌های تمیز و انحصاری پایین تب پشتیبانی */
.sup-acc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sup-acc-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.sup-acc-item.open {
    border-color: rgba(56, 189, 248, 0.42);
}

.sup-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 14px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 12.8px;
    font-weight: 900;
    cursor: pointer;
    text-align: right;
}

.sup-acc-chev {
    font-size: 15px;
    color: var(--cyan);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sup-acc-item.open .sup-acc-chev {
    transform: rotate(180deg);
}

.sup-acc-body {
    display: none;
    padding: 2px 13px 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sup-acc-item.open .sup-acc-body {
    display: block;
    padding-top: 11px;
    animation: fadeIn 0.16s ease-out;
}

.sup-guide-step {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 5px;
}

.sup-faq-row {
    padding-bottom: 9px;
    margin-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sup-faq-q {
    font-size: 12.2px;
    font-weight: 900;
    color: #f8fafc;
    margin-bottom: 3px;
}

.sup-faq-a {
    font-size: 11.6px;
    color: var(--muted);
    line-height: 1.65;
}


/* ============================================================================
   گام ۲۱: داشبورد جامع همکاری در فروش و لیست شفاف زیرمجموعه‌ها
   ============================================================================ */
.home-ref-dash-pill {
    flex-shrink: 0;
    border-color: rgba(56, 189, 248, 0.45) !important;
    background: rgba(56, 189, 248, 0.14) !important;
    color: var(--cyan) !important;
}

.aff-modal-card {
    max-height: 88vh;
    overflow-y: auto;
    border-color: rgba(56, 189, 248, 0.42) !important;
}

.aff-link-card {
    background: rgba(8, 12, 24, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 10px 11px;
    margin-bottom: 11px;
}

.aff-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-bottom: 9px;
}

.aff-kpi-card {
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 9px 8px;
    text-align: center;
}

.aff-kpi-card.hi {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.14), rgba(14, 24, 48, 0.94));
    border-color: rgba(0, 255, 136, 0.36);
}

.aff-kpi-val {
    font-size: 15.5px;
    font-weight: 900;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.aff-kpi-lbl {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 2px;
}

.aff-wd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 10px;
}

.aff-wd-btn {
    border-color: rgba(0, 255, 136, 0.42) !important;
    background: rgba(0, 255, 136, 0.14) !important;
    color: var(--emerald) !important;
}

.aff-pending-wrap {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 10px;
}

.aff-pending-item {
    background: rgba(8, 12, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    padding: 9px;
    margin-top: 7px;
}

.aff-filter-row {
    display: flex;
    gap: 6px;
    margin-bottom: 9px;
}

.aff-f-btn {
    flex: 1;
    padding: 7px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.aff-f-btn.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
}

.aff-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aff-u-card {
    background: rgba(11, 16, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 11px;
}

.aff-u-card.is-buyer {
    border-color: rgba(0, 255, 136, 0.34);
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.07), rgba(11, 16, 32, 0.95));
}

.aff-u-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.aff-u-name {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aff-u-sub {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 2px;
}

.aff-st-badge {
    flex-shrink: 0;
    font-size: 10.2px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.aff-st-badge.buyer {
    background: rgba(0, 255, 136, 0.18);
    color: var(--emerald);
    border: 1px solid rgba(0, 255, 136, 0.42);
}

.aff-st-badge.qual {
    background: rgba(56, 189, 248, 0.16);
    color: var(--cyan);
    border: 1px solid rgba(56, 189, 248, 0.38);
}

.aff-st-badge.trial {
    background: rgba(139, 92, 246, 0.16);
    color: #ddd6fe;
    border: 1px solid rgba(139, 92, 246, 0.38);
}

.aff-st-badge.join {
    background: rgba(148, 163, 184, 0.14);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.aff-u-purchase {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11.4px;
    font-weight: 800;
    color: #e2e8f0;
}

.aff-u-hint {
    margin-top: 6px;
    font-size: 11px;
    color: var(--muted);
}

.aff-comm-pill {
    display: inline-block;
    font-size: 10.6px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
}

.aff-comm-pill.cash {
    background: rgba(0, 255, 136, 0.14);
    color: var(--emerald);
}

.aff-comm-pill.traffic {
    background: rgba(56, 189, 248, 0.14);
    color: var(--cyan);
}

.aff-comm-pill.pending {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
}

.aff-empty-box {
    text-align: center;
    padding: 20px 12px;
    background: rgba(10, 15, 30, 0.72);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 15px;
}
