

:root {
    --bg-body: #060D09;
    --bg-card: #0B1712;
    --bg-input: #0E2217;
    --bg-content: #0e1a12;
    --bg-modal: #0c1a14;
    --green-dark: #147860;
    --green-bright: #00d45f;
    --green-hover: #0e9f4a;
    --neon-green: #22C55E;
    --text-white: #ffffff;
    --text-white-muted: rgba(255,255,255,0.7);
    --text-muted: #8fa293;
    --text-dim: #5c7261;
    --text-body: #e8f0ea;
    --border-color: rgba(6, 78, 59, 0.4);
    --border-subtle: rgba(20, 120, 96, 0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
    --shadow-2xl: 0 25px 60px rgba(0,0,0,0.6);
    --glow-green: 0 0 30px rgba(34, 197, 94, 0.15);
    --glow-green-soft: 0 0 20px rgba(34, 197, 94, 0.08);
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --sidebar-width: 240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 40px;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

.bg-atmosphere {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(20, 120, 96, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
}

.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(20, 120, 96, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 120, 96, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(20, 120, 96, 0.04); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }

a { text-decoration: none !important; }

/* ============================================================
   UNAUTHENTICATED LANDING LAYOUT
   ============================================================ */
.landing-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 13, 9, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.landing-header .brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-header .brand-logo img { height: 80px; width: auto; }

.landing-header .brand-logo .brand-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.landing-header .brand-logo .brand-text .cash {
    background: linear-gradient(135deg, #ffffff, var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-header .landing-auth-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.landing-header .mobile-auth-buttons {
    display: none;
    align-items: center;
    gap: 8px;
}

.landing-header .mobile-auth-buttons .btn-mobile-login,
.landing-header .mobile-auth-buttons .btn-mobile-register {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    text-decoration: none;
}

.landing-header .mobile-auth-buttons .btn-mobile-login {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.landing-header .mobile-auth-buttons .btn-mobile-login:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(34, 197, 94, 0.3);
}

.landing-header .mobile-auth-buttons .btn-mobile-register {
    background: #239A3B;
    border: none;
    color: #fff;
    font-weight: 700;
}

.landing-header .mobile-auth-buttons .btn-mobile-register:hover {
    background: #1a7a2e;
    transform: translateY(-1px);
    box-shadow: var(--glow-green-soft);
}

.a_link { color: white !important; }

.landing-header .landing-auth-bar .auth-email-group { display: flex; flex-direction: column; gap: 4px; }

.landing-header .landing-auth-bar .auth-email-group .auth-field-group {
    display: flex;
    align-items: center;
    background: #0E2217;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.landing-header .landing-auth-bar .auth-email-group .auth-field-group .auth-input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-white);
    font-size: 0.7rem;
    outline: none;
    width: 120px;
    min-width: 80px;
    font-family: var(--font-body);
}

.landing-header .landing-auth-bar .auth-email-group .auth-field-group .auth-input::placeholder {
    color: var(--text-white-muted);
    opacity: 0.6;
}

.landing-header .landing-auth-bar .auth-email-group .auth-keep-signed {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.5rem;
    color: var(--text-white-muted);
    padding-left: 4px;
    opacity: 0.6;
    cursor: pointer;
}

.landing-header .landing-auth-bar .auth-email-group .auth-keep-signed input[type="checkbox"] {
    accent-color: var(--neon-green);
    width: 12px;
    height: 12px;
    cursor: pointer;
}

.landing-header .landing-auth-bar .auth-password-group { display: flex; flex-direction: column; gap: 4px; }

.landing-header .landing-auth-bar .auth-password-group .auth-password-login-group {
    display: flex;
    align-items: center;
    background: #0E2217;
    border-radius: 8px;
    overflow: hidden;
}

.landing-header .landing-auth-bar .auth-password-group .auth-password-login-group .password-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 4px;
}

.landing-header .landing-auth-bar .auth-password-group .auth-password-login-group .password-input-wrapper .auth-input {
    background: transparent;
    border: none;
    padding: 8px 8px;
    color: var(--text-white);
    font-size: 0.7rem;
    outline: none;
    width: 90px;
    min-width: 60px;
    font-family: var(--font-body);
}

.landing-header .landing-auth-bar .auth-password-group .auth-password-login-group .btn-login-segmented {
    background: #07190F;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    color: var(--text-white);
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-radius: 0 24px 24px 0;
    letter-spacing: 0.3px;
}

.landing-header .landing-auth-bar .auth-password-group .auth-password-login-group .btn-login-segmented:hover { background: #1a3025; }

.landing-header .landing-auth-bar .auth-password-group .auth-forgot-password {
    font-size: 0.5rem;
    color: var(--text-white-muted);
    padding-left: 4px;
    opacity: 0.6;
    text-decoration: none;
}

.landing-header .landing-auth-bar .auth-password-group .auth-forgot-password:hover { opacity: 1; color: var(--text-white); }

.landing-header .landing-auth-bar .btn-register {
    background: #239A3B;
    border: none;
    color: #fff;
    padding: 8px 24px;
    border-radius: 9999px;
    margin-bottom: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    letter-spacing: 0.3px;
}

.landing-header .landing-auth-bar .btn-register:hover {
    background: #1a7a2e;
    transform: translateY(-1px);
    box-shadow: var(--glow-green-soft);
}

.landing-nav-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 8px 0;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
}

.landing-nav-links a {
    color: var(--text-white-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    padding: 4px 0;
    position: relative;
}

.landing-nav-links a:hover { color: var(--text-white); }
.landing-nav-links a.active { color: var(--text-white); font-weight: 600; }
.landing-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    border-radius: 2px;
}

.landing-content {
    flex: 1;
    padding: 20px 24px 32px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   AUTHENTICATED DASHBOARD LAYOUT
   ============================================================ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    gap: 0;
    position: relative;
    padding-bottom: 0;
}

.sidebar {
    width: var(--sidebar-width);
    padding: 24px 16px 24px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: 50;
    background: var(--bg-body);
}

.sidebar::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-content);
    border-radius: 0 0 0 48px;
    z-index: 2;
    pointer-events: none;
}

.sidebar::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        var(--border-color) 0%,
        var(--border-color) 95%,
        transparent 100%);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.sidebar .sidebar-bottom-curve {
    position: absolute;
    right: -2px;
    bottom: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-content);
    border-radius: 0 40px 0 0;
    z-index: 2;
    pointer-events: none;
}

.sidebar-brand {
    padding: 0 8px 24px 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.sidebar-brand .logo { display: block; text-decoration: none; }
.sidebar-brand .logo img { height: 140px; width: auto; }

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 3;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-white-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text-white); }

.sidebar-nav a.active {
    background: var(--bg-input);
    color: var(--text-white);
    border-left: 4px solid var(--neon-green);
}

.sidebar-nav a img,
.sidebar-nav a i {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-nav a:hover img,
.sidebar-nav a:hover i,
.sidebar-nav a.active img,
.sidebar-nav a.active i { opacity: 1; }

.sidebar-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: relative;
    z-index: 3;
}

.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-white-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-bottom a:hover { background: rgba(255,255,255,0.04); color: var(--text-white); }
.sidebar-bottom a i { width: 18px; opacity: 0.6; }
.sidebar-bottom a.logout { color: rgba(255, 100, 100, 0.7); }
.sidebar-bottom a.logout:hover { color: #ff6b6b; background: rgba(255, 100, 100, 0.06); }

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    background-color: #03140a;
    border-radius: 12px;
    overflow: hidden;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    margin-top: 16px;
}

.dashboard-footer { margin: 16px 24px 0 0; padding-bottom: 0; }

.landing-footer {
    margin-top: auto;
    padding: 16px 24px 32px;
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-inner { width: 100%; }

.footer-top {
    background-color: #020d07;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-age-badge { display: flex; align-items: center; }
.age-icon-footer { color: #00e676; font-weight: 800; font-size: 20px !important; line-height: 1; }
.age-label-footer { display: none; }
.footer-copyright { color: #ffffff; font-size: 12px; font-weight: 500; }

.footer-bottom {
    padding: 24px 20px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-warning { color: #ffffff; font-size: 12.5px; line-height: 1.5; }
.footer-license { color: #ffffff; font-size: 12px; font-weight: 500; }
.footer-support { color: #cccccc; font-size: 11px; line-height: 1.6; }
.footer-support a { color: #ffffff; text-decoration: underline; font-weight: 600; }
.footer-support a:hover { color: #00e676; }
.separator { margin: 0 6px; color: #666; }

@media (max-width: 600px) {
    .footer-top { padding: 10px 14px; }
    .age-icon-footer { font-size: 14px; }
    .footer-copyright { font-size: 10.5px; }
    .footer-bottom { padding: 18px 14px 20px; gap: 12px; }
    .footer-warning, .footer-license { font-size: 11px; }
    .footer-support { font-size: 10px; display: flex; flex-direction: column; gap: 4px; }
    .footer-support .separator { display: none; }
    .dashboard-footer { margin: 16px 12px 0 12px; }
}

/* ============================================================
   MAIN CONTENT WRAPPER
   ============================================================ */
.main-content-wrapper {
    flex: 1;
    padding: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

.main-content-container {
    flex: 1;
    padding: 20px 24px 32px;
    background: var(--bg-content);
    border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
    border: 1px solid var(--border-color);
    border-left: none;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.2);
    margin-top: 0;
    border-top-left-radius: var(--radius-3xl);
    border-bottom-left-radius: var(--radius-xl);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-content { position: relative; z-index: 1; flex: 1; }

.auth-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.auth-content-header .search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    transition: all var(--transition-fast);
}

.auth-content-header .search-wrapper:focus-within {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.05);
}

.auth-content-header .search-wrapper i {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 0.8rem;
    margin-right: 10px;
}

.auth-content-header .search-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    width: 100%;
    outline: none;
}

.auth-content-header .search-wrapper input::placeholder { color: var(--text-muted); opacity: 0.4; }

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

.auth-content-header .header-right .gift-icon {
    color: #ffd700;
    font-size: 1.1rem;
    opacity: 0.7;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-content-header .header-right .gift-icon:hover { opacity: 1; transform: scale(1.05); }

.auth-content-header .balance-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    color: var(--text-white-muted);
    transition: all var(--transition-fast);
    cursor: default;
}

.auth-content-header .balance-pill:hover { border-color: rgba(34, 197, 94, 0.15); }

.auth-content-header .balance-pill .label {
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    font-weight: 600;
}

.auth-content-header .balance-pill .value {
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-display);
    color: var(--text-white);
}

.auth-content-header .balance-pill .value.cash { color: var(--neon-green); }
.auth-content-header .balance-pill .value.coin { color: #ffd700; }

/* Mobile header pill */
.mobile-header-pill {
    display: none;
    position: sticky;
    top: 0;
    z-index: 90;
    background: #0A160F;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 10px 12px 0 12px;
    justify-content: space-between;
    align-items: center;
}

.mobile-header-pill .mobile-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mobile-header-pill .mobile-brand img { height: 80px; width: auto; }

.mobile-header-pill .mobile-brand .brand-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-white);
}

.mobile-header-pill .mobile-brand .brand-text .cash {
    background: linear-gradient(135deg, #ffffff, var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-header-pill .mobile-balance-compact { display: flex; align-items: center; gap: 10px; }

.mobile-header-pill .mobile-balance-compact .mb-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-family: var(--font-display);
    color: var(--text-white);
}

.mobile-header-pill .mobile-balance-compact .mb-pill img { width: 18px; height: 18px; }
.mobile-header-pill .mobile-balance-compact .mb-pill .mb-value { font-weight: 700; font-size: 0.75rem; }
.mobile-header-pill .mobile-balance-compact .mb-pill .mb-value.cash { color: var(--neon-green); }
.mobile-header-pill .mobile-balance-compact .mb-pill .mb-value.coin { color: #ffd700; }

/* Bottom nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #07130C;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 20px 16px;
    height: 78px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-white-muted);
    text-decoration: none;
    font-size: 0.55rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    position: relative;
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
}

.bottom-nav a img, .bottom-nav a i {
    width: 26px;
    height: 26px;
    opacity: 0.5;
    transition: all var(--transition-fast);
    object-fit: contain;
}

.bottom-nav a:hover, .bottom-nav a.active { color: var(--text-white); }
.bottom-nav a:hover img, .bottom-nav a:hover i,
.bottom-nav a.active img, .bottom-nav a.active i { opacity: 1; }

.bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--neon-green);
    border-radius: 0 0 3px 3px;
}

.bottom-nav .nav-home { position: relative; margin-top: -20px; }

.bottom-nav .nav-home .home-icon {
    width: 60px;
    height: 60px;
    background: #22993C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.3);
    transition: all var(--transition-fast);
    border: 3px solid #07130C;
    position: relative;
    z-index: 3;
}

.bottom-nav .nav-home .home-icon img, .bottom-nav .nav-home .home-icon i {
    width: 30px;
    height: 30px;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.bottom-nav .nav-home:hover .home-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 32px rgba(34, 197, 94, 0.4);
}

.bottom-nav .nav-home .home-label {
    font-size: 0.55rem;
    color: var(--neon-green);
    font-weight: 700;
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .landing-header .landing-auth-bar { display: none !important; }
    .landing-header .mobile-auth-buttons { display: flex !important; }
    .landing-wrapper .landing-nav-links { display: flex !important; gap: 16px; }
    .landing-header .brand-logo img { height: 60px; }
    .landing-nav-links a { font-size: 0.55rem; gap: 12px; }
    .sidebar { display: none; }
    .sidebar::before, .sidebar::after, .sidebar .sidebar-bottom-curve { display: none; }
    .dashboard-wrapper { padding-bottom: 0; }
    .main-content-wrapper { padding: 0; min-height: calc(100vh - 72px); }
    .main-content-container {
        margin: 0;
        border-radius: 0;
        padding: 10px 12px 16px;
        min-height: calc(100vh - 72px);
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid var(--border-color);
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .auth-content-header { display: none; }
    .mobile-header-pill { display: flex; }
    .bottom-nav { display: flex; height: 78px; padding: 10px 16px 16px; }
    .landing-content { padding: 12px 12px 12px; }
    .mobile-age-restriction { display: block; }
    .age-restriction-card { display: none; }
    .footer-top { align-items: flex-start; gap: 6px; }
    .footer-bottom .footer-support .separator { display: none; }
    .footer-bottom .footer-support { display: flex; flex-direction: column; gap: 2px; }
    .footer-bottom .footer-warning { font-size: 0.55rem; }
    .footer-bottom .footer-support { font-size: 0.5rem; }
    .footer-top .footer-copyright { font-size: 0.55rem; }
    .landing-footer { padding: 12px 12px 80px; }
    .dashboard-footer { margin: 12px 12px 80px 12px; padding-bottom: 0; }
    .landing-wrapper { padding-bottom: 0; }
}

@media (min-width: 769px) {
    .landing-header .mobile-auth-buttons { display: none !important; }
    .landing-header .landing-auth-bar { display: flex !important; }
    .landing-wrapper .landing-content { display: block !important; }
    .age-restriction-card { display: block; }
    .mobile-age-restriction { display: none !important; }
    .footer-bottom .footer-support { display: flex; flex-wrap: wrap; gap: 0; }
    .footer-bottom .footer-support .separator { padding: 0 6px; opacity: 0.3; }
    .landing-footer { padding: 16px 24px 32px; }
    .dashboard-footer { margin: 16px 24px 0 0; padding-bottom: 0; }
}

@media (max-width: 480px) {
    .main-content-container { padding: 8px 8px 12px; }
    .landing-content { padding: 8px 8px 8px; }
    .mobile-header-pill { padding: 10px 12px; margin: 6px 6px 0 6px; }
    .mobile-header-pill .mobile-brand img { height: 60px; }
    .mobile-header-pill .mobile-brand .brand-text { font-size: 0.7rem; }
    .mobile-header-pill .mobile-balance-compact { gap: 6px; }
    .mobile-header-pill .mobile-balance-compact .mb-pill { padding: 4px 10px; font-size: 0.5rem; gap: 4px; }
    .mobile-header-pill .mobile-balance-compact .mb-pill img { width: 14px; height: 14px; }
    .mobile-header-pill .mobile-balance-compact .mb-pill .mb-value { font-size: 0.6rem; }
    .bottom-nav { height: 68px; padding: 8px 12px 14px; }
    .bottom-nav .nav-home .home-icon { width: 48px; height: 48px; }
    .bottom-nav .nav-home .home-icon img, .bottom-nav .nav-home .home-icon i { width: 24px; height: 24px; }
    .bottom-nav a { min-width: 44px; min-height: 44px; }
    .bottom-nav a img, .bottom-nav a i { width: 20px; height: 20px; }
    .bottom-nav a span { font-size: 0.45rem; }
    .landing-header { padding: 8px 12px; }
    .landing-header .brand-logo img { height: 60px; }
    .landing-header .mobile-auth-buttons .btn-mobile-login { padding: 4px 12px; font-size: 0.6rem; }
    .landing-header .mobile-auth-buttons .btn-mobile-register { padding: 4px 12px; font-size: 0.6rem; }
    .landing-nav-links { gap: 12px; padding: 4px 0; }
    .landing-nav-links a { font-size: 0.5rem; }
    .mobile-age-restriction { padding: 10px 12px; margin: 12px 0 6px 0; }
    .mobile-age-restriction .mobile-age-badge { font-size: 0.5rem; }
    .mobile-age-restriction .mobile-age-badge .age-icon-sm { width: 20px; height: 20px; font-size: 0.45rem; }
    .mobile-age-restriction .mobile-age-text { font-size: 0.45rem; }
    .footer-top .footer-age-badge .age-icon-footer { font-size: 0.8rem; }
    .footer-top .footer-age-badge .age-label-footer { font-size: 0.55rem; }
    .footer-bottom .footer-warning { font-size: 0.5rem; }
    .footer-bottom .footer-support { font-size: 0.45rem; }
    .footer-bottom .footer-license { font-size: 0.5rem; }
    .landing-footer { padding: 8px 8px 70px; }
    .dashboard-footer { margin: 8px 8px 70px 8px; }
}

@media (max-width: 380px) {
    .bottom-nav { height: 60px; padding: 6px 8px 10px; }
    .bottom-nav .nav-home .home-icon { width: 40px; height: 40px; }
    .bottom-nav .nav-home .home-icon img, .bottom-nav .nav-home .home-icon i { width: 20px; height: 20px; }
    .bottom-nav a { min-width: 36px; min-height: 36px; }
    .bottom-nav a img, .bottom-nav a i { width: 16px; height: 16px; }
    .bottom-nav a span { font-size: 0.4rem; }
    .mobile-header-pill { padding: 6px 10px; margin: 4px 4px 0 4px; }
    .mobile-header-pill .mobile-brand img { height: 28px; }
    .mobile-header-pill .mobile-brand .brand-text { font-size: 0.6rem; }
    .mobile-header-pill .mobile-balance-compact .mb-pill { padding: 2px 8px; font-size: 0.4rem; }
    .mobile-header-pill .mobile-balance-compact .mb-pill .mb-value { font-size: 0.5rem; }
    .mobile-age-restriction { padding: 8px 10px; margin: 8px 0 4px 0; }
    .mobile-age-restriction .mobile-age-badge { font-size: 0.45rem; }
    .mobile-age-restriction .mobile-age-text { font-size: 0.4rem; }
    .landing-footer { padding: 6px 6px 60px; }
    .dashboard-footer { margin: 6px 6px 60px 6px; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-neon-green { color: var(--neon-green); }
.text-gold { color: #ffd700; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.bg-green-gradient {
    background: linear-gradient(135deg, #0a4a3a 0%, var(--green-dark) 50%, #0a7a3a 100%);
}

/* ============================================================
   FORM VALIDATION
   ============================================================ */
.amount-input-container { position: relative; }

.amount-input-container .input-hint {
    font-size: 0.55rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.amount-input-container .input-hint .hint-icon { font-size: 0.45rem; }
.amount-input-container .input-hint.error { color: #ef4444; opacity: 0.8; }
.amount-input-container .input-hint.success { color: var(--neon-green); opacity: 0.8; }
.amount-input-container .input-hint .min-amount { color: #ffd700; font-weight: 600; opacity: 0.8; }

.btn-submit-deposit:disabled,
.btn-submit-withdraw:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.amount-input-valid {
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08) !important;
}

.amount-input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* ============================================================
   NOTIFICATION OVERLAY
   ============================================================ */
.notification-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: notificationOverlayIn 0.3s ease;
}

.notification-overlay.active { display: flex; }

@keyframes notificationOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.notification-toast {
    background: var(--bg-modal);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-2xl);
    padding: 28px 32px 24px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    animation: notificationToastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

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

.notification-toast .toast-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-toast .toast-close:hover { background: rgba(255,255,255,0.12); color: var(--text-white); }

.notification-toast .toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.notification-toast .toast-icon img { width: 64px; height: 64px; object-fit: contain; }

.notification-toast .toast-icon .icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(34, 197, 94, 0.2);
}

.notification-toast .toast-icon .icon-ring.error { border-color: rgba(239, 68, 68, 0.2); }

.notification-toast .toast-message {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-toast .toast-sub {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 2px;
}

.notification-toast .toast-actions { display: flex; gap: 10px; margin-top: 18px; }

.notification-toast .toast-actions .btn-green,
.notification-toast .toast-actions .btn-gray,
.notification-toast .toast-actions .btn-danger {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.notification-toast .toast-actions .btn-green { background: var(--neon-green); color: #000; }
.notification-toast .toast-actions .btn-green:hover { transform: translateY(-1px); box-shadow: var(--glow-green); }

.notification-toast .toast-actions .btn-gray { background: #1a2922; color: var(--text-white-muted); }
.notification-toast .toast-actions .btn-gray:hover { background: #24382e; color: var(--text-white); }

.notification-toast .toast-actions .btn-danger { background: #dc2626; color: #fff; }
.notification-toast .toast-actions .btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }

/* ============================================================
   GAME MODAL
   ============================================================ */
#gameModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: gameModalFadeIn 0.3s ease;
    padding: 0;
    margin: 0;
}

#gameModal .modal-content {
    background: #0a0f0a;
    border-radius: var(--radius-lg, 16px);
    width: 95vw;
    max-width: 95vw;
    height: 90vh;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
    will-change: transform;
    position: relative;
}

#gameModal .modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    min-height: 48px;
}

#gameModal .modal-header h2 {
    color: var(--text-white, #ffffff);
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#gameModal .modal-header h2 i { color: var(--neon-green, #00d45f); }

#gameModal .modal-header .close {
    background: none;
    border: none;
    color: var(--text-white-muted, rgba(255,255,255,0.7));
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.15s ease;
    opacity: 0.6;
}

#gameModal .modal-header .close:hover {
    background: rgba(255,255,255,0.05);
    opacity: 1;
    transform: rotate(90deg);
}

#gameModal .modal-body {
    flex: 1;
    overflow: hidden;
    background: #0a0f0a;
    padding: 0;
    transform: translateZ(0);
    will-change: transform;
}

#gameModal .modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0a0f0a;
    display: block;
    transform: translateZ(0);
    will-change: transform;
}

@keyframes gameModalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
    #gameModal .modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    #gameModal .modal-header { padding: 10px 16px; min-height: 44px; }
    #gameModal .modal-header h2 { font-size: 0.75rem; }
}

/* ============================================================
   DEPOSIT / WITHDRAW MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.modal .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
}

.modal .modal-header h2 {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-white);
}

.modal .modal-header h2 i { color: var(--neon-green); margin-right: 8px; }

.modal .modal-header .close {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
}

.modal .modal-header .close:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.04);
    transform: rotate(90deg);
}

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

.modal .modal-body label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal .modal-body input,
.modal .modal-body select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.modal .modal-body input:focus,
.modal .modal-body select:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.05);
}

.modal .modal-body input::placeholder { color: var(--text-muted); opacity: 0.4; }
.modal .modal-body select option { background: var(--bg-card); color: var(--text-white); }

.modal .amount-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }

.modal .amount-preset {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.modal .amount-preset:hover {
    border-color: var(--neon-green);
    background: rgba(34, 197, 94, 0.04);
    color: var(--text-white);
}

.modal .amount-preset.selected {
    border-color: var(--neon-green);
    background: var(--neon-green);
    color: #000;
    font-weight: 700;
}

.modal .payment-methods { display: flex; gap: 8px; margin-bottom: 14px; }

.modal .payment-method {
    flex: 1;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal .payment-method i {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.modal .payment-method span { font-size: 0.55rem; color: var(--text-muted); font-weight: 500; }
.modal .payment-method:hover { border-color: rgba(34, 197, 94, 0.3); }
.modal .payment-method.active {
    border-color: var(--neon-green);
    background: rgba(34, 197, 94, 0.04);
}
.modal .payment-method.active i,
.modal .payment-method.active span { color: var(--neon-green); }

/* Buttons */
.btn-submit-deposit,
.btn-submit-withdraw {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--green-dark), var(--neon-green));
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    color: #000;
}

.btn-submit-deposit:hover,
.btn-submit-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}

.btn-submit-deposit:disabled,
.btn-submit-withdraw:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bank search */
.bank-suggestions .bank-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-body);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-suggestions .bank-suggestion-item:last-child { border-bottom: none; }

.bank-suggestions .bank-suggestion-item:hover,
.bank-suggestions .bank-suggestion-item.highlighted {
    background: rgba(34, 197, 94, 0.06);
    color: var(--text-white);
}

.bank-suggestions .bank-suggestion-item .bank-code {
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.5;
    font-weight: 500;
}

.bank-suggestions .bank-suggestion-item .bank-name { flex: 1; font-weight: 500; }

.bank-suggestions .bank-suggestion-item .bank-check {
    color: var(--neon-green);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.bank-suggestions .bank-suggestion-item:hover .bank-check,
.bank-suggestions .bank-suggestion-item.highlighted .bank-check { opacity: 1; }

.bank-suggestions .no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

.bank-search-container .form-control:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.05);
}

.bank-search-container .form-control.is-valid {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.bank-search-container .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* Saved details */
.saved-details-card {
    background: rgba(0, 212, 95, 0.03);
    border: 1px solid rgba(0, 212, 95, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: none;
}

.saved-details-card.show { display: block; }

.saved-details-card .saved-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 4px;
}

.saved-details-card .saved-bank { font-weight: 600; color: var(--text-white); font-size: 0.85rem; }
.saved-details-card .saved-account { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

.saved-details-card .use-saved-btn {
    margin-top: 8px;
    padding: 4px 16px;
    background: rgba(0, 212, 95, 0.1);
    border: 1px solid rgba(0, 212, 95, 0.15);
    border-radius: var(--radius-sm);
    color: var(--neon-green);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.saved-details-card .use-saved-btn:hover { background: rgba(0, 212, 95, 0.2); }

/* Account name display */
.account-name-display {
    padding: 8px 14px;
    background: rgba(0, 212, 95, 0.05);
    border: 1px solid rgba(0, 212, 95, 0.1);
    border-radius: var(--radius-sm);
    color: var(--neon-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 10px;
}

.account-name-display.show { display: flex; }
.account-name-display i { color: var(--neon-green); }

/* Balance warning */
.balance-warning {
    background: rgba(255, 100, 100, 0.06);
    border: 1px solid rgba(255, 100, 100, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-warning i { color: #ff6b6b; font-size: 0.8rem; }

/* User ID display */
.user-id-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    color: var(--text-white-muted);
    cursor: default;
    transition: all var(--transition-fast);
}

.user-id-display:hover { border-color: rgba(34, 197, 94, 0.15); }

.user-id-display .user-id-label {
    font-size: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    font-weight: 600;
}

.user-id-display .user-id-value {
    font-weight: 600;
    font-size: 0.7rem;
    font-family: var(--font-display);
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.user-id-display .user-id-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.6rem;
    transition: all var(--transition-fast);
    opacity: 0.5;
}

.user-id-display .user-id-copy-btn:hover { opacity: 1; color: var(--neon-green); }
.user-id-display .user-id-copy-btn.copied { color: var(--neon-green); opacity: 1; }

.mobile-user-id-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-family: var(--font-display);
    color: var(--text-white);
}

.mobile-user-id-display .user-id-value { font-weight: 700; font-size: 0.7rem; letter-spacing: 0.5px; }

.mobile-user-id-display .user-id-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.6rem;
    transition: all var(--transition-fast);
    opacity: 0.5;
}

.mobile-user-id-display .user-id-copy-btn:hover { opacity: 1; color: var(--neon-green); }
.mobile-user-id-display .user-id-copy-btn.copied { color: var(--neon-green); opacity: 1; }

/* ============================================================
   TOAST CONTAINER
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--header-height, 80px) + 12px);
    right: 16px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
    width: 100%;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    border-left: 4px solid var(--neon-green);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    animation: toastSlide 0.3s ease;
}

.toast.success { border-left-color: var(--neon-green); }
.toast.error   { border-left-color: #ff6b6b; }
.toast.info    { border-left-color: #4fc3f7; }

.toast .toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--neon-green); }
.toast.error .toast-icon   { color: #ff6b6b; }
.toast.info .toast-icon    { color: #4fc3f7; }

.toast .toast-message { flex: 1; font-size: 0.8rem; color: var(--text-body); }

.toast .toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 4px;
}

.toast .toast-close:hover { color: var(--text-white); }

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.6s ease-in-out infinite;
}

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

/* Mobile age restriction */
.mobile-age-restriction {
    display: none;
    background: rgba(255, 200, 0, 0.04);
    border: 1px solid rgba(255, 200, 0, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 16px 0 8px 0;
    text-align: center;
}

.mobile-age-restriction .mobile-age-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.mobile-age-restriction .mobile-age-badge .age-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 200, 0, 0.1);
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 800;
    color: #ffd700;
}

.mobile-age-restriction .mobile-age-text {
    font-size: 0.55rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================================
   DEPOSIT LOADING OVERLAY
   ============================================================ */
.deposit-loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(6, 13, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.deposit-loading-overlay.active { display: flex; }

.deposit-loading-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    animation: depositLoadIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.deposit-loading-content .loader-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border: 4px solid rgba(34, 197, 94, 0.1);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
}

.deposit-loading-content h3 {
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.deposit-loading-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
}

.deposit-loading-content .loading-steps {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.deposit-loading-content .loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.deposit-loading-content .loading-step.active { color: var(--text-white); opacity: 1; }

.deposit-loading-content .loading-step .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
}

.deposit-loading-content .loading-step.active .step-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.deposit-loading-content .loading-step .step-icon .fas.fa-check { color: var(--neon-green); }
.deposit-loading-content .loading-step .step-icon .fas.fa-spinner { color: var(--neon-green); }
.deposit-loading-content .loading-step .step-icon .fas.fa-times { color: #ef4444; }

.deposit-loading-content .loading-step.done { color: var(--neon-green); opacity: 0.8; }

.deposit-loading-content .loading-step.done .step-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--neon-green);
}

/* ============================================================
   CRG LIVE BALANCE PILL
   ============================================================ */
.crg-live-balance {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 5;
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 9999px;
    padding: 6px 14px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: #fff;
    transition: all 0.3s ease;
}

.crg-live-balance.active { display: flex; }

.crg-live-balance.syncing {
    border-color: rgba(255, 200, 0, 0.4);
    background: rgba(255, 200, 0, 0.08);
}

.crg-live-balance .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    animation: crgPulse 1.5s ease-in-out infinite;
}

.crg-live-balance.syncing .dot {
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@keyframes crgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

.crg-live-balance .label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.6;
}

.crg-live-balance .amount { font-weight: 700; color: var(--neon-green); }

.crg-live-balance .delta {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

.crg-live-balance .delta.pos { color: var(--neon-green); }
.crg-live-balance .delta.neg { color: #ff6b6b; }
