@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
    --bg-dark: #050508;
    --bg-surface: #111218;
    --neon-cyan: #00f3ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff007a;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Light App UI Palette */
    --app-purple: #7c4dff; /* Using a slightly brighter purple matching image */
    --app-orange: #ff9800;
    --app-green: #4caf50;
    --app-bg-light: #f5f6fa;
    --app-card-dark: #1a1a2e;
    --app-text-dark: #2d3436;
    --app-text-light: #ffffff;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(176, 38, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.08), transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navbar Premium */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.logo span {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-login {
    position: relative;
}

.btn-login::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--neon-cyan);
    transition: width 0.3s;
}

.btn-login:hover::after {
    width: 100%;
}

.btn-register {
    background: linear-gradient(45deg, var(--neon-cyan), #0088ff);
    padding: 12px 28px;
    border-radius: 50px;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5);
}

/* Premium Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8%;
    min-height: 85vh;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.glitch {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    padding: 18px 45px;
    border-radius: 50px;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(176, 38, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(176, 38, 255, 0.6);
}

.btn-secondary {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    margin-left: 15px;
    transition: 0.3s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--neon-cyan);
}

.trust-badges {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
}
.badge span {
    font-size: 24px;
    font-weight: 800;
    color: var(--neon-cyan);
    font-family: 'Outfit';
}
.badge {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Elements for Premium Feel */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.live-pulse {
    position: absolute;
    top: 20px; right: 20px;
    width: 12px; height: 12px;
    background: #ff003c;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); }
}

.floating-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    transform-style: preserve-3d;
    animation: float-premium 6s ease-in-out infinite;
    text-align: center;
    position: relative;
}

.floating-card .prize {
    font-size: 65px;
    font-weight: 900;
    color: var(--neon-cyan);
    margin: 20px 0;
    text-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
    letter-spacing: -2px;
}

@keyframes float-premium {
    0% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(10deg) rotateY(5deg); }
    100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
}

/* Winner Marquee */
.live-winners {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}
.winner-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}
.winner-marquee span {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-right: 50px;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Steps Section */
.steps-section {
    padding: 100px 8%;
    background: var(--bg-surface);
}

.sub-heading {
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

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

.section-header h2 {
    font-size: 42px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    text-align: center;
    transition: 0.3s;
}
.step-card:hover {
    border-color: var(--neon-purple);
    transform: translateY(-5px);
}

.step-num {
    width: 50px; height: 50px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan));
    color: #000;
    font-size: 24px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.step-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Glassmorphism Features */
.features {
    padding: 100px 8%;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(17, 18, 24, 0.8));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.feature-card:hover::before {
    left: 150%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* CTA Section */
.faq-cta-section {
    padding: 80px 8%;
    text-align: center;
}
.cta-box {
    background: linear-gradient(45deg, rgba(176, 38, 255, 0.1), rgba(0, 243, 255, 0.1));
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 60px;
    border-radius: 30px;
}
.cta-box h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Auth Forms Premium */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(176, 38, 255, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(0, 243, 255, 0.1), transparent);
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.auth-box h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.1);
    outline: none;
    background: rgba(0,0,0,0.5);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, var(--neon-cyan), #0088ff);
    color: #000;
    border: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 243, 255, 0.5);
}

footer {
    padding: 60px 8% 30px;
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo {
    font-family: 'Outfit';
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}
.footer-logo span { color: var(--neon-cyan); }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--neon-cyan); }

/* Categories Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.cat-tile {
    display: block;
    text-decoration: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}
.cat-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: inherit;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s;
}
.cat-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.cat-tile:hover::before {
    opacity: 0.5;
}
.cat-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}
.cat-tile h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.cat-tile p {
    font-size: 14px;
    color: var(--text-muted);
}
.cat-cricket { border-top: 3px solid #00ff88; }
.cat-cricket:hover { box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2); border-color: #00ff88; }
.cat-bollywood { border-top: 3px solid #ff007a; }
.cat-bollywood:hover { box-shadow: 0 10px 30px rgba(255, 0, 122, 0.2); border-color: #ff007a; }
.cat-gk { border-top: 3px solid #00f3ff; }
.cat-gk:hover { box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2); border-color: #00f3ff; }
.cat-tech { border-top: 3px solid #b026ff; }
.cat-tech:hover { box-shadow: 0 10px 30px rgba(176, 38, 255, 0.2); border-color: #b026ff; }

/* 📱 APP-LIKE FEEL FOR MOBILE */
html, body {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none; /* Prevents text selection for native app feel */
}

/* Allow text selection in inputs */
input, textarea {
    user-select: auto;
}

/* Hide scrollbar for cleaner look */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Bottom Navigation Bar for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* For iOS safe area */
}
.bottom-nav-item {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    transition: 0.3s;
}
.bottom-nav-item span.icon {
    font-size: 22px;
}
.bottom-nav-item.active, .bottom-nav-item:active {
    color: var(--neon-cyan);
    transform: scale(1.1);
}
.bottom-nav-item.active span.icon {
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

@media (max-width: 768px) {
    .bottom-nav.show-mobile { display: flex; }
    
    /* Hide top nav links on mobile for dashboard/play to force bottom nav usage */
    .navbar .nav-links.desktop-only { display: none !important; }
    
    /* Add padding so content isn't hidden behind bottom nav */
    body.has-bottom-nav { padding-bottom: 80px; }
    
    /* Make wallet cards scroll horizontally on mobile */
    .wallet-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    .cc-card {
        min-width: 80vw;
        scroll-snap-align: center;
    }
}

/* =========================================
   NEW LIGHT APP UI (MOCKUP DESIGN)
   ========================================= */

/* Body override for light UI pages */
body.light-ui {
    background-color: var(--app-bg-light);
    background-image: none;
    color: var(--app-text-dark);
}

/* Light UI Header */
.light-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #ccc;
    object-fit: cover;
}
.user-info p {
    font-size: 13px;
    color: #888;
    margin-bottom: 3px;
}
.user-info h3 {
    font-size: 18px;
    color: var(--app-text-dark);
}

.balance-pill {
    background: var(--app-purple);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(124, 77, 255, 0.3);
}

/* King Banner */
.king-banner {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 8%;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(124, 77, 255, 0.4);
}
.king-banner::before {
    content: '👑';
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 120px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.king-banner h4 {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: normal;
}
.king-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
.king-profile img {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.king-profile h3 { font-size: 18px; margin-bottom: 3px; }
.king-profile p { font-size: 12px; opacity: 0.8; }

/* 3-Column Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 0 8%;
}
.action-card {
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.action-card:active { transform: scale(0.95); }
.action-card .ac-icon {
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    color: #000;
    font-size: 20px;
    font-weight: bold;
}
.action-card h3 { font-size: 12px; font-weight: 600; }
.bg-purple { background: var(--app-purple); }
.bg-green { background: var(--app-green); }
.bg-orange { background: var(--app-orange); }

.ac-icon.text-purple { color: var(--app-purple); }
.ac-icon.text-green { color: var(--app-green); }
.ac-icon.text-orange { color: var(--app-orange); }

/* Daily Quiz Promo */
.daily-quiz-promo {
    background: linear-gradient(135deg, #ffb75e, #ed8f03);
    margin: 25px 8%;
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}
.daily-quiz-promo h2 { font-size: 28px; margin-bottom: 5px; }
.daily-quiz-promo p { font-size: 14px; opacity: 0.9; margin-bottom: 15px; }
.btn-white {
    background: #fff;
    color: #ed8f03;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}
.promo-icon { font-size: 60px; line-height: 1; }

/* Browse Smart */
.browse-smart {
    margin: 30px 8% 100px;
}
.browse-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.browse-header h3 { font-size: 20px; color: var(--app-text-dark); }
.browse-header .arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; color: #888; }

/* Light UI Bottom Nav */
.light-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: #fff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 15px 0 25px;
    z-index: 1000;
}
.light-bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: #a0a0a0; text-decoration: none; font-size: 11px; font-weight: 600;
}
.light-bottom-nav .nav-item.active { color: var(--app-purple); }
.light-bottom-nav .nav-item span.icon { font-size: 22px; }

/* Floating Action Button */
.fab-container {
    position: relative;
    top: -30px;
}
.fab {
    width: 60px; height: 60px;
    background: var(--app-purple);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 30px; font-weight: 300;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.4);
    border: 5px solid #fff;
}

/* =========================================
   PLAY SCREEN UI (MOCKUP DESIGN)
   ========================================= */
body.play-ui {
    background: #1a1a1a;
    color: #fff;
    overflow: hidden;
}

/* Split Background */
.play-bg-top {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 50vh;
    background: var(--app-purple);
    z-index: -1;
}

/* Play Header */
.play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}
.btn-back {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 20px;
}
.play-stats {
    display: flex; gap: 15px; align-items: center;
    width: 70%;
}
.stat-pill {
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.stat-pill.orange { background: var(--app-orange); color: #000; }
.progress-track {
    flex: 1; height: 6px; background: rgba(0,0,0,0.2); border-radius: 10px; overflow: hidden;
}
.progress-bar {
    height: 100%; background: var(--app-orange); width: 10%; border-radius: 10px;
}

/* Question Card floating */
.question-floating-card {
    background: var(--app-card-dark);
    margin: 40px 5% 0;
    border-radius: 20px;
    padding: 40px 20px 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hint-btn {
    position: absolute;
    top: 20px; left: 20px;
    background: rgba(255,152,0,0.15);
    color: var(--app-orange);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 12px; font-weight: 600;
}

/* Overlapping Circular Timer */
.circular-timer {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 70px;
    background: #111;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900;
    border: 4px solid var(--app-card-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.timer-ring {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--app-orange);
    border-right-color: var(--app-orange);
    transform: rotate(45deg);
}

.q-label { font-size: 20px; font-weight: 700; margin-bottom: 5px; }
.q-label span { color: var(--app-orange); }
.q-cat { font-size: 13px; color: #888; margin-bottom: 25px; }
.q-text { font-size: 22px; font-weight: 600; line-height: 1.4; padding: 0 10px; }

/* Options Styling */
.play-options {
    margin: 20px 5%;
    display: flex; flex-direction: column; gap: 12px;
}
.play-opt-btn {
    background: #232323;
    border: 2px solid transparent;
    padding: 18px 20px;
    border-radius: 15px;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-size: 16px; font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.radio-circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid #555;
    display: flex; align-items: center; justify-content: center;
}

/* States */
.play-opt-btn.correct {
    border-color: var(--app-green);
    background: rgba(76, 175, 80, 0.05);
}
.play-opt-btn.correct .text { color: var(--app-green); }
.play-opt-btn.correct .radio-circle {
    background: var(--app-green);
    border-color: var(--app-green);
    color: #fff;
}

.play-opt-btn.wrong {
    border-color: var(--app-orange);
    background: rgba(255, 152, 0, 0.05);
}
.play-opt-btn.wrong .text { color: var(--app-orange); }
.play-opt-btn.wrong .radio-circle {
    background: var(--app-orange);
    border-color: var(--app-orange);
    color: #fff;
}

/* Bottom Action */
.play-footer {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    padding: 20px 5%;
    background: linear-gradient(to top, #111, transparent);
}
.btn-next-large {
    width: 100%;
    background: var(--app-orange);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
    cursor: pointer;
}

/* =========================================
   DUAL-VIEW RESPONSIVE OVERRIDES
   ========================================= */

/* Desktop Only defaults */
@media (max-width: 768px) {
    
    /* Body background reset for mobile non-dashboard pages */
    body {
        background-color: var(--app-bg-light);
        background-image: none;
    }

    /* Auth overrides for Mobile */
    .auth-container {
        background: var(--app-bg-light);
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 50px;
    }
    .auth-box {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 20px;
    }
    .auth-box h2 {
        color: var(--app-text-dark);
        font-size: 28px;
        text-align: left;
        margin-bottom: 40px;
    }
    .auth-links {
        color: var(--app-text-dark);
    }
    .auth-box label {
        color: #555;
        font-size: 13px;
        font-weight: 600;
        display: block;
        margin-bottom: 8px;
    }
    .form-control {
        background: #fff;
        border: 1px solid #e0e0e0;
        color: var(--app-text-dark);
        border-radius: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    }
    .form-control:focus {
        border-color: var(--app-purple);
        box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.1);
        background: #fff;
    }
    .btn-submit {
        background: var(--app-purple);
        color: #fff;
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
        margin-top: 30px;
    }
    .btn-submit:hover {
        box-shadow: 0 10px 25px rgba(124, 77, 255, 0.5);
    }
    .btn-google {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #fff;
        color: #333;
        border: 1px solid #ddd;
        padding: 12px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    }
}

/* Mobile Onboarding Screen */
.app-onboarding {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 40px 20px;
    background: #fff;
    text-align: center;
}

/* Onboarding Slider CSS */
.onboard-slider {
    flex: 1;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.onboard-slide {
    display: none;
    flex-direction: column;
    flex: 1;
}
.onboard-slide.active {
    display: flex;
}
.onboard-footer {
    width: 100%;
}
.onboard-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px;
}
.glow-circle {
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.2);
    filter: blur(20px);
    z-index: 1;
}
.emoji-icon {
    font-size: 100px;
    z-index: 2;
    position: relative;
}
.floating {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.onboard-content {
    padding: 0 10px;
    margin-bottom: 20px;
}
.onboard-content h1 {
    font-size: 32px;
    color: var(--app-text-dark);
    margin-bottom: 15px;
    font-family: 'Outfit';
}
.onboard-content p {
    font-size: 16px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 20px;
}
.onboard-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn-app-primary {
    display: block;
    width: 100%;
    background: var(--app-purple);
    color: #fff;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
}
.btn-app-secondary {
    display: block;
    width: 100%;
    background: #fff;
    color: var(--app-purple);
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--app-purple);
}

/* =========================================
   UNIFIED APP LANDING PAGE CSS
   ========================================= */

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-light {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--app-text-dark);
}
.btn-app-sm {
    background: var(--app-purple);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.btn-app-sm-outline {
    background: transparent;
    color: var(--app-purple);
    border: 2px solid var(--app-purple);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* Hero Section */
.landing-hero {
    text-align: center;
    padding: 60px 5% 40px;
    background: #fff;
    overflow: hidden;
    position: relative;
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(124, 77, 255, 0.1);
    color: var(--app-purple);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 48px;
    font-family: 'Outfit', sans-serif;
    color: var(--app-text-dark);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.btn-app-large {
    display: inline-block;
    background: var(--app-purple);
    color: #fff;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: 0.3s;
}
.shadow-purple {
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.4);
}
.hero-illustration {
    position: relative;
    margin-top: 60px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.glow-bg {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}
.glow-bg.purple {
    background: rgba(124, 77, 255, 0.2);
    top: 20px; left: 50%;
    transform: translateX(-100%);
}
.glow-bg.orange {
    background: rgba(255, 152, 0, 0.2);
    bottom: 0; left: 50%;
}
.hero-cards {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 15px;
}
.floating-card {
    background: #fff;
    padding: 15px 25px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: float 3s ease-in-out infinite;
}
.floating-card.center {
    transform: scale(1.1) translateY(-20px);
    z-index: 3;
    animation-delay: 0.2s;
}
.floating-card.c-green { color: var(--app-green); animation-delay: 0.4s; }
.floating-card.c-purple { color: var(--app-purple); border: 2px solid var(--app-purple); }
.floating-card.c-orange { color: var(--app-orange); animation-delay: 0.6s; }

/* Sections */
.landing-steps-section, .landing-winners, .landing-trust {
    padding: 60px 5%;
    background: var(--app-bg-light);
    text-align: center;
}
.section-title {
    font-size: 28px;
    font-family: 'Outfit', sans-serif;
    color: var(--app-text-dark);
    margin-bottom: 40px;
}
.app-steps-grid {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.app-step-card {
    flex: 1;
    background: #fff;
    padding: 40px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: 0.3s;
}
.app-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.step-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}
.app-step-card h3 {
    font-size: 20px;
    color: var(--app-text-dark);
    margin-bottom: 10px;
}
.app-step-card p {
    color: #777;
    font-size: 15px;
    line-height: 1.5;
}

/* Winners */
.winner-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.winner-track {
    display: inline-block;
    animation: scrollTicker 10s linear infinite;
}
.winner-pill {
    display: inline-block;
    background: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    margin: 0 10px;
    font-weight: 600;
    color: var(--app-text-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Trust */
.trust-grid {
    display: flex;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}
.trust-item {
    flex: 1;
}
.t-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
}
.trust-item h4 {
    font-size: 18px;
    color: var(--app-text-dark);
    margin-bottom: 10px;
}
.trust-item p {
    color: #777;
    font-size: 14px;
}

/* Footer */
.app-footer-light {
    background: #fff;
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid #eee;
}
.footer-links {
    margin: 20px 0;
}
.footer-links a {
    color: var(--app-purple);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}
.disclaimer {
    font-size: 11px;
    color: #999;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.6;
}

@media(max-width: 768px) {
    .app-steps-grid {
        flex-direction: column;
    }
    .trust-grid {
        flex-direction: column;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-cards {
        flex-direction: column;
        gap: 10px;
    }
    .floating-card.center {
        transform: scale(1.05);
    }
}

/* =========================================
   ONBOARDING SLIDER CSS (onboarding.php)
   ========================================= */

.app-onboarding {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 40px 20px;
    background: #fff;
    text-align: center;
}
.onboard-slider {
    flex: 1;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.onboard-slide {
    display: none;
    flex-direction: column;
    flex: 1;
}
.onboard-slide.active {
    display: flex;
}
.onboard-footer {
    width: 100%;
}
.onboard-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px;
}
.glow-circle {
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(124, 77, 255, 0.2);
    filter: blur(20px);
    z-index: 1;
}
.emoji-icon {
    font-size: 100px;
    z-index: 2;
    position: relative;
}
.floating {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.onboard-content {
    padding: 0 10px;
    margin-bottom: 20px;
}
.onboard-content h1 {
    font-size: 32px;
    color: var(--app-text-dark);
    margin-bottom: 15px;
    font-family: 'Outfit';
}
.onboard-content p {
    font-size: 16px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 20px;
}
.onboard-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}
.slider-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: 0.3s;
    cursor: pointer;
}
.slider-dots .dot.active {
    background: var(--app-purple);
    width: 25px;
    border-radius: 10px;
}

/* =========================================
   ULTRA-PREMIUM DASHBOARD CSS
   ========================================= */

body.premium-dashboard {
    background: #f0f2f5;
    font-family: 'Outfit', sans-serif;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
}

.dash-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Desktop Sidebar --- */
.dash-sidebar {
    display: none; /* Hidden on mobile */
    width: 260px;
    background: #0f1015;
    color: #fff;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.sidebar-brand {
    font-size: 26px;
    font-weight: 800;
    padding: 30px 20px;
    letter-spacing: 1px;
}
.sidebar-brand span {
    color: #7c4dff;
}
.sidebar-menu {
    flex: 1;
    padding: 10px 0;
}
.menu-label {
    font-size: 11px;
    color: #666;
    font-weight: 700;
    padding: 0 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.side-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0a0b0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin: 4px 10px;
    border-radius: 12px;
    transition: 0.3s;
}
.side-item .icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}
.side-item:hover, .side-item.active {
    background: rgba(124, 77, 255, 0.1);
    color: #fff;
}
.side-item.active .icon {
    color: #7c4dff;
}
.side-item.logout {
    color: #ff5252;
}
.side-item.logout:hover {
    background: rgba(255, 82, 82, 0.1);
}
.sidebar-user-card {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-user-card img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.sidebar-user-card h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
}
.sidebar-user-card p {
    margin: 0;
    font-size: 12px;
    color: #7c4dff;
    font-weight: 600;
}

/* --- Main Content --- */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for mobile nav */
    min-width: 0;
}

/* --- Top Header --- */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
}
.header-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.header-greeting p {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.header-greeting h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-wallet {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.02);
}
.wallet-icon {
    font-size: 16px;
    margin-right: 6px;
}
.wallet-amount {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
}
.wallet-add {
    background: #7c4dff;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
}

/* --- Desktop Bento Stats --- */
.dash-bento {
    display: none; /* Hidden on mobile by default, shown on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px 20px;
}
.bento-card {
    padding: 25px;
    border-radius: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.bento-card.grad-purple { background: linear-gradient(135deg, #7c4dff, #5e35b1); }
.bento-card.grad-green { background: linear-gradient(135deg, #00b09b, #96c93d); }
.bento-card.grad-orange { background: linear-gradient(135deg, #ff9966, #ff5e62); }

.bento-card .b-icon {
    font-size: 32px;
    background: rgba(255,255,255,0.2);
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}
.bento-card p {
    margin: 0 0 5px 0;
    font-size: 14px;
    opacity: 0.9;
}
.bento-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

/* --- Categories Horizontal Scroll --- */
.dash-categories {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dash-categories::-webkit-scrollbar {
    display: none;
}
.cat-pill {
    white-space: nowrap;
    padding: 10px 20px;
    background: #fff;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    transition: 0.3s;
}
.cat-pill.active, .cat-pill:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* --- Quizzes Section --- */
.dash-quizzes-section {
    padding: 0 20px 20px;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.view-all {
    color: #7c4dff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.quiz-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
    transition: 0.3s;
}
.quiz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.qc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.qc-badge {
    background: #ffebee;
    color: #f44336;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
.qc-prize {
    color: #00b09b;
    font-weight: 700;
    font-size: 14px;
}
.qc-body h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1a1a2e;
}
.qc-cat {
    margin: 0;
    color: #888;
    font-size: 13px;
}
.qc-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qc-entry span {
    display: block;
    font-size: 12px;
    color: #888;
}
.qc-entry strong {
    font-size: 15px;
    color: #1a1a2e;
}
.btn-play {
    background: linear-gradient(135deg, #7c4dff, #5e35b1);
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

/* --- Mobile Glass Nav --- */
.mobile-glass-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px 15px; /* Better padding for mobile nav */
    border-top: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 100;
}
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    gap: 4px;
    flex: 1;
}
.nav-btn .icon {
    font-size: 22px;
    transition: 0.3s;
}
.nav-btn .label {
    font-size: 11px;
    font-weight: 600;
}
.nav-btn.active {
    color: #7c4dff;
}
.nav-btn.active .icon {
    transform: translateY(-3px);
}
.nav-fab-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: -35px;
    z-index: 10;
}
.nav-fab {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #7c4dff, #5e35b1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.4);
    border: 4px solid #f0f2f5;
    cursor: pointer;
}

/* --- Mobile Native Wallet Card --- */
.desktop-only { display: none; }
.mobile-only { display: block; }

.mobile-wallet-card {
    background: linear-gradient(135deg, #7c4dff, #5e35b1);
    margin: 0 20px 20px;
    border-radius: 24px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 15px 30px rgba(124, 77, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.mobile-wallet-card::after {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.mwc-top {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}
.mwc-balance {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.mwc-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}
.mwc-btn {
    flex: 1;
    background: #fff;
    color: #7c4dff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}
.mwc-btn.outline {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: none;
}

/* =========================================
   RESPONSIVE (DESKTOP)
   ========================================= */
@media (min-width: 768px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex !important; }

    .dash-sidebar {
        display: flex;
    }
    .mobile-glass-nav {
        display: none !important;
    }
    .dash-main {
        padding-bottom: 0;
        padding: 30px 40px;
    }
    .dash-header {
        position: relative;
        background: transparent;
        backdrop-filter: none;
        padding: 0 0 30px 0;
        margin-bottom: 20px;
    }
    .mobile-avatar {
        display: none; /* Hide mobile avatar on desktop since it's in the sidebar */
    }
    .header-greeting h2 {
        font-size: 28px;
    }
    .dash-bento {
        display: grid;
    }
    .quiz-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    .dash-categories {
        padding: 0 0 20px 0;
    }
    .dash-quizzes-section {
        padding: 0;
    }
}

/* =========================================
   GAMING THEME OVERRIDES (Quiz-Earn)
   ========================================= */
body.gaming-theme {
    background: #0f1015;
    color: #fff;
}
.gaming-theme .dash-layout {
    background: #0f1015;
}
.gaming-theme .dash-sidebar {
    background: #161821;
    border-right: 1px solid rgba(255,255,255,0.05);
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(15, 16, 21, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gh-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gh-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 2px solid #ffd700;
}
.gh-info h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.gh-level {
    font-size: 11px;
    background: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.gh-wallet {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}
.gh-coin-wrap {
    display: flex;
    align-items: center;
    padding: 0 10px;
}
.gh-icon { font-size: 16px; margin-right: 5px; }
.gh-bal {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}
.gh-add-btn {
    background: #00e676;
    color: #000;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

/* Winners Ticker */
.winner-ticker-wrap {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.winner-label {
    background: #ff1744;
    padding: 4px 10px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
.winner-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Game Hero Banner */
.game-hero-banner {
    margin: 20px;
    background: linear-gradient(135deg, #2a0845, #6441A5);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(100, 65, 165, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
.ghb-content { z-index: 2; }
.ghb-tag {
    background: #ffd700;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}
.ghb-content h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 10px 0 5px;
    color: #fff;
}
.ghb-content p {
    color: #d1c4e9;
    font-size: 14px;
    margin-bottom: 15px;
}
.ghb-btn {
    background: #00e676;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}
.ghb-illustration {
    font-size: 80px;
    opacity: 0.8;
    transform: rotate(15deg);
    z-index: 1;
}

/* Game Categories */
.game-categories {
    display: flex;
    gap: 10px;
    padding: 0 20px 15px;
    overflow-x: auto;
}
.game-categories::-webkit-scrollbar { display: none; }
.gcat-pill {
    white-space: nowrap;
    padding: 10px 20px;
    background: #161821;
    color: #888;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
}
.gcat-pill.active {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: #fff;
    border-color: transparent;
}

/* Game Lobby Card */
.game-lobby-card {
    background: #161821;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.game-lobby-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c4dff, #00f3ff);
}
.glc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.glc-cat {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #888;
}
.glc-cat .dot {
    width: 8px; height: 8px;
    background: #00e676;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px #00e676;
}
.glc-prize-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 13px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}
.glc-body h4 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}
.glc-progress {
    margin-bottom: 15px;
}
.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #00e676);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}
.glc-progress p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
    font-weight: 600;
}
.glc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.glc-entry span {
    display: block;
    font-size: 11px;
    color: #888;
}
.glc-entry strong {
    font-size: 16px;
    color: #fff;
}
.glc-entry strong.strike {
    text-decoration: line-through;
    color: #555;
    font-size: 12px;
    margin-right: 5px;
}
.btn-game-play {
    background: linear-gradient(135deg, #00f3ff, #00e676);
    color: #000;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
    transition: transform 0.2s;
    letter-spacing: 0.5px;
}
.btn-game-play:hover {
    transform: scale(1.05);
}

/* Mobile Nav Override for Gaming Theme */
.gaming-theme .mobile-glass-nav {
    background: rgba(15, 16, 21, 0.85);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.gaming-theme .nav-btn.active { color: #ffd700; }
.gaming-theme .nav-fab {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    border: 4px solid #0f1015;
}

/* Desktop Overrides for Gaming Theme */
@media (min-width: 768px) {
    .gaming-theme .game-header {
        background: transparent;
        border-bottom: none;
        padding: 30px 40px;
    }
    .gaming-theme .winner-ticker-wrap {
        margin: 0 40px;
        border-radius: 10px;
    }
    .gaming-theme .game-hero-banner {
        margin: 20px 40px;
    }
    .gaming-theme .game-categories {
        padding: 0 40px 15px;
    }
    .gaming-theme .dash-quizzes-section {
        padding: 0 40px;
    }
}


/* Fix for autofill white background */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f1015 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}
