/* =========================
   Reset & Base Variables
========================= */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
    --bg-dark: #0b0f1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-blur: 16px;
    --accent-green: #27ae60;
    --accent-teal: #1abc9c;
    --accent-gold: #f39c12;
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --gold-glow: 0 0 16px rgba(255, 215, 0, 0.35);
    --text-primary: #ffffff;
    --text-muted: #9aa7b8;
    --raise: 0px;
    --nav-height: 68px;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

.app-wrapper {
    min-height: 100vh;
    background: url('../images/background.jpg') no-repeat center/cover;
    background-attachment: fixed;
    padding: 16px 16px calc(var(--nav-height) + 20px) 16px;
    position: relative;
}

/* =========================
   Header
========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    position: relative;
    z-index: 5;
}

.logo {
    height: 32px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-green);
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.vip-btn.is-platinum {
    background: var(--gold-gradient);
    color: #0b0f1a;
    box-shadow: var(--gold-glow);
}

.vip-btn img {
    width: 16px;
    height: 16px;
}

.vip-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    display: none;
    animation: pulse 1.2s infinite;
}

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

/* Language Dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 6px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.lang-flag { width: 18px; height: 13px; border-radius: 2px; }
.lang-caret { transition: transform 0.2s ease; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 0;
    list-style: none;
    min-width: 140px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.lang-item:hover, .lang-item.active { background: rgba(255, 255, 255, 0.1); }

/* =========================
   Tab Views Switcher
========================= */
.tab-view {
    display: none;
    animation: fadeIn 0.25s ease-out forwards;
}
.tab-view.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Main layout (Signals)
========================= */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}

.main-heading {
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}
.main-heading h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.main-heading p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Platinum Banner */
.platinum-active-badge {
    display: none;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 170, 0, 0.25) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
body.is-platinum .platinum-active-badge { display: flex; }

/* Gate / Onboarding Banner */
.gate-banner {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.15), rgba(41, 128, 185, 0.2));
    border: 1px solid rgba(26, 188, 156, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.gate-banner.hidden { display: none !important; }
.gate-banner-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #1abc9c; }
.gate-banner-text { font-size: 12.5px; color: #ccd6e0; line-height: 1.4; }
.gate-banner-btn {
    align-self: flex-start;
    background: #1abc9c;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

/* =========================
   Glass Card (Form)
========================= */
.glass-card {
    width: 100%;
    max-width: 420px;
    color: #fff;
    backdrop-filter: blur(var(--card-blur));
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: opacity 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
}
body.is-platinum .glass-card {
    border-color: rgba(255, 215, 0, 0.25);
}

.field-block { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.field-block label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.field-block input {
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: border-color 0.2s ease;
}
.field-block:hover input {
    border-color: rgba(255, 255, 255, 0.25);
}

.submit-btn {
    margin-top: 10px;
    padding: 13px;
    font-size: 15px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    cursor: not-allowed;
    background: #233142;
    color: #6c7a89;
    transition: all 0.3s ease;
}
.submit-btn.active {
    background: #1abc9c;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}
body.is-platinum .submit-btn.active {
    background: var(--gold-gradient);
    color: #0b0f1a;
    box-shadow: var(--gold-glow);
}

/* =========================
   Glass Signal (Analysis Card)
========================= */
.glass-signal {
    width: 100%;
    max-width: 420px;
    color: #fff;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(var(--card-blur));
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    display: none; /* Скрыто по умолчанию! */
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
body.is-platinum .glass-signal {
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: var(--gold-glow);
}

/* Animations for Signal Card */
@keyframes slideDownSignal {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUpSignal {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
}

.glass-signal.animate-slide-down {
    display: flex !important;
    animation: slideDownSignal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-signal.animate-slide-up {
    display: flex !important;
    animation: slideUpSignal 0.25s ease-in forwards;
}

.glass-card.card-hidden {
    display: none !important;
}
.glass-card.card-fade-in {
    display: flex !important;
    animation: fadeIn 0.3s ease-out forwards;
}

.signal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.signal-title { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.signal-title img { width: 16px; height: 16px; }
.signal-title span, .signal-model span { font-size: 14px; color: var(--text-muted); }
.signal-model span { font-weight: 700; color: #1abc9c; }
body.is-platinum .signal-model span { color: #ffd700; }

.signal-bottom {
    font-size: 15px;
    color: #ccc;
    padding-top: 10px;
    width: 100%;
    text-align: center;
}
.signal-bottom svg.wave-loader { width: 28px; height: 28px; stroke: #fff; }
body.analysis-open .signal-bottom svg.wave-loader { display: none; }

/* Analysis Steps */
.sig-analysis { width: 100%; }
.sig-steps { list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.sig-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    opacity: 0.35;
    transition: opacity 0.2s, background 0.2s;
}
.sig-step.is-active { opacity: 1; background: rgba(26, 188, 156, 0.12); color: #fff; }
body.is-platinum .sig-step.is-active { background: rgba(255, 215, 0, 0.15); }
.sig-step.is-done { opacity: 0.9; }
.sig-step .icon svg { width: 16px; height: 16px; display: block; }
.sig-step .check { margin-left: auto; width: 16px; height: 16px; opacity: 0; }
.sig-step.is-done .check { opacity: 1; color: #27ae60; }
.sig-step .sub { font-size: 11px; color: var(--text-muted); }

.sig-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}
.sig-progress .bar {
    height: 100%;
    background: #1abc9c;
    border-radius: 4px;
    transition: width 0.15s ease-out;
}
body.is-platinum .sig-progress .bar { background: var(--gold-gradient); }

/* Signal Result Card (rg2) */
.rg2 { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.sig-dir-icon svg { width: 34px; height: 34px; margin: 0 auto; display: block; }
.rg2-ribbon {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto;
}
.rg2-ribbon.buy { background: #27ae60; color: #fff; box-shadow: 0 4px 14px rgba(39, 174, 96, 0.4); }
.rg2-ribbon.sell { background: #e74c3c; color: #fff; box-shadow: 0 4px 14px rgba(231, 76, 60, 0.4); }
.rg2-pair { font-size: 18px; font-weight: 800; color: #fff; text-align: center; }

.rg2-counters { display: flex; gap: 10px; margin: 4px 0; }
.rg2-counter {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.rg2-counter .k { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.rg2-counter .v { font-size: 22px; font-weight: 900; margin-top: 2px; }
.rg2-counter .v.acc-val { color: #2ecc71; }
body.is-platinum .rg2-counter .v.acc-val { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

.rg2-list { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.rg2-list .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 12.5px;
}
.rg2-list .row .k { color: var(--text-muted); font-weight: 600; }
.rg2-list .row .v { font-weight: 700; color: #fff; }
.rg2-list .row.platinum-row {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
}
.rg2-list .row.platinum-row .k { color: #ffd700; }
.rg2-list .row.platinum-row .v { color: #ffd700; font-weight: 800; }

.rg2-actions { display: flex; gap: 10px; margin-top: 6px; }
.rg2-btn {
    flex: 1;
    padding: 11px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    background: #1abc9c;
    color: #fff;
    transition: 0.2s;
}
.rg2-btn.ghost { background: rgba(255, 255, 255, 0.08); color: #ccc; }

/* FAQ */
.faq-section { width: 100%; max-width: 420px; margin: 24px auto 10px; }
.faq-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: 0;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-question img { width: 12px; transition: transform 0.25s ease; opacity: 0.6; }
.faq-answer {
    padding: 0 14px 12px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question img { transform: rotate(180deg); }

/* =========================
   Profile View Styles
========================= */
.profile-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(var(--card-blur));
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1abc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
}
body.is-platinum .profile-avatar {
    border-color: #ffd700;
    box-shadow: var(--gold-glow);
}
.profile-info { display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-size: 18px; font-weight: 800; color: #fff; }
.profile-username { font-size: 13px; color: var(--text-muted); }
.profile-id { font-size: 11px; color: rgba(255, 255, 255, 0.4); font-family: monospace; }

/* Status Box */
.status-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.status-box-header { display: flex; justify-content: space-between; align-items: center; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.status-badge.platinum {
    background: var(--gold-gradient);
    color: #0b0f1a;
    box-shadow: var(--gold-glow);
}

.deposit-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.deposit-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.deposit-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}
.deposit-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.profile-action-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--gold-gradient);
    color: #0b0f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease;
}
.profile-action-btn:active { transform: scale(0.98); }

/* Profile details */
.profile-details-list { display: flex; flex-direction: column; gap: 8px; }
.profile-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 13px;
}
.profile-detail-row .label { color: var(--text-muted); }
.profile-detail-row .val { font-weight: 700; color: #fff; }

.profile-links { display: flex; flex-direction: column; gap: 8px; }
.profile-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.profile-link-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* =========================
   Admin View Styles
========================= */
.admin-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(var(--card-blur));
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dev switch mode */
.dev-mode-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 10px;
}
.dev-mode-btn {
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.dev-mode-btn.active {
    background: #1abc9c;
    color: #fff;
}
.dev-mode-btn.active.plat {
    background: var(--gold-gradient);
    color: #0b0f1a;
}

/* Admin stats grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.admin-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.admin-stat-card .num { font-size: 20px; font-weight: 900; color: #1abc9c; }
.admin-stat-card .desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Admin User search & grant */
.admin-input-group {
    display: flex;
    gap: 8px;
}
.admin-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    outline: none;
}
.admin-input:focus { border-color: #1abc9c; }
.admin-btn-action {
    padding: 10px 14px;
    background: #1abc9c;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.admin-btn-action.gold { background: var(--gold-gradient); color: #0b0f1a; }

.admin-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.admin-sub-btn {
    padding: 9px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}
.admin-sub-btn:hover { background: rgba(255, 255, 255, 0.12); }
.admin-sub-btn.danger { border-color: #e74c3c; color: #e74c3c; }

/* =========================
   Bottom Navigation Bar
========================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 21, 37, 0.88);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease, transform 0.15s ease;
}
.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s ease, transform 0.2s ease;
}
.nav-item.active {
    color: #1abc9c;
}
.nav-item.active svg {
    stroke: #1abc9c;
    transform: translateY(-2px);
}
body.is-platinum .nav-item.active {
    color: #ffd700;
}
body.is-platinum .nav-item.active svg {
    stroke: #ffd700;
}
.nav-item.hidden { display: none !important; }

/* =========================
   Popups (Pair, Expiry, Model, VIP)
========================= */
/* Common Overlay */
.cp-overlay, .ex-overlay, .md-overlay, .vip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.cp-overlay[aria-hidden="false"],
.ex-overlay[aria-hidden="false"],
.md-overlay[aria-hidden="false"],
.vip-overlay[aria-hidden="false"] {
    display: flex;
}

/* Pair Popup Sheet */
.cp {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: #111726;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cp-header {
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.cp-tab {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.cp-tab img { width: 18px; height: 18px; opacity: 0.7; }
.cp-tab[aria-selected="true"] {
    background: rgba(26, 188, 156, 0.2);
    border-color: #1abc9c;
}
.cp-tab[aria-selected="true"] img { opacity: 1; }
/* Tab Lock indicator */
.cp-tab.is-locked::after {
    content: "🔒";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

.cp-search-row { display: flex; gap: 8px; }
.cp-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
}
.cp-search input {
    background: none;
    border: 0;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}
.cp-fav {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.cp-fav[aria-pressed="true"] { background: rgba(243, 156, 18, 0.2); border-color: #f39c12; }

.cp-headrow {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}
.cp-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.15s;
}
.cp-item:hover { background: rgba(255, 255, 255, 0.08); }
.cp-item-left { display: flex; align-items: center; gap: 10px; }
.cp-star-btn { background: none; border: 0; cursor: pointer; opacity: 0.3; }
.cp-star-btn.active { opacity: 1; filter: drop-shadow(0 0 4px #f39c12); }
.cp-name { font-weight: 700; font-size: 14px; }
.cp-market { font-size: 11px; color: var(--text-muted); }

/* Expiry Popup Grid */
.ex, .md {
    width: 100%;
    max-width: 480px;
    background: #111726;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    animation: slideUp 0.25s ease-out;
}
.ex-header, .md-header { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.ex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ex-chip {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.ex-chip[aria-selected="true"] {
    background: #1abc9c;
    border-color: #1abc9c;
}
.ex-chip.is-locked {
    opacity: 0.6;
}
.ex-chip.is-locked::after {
    content: "🔒 VIP";
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 9px;
    color: #ffd700;
}

/* Model Popup */
.md-grid { display: flex; flex-direction: column; gap: 10px; }
.md-chip {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.md-chip[aria-selected="true"] {
    background: rgba(26, 188, 156, 0.2);
    border-color: #1abc9c;
}
body.is-platinum .md-chip[aria-selected="true"] {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}
.md-chip.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.md-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* VIP Bottom Sheet */
.vip-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: #101625;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px 24px 0 0;
    padding: 20px;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
}
.vip-grabber {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.vip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.vip-head h3 { font-size: 20px; font-weight: 800; color: #ffd700; }
.vip-close {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vip-hero { text-align: center; margin-bottom: 20px; }
.vip-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.vip-hero h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.vip-sub { font-size: 13px; color: var(--text-muted); }

.vip-compare {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 10px;
    margin-bottom: 20px;
}
.vip-card {
    border-radius: 14px;
    padding: 14px;
}
.vip-card.free {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
}
.vip-card.vip {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 170, 0, 0.18));
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: var(--gold-glow);
}
.vip-card-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.vip-card.vip .vip-card-title { color: #ffd700; }
.vip-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: #ccd6e0; }
.vip-card ul li::before { content: "• "; opacity: 0.6; }
.vip-card.vip ul li::before { content: "✓ "; color: #ffd700; opacity: 1; font-weight: 800; }

.vip-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.vip-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.vip-icon { width: 32px; height: 32px; }
.vf-title { font-size: 13px; font-weight: 700; color: #fff; }
.vf-sub { font-size: 11.5px; color: var(--text-muted); }

.vip-how {
    background: rgba(255, 215, 0, 0.08);
    border: 1px dashed rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.vip-how h4 { font-size: 14px; font-weight: 800; color: #ffd700; margin-bottom: 4px; }
.vip-how-text { font-size: 12px; color: #ccd6e0; margin-bottom: 12px; }
.vip-cta-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    font-size: 14px;
    font-weight: 800;
    background: var(--gold-gradient);
    color: #0b0f1a;
    cursor: pointer;
    box-shadow: var(--gold-glow);
}
