/* ==========================================================================
   DESIGN SYSTEM - NEO-CYBER CASINO MOBILE APP UI
   Theme: Midnight Amethyst, Cyber Violet (#7c3aed) & Electric Cyan (#00f0ff)
   Target: Always Render as a Dedicated Mobile Smartphone App Viewport on All Screens
   ========================================================================== */

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

:root {
    --mobile-width: 480px;
    
    /* Neo-Cyber Amethyst & Electric Cyan Color Tokens */
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: 0 0 25px rgba(124, 58, 237, 0.55);
    --primary-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4f46e5 100%);
    
    --cyan: #00f0ff;
    --cyan-glow: 0 0 20px rgba(0, 240, 255, 0.45);
    --cyan-gradient: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
    
    --coral: #ff3366;
    --coral-gradient: linear-gradient(135deg, #ff3366 0%, #f43f5e 100%);
    
    --gold: #ffb703;
    --gold-bright: #ffd166;
    
    --bg-page: #080914;
    --bg-surface: #0e1224;
    --bg-card: #131830;
    --bg-card-hover: #192040;
    --bg-elevated: #1e264a;
    
    --header-bg: rgba(11, 14, 28, 0.95);
    --topbar-bg: #05060b;
    --footer-bg: #06070d;
    
    --accent-emerald: #10b981;
    --accent-red: #ef4444;
    
    --text-heading: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #8492a6;
    --text-cyan: #00f0ff;
    --text-violet: #c084fc;
    
    --border: rgba(124, 58, 237, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-cyan: rgba(0, 240, 255, 0.35);
    --border-violet: rgba(168, 85, 247, 0.35);
    
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-neon: 0 8px 25px rgba(124, 58, 237, 0.35);
    --shadow-cyan: 0 8px 25px rgba(0, 240, 255, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --speed: 0.25s;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Desktop/Laptop Screen - Outer Immersive Cyber Space */
html {
    background-color: #030408;
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(124, 58, 237, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(255, 51, 102, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #020306 0%, #070914 50%, #030408 100%);
    background-attachment: fixed;
    width: 100%;
    min-height: 100%;
}

/* Smartphone Mobile Frame */
body {
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative;
    box-shadow: 
        0 0 0 1.5px rgba(124, 58, 237, 0.3),
        0 0 50px rgba(0, 0, 0, 0.95), 
        0 0 35px rgba(0, 240, 255, 0.15);
    border-left: 1px solid rgba(124, 58, 237, 0.25);
    border-right: 1px solid rgba(124, 58, 237, 0.25);
    padding-bottom: 84px; /* Space for Fixed Bottom App Navigation */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--speed) ease;
}

ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* Mobile Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 14px;
}

/* ==========================================================================
   APP HEADER BAR (Modern Mobile Casino App Bar)
   ========================================================================== */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.65);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.45));
}

.logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 17px;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.logo-fallback span {
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Right Buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-wallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 18, 36, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.wallet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

.btn-header-depo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--cyan-gradient);
    color: #030614 !important;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.4px;
    box-shadow: var(--shadow-cyan);
    transition: all var(--speed) ease;
    white-space: nowrap;
}

.btn-header-depo:active {
    transform: scale(0.96);
}

.mobile-menu-toggle {
    display: inline-flex;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all var(--speed) ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:active {
    background: var(--primary-gradient);
}

/* Mobile Slide-down Navigation Drawer */
.header nav {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(11, 14, 28, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.header nav.active {
    max-height: 520px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 18px;
    align-items: flex-start;
}

.nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
    font-weight: 700;
    color: #cbd5e1;
}

.nav-list a:hover {
    color: var(--cyan);
    padding-left: 10px;
}

.nav-list a::after {
    content: '›';
    font-size: 16px;
    color: var(--primary);
}

.nav-list li:last-child a {
    border-bottom: none;
}

/* ==========================================================================
   AD BANNER CONTAINER
   ========================================================================== */
.ad-banner-container {
    margin: 16px auto;
    padding: 0 14px;
    width: 100%;
}

.ad-banner-container a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(124, 58, 237, 0.3);
    transition: transform var(--speed) ease;
}

.ad-banner-container img {
    width: 100%;
    height: auto;
    max-height: 65px;
    /* object-fit: cover; */
    border-radius: var(--radius-md);
}

/* ==========================================================================
   FOOTER (Neo-Cyber Mobile Casino Footer)
   ========================================================================== */
.footer {
    background: var(--footer-bg);
    color: #94a3b8;
    padding: 36px 0 24px;
    margin-top: 40px;
    position: relative;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 26px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--cyan-gradient);
    border-radius: 2px;
}

.footer-col p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #8492a6;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 12.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col a:hover {
    color: var(--cyan);
}

.footer-badge-18 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 6px;
}

.footer-badge-18 span {
    color: #ef4444;
    font-size: 12px;
    font-weight: 900;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #64748b;
    font-size: 10.5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer-bottom-links a {
    color: #64748b;
}

.footer-bottom-links a:hover {
    color: var(--cyan);
}

/* ==========================================================================
   FIXED BOTTOM 5-TAB MOBILE APP BAR (Signature App Dock)
   ========================================================================== */
.mobile-app-dock {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 1200;
    height: 64px;
    background: rgba(8, 10, 20, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
    padding: 0 4px;
}

.dock-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #8492a6;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--speed) ease;
    position: relative;
}

.dock-tab svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    transition: transform var(--speed) ease;
}

.dock-tab.active, .dock-tab:hover {
    color: var(--cyan);
}

.dock-tab.active svg, .dock-tab:hover svg {
    transform: translateY(-2px);
    stroke: var(--cyan);
}

/* Center Highlight Tab (Deposit / VIP) */
.dock-tab.dock-tab-center {
    position: relative;
    top: -12px;
}

.dock-tab.dock-tab-center .dock-center-bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    color: #030614;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.55), 0 0 0 4px #080a14;
    transition: transform 0.2s ease;
}

.dock-tab.dock-tab-center:active .dock-center-bubble {
    transform: scale(0.92);
}

.dock-tab.dock-tab-center span {
    margin-top: 2px;
    font-weight: 800;
    color: var(--cyan);
}
