* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #121212;
    --surface:     #181818;
    --card:        #1c1c1c;
    --card-hover:  #212121;
    --border:      #2a2a2a;
    --gold:        #D4AF37;
    --gold-dim:    #B8962E;
    --gold-soft:   rgba(212, 175, 55, 0.18);
    --gold-glow:   rgba(212, 175, 55, 0.30);
    --accent:      #D4AF37;
    --accent-2:    #C19B2E;
    --text:        #F0F0F0;
    --muted:       #888888;
    --radius:      14px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: ltr;
    text-align: left;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── NAVBAR ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 68px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.logo span { color: var(--gold); letter-spacing: 0.5px; }

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(212, 175, 55, 0.06); }

.btn-cta {
    height: 38px;
    padding: 0 22px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover { opacity: 0.88; box-shadow: 0 0 28px rgba(212, 175, 55, 0.45); }
.btn-cta:active { transform: scale(0.97); }

/* ── Auth Nav Button ── */
.btn-auth {
    height: 38px;
    padding: 0 20px;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-auth:hover {
    background: var(--gold);
    color: #121212;
    box-shadow: 0 0 22px rgba(212,175,55,0.35);
}

/* ── User chip (logged-in state) ── */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 22px;
    padding: 4px 12px 4px 6px;
}
.user-avatar {
    width: 28px; height: 28px;
    background: var(--gold);
    color: #121212;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    flex-shrink: 0;
}
.user-email-short {
    font-size: 13px;
    color: var(--text);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-logout-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 0 2px 6px;
    border-left: 1px solid rgba(255,255,255,0.12);
    font-family: inherit;
    transition: color 0.2s;
}
.user-logout-btn:hover { color: var(--gold); }

/* ── Auth Modal ── */
.auth-modal {
    display: none;
    position: fixed; inset: 0; z-index: 3000;
    align-items: center; justify-content: center;
}
.auth-modal.open { display: flex; }

.auth-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}
.auth-box {
    position: relative; z-index: 1;
    background: #1a1a1a;
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 18px;
    padding: 36px 36px 28px;
    width: 100%; max-width: 420px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    animation: authSlideUp 0.25s ease;
}
@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none;
    color: rgba(255,255,255,0.35); font-size: 18px; cursor: pointer;
    line-height: 1; padding: 4px 6px; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.auth-close:hover { color: #fff; background: rgba(255,255,255,0.07); }
.auth-logo {
    font-size: 18px; font-weight: 900; letter-spacing: 0.5px;
    color: var(--text); margin-bottom: 4px;
}
.auth-logo span { color: var(--gold); }
.auth-tagline {
    font-size: 13px; color: rgba(255,255,255,0.45); margin: 0 0 22px;
}
.auth-tabs {
    display: flex; gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px; padding: 4px;
    margin-bottom: 22px;
}
.auth-tab {
    flex: 1; height: 36px;
    background: none; border: none;
    border-radius: 7px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    color: rgba(255,255,255,0.45); cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.auth-tab.active {
    background: rgba(212,175,55,0.12);
    color: var(--gold);
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.55); margin-bottom: 7px;
    letter-spacing: 0.4px; text-transform: uppercase;
}
.auth-field input {
    width: 100%; height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 0 14px;
    font-size: 14px; font-family: inherit;
    color: var(--text); box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.auth-field input:focus {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}
.auth-field input::placeholder { color: rgba(255,255,255,0.22); }
.auth-error {
    min-height: 18px; font-size: 12.5px;
    color: #ff6b6b; margin-bottom: 14px;
}
.auth-submit {
    width: 100%; height: 46px;
    background: var(--gold); color: #121212;
    border: none; border-radius: 11px;
    font-size: 15px; font-weight: 800;
    font-family: inherit; cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 24px rgba(212,175,55,0.3);
}
.auth-submit:hover { opacity: 0.88; box-shadow: 0 0 34px rgba(212,175,55,0.45); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-switch {
    margin: 14px 0 0; font-size: 13px;
    color: rgba(255,255,255,0.4); text-align: center;
}
.auth-switch a { color: var(--gold); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-terms {
    margin: 18px 0 0; font-size: 11px;
    color: rgba(255,255,255,0.25); text-align: center;
}

/* Forgot Password link under password field */
.forgot-link {
    display: block;
    text-align: right;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(212,175,55,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); text-decoration: underline; }

/* Description text in forgot / reset forms */
.auth-reset-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Success message in forgot form */
.auth-success {
    font-size: 13px;
    color: #4ade80;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

/* Sign-in required variant of unlock button */
.unlock-btn.signin-required {
    background: transparent;
    border: 1.5px solid rgba(212,175,55,0.35);
    color: rgba(212,175,55,0.75);
}
.unlock-btn.signin-required:hover {
    background: rgba(212,175,55,0.08);
    border-color: var(--gold);
    color: var(--gold);
}

@media (max-width: 640px) { .nav-links { display: none; } }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── WALLET WIDGET ── */
.wallet-wrap {
    position: relative;
}

/* Trigger button */
.wallet-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.wallet-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

.wallet-btn.low {
    border-color: rgba(239,68,68,0.5);
    background: rgba(239,68,68,0.06);
}

.wallet-icon { font-size: 17px; line-height: 1; }

.wallet-amount {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    min-width: 16px;
    text-align: right;
}

.wallet-btn.low .wallet-amount { color: #f87171; }

.wallet-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.wallet-chevron {
    font-size: 10px;
    color: var(--muted);
    margin-left: 2px;
    transition: transform 0.2s;
    display: inline-block;
}

/* ── Dropdown panel ── */
.wallet-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    padding: 20px;
    z-index: 500;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.7),
        0 0 0 1px rgba(212,175,55,0.06) inset;
    animation: walletIn 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

.wallet-panel.open { display: block; }

@keyframes walletIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panel header row */
.wallet-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wp-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
}

.wp-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.wp-badge.low  { color: #fbbf24; background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); }
.wp-badge.empty{ color: #f87171; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); }

/* Big balance number */
.wallet-balance-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.wp-balance {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(212,175,55,0.4);
    transition: color 0.3s;
}

.wp-balance.danger { color: #f87171; text-shadow: 0 0 30px rgba(248,113,113,0.3); }

.wp-currency {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.5px;
    padding-bottom: 4px;
}

/* Usage bar */
.wallet-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.wallet-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1), background 0.4s;
    box-shadow: 0 0 8px rgba(212,175,55,0.35);
}

.wallet-bar.warn   { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.wallet-bar.danger { background: linear-gradient(90deg, #dc2626, #f87171); box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.wallet-bar.empty  { background: #333; box-shadow: none; }

.wp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Divider */
.wp-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 14px;
}

/* Detail rows */
.wp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wp-row:last-of-type { margin-bottom: 0; }

.wp-row-label {
    font-size: 12px;
    color: var(--muted);
}

.wp-row-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.wp-row-val.mono {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

/* Low credits warning */
.wp-low-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12px;
    color: #fca5a5;
    margin-top: 14px;
    line-height: 1.4;
}

/* ── HERO ── */
.hero {
    padding: 120px 5% 90px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212,175,55,0.1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 30% at 80% 10%, rgba(255,193,0,0.06) 0%, transparent 60%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 68px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(120deg, #FFD700 0%, #FFC200 45%, #FFE066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.search-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 580px;
    margin: 0 auto;
}

.search-wrap input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}
.search-wrap input::placeholder { color: var(--muted); }

.search-wrap button {
    height: 52px;
    padding: 0 28px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.search-wrap button:hover { opacity: 0.88; box-shadow: 0 0 28px rgba(212, 175, 55, 0.45); }

/* ── SECTIONS ── */
.section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.section-header p { color: var(--muted); font-size: 16px; }

/* ── NEW ARRIVALS ── */
.new-arrivals-section {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(212,175,55,0.03) 0%, transparent 100%);
}

.new-arrival-card { position: relative; }

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── FILTER BAR ── */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--card);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover { border-color: rgba(212, 175, 55, 0.4); color: var(--text); }
.filter-btn.active {
    background: var(--gold);
    color: #121212;
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.filter-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 4px;
    vertical-align: middle;
}

.filter-btn.active .filter-count { background: rgba(0,0,0,0.2); }

/* ── DASHBOARD LAYOUT ── */
.dashboard-section {
    padding-top: 0 !important;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 0 24px;
    flex-wrap: wrap;
}

.dashboard-topbar-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.dashboard-topbar-left h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.result-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-search {
    width: 300px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.dashboard-search:focus {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.dashboard-search::placeholder { color: var(--muted); }

.dashboard-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ── Sidebar ── */
.dashboard-sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.dashboard-sidebar::-webkit-scrollbar { width: 4px; }
.dashboard-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-group {
    margin-bottom: 28px;
}

.sidebar-group-title {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(212,175,55,0.5);
    margin-bottom: 10px;
    padding-left: 2px;
}

.sidebar-filter-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 7px 11px;
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.1px;
}

.cat-icon {
    margin-right: 5px;
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0.85;
    line-height: 1;
}

.btn-label {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sidebar-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-color: var(--border);
}

.sidebar-btn.active {
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    border-color: rgba(212,175,55,0.3);
    font-weight: 700;
}

.sidebar-btn .filter-count {
    font-size: 10px;
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 6px;
    flex-shrink: 0;
}

.sidebar-btn.active .filter-count {
    background: rgba(212,175,55,0.2);
    color: var(--gold);
}

.sidebar-btn.gemini-btn.active { color: #4285F4; border-color: rgba(66,133,244,0.3); background: rgba(66,133,244,0.08); }

/* ── Dashboard Main ── */
.dashboard-main {
    flex: 1;
    min-width: 0;
}

/* ── Prompt Grid (CSS grid instead of masonry) ── */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

/* ── Pagination ── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--card);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-btn:hover:not(:disabled) {
    border-color: rgba(212,175,55,0.4);
    color: var(--text);
    background: rgba(212,175,55,0.06);
}

.pg-btn.active {
    background: var(--gold);
    color: #121212;
    border-color: var(--gold);
    font-weight: 800;
    box-shadow: 0 0 12px rgba(212,175,55,0.25);
}

.pg-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pg-btn.pg-prev, .pg-btn.pg-next {
    padding: 0 14px;
    font-size: 12px;
}

.pg-pages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.pg-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: var(--muted);
    font-size: 13px;
}

/* ── MASONRY GRID (kept for New Arrivals) ── */
.masonry-grid {
    columns: 3 300px;
    column-gap: 20px;
}

/* ── PROMPT CARD — Premium Gold-Rimmed ── */
.prompt-card {
    break-inside: avoid;
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 18px;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s, box-shadow 0.3s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.06), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
    border-radius: var(--radius);
}

/* Gold top-edge accent line */
.prompt-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.7), transparent);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.prompt-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.12) inset,
        0 0 20px rgba(212, 175, 55, 0.18),
        0 12px 40px -8px rgba(212, 175, 55, 0.25),
        0 4px 12px rgba(0,0,0,0.5);
    background: var(--card-hover);
}

.prompt-card:hover::before { opacity: 1; }
.prompt-card:hover::after  { opacity: 1; }

/* ── SHIMMER UNLOCK ANIMATION ── */
@keyframes shimmerSweep {
    0%   { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(300%) skewX(-15deg); }
}

.prompt-card.shimmer-unlock::before {
    opacity: 1;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(212,175,55,0.45) 50%,
        transparent 65%
    );
    animation: shimmerSweep 0.65s ease-in-out;
}

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

.category-tag {
    font-size: 11px;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-dim);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.engine-tag {
    font-size: 11px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.prompt-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s;
}

.prompt-card:hover h3 { color: var(--gold); }

.prompt-content {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    font-family: 'DM Mono', 'Courier New', monospace;
    background: rgba(0,0,0,0.25);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* ── CONTENT LOCK / UNLOCK ── */
.content-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.content-wrapper.locked .prompt-content {
    filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.locked-overlay {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(18, 18, 18, 0.6);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    pointer-events: none;
    backdrop-filter: blur(1px);
}

.content-wrapper.locked .locked-overlay { display: flex; }

.content-wrapper.unlocked .prompt-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.prompt-content.protected {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    pointer-events: none;
    cursor: default;
}

.card-footer .copy-btn {
    pointer-events: auto;
    cursor: pointer;
}

/* ── BUTTONS ── */
.copy-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.copy-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.15);
}

.unlock-btn {
    width: 100%;
    padding: 10px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.unlock-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(212, 175, 55, 0.4);
}

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

.unlock-btn:disabled {
    background: #333;
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

/* ── CARD BASE ── */
.card {
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: var(--radius);
    padding: 28px;
}

/* ── STUDIO ── */
.studio-section { background: rgba(212,175,55,0.01); border-top: 1px solid var(--border); }

.studio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) { .studio-layout { grid-template-columns: 1fr; } }

.studio-builder h3,
.studio-preview h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text);
}

.builder-field { margin-bottom: 16px; }

.builder-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.builder-field input,
.builder-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.builder-field input:focus,
.builder-field select:focus { border-color: rgba(212, 175, 55, 0.5); }
.builder-field input::placeholder { color: var(--muted); }
.builder-field select { cursor: pointer; }
.builder-field select option { background: var(--card); }

.preview-box {
    min-height: 180px;
    background: rgba(0,0,0,0.3);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 18px;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.preview-box:not(:empty) { border-color: rgba(212, 175, 55, 0.4); }
.preview-placeholder { color: var(--muted); font-style: italic; font-family: inherit; }

.preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count { font-size: 12px; color: var(--muted); }

.copy-preview-btn {
    padding: 10px 24px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.copy-preview-btn:hover { opacity: 0.88; }
.copy-preview-btn:active { transform: scale(0.97); }

/* ── DOCS ── */
.docs-section { border-top: 1px solid var(--border); }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.doc-card { transition: transform 0.2s, border-color 0.2s; }
.doc-card:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, 0.35); }

.doc-icon { font-size: 28px; margin-bottom: 14px; }
.doc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.doc-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── LOADING / EMPTY STATES ── */
.skeleton-grid {
    columns: 3 300px;
    column-gap: 20px;
}

.skeleton {
    break-inside: avoid;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 180px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.skeleton:nth-child(2n) { height: 220px; }
.skeleton:nth-child(3n) { height: 160px; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--muted);
    border: 1px dashed rgba(212, 175, 55, 0.15);
    border-radius: var(--radius);
}

.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; font-size: 20px; }

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── FOOTER ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 5%;
    text-align: center;
}

.footer-inner { max-width: 400px; margin: 0 auto; }
.footer .logo { font-size: 20px; margin-bottom: 12px; display: inline-block; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-copy { color: #333 !important; font-size: 12px !important; margin-top: 20px !important; }

/* ── AGENTS ── */
.agents-section { border-top: 1px solid var(--border); }

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.agent-card {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 32px -10px rgba(212, 175, 55, 0.25);
}

.agent-icon { font-size: 36px; line-height: 1; }

.agent-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.agent-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.agent-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }

.agent-btn {
    margin-top: 6px;
    width: 100%;
    padding: 11px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.agent-card:hover .agent-btn {
    background: var(--gold);
    color: #121212;
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.3);
}

/* ── CHAT OVERLAY ── */
.chat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-overlay.open { display: flex; }

.chat-panel {
    background: var(--surface);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    width: 100%;
    max-width: 720px;
    height: 580px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.08) inset;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
}

.chat-agent-info { display: flex; align-items: center; gap: 14px; }
.chat-agent-icon { font-size: 28px; }
.chat-agent-name { font-size: 16px; font-weight: 700; color: var(--text); }
.chat-agent-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chat-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.chat-close:hover { border-color: #ef4444; color: #ef4444; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-welcome {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.msg.user {
    align-self: flex-end;
    background: var(--gold);
    color: #121212;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.msg.agent {
    align-self: flex-start;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    white-space: pre-wrap;
}

.msg.thinking {
    align-self: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--muted);
    font-style: italic;
}

.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus { border-color: rgba(212, 175, 55, 0.5); }
.chat-input::placeholder { color: var(--muted); }

.chat-send {
    height: 46px;
    padding: 0 22px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-send:hover { opacity: 0.88; }
.chat-send:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; opacity: 1; }

/* ── API KEY MODAL ── */
.apikey-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.apikey-modal.open { display: flex; }

.apikey-box {
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.apikey-icon { font-size: 40px; margin-bottom: 16px; }
.apikey-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.apikey-box p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

.apikey-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: monospace;
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.apikey-input:focus { border-color: rgba(212, 175, 55, 0.5); }

.apikey-actions { display: flex; gap: 10px; justify-content: center; }

.apikey-cancel {
    padding: 10px 20px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.apikey-cancel:hover { border-color: var(--muted); color: var(--text); }

.apikey-save {
    padding: 10px 28px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.apikey-save:hover { opacity: 0.88; }

/* ── CARD FOOTER & DOWNLOAD TRACKING ── */
.card-author {
    font-size: 12px;
    color: var(--gold-dim);
    font-weight: 500;
    margin-top: -4px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.download-stat {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.download-stat strong { color: var(--text); }

.reward-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.prompt-card.is-rewarded {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 24px -8px rgba(212, 175, 55, 0.2);
}

/* ── LEADERBOARD ── */
.leaderboard-section { border-top: 1px solid var(--border); }

.lb-legend {
    display: grid;
    grid-template-columns: 48px 1fr 100px 130px 160px;
    gap: 0 16px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    max-width: 820px;
}

.lb-body { max-width: 820px; }

.lb-row {
    display: grid;
    grid-template-columns: 48px 1fr 100px 130px 160px;
    gap: 0 16px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}

.lb-row:hover { background: rgba(212, 175, 55, 0.03); }
.lb-row.lb-top { background: rgba(212, 175, 55, 0.04); }

.lb-rank { font-size: 20px; text-align: center; }

.lb-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.lb-prompts  { font-size: 13px; color: var(--muted); }
.lb-downloads { font-size: 13px; color: var(--muted); font-weight: 500; }
.lb-credits  { font-size: 13px; color: var(--muted); font-weight: 500; }

.lb-credits.has-credits {
    color: var(--gold);
    font-weight: 700;
}

.lb-empty { padding: 40px 20px; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
    .lb-legend,
    .lb-row { grid-template-columns: 40px 1fr 110px; }
    .lb-prompts, .lb-downloads, .lb-credits { display: none; }
}

/* ── CONTRIBUTE TRIGGER ── */
.contribute-trigger {
    margin-top: 16px;
    padding: 11px 24px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contribute-trigger:hover {
    background: var(--gold);
    color: #121212;
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

/* ── CONTRIBUTE MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.contribute-panel {
    background: rgba(22, 22, 22, 0.97);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(212,175,55,0.06) inset;
}

.contribute-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
}

.contribute-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.contribute-header p { color: var(--muted); font-size: 14px; }

.contribute-body { padding: 28px 32px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
    margin-bottom: 18px;
    position: relative;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.required { color: var(--gold); }
.optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.03);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field select { cursor: pointer; }
.form-field select option { background: var(--card); }
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.field-counter {
    position: absolute;
    bottom: -18px;
    right: 0;
    font-size: 11px;
    color: var(--muted);
}

.form-error {
    color: #f87171;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.contribute-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.btn-cancel {
    padding: 12px 22px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-cancel:hover { border-color: var(--muted); color: var(--text); }

.btn-submit {
    padding: 12px 28px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.btn-submit:hover { opacity: 0.88; }
.btn-submit:active { transform: scale(0.97); }
.btn-submit:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; opacity: 1; }

/* ── TRENDING PROMPTS SECTION ── */
.trending-section {
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(212,175,55,0.04) 0%, transparent 100%);
    overflow: hidden;
}

.trending-header {
    padding: 0 5%;
    margin-bottom: 28px;
}

.trending-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-fire {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255,100,0,0.6));
}

.trending-title h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.trending-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    padding: 3px 12px;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 999px;
    margin-left: 4px;
}

/* ── Scrollable track ── */
.trending-track-wrap {
    position: relative;
    padding: 4px 0 16px;
}

.trending-track-wrap::before,
.trending-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    z-index: 2;
    pointer-events: none;
}

.trending-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.trending-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.trending-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 5% 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.trending-track::-webkit-scrollbar {
    height: 4px;
}

.trending-track::-webkit-scrollbar-track {
    background: transparent;
}

.trending-track::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.2);
    border-radius: 99px;
}

/* ── Individual trending card ── */
.trending-card {
    flex: 0 0 240px;
    min-width: 240px;
    background: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    padding: 18px;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
    cursor: default;
}

.trending-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.25s;
}

.trending-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 32px -8px rgba(212, 175, 55, 0.22), 0 2px 8px rgba(0,0,0,0.4);
}

.trending-card:hover::after { opacity: 1; }

/* HOT badge */
.hot-badge {
    position: absolute;
    top: -1px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    color: #fff;
    padding: 3px 9px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255,69,0,0.4);
}

/* Rank number */
.trending-rank {
    font-size: 32px;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.15);
    line-height: 1;
    letter-spacing: -1px;
    margin-top: 6px;
}

.trending-card:hover .trending-rank {
    color: rgba(212, 175, 55, 0.28);
}

/* Tags row */
.trending-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Title */
.trending-title-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    flex: 1;
}

.trending-card:hover .trending-title-text { color: var(--gold); }

/* Download count */
.trending-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-downloads {
    font-size: 12px;
    color: var(--muted);
}

/* Action buttons inside trending cards */
.trend-unlock-btn {
    width: 100%;
    padding: 9px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 14px rgba(212,175,55,0.2);
    margin-top: auto;
}

.trend-unlock-btn:hover { opacity: 0.88; box-shadow: 0 0 20px rgba(212,175,55,0.35); }

.trend-unlock-btn:disabled {
    background: #333;
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.trend-copy-btn {
    width: 100%;
    padding: 9px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-top: auto;
}

.trend-copy-btn:hover { background: rgba(212,175,55,0.08); border-color: var(--gold); }

/* Skeleton loading */
.trending-skeleton {
    flex: 0 0 240px;
    min-width: 240px;
    height: 190px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    animation: pulse 1.5s infinite;
}

.trending-empty {
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
}

/* ── Engine Filter Row ── */
.engine-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.engine-filter-bar {
    flex: 1;
    margin-top: 0;
}

.engine-filter-bar .filter-btn {
    font-size: 12px;
    padding: 5px 13px;
}

.filter-count {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 3px;
}

/* ── Per-engine tag colours ── */
.engine-gemini {
    background: linear-gradient(135deg, rgba(66,133,244,0.14), rgba(234,67,53,0.08), rgba(251,188,4,0.08), rgba(52,168,83,0.08));
    border: 1px solid rgba(66,133,244,0.35);
    color: #8ab4f8;
}

.engine-claude {
    background: rgba(210,153,96,0.12);
    border: 1px solid rgba(210,153,96,0.3);
    color: #d29560;
}

.engine-gpt {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}

.engine-midjourney {
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.3);
    color: #a78bfa;
}

.engine-dalle {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fbbf24;
}

/* ── VAULT SIDEBAR CREDIT WIDGET ── */
.vault-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.vault-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: conic-gradient(#D4AF37 0deg, #B8962E 120deg, #D4AF37 240deg, #C5A030 360deg);
    padding: 3px;
    box-shadow:
        0 0 28px rgba(212,175,55,0.40),
        0 0 56px rgba(212,175,55,0.18),
        0 0 90px rgba(212,175,55,0.08);
    position: relative;
    animation: vaultPulse 3.5s ease-in-out infinite;
}

@keyframes vaultPulse {
    0%, 100% { box-shadow: 0 0 28px rgba(212,175,55,0.40), 0 0 56px rgba(212,175,55,0.18); }
    50%       { box-shadow: 0 0 40px rgba(212,175,55,0.60), 0 0 80px rgba(212,175,55,0.28); }
}

.vault-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1e1c18, #121212);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.vault-balance {
    font-size: 20px;
    font-weight: 900;
    color: #D4AF37;
    letter-spacing: -0.5px;
    text-shadow: 0 0 18px rgba(212,175,55,0.7);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.vault-unit {
    font-size: 8.5px;
    font-weight: 700;
    color: rgba(212,175,55,0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
}

.vault-name {
    font-size: 10px;
    font-weight: 700;
    color: rgba(212,175,55,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 12px;
}

.vault-status {
    font-size: 9.5px;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 4px;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.2);
    padding: 1px 8px;
    border-radius: 999px;
}

.vault-status.low   { color: #fbbf24; background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.vault-status.empty { color: #f87171; background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); }

.engine-sd {
    background: rgba(236,72,153,0.12);
    border: 1px solid rgba(236,72,153,0.3);
    color: #f472b6;
}

/* ── Gemini star — Google gradient ── */
.gemini-star {
    display: inline-block;
    background: linear-gradient(135deg, #4285f4 0%, #ea4335 33%, #fbbc04 66%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 11px;
}

.gemini-btn {
    border-color: rgba(66,133,244,0.4) !important;
    color: #8ab4f8;
}
.gemini-btn:hover, .gemini-btn.active {
    background: linear-gradient(135deg, rgba(66,133,244,0.18), rgba(234,67,53,0.10), rgba(251,188,4,0.10), rgba(52,168,83,0.10)) !important;
    border-color: rgba(66,133,244,0.6) !important;
    color: #8ab4f8 !important;
}

/* ════════════════════════════════════════════
   DEPOSIT & EARN PAGE
   ════════════════════════════════════════════ */

/* ── Deposit hero ── */
.deposit-hero {
    padding: 76px 5% 56px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 55% at 50% -5%, rgba(212,175,55,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 50% 35% at 85% 5%, rgba(212,175,55,0.06) 0%, transparent 60%);
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.deposit-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    padding: 5px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.deposit-hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.deposit-hero p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.deposit-hero p strong { color: var(--gold); }

/* Stats row */
.deposit-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.deposit-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.deposit-stat-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.deposit-stat-gold {
    color: var(--gold);
    text-shadow: 0 0 24px rgba(212,175,55,0.45);
}

.deposit-stat-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.deposit-stat-sep {
    font-size: 14px;
    color: rgba(212,175,55,0.25);
}

/* ── Deposit layout ── */
.deposit-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 44px 5% 80px;
}

.deposit-wrapper {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 760px) {
    .deposit-wrapper { grid-template-columns: 1fr; }
}

/* ── Rules card ── */
.deposit-rules-card {
    background: var(--card);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 84px;
}

.deposit-rules-card h3 {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(212,175,55,0.55);
    margin-bottom: 16px;
}

.deposit-rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 20px;
}

.deposit-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.rule-icon {
    color: var(--gold);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.deposit-rules-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 18px;
}

.deposit-rules-reward {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 10px;
    padding: 14px 16px;
}

.drr-plus {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212,175,55,0.5);
    letter-spacing: -1px;
    line-height: 1;
}

.drr-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.drr-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* ── Deposit form card ── */
.deposit-card {
    background: var(--card);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.deposit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.7;
}

/* Auth gate */
.deposit-auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
    gap: 14px;
}

.auth-gate-icon {
    font-size: 52px;
    margin-bottom: 6px;
}

.deposit-auth-gate h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.deposit-auth-gate p {
    font-size: 14px;
    color: var(--muted);
    max-width: 340px;
    line-height: 1.6;
}

/* Form header */
.deposit-form-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.deposit-form-header h2 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.deposit-form-sub {
    font-size: 13px;
    color: var(--muted);
}

/* Fields */
.deposit-field {
    margin-bottom: 22px;
}

.deposit-field label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--muted);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.deposit-field:focus-within label {
    color: rgba(212,175,55,0.8);
}

.required-star {
    color: var(--gold);
    margin-left: 3px;
}

.deposit-field input,
.deposit-field textarea,
.deposit-field select {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    resize: vertical;
}

.deposit-field input:focus,
.deposit-field textarea:focus,
.deposit-field select:focus {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08), 0 0 18px rgba(212,175,55,0.08);
    background: rgba(212,175,55,0.02);
}

.deposit-field input::placeholder,
.deposit-field textarea::placeholder { color: var(--muted); }
.deposit-field select { cursor: pointer; }
.deposit-field select option { background: var(--card); }
.deposit-field textarea { min-height: 170px; line-height: 1.65; }

.deposit-field.field-valid input,
.deposit-field.field-valid textarea {
    border-color: rgba(74,222,128,0.3);
}

.field-hint {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 7px;
}

/* Character counter bar */
.char-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}

.char-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.char-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--border);
    transition: width 0.25s ease, background 0.3s;
    width: 0%;
}

.char-bar-fill.insufficient { background: #f87171; }
.char-bar-fill.met          { background: linear-gradient(90deg, var(--gold-dim), var(--gold)); box-shadow: 0 0 6px rgba(212,175,55,0.4); }

.char-counter {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.char-min-hint {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 7px;
    transition: color 0.25s;
}

.char-min-hint.met { color: #4ade80; }

/* Two-col row */
.deposit-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 540px) {
    .deposit-fields-row { grid-template-columns: 1fr; }
}

/* Validation message */
.deposit-validation {
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.deposit-validation.error {
    background: rgba(248,113,113,0.08);
    border: 1px solid rgba(248,113,113,0.28);
    color: #fca5a5;
    padding: 12px 16px;
    max-height: 120px;
}

.deposit-validation.info {
    background: rgba(212,175,55,0.07);
    border: 1px solid rgba(212,175,55,0.2);
    color: var(--gold);
    padding: 12px 16px;
    max-height: 80px;
}

/* Animated check list */
.deposit-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

.chk-icon {
    font-size: 14px;
    font-weight: 700;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    transition: color 0.2s;
}

.check-pending .chk-icon { color: var(--border); }
.check-running            { color: var(--text); }
.check-running .chk-icon  { color: var(--gold); animation: spin 1s linear infinite; }
.check-pass               { color: #4ade80; }
.check-pass .chk-icon     { color: #4ade80; }
.check-fail               { color: #f87171; }
.check-fail .chk-icon     { color: #f87171; }

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

/* Submit button */
.deposit-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 28px rgba(212,175,55,0.3);
}

.deposit-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(212,175,55,0.48);
}

.deposit-submit-btn:active:not(:disabled) { transform: scale(0.99); }

.deposit-submit-btn:disabled {
    background: #2a2a2a;
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

.deposit-btn-icon { font-size: 16px; }

/* Nav deposit link */
.nav-deposit-active {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

/* Sidebar deposit CTA button */
.vault-deposit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.13), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.32);
    border-radius: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    margin-bottom: 20px;
    text-align: center;
}

.vault-deposit-btn:hover {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 18px rgba(212,175,55,0.2);
    transform: translateY(-1px);
}

/* ── SUCCESS OVERLAY ── */
.deposit-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.deposit-success-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.deposit-success-card {
    background: linear-gradient(160deg, #1c1a12, #141414);
    border: 1px solid rgba(212,175,55,0.38);
    border-radius: 22px;
    padding: 52px 44px;
    text-align: center;
    max-width: 460px;
    width: 92%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.07) inset,
        0 0 70px rgba(212,175,55,0.18),
        0 40px 90px rgba(0,0,0,0.65);
    animation: successIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes successIn {
    from { transform: scale(0.82) translateY(24px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Gold shimmer sweep */
.success-shimmer-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(212,175,55,0.4) 50%,
        transparent 80%
    );
    pointer-events: none;
    animation: shimmerFull 1.1s ease-in-out;
}

@keyframes shimmerFull {
    0%   { transform: translateX(-160%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
}

/* Success icon */
.success-icon-ring {
    font-size: 46px;
    color: var(--gold);
    text-shadow: 0 0 32px rgba(212,175,55,0.75);
    margin-bottom: 18px;
    display: block;
    animation: iconBounce 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}

@keyframes iconBounce {
    from { transform: scale(0) rotate(-30deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.deposit-success-card h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.success-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 26px;
    line-height: 1.5;
}

/* Reward box */
.success-reward-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(212,175,55,0.07);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 26px;
    animation: rewardIn 0.5s ease-out 0.45s both;
}

@keyframes rewardIn {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.success-reward-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.reward-num {
    font-size: 44px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212,175,55,0.6);
    letter-spacing: -2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.reward-unit {
    font-size: 10px;
    font-weight: 800;
    color: rgba(212,175,55,0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.success-reward-right { text-align: left; }

.reward-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.reward-balance {
    font-size: 12.5px;
    color: var(--muted);
}

.reward-balance span {
    color: var(--gold);
    font-weight: 700;
}

/* Success action buttons */
.success-actions {
    display: flex;
    gap: 12px;
}

.success-btn-primary {
    flex: 1;
    padding: 13px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
}

.success-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.success-btn-secondary {
    flex: 1;
    padding: 13px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212,175,55,0.32);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.success-btn-secondary:hover {
    background: rgba(212,175,55,0.08);
    border-color: rgba(212,175,55,0.55);
}

/* ── Royalty toast (golden variant) ── */
.toast.royalty {
    background: linear-gradient(135deg, #1e1800 0%, #2a2000 60%, #1a1600 100%);
    border: 1px solid rgba(212,175,55,0.55);
    color: var(--gold);
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.12) inset,
        0 0 36px rgba(212,175,55,0.28),
        0 8px 32px rgba(0,0,0,0.6);
    font-size: 13.5px;
    padding: 14px 22px;
    animation: royaltyToastIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes royaltyToastIn {
    from { transform: translateX(-50%) translateY(18px) scale(0.92); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0)   scale(1);    opacity: 1; }
}

.toast.royalty strong {
    color: #fff;
    font-weight: 800;
}

.toast-star {
    display: inline-block;
    font-size: 15px;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(212,175,55,0.9);
    margin-right: 6px;
    animation: starPulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%       { transform: scale(1.25); opacity: 0.75; }
}

/* ════════════════════════════════════════════
   CENTRAL BANK SECTION
   ════════════════════════════════════════════ */
.central-bank-section {
    padding: 0;
    background:
        radial-gradient(ellipse 90% 70% at 10% 50%, rgba(212,175,55,0.1) 0%, transparent 65%),
        radial-gradient(ellipse 60% 60% at 90% 20%, rgba(212,175,55,0.07) 0%, transparent 60%),
        linear-gradient(180deg, rgba(212,175,55,0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(212,175,55,0.12);
    overflow: hidden;
    position: relative;
}

.central-bank-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212,175,55,0.04) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(212,175,55,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.cb-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 64px 5%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: center;
}

@media (max-width: 860px) {
    .cb-inner { grid-template-columns: 1fr; gap: 36px; }
    .cb-visual { order: -1; }
}

/* Left text column */
.cb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.7);
    margin-bottom: 16px;
}

.cb-eyebrow-icon { font-size: 15px; }

.cb-headline {
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text);
}

.cb-headline-gold {
    background: linear-gradient(120deg, #D4AF37 0%, #FFE066 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cb-sub {
    font-size: 15.5px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 30px;
}

.cb-sub strong { color: var(--text); }

.cb-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cb-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 24px rgba(212,175,55,0.3);
}

.cb-cta-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(212,175,55,0.45);
}

.cb-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.cb-cta-secondary:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.6);
    transform: translateY(-1px);
}

/* Right visual column */
.cb-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cb-hive {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-hive-ring {
    width: 164px;
    height: 164px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(212,175,55,0.25) 0deg,
        rgba(212,175,55,0.05) 90deg,
        rgba(212,175,55,0.25) 180deg,
        rgba(212,175,55,0.05) 270deg,
        rgba(212,175,55,0.25) 360deg
    );
    border: 2px solid rgba(212,175,55,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hiveRotate 18s linear infinite;
    box-shadow: 0 0 40px rgba(212,175,55,0.12), 0 0 80px rgba(212,175,55,0.06);
}

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

.cb-hive-inner {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(212,175,55,0.18), rgba(212,175,55,0.06));
    border: 1px solid rgba(212,175,55,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    animation: hiveRotate 18s linear infinite reverse;
    backdrop-filter: blur(4px);
}

.cb-hive-icon { font-size: 40px; filter: drop-shadow(0 0 12px rgba(212,175,55,0.6)); }
.cb-hive-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.7);
}

/* Orbiting bees */
.cb-bees { position: absolute; inset: 0; pointer-events: none; }

.cb-bee {
    position: absolute;
    font-size: 18px;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
}

.cb-bee-1 { animation: orbit1 6s linear infinite; }
.cb-bee-2 { animation: orbit2 8s linear infinite; animation-delay: -2.5s; }
.cb-bee-3 { animation: orbit3 10s linear infinite; animation-delay: -5s; }

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(90px) rotate(0deg); top: 50%; left: 50%; margin: -9px 0 0 -9px; }
    to   { transform: rotate(360deg) translateX(90px) rotate(-360deg); top: 50%; left: 50%; margin: -9px 0 0 -9px; }
}
@keyframes orbit2 {
    from { transform: rotate(120deg) translateX(90px) rotate(-120deg); top: 50%; left: 50%; margin: -9px 0 0 -9px; }
    to   { transform: rotate(480deg) translateX(90px) rotate(-480deg); top: 50%; left: 50%; margin: -9px 0 0 -9px; }
}
@keyframes orbit3 {
    from { transform: rotate(240deg) translateX(90px) rotate(-240deg); top: 50%; left: 50%; margin: -9px 0 0 -9px; }
    to   { transform: rotate(600deg) translateX(90px) rotate(-600deg); top: 50%; left: 50%; margin: -9px 0 0 -9px; }
}

/* Metrics row */
.cb-metrics {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 14px;
    padding: 14px 20px;
    width: 100%;
    justify-content: center;
}

.cb-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cb-metric-val {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cb-metric-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    white-space: nowrap;
}

.cb-metric-sep {
    font-size: 12px;
    color: rgba(212,175,55,0.2);
}

/* ════════════════════════════════════════════
   VAULT RULES SIDEBAR BUTTON
   ════════════════════════════════════════════ */
.vault-rules-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 8px;
    color: rgba(212,175,55,0.65);
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    text-align: center;
}

.vault-rules-sidebar-btn:hover {
    background: rgba(212,175,55,0.07);
    border-color: rgba(212,175,55,0.4);
    color: var(--gold);
}

/* ════════════════════════════════════════════
   VAULT RULES MODAL
   ════════════════════════════════════════════ */
.vault-rules-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
}

.vault-rules-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.vault-rules-card {
    background: linear-gradient(160deg, #1c1a12, #141414);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 20px;
    padding: 44px;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.06) inset,
        0 0 60px rgba(212,175,55,0.14),
        0 40px 80px rgba(0,0,0,0.6);
    animation: vaultRulesIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
    max-height: 90vh;
    overflow-y: auto;
}

.vault-rules-overlay:not(.open) .vault-rules-card { animation: none; }

@keyframes vaultRulesIn {
    from { transform: scale(0.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.vr-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.vr-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.vr-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.vr-header-icon {
    font-size: 44px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 16px rgba(212,175,55,0.5));
    display: block;
}

.vr-header h2 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #D4AF37, #FFE066, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vr-header p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

.vr-rules {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.vr-rule {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(212,175,55,0.08);
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.vr-rule:hover {
    border-color: rgba(212,175,55,0.2);
    background: rgba(212,175,55,0.03);
}

.vr-rule-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.5px;
}

.vr-rule-body h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text);
}

.vr-rule-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.vr-rule-body p strong { color: var(--gold); font-weight: 700; }

.vr-footer { text-align: center; }

.vr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 24px rgba(212,175,55,0.3);
}

.vr-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(212,175,55,0.45);
}

/* ════════════════════════════════════════════
   GOLDEN BEE SUCCESS ANIMATION (Deposit Page)
   ════════════════════════════════════════════ */
.success-bee-stage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 22px;
    z-index: 5;
}

.success-bee {
    position: absolute;
    font-size: 34px;
    bottom: -15%;
    left: -5%;
    opacity: 0;
    filter: drop-shadow(0 0 12px rgba(212,175,55,0.8));
    transform-origin: center;
}

.success-bee.bee-flying {
    animation: beeFlyPath 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes beeFlyPath {
    0%   {
        bottom: -10%; left: 5%;
        opacity: 0;
        transform: scale(0.4) rotate(-35deg);
    }
    12%  {
        opacity: 1;
        transform: scale(1.1) rotate(-15deg);
    }
    30%  {
        bottom: 55%; left: 30%;
        transform: scale(1.15) rotate(-5deg);
    }
    48%  {
        bottom: 70%; left: 48%;
        transform: scale(1.25) rotate(0deg);
    }
    /* Circle the vault icon ✦ */
    58%  {
        bottom: 68%; left: 56%;
        transform: scale(1.1) rotate(12deg);
    }
    68%  {
        bottom: 58%; left: 62%;
        transform: scale(1.05) rotate(22deg);
    }
    /* Exit trajectory upper-right */
    82%  {
        bottom: 30%; left: 85%;
        opacity: 1;
        transform: scale(0.9) rotate(40deg);
    }
    100% {
        bottom: -5%; left: 105%;
        opacity: 0;
        transform: scale(0.5) rotate(65deg);
    }
}

/* Pollen trail dots (pseudo-elements on the stage) */
.success-bee-stage::after {
    content: '✦ ✦ ✦';
    position: absolute;
    font-size: 8px;
    color: rgba(212,175,55,0.6);
    bottom: 50%;
    left: 45%;
    opacity: 0;
    letter-spacing: 6px;
    animation: pollenFade 2.6s ease-in-out forwards;
    pointer-events: none;
}

@keyframes pollenFade {
    0%   { opacity: 0; transform: scale(0); }
    45%  { opacity: 0.8; transform: scale(1.2); }
    65%  { opacity: 0.5; }
    100% { opacity: 0; transform: scale(0.5) translateY(-20px); }
}

/* ════════════════════════════════════════════
   DEPOSIT PAGE — PREMIUM REDESIGN
   ════════════════════════════════════════════ */

/* Page-level body override */
body.deposit-page {
    background: #0c0b07;
    min-height: 100vh;
}

/* ── Ambient background ── */
.dp-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dp-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.dp-bg-glow-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -150px;
    background: radial-gradient(circle, rgba(212,175,55,0.09) 0%, transparent 70%);
    animation: dpGlowDrift1 18s ease-in-out infinite alternate;
}

.dp-bg-glow-2 {
    width: 500px;
    height: 500px;
    bottom: -80px;
    right: -100px;
    background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
    animation: dpGlowDrift2 22s ease-in-out infinite alternate;
}

@keyframes dpGlowDrift1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes dpGlowDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, -60px) scale(1.15); }
}

.dp-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ── Main wrapper ── */
.dp-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 80px;
    margin-top: 70px;
}

/* ── Page eyebrow + stats ── */
.dp-page-header {
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.8);
}

.dp-eyebrow-icon { font-size: 14px; }

.dp-page-stats {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.dp-page-stats span:not(.dp-sep) { color: var(--text); font-weight: 700; }
.dp-sep { color: rgba(212,175,55,0.25); font-size: 10px; }

/* ════════════════════════════════════
   GLASSMORPHISM CARD
   ════════════════════════════════════ */
.deposit-glass-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: rgba(14, 12, 6, 0.9);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.06) inset,
        0 0 80px rgba(212,175,55,0.18),
        0 0 160px rgba(212,175,55,0.07),
        0 48px 100px rgba(0,0,0,0.55);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

@media (max-width: 600px) {
    .deposit-glass-card { padding: 28px 20px; }
}

/* Corner glow accents */
.dc-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.dc-corner-tl {
    top: 0; left: 0;
    background: radial-gradient(circle at top left, rgba(212,175,55,0.2) 0%, transparent 70%);
    border-radius: 24px 0 0 0;
}

.dc-corner-br {
    bottom: 0; right: 0;
    background: radial-gradient(circle at bottom right, rgba(212,175,55,0.15) 0%, transparent 70%);
    border-radius: 0 0 24px 0;
}

/* Gold shimmer sweep on success */
.dc-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    border-radius: 24px;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(212,175,55,0.12) 40%,
        rgba(255,224,102,0.22) 50%,
        rgba(212,175,55,0.12) 60%,
        transparent 80%
    );
}

.deposit-glass-card.card-shimmer-active {
    animation: cardGoldShimmer 0.9s ease-in-out forwards;
}

.deposit-glass-card.card-shimmer-active .dc-shimmer {
    animation: dcShimmerSweep 0.9s ease-in-out forwards;
}

@keyframes cardGoldShimmer {
    0%   { box-shadow: 0 0 80px rgba(212,175,55,0.18), 0 0 160px rgba(212,175,55,0.07), 0 48px 100px rgba(0,0,0,0.55); border-color: rgba(212,175,55,0.35); }
    40%  { box-shadow: 0 0 0 2px rgba(212,175,55,0.7), 0 0 120px rgba(212,175,55,0.55), 0 0 200px rgba(212,175,55,0.25), 0 48px 100px rgba(0,0,0,0.55); border-color: rgba(212,175,55,0.8); }
    70%  { box-shadow: 0 0 0 2px rgba(212,175,55,0.5), 0 0 100px rgba(212,175,55,0.4), 0 0 180px rgba(212,175,55,0.18), 0 48px 100px rgba(0,0,0,0.55); border-color: rgba(212,175,55,0.65); }
    100% { box-shadow: 0 0 80px rgba(212,175,55,0.18), 0 0 160px rgba(212,175,55,0.07), 0 48px 100px rgba(0,0,0,0.55); border-color: rgba(212,175,55,0.35); }
}

@keyframes dcShimmerSweep {
    0%   { opacity: 0; transform: translateX(-100%); }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

/* ── Card header ── */
.dc-header {
    text-align: center;
    margin-bottom: 28px;
}

.dc-header-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 16px rgba(212,175,55,0.55));
}

.dc-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
    background: linear-gradient(120deg, #e8d090, #D4AF37 40%, #ffe066 70%, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.dc-subtitle {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

.dc-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.25) 30%, rgba(212,175,55,0.4) 50%, rgba(212,175,55,0.25) 70%, transparent);
    margin-bottom: 32px;
}

/* ── Auth gate ── */
.deposit-auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 0 8px;
    text-align: center;
}

.deposit-auth-gate .auth-gate-icon { font-size: 46px; }
.deposit-auth-gate h3 { font-size: 20px; font-weight: 800; margin: 0; }
.deposit-auth-gate p  { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Form fields ── */
.dc-field {
    margin-bottom: 22px;
}

.dc-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.75);
    margin-bottom: 8px;
}

.dc-required { color: var(--gold); }

.dc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dc-label-row .dc-label { margin-bottom: 0; }

.dc-input,
.dc-textarea,
.dc-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 11px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color-scheme: dark;
    box-sizing: border-box;
}

.dc-input::placeholder,
.dc-textarea::placeholder { color: rgba(212,175,55,0.28); }

.dc-select option { background: #181510; }

.dc-input:hover,
.dc-textarea:hover,
.dc-select:hover {
    border-color: rgba(212,175,55,0.3);
    background: rgba(0,0,0,0.55);
}

.dc-input:focus,
.dc-textarea:focus,
.dc-select:focus {
    border-color: rgba(212,175,55,0.65);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1), 0 0 20px rgba(212,175,55,0.1);
}

.dc-textarea {
    resize: vertical;
    min-height: 172px;
}

/* ── Validator bee ── */
.dc-validator-bee {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    background: rgba(212,175,55,0.07);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 20px;
    cursor: default;
    user-select: none;
}

.vbee-emoji {
    font-size: 16px;
    display: inline-block;
    animation: vbeeHover 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(212,175,55,0.55));
    transform-origin: center;
}

@keyframes vbeeHover {
    0%, 100% { transform: translateY(0)    rotate(-8deg) scale(1);    }
    25%       { transform: translateY(-3px) rotate(0deg)  scale(1.05); }
    50%       { transform: translateY(-5px) rotate(8deg)  scale(1.1);  }
    75%       { transform: translateY(-2px) rotate(3deg)  scale(1.03); }
}

.vbee-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.55);
}

/* ── Char counter ── */
.dc-char-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.dc-char-track {
    flex: 1;
    height: 3px;
    background: rgba(212,175,55,0.1);
    border-radius: 2px;
    overflow: hidden;
}

/* Existing .char-bar-fill classes still work */

.dc-char-hint {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 5px;
    display: block;
    transition: color 0.2s;
}

.dc-char-hint.met { color: #5dbf7a; }

/* ── Engine + Category row ── */
.dc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

@media (max-width: 480px) {
    .dc-row { grid-template-columns: 1fr; }
}

.dc-row .dc-field { margin-bottom: 0; }

/* ── Checklist ── */
.dc-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
}

/* ── Submit button ── */
.dc-submit-btn {
    width: 100%;
    padding: 17px 24px;
    background: var(--gold);
    color: #111008;
    border: none;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
    margin-top: 4px;
    margin-bottom: 16px;
    animation: dcBtnPulse 2.8s ease-in-out infinite;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 0 30px rgba(212,175,55,0.38), 0 4px 16px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.dc-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.dc-submit-btn:hover::before { transform: translateX(100%); }

.dc-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-3px);
    box-shadow: 0 0 70px rgba(212,175,55,0.7), 0 0 120px rgba(212,175,55,0.3), 0 8px 28px rgba(0,0,0,0.4);
    animation: none;
}

.dc-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    animation: none;
    transform: none;
    box-shadow: none;
}

@keyframes dcBtnPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(212,175,55,0.35), 0 4px 16px rgba(0,0,0,0.35); }
    50%       { box-shadow: 0 0 55px rgba(212,175,55,0.6),  0 0 90px rgba(212,175,55,0.2), 0 4px 16px rgba(0,0,0,0.35); }
}

/* ── Reward hint ── */
.dc-reward-hint {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dc-rh-badge {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.25);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.dc-rh-sep  { color: rgba(255,255,255,0.12); }
.dc-rh-bonus { color: var(--gold); font-weight: 700; }


/* ════════════════════════════════════════════
   GOLD DUST PARTICLES + WAVE (success effect)
   ════════════════════════════════════════════ */
.gold-dust-p {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe066, #D4AF37);
    pointer-events: none;
    z-index: 30;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(212,175,55,0.8);
}

@keyframes goldDustFly {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: inherit; }
    60%  { transform: translate(calc(-50% + var(--dx) * 0.8), calc(-50% + var(--dy) * 0.8)) scale(0.9); }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); opacity: 0; }
}

.gold-dust-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(212,175,55,0.6);
    pointer-events: none;
    z-index: 25;
    animation: goldWaveExpand 0.85s ease-out forwards;
}

@keyframes goldWaveExpand {
    0%   { width: 0;    height: 0;    opacity: 0.9; border-width: 3px; }
    50%  { width: 300px; height: 300px; opacity: 0.4; border-width: 2px; }
    100% { width: 600px; height: 600px; opacity: 0;   border-width: 1px; }
}

/* ════════════════════════════════════════════
   BEE INSIDE TEXTAREA (overlay)
   ════════════════════════════════════════════ */
.dc-textarea-wrap {
    position: relative;
}

.dc-textarea-wrap .dc-textarea {
    display: block;
    width: 100%;
    padding-bottom: 36px; /* room for the bee at the bottom */
}

.dc-inner-bee {
    position: absolute;
    bottom: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.dc-inner-bee .vbee-emoji {
    font-size: 17px;
    display: inline-block;
    animation: vbeeHover 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(212,175,55,0.6));
    transform-origin: center;
}

.dc-inner-bee .vbee-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.4);
    font-family: 'Inter', sans-serif;
}

/* ════════════════════════════════════════════
   SUBMIT BUTTON — GOLD GRADIENT OVERRIDE
   ════════════════════════════════════════════ */
.dc-submit-btn {
    background: linear-gradient(
        108deg,
        #c9961f 0%,
        #D4AF37 28%,
        #ffe066 52%,
        #D4AF37 76%,
        #c9961f 100%
    );
    background-size: 200% 100%;
    animation: dcBtnPulse 2.8s ease-in-out infinite, dcBtnShift 4s linear infinite;
    color: #111008;
}

@keyframes dcBtnShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

.dc-submit-btn:hover {
    background-position: 100% 50%;
    animation: none;
    background: linear-gradient(108deg, #D4AF37 0%, #ffe066 50%, #D4AF37 100%);
}


/* ════════════════════════════════════════════
   HERO STATS ROW
   ════════════════════════════════════════════ */
.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffe066 0%, #D4AF37 50%, #c9961f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.hero-stat-sep {
    font-size: 1.2rem;
    color: rgba(212,175,55,0.35);
    font-weight: 300;
    margin-bottom: 10px;
}

/* ════════════════════════════════════════════
   TRENDING — GOLD GLOW BORDER
   ════════════════════════════════════════════ */
.trending-card.trending-gold-glow {
    border: 1.5px solid rgba(255, 193, 7, 0.45);
    box-shadow:
        0 0 12px rgba(255, 193, 7, 0.18),
        0 0 28px rgba(255, 193, 7, 0.08),
        inset 0 0 0 1px rgba(255, 193, 7, 0.06);
    background: linear-gradient(
        160deg,
        rgba(255,193,7,0.055) 0%,
        rgba(26,26,26,0.95) 60%
    );
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.trending-card.trending-gold-glow:hover {
    border-color: rgba(255, 193, 7, 0.75);
    box-shadow:
        0 0 20px rgba(255, 193, 7, 0.32),
        0 0 50px rgba(255, 193, 7, 0.12),
        inset 0 0 0 1px rgba(255, 193, 7, 0.12);
}

/* ════════════════════════════════════════════
   NEW 24h BADGE — MAIN GRID CARDS
   ════════════════════════════════════════════ */
.badge-new-24h {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(90deg, #D4AF37, #ffe066);
    color: #111;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    vertical-align: middle;
    animation: newBadgePulse 2.2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

/* ════════════════════════════════════════════
   TRENDING NOW — PREMIUM UPGRADE
   ════════════════════════════════════════════ */

/* Section background — stronger gold presence */
.trending-section {
    background: linear-gradient(180deg,
        rgba(212,175,55,0.07) 0%,
        rgba(212,175,55,0.02) 60%,
        transparent 100%) !important;
    border-top: 1px solid rgba(212,175,55,0.15);
    border-bottom: 1px solid rgba(212,175,55,0.12) !important;
}

/* Header row — space between title and LIVE badge */
.trending-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.trending-title h2 {
    font-size: 30px !important;
    font-weight: 900 !important;
    background: linear-gradient(90deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LIVE badge */
.trending-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff4444;
    border: 1px solid rgba(255,68,68,0.35);
    background: rgba(255,68,68,0.08);
    padding: 4px 10px;
    border-radius: 99px;
    animation: livePulse 1.8s ease-in-out infinite;
    margin-right: 5%;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* Wider, taller cards */
.trending-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    min-height: 210px !important;
}

/* Premium gold border — stronger, animated shimmer */
.trending-card.trending-gold-glow {
    border: 1.5px solid rgba(212,175,55,0.55) !important;
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.08),
        0 0 18px rgba(212,175,55,0.22),
        0 4px 24px rgba(0,0,0,0.45) !important;
    background: linear-gradient(
        145deg,
        rgba(212,175,55,0.09) 0%,
        rgba(20,20,20,0.97) 55%
    ) !important;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.trending-card.trending-gold-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(212,175,55,0.12) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.55s ease;
    pointer-events: none;
    z-index: 0;
}
.trending-card.trending-gold-glow:hover::before {
    transform: translateX(100%);
}

.trending-card.trending-gold-glow:hover {
    border-color: rgba(212,175,55,0.85) !important;
    box-shadow:
        0 0 0 1px rgba(212,175,55,0.18),
        0 0 28px rgba(212,175,55,0.38),
        0 8px 36px rgba(0,0,0,0.55) !important;
    transform: translateY(-5px);
}

/* Rank badge — bold gold number */
.hot-badge {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: var(--gold) !important;
    background: rgba(212,175,55,0.12) !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
}

/* Title on cards */
.trending-title-text {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Wider skeleton placeholders */
.trending-skeleton {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    height: 210px !important;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — Bottom Nav, Drawers, Grid, Touch
   ════════════════════════════════════════════════════════════════ */

/* ── Bottom Navigation Bar ─────────────────────────────────────── */
.bottom-nav {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 64px;
    background: rgba(15,15,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212,175,55,0.18);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: stretch;
    justify-content: space-around;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255,255,255,0.42);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 2px;
    transition: color 0.18s;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--gold);
}

.bn-icon {
    font-size: 20px;
    line-height: 1;
}

.bn-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Gold dot indicator on active item */
.bottom-nav-item.active .bn-icon::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    margin: 2px auto 0;
}

/* ── Mobile Filter Drawer ──────────────────────────────────────── */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 290;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-filter-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 295;
    background: var(--surface);
    border-top: 1px solid rgba(212,175,55,0.22);
    border-radius: 20px 20px 0 0;
    max-height: 78vh;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-filter-drawer.open {
    transform: translateY(0);
}

.mfd-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

.mfd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mfd-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.mfd-close {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.07);
    border: none;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.mfd-body {
    overflow-y: auto;
    padding: 16px 20px;
    flex: 1;
}

.mfd-section {
    margin-bottom: 22px;
}

.mfd-section-title {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    margin-bottom: 10px;
}

.mfd-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.mfd-apply-btn {
    width: 100%;
    height: 48px;
    background: var(--gold);
    color: #121212;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.2px;
}

/* ── Tablet (≤ 900px) — 2-column grid ─────────────────────────── */
@media (max-width: 900px) {
    .prompt-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .masonry-grid {
        columns: 2 !important;
    }
}

/* ── Mobile (≤ 768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Show bottom nav */
    .bottom-nav { display: flex; }

    /* Push page content above the bottom nav */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

    /* ── Navbar ── */
    .navbar {
        padding: 0 16px;
        height: 56px;
    }
    .nav-links { display: none !important; }
    .logo { font-size: 15px; }

    /* Compact wallet button on mobile */
    .wallet-label,
    .wallet-chevron { display: none; }
    .wallet-btn { padding: 0 10px; gap: 6px; }
    .wallet-amount { font-size: 13px; }

    /* ── Hero ── */
    .hero { padding: 40px 16px 32px; min-height: auto; }
    .hero h1 { font-size: clamp(28px, 8vw, 48px) !important; line-height: 1.15 !important; }
    .hero p { font-size: 14px; }
    .search-wrap { flex-direction: row; gap: 8px; }
    .search-wrap input { font-size: 14px; }
    .search-wrap button { white-space: nowrap; min-width: 80px; height: 44px; }
    .hero-stats-row { gap: 12px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
    .hero-stat-num { font-size: 22px !important; }
    .hero-stat-sep { display: none; }

    /* ── Trending ── */
    .trending-section { padding: 24px 0 20px; }
    .trending-header { padding: 0 16px; }
    .trending-card { flex: 0 0 220px !important; min-width: 220px !important; }
    .trending-track-wrap { padding: 0 16px; }

    /* ── Central Bank ── */
    .cb-inner { flex-direction: column !important; gap: 28px; padding: 28px 16px; }
    .cb-text { text-align: center; }
    .cb-text h2 { font-size: clamp(24px, 7vw, 40px) !important; }
    .cb-actions { justify-content: center; }
    .cb-vault-visual { display: none; }
    .cb-metrics { justify-content: center; gap: 16px; }

    /* ── Sections general ── */
    .section { padding: 32px 16px; }
    .section-header h2 { font-size: clamp(20px, 5.5vw, 30px); }

    /* ── Dashboard layout — hide sidebar, single column ── */
    .dashboard-layout { flex-direction: column; gap: 0; }
    .dashboard-sidebar { display: none !important; }
    .dashboard-main { width: 100%; }
    .dashboard-topbar { flex-direction: column; gap: 10px; align-items: stretch; }
    .dashboard-topbar-left h2 { font-size: 18px; }
    .dashboard-search { width: 100% !important; height: 44px; font-size: 14px; }

    /* ── Prompt grid — 1 column on phones ── */
    .prompt-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* ── Masonry (New Arrivals) — 1 column on phones ── */
    .masonry-grid {
        columns: 1 !important;
    }

    /* ── Prompt cards — touch-friendly ── */
    .prompt-card { padding: 16px; }
    .prompt-card h3 { font-size: 13.5px; }
    .unlock-btn, .copy-btn, .auth-submit, .mfd-apply-btn {
        min-height: 44px;
    }
    .unlock-btn { font-size: 13px; }

    /* ── Pagination ── */
    .pg-btn { min-width: 40px; height: 40px; }

    /* ── Studio ── */
    .studio-section .section-header { text-align: center; }

    /* ── Auth modal ── */
    .auth-box {
        width: 92vw !important;
        max-width: 420px;
        padding: 28px 20px 24px !important;
        margin: 12px;
    }

    /* ── Modals ── */
    .prompt-modal-box {
        width: 94vw !important;
        max-height: 88vh;
        padding: 20px 16px !important;
    }

    /* ── Filter inline strip (visible above grid on mobile when not using drawer) ── */
    .mobile-filter-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 0 4px;
        scrollbar-width: none;
        margin-bottom: 12px;
    }
    .mobile-filter-strip::-webkit-scrollbar { display: none; }
}

/* ── Small phones (≤ 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
    .navbar { height: 52px; }
    .logo { font-size: 14px; letter-spacing: 0.5px; }

    .hero { padding: 28px 14px 24px; }
    .hero h1 { font-size: clamp(24px, 9vw, 36px) !important; }
    .search-wrap { gap: 6px; }
    .search-wrap button { min-width: 72px; padding: 0 12px; }

    .trending-card { flex: 0 0 190px !important; min-width: 190px !important; }

    .prompt-card { padding: 14px; }
    .prompt-card h3 { font-size: 13px; }

    .section { padding: 24px 14px; }

    .auth-box {
        width: 96vw !important;
        padding: 22px 16px 20px !important;
    }

    .bn-icon { font-size: 18px; }
    .bn-label { font-size: 9px; }
}

/* ── Prevent body scroll when mobile filter drawer is open ────── */
body.mobile-filters-open {
    overflow: hidden;
}
