/* Lightning Faucet CSS Bundle - Built Fri Jan 16 07:01:51 PM PST 2026 */
/* DO NOT EDIT - Generated from component files */

/* ===========================================
   LIGHTNING FAUCET DESIGN TOKENS
   Bitcoin Native Dark Theme
   =========================================== */

:root {
    /* ===== COLORS ===== */

    /* Core Neutrals */
    --color-black: #0a0a0a;
    --color-black-light: #111111;
    --color-black-lighter: #1a1a1a;
    --color-gray-900: #1f1f1f;
    --color-gray-800: #2a2a2a;
    --color-gray-700: #3a3a3a;
    --color-gray-600: #4a4a4a;
    --color-gray-500: #6a6a6a;
    --color-gray-400: #8a8a8a;
    --color-gray-300: #aaaaaa;
    --color-gray-200: #cccccc;
    --color-gray-100: #e5e5e5;
    --color-white: #ffffff;

    /* Brand Colors - Bitcoin Native */
    --color-btc-orange: #f7931a;
    --color-btc-orange-light: #ffaa33;
    --color-btc-orange-dark: #cc7a15;
    --color-btc-gold: #ffd700;
    --color-btc-amber: #ffb347;

    /* Accent Colors */
    --color-lightning: #9945ff;
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    /* ===== SEMANTIC COLORS ===== */

    /* Background */
    --bg-primary: var(--color-black);
    --bg-secondary: var(--color-black-light);
    --bg-tertiary: var(--color-gray-900);
    --bg-card: var(--color-gray-800);
    --bg-card-hover: var(--color-gray-700);
    --bg-elevated: #161b22;
    --bg-footer: linear-gradient(180deg, #12121f 0%, #0a0a14 100%);

    /* Text */
    --text-primary: var(--color-white);
    --text-secondary: var(--color-gray-300);
    --text-muted: var(--color-gray-500);
    --text-accent: var(--color-btc-orange);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-default: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --border-accent: var(--color-btc-orange);
    --border-footer: #1a1a2e;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(247, 147, 26, 0.3);
    --shadow-glow-strong: 0 0 40px rgba(247, 147, 26, 0.5);

    /* ===== TYPOGRAPHY ===== */
    --font-display: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;

    /* ===== SPACING ===== */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ===== BORDER RADIUS ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* ===== Z-INDEX SCALE ===== */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    --z-toast: 700;

    /* ===== LAYOUT ===== */
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1200px;
    --max-width-2xl: 1400px;

    /* Header heights */
    --header-ticker-height: 40px;
    --header-nav-height: 64px;
    --header-total-height: calc(var(--header-ticker-height) + var(--header-nav-height));
    --header-collapsed-height: calc(28px + var(--header-nav-height));

    /* ===== BREAKPOINTS (for reference) ===== */
    /* Mobile: < 480px */
    /* Tablet: 480px - 768px */
    /* Desktop: 768px - 1024px */
    /* Large: > 1024px */
}

/* ===========================================
   CSS RESET & BASE STYLES
   =========================================== */

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-primary);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: var(--leading-relaxed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Subtle noise texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.015;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Main content wrapper */
main {
    min-height: calc(100vh - var(--header-total-height) - 200px);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--color-btc-orange);
    outline-offset: 2px;
}

/* Selection colors */
::selection {
    background-color: var(--color-btc-orange);
    color: var(--color-black);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-600);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === Component: header === */
/* ===========================================
   SITE HEADER COMPONENT
   Main navigation and branding
   =========================================== */

.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

/* Main navigation bar */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    max-width: var(--max-width-xl);
    margin: 0 auto;
    height: var(--header-nav-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: var(--font-bold);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.logo:hover {
    transform: translateY(-2px);
}

.lightning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-2);
    color: var(--color-btc-orange);
    filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.5));
}

.lightning-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.lightning-text {
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: var(--font-bold);
}

.faucet-text {
    color: var(--text-primary);
    font-weight: var(--font-medium);
    margin-left: var(--space-1);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none !important;
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
    background: transparent !important;
    background-color: transparent !important;
    outline: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* ===== PRIMARY NAVIGATION TABS ===== */
/* Always visible Play/Build tabs - enhanced segmented control */

.primary-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(17, 17, 17, 0.98) 100%);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

/* Subtle glow around tabs container */
.primary-tabs::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), transparent 40%, transparent 60%, rgba(247, 147, 26, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.primary-tabs:hover::before {
    opacity: 1;
}

.primary-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.01em;
}

.primary-tab .tab-icon {
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.2s ease;
    width: 16px;
    height: 16px;
}

.primary-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.primary-tab:hover .tab-icon {
    opacity: 0.9;
}

.primary-tab.active {
    background: linear-gradient(135deg, var(--color-btc-orange) 0%, var(--color-btc-gold) 100%);
    color: var(--color-black);
    font-weight: var(--font-bold);
    box-shadow:
        0 0 16px rgba(247, 147, 26, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary-tab.active .tab-icon {
    opacity: 1;
    stroke: var(--color-black);
}

.primary-tab.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== SECONDARY NAVIGATION ===== */
/* Hamburger menu content */

.secondary-nav {
    display: none; /* Hidden by default, shown when hamburger is clicked */
    margin-left: auto;
}

/* Hide mobile sections on desktop - !important overrides inline styles from JS */
.mobile-account-section,
.mobile-logout-section {
    display: none !important;
}

.secondary-nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    align-items: center;
}

.secondary-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.secondary-nav-links a:hover {
    color: var(--color-btc-orange);
}

.secondary-nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-btc-orange);
    transition: width var(--transition-fast);
}

.secondary-nav-links a:hover::after {
    width: 100%;
}

/* Legacy main-nav styles - kept for backwards compatibility */
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.main-nav > ul > li > a:not(.header-balance-link):not(.free-spin-link) {
    padding: var(--space-2) 0;
}

.main-nav a:hover {
    color: var(--color-btc-orange);
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-btc-orange);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Free Sats highlighted nav link */
.free-spin-link {
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-orange-dark)) !important;
    color: var(--color-black) !important;
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-full) !important;
    font-weight: var(--font-semibold) !important;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-base) !important;
}

.free-spin-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-glow-strong) !important;
}

.free-spin-link::after {
    display: none !important;
}

/* Auth section in header */
.header-auth {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: var(--space-6);
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-login-btn:hover {
    background: var(--bg-card);
    border-color: var(--color-btc-orange);
    color: var(--color-btc-orange);
}

.header-login-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Logged In Header State ===== */

/* Container for auth elements - always visible */
.header-auth-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: var(--space-6);
}

/* Balance link - clickable, leads to casino */
.header-balance-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.header-balance-link:hover {
    background: rgba(247, 147, 26, 0.15);
    border-color: rgba(247, 147, 26, 0.3);
}

.header-balance-link .balance-icon {
    font-size: 1rem;
}

.header-balance-link .balance-value {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-btc-orange);
}

.header-balance-link .balance-unit {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

/* User menu container */
.header-user-menu {
    position: relative;
}

/* User menu trigger button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.user-menu-btn:hover {
    border-color: var(--color-btc-orange);
    background: var(--bg-card);
}

.user-menu-btn.open {
    border-color: var(--color-btc-orange);
    background: var(--bg-card);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-black);
}

.dropdown-chevron {
    transition: transform var(--transition-fast);
}

.user-menu-btn.open .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    width: 220px;
    max-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: calc(var(--z-sticky) + 10);
    overflow: hidden;
}

.user-menu-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu header with balance */
.menu-header {
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.menu-balance {
    text-align: center;
}

.menu-balance-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.menu-balance-value {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-btc-orange);
}

/* Action buttons (deposit/withdraw) */
.menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    padding: var(--space-3);
}

.menu-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.menu-action-btn.deposit {
    background: var(--color-success);
    color: var(--color-black);
}

.menu-action-btn.deposit:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.menu-action-btn.withdraw {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.menu-action-btn.withdraw:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

/* Menu divider */
.menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0;
}

/* Menu items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.menu-item.logout {
    color: var(--color-error);
}

.menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Menu links row (Profile · Logout) */
.menu-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.menu-link {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.menu-link:hover {
    color: var(--text-primary);
}

.menu-link-separator {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Email status link in dropdown */
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.email-link svg {
    flex-shrink: 0;
}

.email-link.email-unverified {
    color: var(--color-warning, #ffc107);
}

.email-link.email-unverified:hover {
    color: var(--color-warning-hover, #e5ac00);
}

.email-link.email-verified {
    color: var(--color-success, #22c55e);
    cursor: default;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.3rem;
    }

    .lightning-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Header content reorder for mobile */
    .header-content {
        flex-wrap: wrap;
        padding: var(--space-3);
        height: auto;
        gap: var(--space-2);
    }

    /* Logo takes part of first row */
    .logo {
        order: 1;
    }

    /* Auth container on mobile - pushed right before hamburger */
    .header-auth-container {
        margin-left: auto;
        margin-right: var(--space-2);
        gap: var(--space-2);
        order: 2;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    /* Primary tabs - always visible on second row */
    .primary-tabs {
        order: 4;
        width: calc(100% + 0.5rem);
        margin: var(--space-2) -0.25rem 0 -0.25rem;
        padding: 4px;
        border-radius: var(--radius-lg);
        justify-content: center;
    }

    .primary-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.8125rem;
        gap: 5px;
    }

    .primary-tab .tab-icon {
        width: 15px;
        height: 15px;
    }

    .primary-tab.active {
        transform: none;
    }

    /* Secondary nav (hamburger menu content) */
    .secondary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        display: none;
        box-shadow: var(--shadow-lg);
        z-index: var(--z-dropdown);
        border-top: 1px solid var(--border-subtle);
        margin-left: 0;
        order: 5;
    }

    .secondary-nav.active {
        display: block;
    }

    .secondary-nav-links {
        flex-direction: column;
        padding: var(--space-4);
        gap: 0;
    }

    .secondary-nav-links li {
        width: 100%;
    }

    .secondary-nav-links a {
        display: block;
        padding: var(--space-3) 0;
    }

    .secondary-nav-links a::after {
        display: none;
    }

    /* Legacy main-nav for backwards compat */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        display: none;
        box-shadow: var(--shadow-lg);
        z-index: var(--z-dropdown);
        border-top: 1px solid var(--border-subtle);
        margin-left: 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: var(--space-4);
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: var(--space-3) 0;
    }

    .main-nav a::after {
        display: none;
    }

    /* Hide the separate user menu button on mobile - use hamburger instead */
    .header-user-menu {
        display: none;
    }

    /* Balance link on mobile - ultra compact, just icon + number */
    .header-balance-link {
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
        background: transparent;
        border: none;
    }

    .header-balance-link .balance-value {
        font-size: var(--text-sm);
        font-weight: var(--font-bold);
    }

    .header-balance-link .balance-unit {
        display: none;
    }

    .header-balance-link .balance-icon {
        font-size: 0.875rem;
    }

    /* Login button on mobile - compact */
    .header-login-btn span {
        display: none;
    }

    .header-login-btn {
        padding: var(--space-2);
        min-width: auto;
    }

    /* Unified mobile menu - account section at top of nav */
    /* Override desktop hiding - show on mobile when nav is active */
    .secondary-nav.active .mobile-account-section,
    .main-nav.active .mobile-account-section {
        display: block !important;
        padding: var(--space-4);
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-subtle);
    }

    .mobile-balance-display {
        text-align: center;
        margin-bottom: var(--space-3);
    }

    .mobile-balance-label {
        font-size: var(--text-xs);
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: var(--space-1);
    }

    .mobile-balance-value {
        font-family: var(--font-mono);
        font-size: var(--text-2xl);
        font-weight: var(--font-bold);
        color: var(--color-btc-orange);
    }

    .mobile-balance-value .balance-icon {
        margin-right: var(--space-1);
    }

    .mobile-account-actions {
        display: flex;
        gap: var(--space-2);
    }

    .mobile-account-actions .btn {
        flex: 1;
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
        justify-content: center;
    }

    /* Override desktop hiding - show on mobile when nav is active */
    .secondary-nav.active .mobile-logout-section,
    .main-nav.active .mobile-logout-section {
        display: block !important;
        padding: var(--space-3) var(--space-4);
        border-top: 1px solid var(--border-subtle);
    }

    /* Profile and Logout row */
    .mobile-account-row {
        display: flex;
        gap: var(--space-2);
    }

    .mobile-menu-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        padding: var(--space-3);
        background: transparent;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        color: var(--text-secondary);
        font-size: var(--text-sm);
        text-decoration: none;
        cursor: pointer;
        transition: all var(--transition-fast);
        text-align: center;
        box-sizing: border-box;
    }

    a.mobile-menu-btn {
        /* Ensure anchor tags center content same as buttons */
        display: flex;
        justify-content: center;
    }

    .mobile-menu-btn:hover {
        background: var(--bg-elevated);
        color: var(--text-primary);
    }

    .mobile-menu-btn.profile:hover {
        border-color: var(--color-btc-orange);
        color: var(--color-btc-orange);
    }

    .mobile-menu-btn.logout:hover {
        border-color: var(--color-error);
        color: var(--color-error);
    }

    /* Hide desktop-only account section in mobile nav */
    .desktop-only {
        display: none !important;
    }

    /* Hamburger animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active {
        background: transparent !important;
        background-color: transparent !important;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .lightning-icon {
        margin-right: var(--space-1);
    }

    .lightning-icon svg {
        width: 16px;
        height: 16px;
    }

    .header-content {
        padding: var(--space-3);
    }

    .balance-amount {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }
}

/* === Component: news-ticker === */
/* ===========================================
   NEWS TICKER COMPONENT
   Collapsible Bitcoin news and price display
   =========================================== */

.news-ticker {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    transition: height var(--transition-base), padding var(--transition-base);
    height: var(--header-ticker-height);
    padding: var(--space-2) 0;
}

/* Collapsed state */
.news-ticker.collapsed {
    height: 28px;
    padding: var(--space-1) 0;
}

.news-ticker.collapsed .ticker-wrap {
    display: none;
}

.news-ticker.collapsed .bitcoin-price {
    width: auto;
    padding: 0 var(--space-4);
}

.news-ticker.collapsed .ticker-collapse-btn {
    transform: rotate(180deg);
}

/* Ticker wrapper - contains scrolling news */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    transition: opacity var(--transition-base);
}

/* Scrolling content */
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 0;
    animation: ticker 60s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Scroll exactly 50% - second copy takes over seamlessly */
        transform: translateX(-50%);
    }
}

/* Individual news items */
.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ticker-item:hover {
    color: var(--color-btc-orange);
}

/* Bitcoin price display */
.bitcoin-price {
    flex-shrink: 0;
    text-align: right;
    padding-left: var(--space-4);
    padding-right: 0;
    margin-right: 0;
    font-weight: var(--font-semibold);
    font-family: var(--font-mono);
    color: var(--color-btc-orange);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

/* Collapse/expand button */
.ticker-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--space-2);
    margin-right: 0;
}

.ticker-collapse-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.ticker-collapse-btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-base);
}

/* Mobile styles */
@media (max-width: 768px) {
    .news-ticker {
        font-size: 10px;
        height: 36px;
    }

    .news-ticker.collapsed {
        height: 24px;
    }

    .ticker-content {
        animation-duration: 35s;
    }

    .bitcoin-price {
        font-size: 11px;
    }

    .ticker-collapse-btn {
        width: 20px;
        height: 20px;
    }

    .ticker-collapse-btn svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .bitcoin-price {
        font-size: 10px;
    }
}

/* Hide ticker completely on mobile */
@media (max-width: 768px) {
    .news-ticker {
        display: none !important;
    }
}

/* === Component: subnav === */
/* ===========================================
   CONTEXTUAL SUB-NAVIGATION COMPONENT
   Enhanced sticky secondary navigation
   =========================================== */

.subnav {
    background: linear-gradient(180deg,
        rgba(17, 17, 17, 0.98) 0%,
        rgba(10, 10, 10, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: var(--header-nav-height);
    z-index: calc(var(--z-sticky) - 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Subtle top highlight */
.subnav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(247, 147, 26, 0.3) 50%,
        transparent 100%);
}

.subnav-container {
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.subnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subnav-links::-webkit-scrollbar {
    display: none;
}

.subnav-links li {
    flex-shrink: 0;
}

.subnav-links a,
.subnav-links span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    white-space: nowrap;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
}

.subnav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.subnav-links a.active {
    color: var(--color-btc-orange);
    background: rgba(247, 147, 26, 0.12);
    font-weight: var(--font-semibold);
}

/* Active indicator dot */
.subnav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-btc-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(247, 147, 26, 0.6);
}

/* Disabled / Coming Soon items */
.subnav-links span.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.coming-soon-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 193, 7, 0.12);
    color: rgba(255, 193, 7, 0.8);
    font-size: 0.625rem;
    font-weight: var(--font-bold);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Area-specific accent colors */
.subnav[data-area="play"] a.active {
    color: var(--color-btc-orange);
    background: rgba(247, 147, 26, 0.12);
}

.subnav[data-area="build"] a.active {
    color: var(--color-btc-orange);
    background: rgba(247, 147, 26, 0.12);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .subnav {
        top: auto;
        position: relative;
    }

    .subnav-container {
        padding: 0 var(--space-2);
    }

    .subnav-links {
        padding: 6px 0;
        gap: 2px;
    }

    .subnav-links a,
    .subnav-links span {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .coming-soon-badge {
        font-size: 0.5625rem;
        padding: 1px 4px;
    }

    .subnav-links a.active::after {
        bottom: 2px;
        width: 3px;
        height: 3px;
    }
}

/* When ticker is collapsed, adjust sticky position */
.news-ticker.collapsed ~ .header-content + .subnav,
.site-header:not(:has(.news-ticker)) + .subnav {
    top: var(--header-nav-height);
}

/* === Component: footer === */
/* ===========================================
   SITE FOOTER COMPONENT
   Brand, links, newsletter, legal
   =========================================== */

.site-footer {
    background: var(--bg-footer);
    color: #888;
    margin-top: 0;
    border-top: 1px solid rgba(247, 147, 26, 0.1);
}

.footer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 24px 30px;
}

/* Footer Grid - 3 columns on desktop */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-footer);
}

/* Brand Section */
.footer-brand {
    max-width: 280px;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand .logo-icon {
    font-size: 1.4rem;
}

.footer-brand .logo-text {
    font-size: 1.15rem;
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.brand-tagline {
    font-size: 0.9rem;
    line-height: var(--leading-relaxed);
    color: #666;
    margin-bottom: 18px;
}

.brand-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.7rem;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-footer);
}

/* Links Section */
.footer-links {
    display: flex;
    gap: 30px;
}

.links-group h4 {
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-group li {
    margin-bottom: 10px;
}

.links-group a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.links-group a:hover {
    color: var(--color-btc-orange);
}

/* Newsletter Section */
.footer-newsletter h4 {
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-newsletter > p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 14px;
}

.footer-newsletter strong {
    color: var(--color-btc-orange);
}

.newsletter-form .input-group {
    display: flex;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #2a2a4a;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: #555;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-btc-orange);
}

.newsletter-form button {
    padding: 10px 18px;
    background: var(--color-btc-orange);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.newsletter-form button:hover {
    background: #e8850e;
}

.newsletter-form button:disabled {
    background: #444;
    cursor: not-allowed;
}

.newsletter-form button .btn-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: footer-spin 0.8s linear infinite;
}

.newsletter-form button.loading .btn-text {
    display: none;
}

.newsletter-form button.loading .btn-loader {
    display: inline-block;
}

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

.form-message {
    font-size: 0.75rem;
    margin-top: 8px;
    min-height: 1em;
}

.form-message.success {
    color: var(--color-success);
}

.form-message.error {
    color: var(--color-error);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.75rem;
    color: #555;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #555;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--color-btc-orange);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-divider {
    color: #333;
    font-size: 0.6rem;
}

.footer-email {
    transition: color var(--transition-fast);
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-powered .btc {
    color: var(--color-btc-orange);
    font-weight: var(--font-bold);
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-wrapper {
        padding: 40px 20px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-brand .brand-logo {
        justify-content: center;
    }

    .brand-badges {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }

    .links-group {
        text-align: left;
        min-width: 100px;
    }

    .footer-newsletter {
        max-width: 320px;
        margin: 0 auto;
    }

    .newsletter-form .input-group {
        flex-direction: row;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .links-group {
        text-align: center;
    }

    .links-group ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
    }

    .links-group li {
        margin-bottom: 0;
    }
}

/* === Component: buttons === */
/* ===========================================
   BUTTON COMPONENTS
   Primary, secondary, and variant styles
   =========================================== */

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-body);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary button - Bitcoin Orange gradient */
.btn-primary,
.cta-button {
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-orange-dark));
    color: var(--color-black);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover,
.cta-button:hover {
    background: linear-gradient(135deg, var(--color-btc-orange-light), var(--color-btc-orange));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-primary:active,
.cta-button:active {
    transform: translateY(0);
}

/* Secondary button - Outlined */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--color-btc-orange);
    color: var(--color-btc-orange);
    transform: translateY(-2px);
}

/* Ghost button - Minimal */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Danger button - Red */
.btn-danger {
    background: var(--color-error);
    color: var(--text-primary);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Success button - Green */
.btn-success {
    background: var(--color-success);
    color: var(--color-black);
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* Size variants */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-xl);
}

/* Full width button */
.btn-block {
    display: flex;
    width: 100%;
}

/* Icon button (square) */
.btn-icon {
    padding: var(--space-3);
    aspect-ratio: 1;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Button with loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

.btn-primary.btn-loading::after,
.cta-button.btn-loading::after {
    border-color: rgba(0, 0, 0, 0.3);
    border-top-color: var(--color-black);
}

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

/* Button group */
.btn-group {
    display: inline-flex;
    gap: 0;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.btn-group .btn:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* Pill variant */
.btn-pill {
    border-radius: var(--radius-full);
}

/* Link styled as button */
a.btn {
    text-decoration: none;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .btn {
        padding: var(--space-3) var(--space-4);
    }

    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}

/* === Component: balance-bar === */
/* ===========================================
   BALANCE BAR COMPONENT
   Site-wide auth and balance display
   =========================================== */

/* Balance bar container - shown when logged in */
.balance-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Balance display */
.balance-display {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.balance-display:hover {
    border-color: var(--color-btc-orange);
    background: var(--bg-elevated);
}

.balance-icon {
    font-size: 1.1rem;
}

.balance-value {
    font-weight: var(--font-semibold);
    color: var(--color-btc-orange);
}

.balance-label {
    color: var(--text-muted);
    font-size: var(--text-xs);
    margin-left: var(--space-1);
}

/* Quick action buttons */
.balance-actions {
    display: flex;
    gap: var(--space-2);
}

.balance-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.balance-action-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-default);
    color: var(--text-primary);
}

.balance-action-btn.deposit:hover {
    border-color: var(--color-success);
    color: var(--color-success);
}

.balance-action-btn.withdraw:hover {
    border-color: var(--color-btc-orange);
    color: var(--color-btc-orange);
}

.balance-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Casino quick link */
.casino-quick-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-orange-dark));
    border-radius: var(--radius-md);
    color: var(--color-black);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.casino-quick-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.casino-quick-link svg {
    width: 14px;
    height: 14px;
}

/* User dropdown trigger */
.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-dropdown-trigger:hover {
    background: var(--bg-card);
    border-color: var(--border-default);
}

.user-dropdown-trigger .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-black);
}

.user-dropdown-trigger .dropdown-arrow {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-dropdown-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* User dropdown menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.user-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown header with balance */
.dropdown-balance-header {
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.dropdown-balance-header .balance-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.dropdown-balance-header .balance-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-btc-orange);
}

.dropdown-balance-header .balance-value span {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-normal);
    margin-left: var(--space-1);
}

/* Dropdown action buttons */
.dropdown-actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.dropdown-actions .btn {
    flex: 1;
    justify-content: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

/* Dropdown menu items */
.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-menu-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.dropdown-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dropdown-menu-item.danger {
    color: var(--color-error);
}

.dropdown-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-2) 0;
}

/* Login button in header */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-login-btn:hover {
    background: var(--bg-card);
    border-color: var(--color-btc-orange);
    color: var(--color-btc-orange);
}

.header-login-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .balance-bar {
        gap: var(--space-2);
    }

    .balance-display {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }

    .balance-actions {
        display: none;
    }

    .casino-quick-link {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }

    .casino-quick-link span {
        display: none;
    }

    .user-dropdown-trigger .user-avatar {
        width: 24px;
        height: 24px;
    }

    .user-dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .balance-label {
        display: none;
    }
}

/* === Component: modals === */
/* ===========================================
   MODAL COMPONENTS
   Overlays, dialogs, and authentication modals
   =========================================== */

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Removed backdrop-filter: blur() - causes significant jank on mobile */
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    /* Specify exact properties instead of 'all' for better performance */
    transition: opacity 0.25s ease, visibility 0.25s ease;
    will-change: opacity;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: var(--z-modal);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    /* Specify exact properties instead of 'all' for better performance */
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    will-change: opacity, transform;
    overflow: hidden;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

/* Modal body */
.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

/* Modal footer */
.modal-footer {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

/* ===== AUTH MODAL SPECIFIC ===== */

.auth-modal {
    max-width: 400px;
}

.auth-modal .modal-body {
    padding: 0;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

.auth-tab.active {
    color: var(--color-btc-orange);
    border-bottom-color: var(--color-btc-orange);
}

.auth-tab svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Tab Content */
.auth-tab-content {
    display: none;
    padding: var(--space-6);
    min-height: 320px; /* Consistent height between tabs to prevent modal resize */
}

.auth-tab-content.active {
    display: block;
}

/* QR Section */
.auth-qr-section {
    text-align: center;
}

.auth-qr-hint {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* Wallet Actions */
.auth-wallet-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-4);
}

.auth-wallet-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
}

/* Wallet List */
.auth-wallet-list {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-4);
}

/* Recovery Section */
.auth-recovery-section {
    text-align: center;
}

.auth-recovery-hint {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.recovery-input-wrapper {
    margin-bottom: var(--space-4);
}

.recovery-input-wrapper input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-align: center;
    letter-spacing: 0.05em;
}

.recovery-input-wrapper input:focus {
    outline: none;
    border-color: var(--color-btc-orange);
}

.recovery-input-wrapper input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-sans);
    letter-spacing: normal;
}

/* New User Section - Subtle and compact */
.auth-new-user-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.new-user-header {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.new-user-badge {
    display: block;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: 2px;
}

/* Subtle text-link style button */
.auth-new-user-section .btn-primary {
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid rgba(247, 147, 26, 0.4);
    color: var(--color-btc-orange);
    transition: all 0.2s ease;
}

.auth-new-user-section .btn-primary:hover {
    background: rgba(247, 147, 26, 0.1);
    border-color: var(--color-btc-orange);
}

.auth-new-user-section .btn-primary svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.new-user-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* Legacy Signup CTA (keeping for backwards compatibility) */
.auth-signup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
}

.auth-signup-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0;
    background: none;
    border: none;
    color: var(--color-btc-orange);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--color-btc-gold);
}

.btn-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* QR Code container */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3);
    background: #ffffff;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.qr-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.qr-container canvas,
.qr-container img {
    width: 160px;
    height: 160px;
}

/* Mobile action buttons */
.auth-mobile-actions {
    display: none;
    margin-bottom: var(--space-3);
}

.auth-mobile-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.auth-mobile-actions .btn svg {
    width: 18px;
    height: 18px;
}

/* Copy LNURL button */
.btn-copy-lnurl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-lnurl:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.btn-copy-lnurl svg {
    stroke: currentColor;
}

/* Auth status indicator */
.auth-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.auth-status.pending {
    color: var(--color-warning);
}

.auth-status.success {
    color: var(--color-success);
}

.auth-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    animation: pulse 1.5s ease-in-out infinite;
}

.auth-status.pending .status-dot {
    background: var(--color-warning);
}

.auth-status.success .status-dot {
    background: var(--color-success);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Compatible wallets list */
.compatible-wallets {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.compatible-wallets-title {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.wallet-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.wallet-item {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.wallet-help-link {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-btc-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.wallet-help-link:hover {
    color: var(--color-btc-gold);
    text-decoration: underline;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Recovery code input */
.recovery-input-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.recovery-input-group input {
    flex: 1;
    min-width: 0;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.02em;
}

.recovery-input-group input:focus {
    outline: none;
    border-color: var(--color-btc-orange);
}

.recovery-input-group input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-sans);
    letter-spacing: normal;
}

.recovery-input-group .btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-3);
}

/* Success state - big visual celebration */
.auth-success {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    animation: fadeInUp 0.4s ease-out;
}

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

.auth-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, var(--color-success), #34d399);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: successPulse 1.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.auth-success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
    stroke-width: 3;
    animation: checkDraw 0.5s ease-out 0.2s both;
}

@keyframes checkDraw {
    from {
        stroke-dashoffset: 50;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.auth-success-icon svg polyline {
    stroke-dasharray: 50;
}

.auth-success-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-success-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.auth-success-balance {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.auth-success-balance .balance-icon {
    font-size: 1.25rem;
}

.auth-success-balance .balance-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-btc-orange);
}

.auth-success-balance .balance-unit {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.auth-success-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Recovery code display */
.recovery-code-display {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: var(--bg-elevated);
    border: 1px dashed var(--color-warning);
    border-radius: var(--radius-md);
}

.recovery-code-value {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    letter-spacing: 0.1em;
    word-break: break-all;
}

.recovery-code-warning {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    text-align: left;
}

.recovery-code-warning svg {
    width: 20px;
    height: 20px;
    color: var(--color-warning);
    flex-shrink: 0;
    margin-top: 2px;
}

.recovery-code-warning p {
    font-size: var(--text-sm);
    color: var(--color-warning);
    margin: 0;
}

/* Desktop optimization */
@media (min-width: 601px) {
    .auth-modal .modal-body {
        padding: var(--space-5);
    }

    /* Desktop hint visible */
    .auth-hint {
        display: block;
    }

    /* Hide mobile actions on desktop */
    .auth-mobile-actions {
        display: none !important;
    }

    /* Larger QR on desktop */
    .qr-container canvas,
    .qr-container img {
        width: 160px;
        height: 160px;
    }
}

/* ===========================================
   MOBILE RESPONSIVE - Refined Compact Design
   =========================================== */
@media (max-width: 600px) {
    /* Modal container - full width with safe margins */
    .modal {
        top: 12px;
        left: 12px;
        right: 12px;
        transform: scale(0.96);
        max-width: none;
        width: auto;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px); /* Dynamic viewport for mobile browsers */
        margin: 0;
    }

    .modal.open {
        transform: scale(1);
    }

    /* Compact header */
    .modal-header {
        padding: 12px 16px;
    }

    .modal-title {
        font-size: 1rem;
    }

    /* Body with proper padding */
    .modal-body {
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* ===== AUTH MODAL MOBILE ===== */
    .auth-modal {
        max-width: none;
    }

    .auth-modal .modal-body {
        padding: 12px;
    }

    /* Compact new user section */
    .auth-new-user-section {
        padding: 10px 12px;
        margin-bottom: 12px;
        gap: 10px;
    }

    .new-user-badge {
        font-size: 0.8rem;
    }

    .new-user-hint {
        font-size: 0.7rem;
    }

    .auth-new-user-section .btn-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .auth-new-user-section .btn-primary svg {
        width: 12px;
        height: 12px;
    }

    /* Compact divider */
    .auth-divider {
        margin-bottom: 12px;
        font-size: 0.75rem;
    }

    /* Compact tabs */
    .auth-tabs {
        margin: 0 -12px;
    }

    .auth-tab {
        padding: 10px 8px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .auth-tab svg {
        width: 14px;
        height: 14px;
    }

    /* Tab content - minimal height */
    .auth-tab-content {
        padding: 16px 4px;
        min-height: auto; /* Override desktop min-height */
    }

    /* QR section compact */
    .auth-qr-section {
        padding: 0 8px;
    }

    .qr-container {
        margin-bottom: 12px;
    }

    .qr-container canvas,
    .qr-container img {
        width: 120px;
        height: 120px;
    }

    .auth-qr-hint {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .auth-status {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    /* Mobile wallet actions - compact */
    .auth-wallet-actions {
        gap: 8px;
        margin-bottom: 10px;
    }

    .auth-wallet-actions .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .auth-wallet-list {
        font-size: 0.7rem;
    }

    /* Recovery section compact */
    .auth-recovery-section {
        padding: 0 8px;
    }

    .auth-recovery-hint {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .recovery-input-wrapper {
        margin-bottom: 12px;
    }

    .recovery-input-wrapper input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Stack auth columns on mobile */
    .auth-columns {
        flex-direction: column;
        gap: 0;
    }

    .auth-column {
        padding: 12px 0;
    }

    .auth-column:first-child {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .auth-column:last-child {
        padding-top: 12px;
    }

    .auth-divider-vertical {
        display: none;
    }

    .auth-mobile-actions {
        display: block;
    }

    .auth-hint {
        display: none;
    }

    .wallet-list-compact {
        display: none;
    }

    .recovery-input-group {
        flex-direction: column;
    }

    .recovery-input-group .btn {
        width: 100%;
    }

    /* ===== RECOVERY SAVE MODAL MOBILE ===== */
    .recovery-save-modal {
        max-width: none;
    }

    .recovery-save-modal .modal-body {
        padding: 12px 14px;
    }

    /* Horizontal header: icon left, warning text right */
    .recovery-save-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* Small icon circle */
    .recovery-save-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
    }

    .recovery-save-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Warning text next to icon */
    .recovery-save-warning {
        padding: 8px 10px;
        font-size: 0.75rem;
        text-align: left;
        flex: 1;
    }

    /* Ultra-compact code display - fits on ONE line */
    .recovery-code-display {
        padding: 10px;
        margin-bottom: 10px;
        gap: 6px;
        border-width: 1px;
    }

    .recovery-code-display code {
        font-size: 0.55rem;
        letter-spacing: -0.5px;
        line-height: 1.3;
        word-break: break-all;
    }

    .copy-code-btn {
        padding: 6px;
        min-width: 32px;
        flex-shrink: 0;
    }

    .copy-code-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Compact download button */
    #download-recovery-code-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    #download-recovery-code-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Email backup option - tight */
    .recovery-email-option {
        margin-top: 10px;
        padding-top: 10px;
    }

    .recovery-email-option p {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .recovery-email-form {
        gap: 6px;
    }

    .recovery-email-form input {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-width: 0;
    }

    .recovery-email-form button {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .recovery-email-form button svg {
        width: 12px;
        height: 12px;
    }

    /* Compact checkbox */
    .recovery-save-checkbox {
        margin: 10px 0;
    }

    .checkbox-label {
        gap: 8px;
    }

    .checkbox-text {
        font-size: 0.8rem;
    }

    /* Compact start button */
    #start-playing-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    #start-playing-btn svg {
        width: 16px;
        height: 16px;
    }

    .recovery-save-balance {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .modal {
        top: 8px;
        left: 8px;
        right: 8px;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .modal-body {
        padding: 12px;
    }

    .auth-modal .modal-body {
        padding: 10px;
    }

    .qr-container canvas,
    .qr-container img {
        width: 100px;
        height: 100px;
    }

    .auth-tab {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .auth-column-title {
        font-size: var(--text-xs);
    }

    /* Stack email form on tiny screens */
    .recovery-email-form {
        flex-direction: column;
    }

    .recovery-email-form button {
        width: 100%;
        justify-content: center;
    }

    .recovery-code-display {
        flex-direction: column;
        text-align: center;
    }

    .recovery-code-display code {
        font-size: 0.7rem;
    }
}

/* Spinner animation for loading state */
.spinner {
    animation: spin 1s linear infinite;
}

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

/* ===== RECOVERY SAVE MODAL ===== */

.recovery-save-modal {
    max-width: 440px;
}

.recovery-save-modal .modal-body {
    text-align: center;
    padding: var(--space-6);
}

/* Header container for icon + warning */
.recovery-save-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-4);
}

.recovery-save-icon {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-4);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recovery-save-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-warning);
    stroke: var(--color-warning);
}

.recovery-save-warning {
    padding: var(--space-3) var(--space-4);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-align: center;
}

.recovery-save-warning strong {
    color: var(--color-warning);
}

/* Email backup option */
.recovery-email-option {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-default);
}

.recovery-email-option p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.recovery-email-form {
    display: flex;
    gap: var(--space-2);
}

.recovery-email-form input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.recovery-email-form input:focus {
    outline: none;
    border-color: var(--color-btc-orange);
}

.recovery-email-form input::placeholder {
    color: var(--text-muted);
}

.recovery-email-form button {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.2s ease;
}

.recovery-email-form button:hover {
    border-color: var(--color-btc-orange);
    color: var(--color-btc-orange);
}

.recovery-email-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recovery-email-form button svg {
    width: 16px;
    height: 16px;
}

.recovery-email-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-size: var(--text-sm);
}

.recovery-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border: 2px dashed var(--color-btc-orange);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.recovery-code-display code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-btc-orange);
    letter-spacing: 0.05em;
    word-break: break-all;
    flex: 1;
    text-align: left;
}

.copy-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(247, 147, 26, 0.1);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.copy-code-btn:hover {
    background: rgba(247, 147, 26, 0.2);
}

.copy-code-btn svg {
    width: 18px;
    height: 18px;
    color: var(--color-btc-orange);
    stroke: var(--color-btc-orange);
}

.copy-code-btn.copied {
    background: var(--color-success);
}

.copy-code-btn.copied svg {
    color: #fff;
    stroke: #fff;
}

.recovery-save-checkbox {
    margin: var(--space-5) 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-btc-orange);
    cursor: pointer;
}

.checkbox-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

#start-playing-btn {
    margin-top: var(--space-4);
}

#start-playing-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#start-playing-btn:not(:disabled) {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(247, 147, 26, 0);
    }
}

#start-playing-btn svg {
    width: 20px;
    height: 20px;
    margin-right: var(--space-2);
}

.recovery-save-balance {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-3);
}

.recovery-save-balance strong {
    color: var(--color-btc-orange);
}

#download-recovery-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

#download-recovery-code-btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile optimizations for auth sections */
@media (max-width: 480px) {
    .auth-section-primary {
        padding: var(--space-4);
    }

    .auth-section-icon {
        width: 48px;
        height: 48px;
    }

    .auth-section-icon svg {
        width: 24px;
        height: 24px;
    }

    .auth-section-title {
        font-size: var(--text-base);
    }
}

/* ===== EMAIL PROMPT MODAL ===== */

.email-prompt-modal {
    max-width: 420px;
}

.email-prompt-modal .modal-body {
    text-align: center;
    padding: var(--space-5);
}

.email-prompt-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-prompt-icon svg {
    width: 36px;
    height: 36px;
    color: #a78bfa;
    stroke: #a78bfa;
}

.email-prompt-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.email-prompt-form {
    margin-bottom: var(--space-4);
}

.email-prompt-form .input-field {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

.email-prompt-form .input-field:focus {
    outline: none;
    border-color: var(--color-btc-orange);
}

.email-prompt-form .input-error {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: var(--space-2);
    text-align: left;
}

#email-prompt-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

#email-prompt-submit svg {
    width: 18px;
    height: 18px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    padding: var(--space-2);
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--text-primary);
}

.email-prompt-bonus-hint {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.email-prompt-bonus-hint a {
    color: var(--color-btc-orange);
    text-decoration: none;
    font-weight: var(--font-semibold);
}

.email-prompt-bonus-hint a:hover {
    text-decoration: underline;
}

/**
 * Legal Pages Styles - Terms & Privacy
 * LightningFaucet.com Brand Styling
 */

/* Page Layout */
.legal-page {
    min-height: calc(100vh - 200px);
    padding: var(--space-8) var(--space-4);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f2e 100%);
}

/* Footer spacing handled globally now */

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.legal-header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.legal-header h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    background: linear-gradient(135deg, var(--color-btc-gold) 0%, var(--color-btc-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-updated {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Content */
.legal-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Sections */
.legal-section {
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-left: var(--space-3);
    border-left: 3px solid var(--color-btc-orange);
}

.legal-section h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal-section p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

/* Lists */
.legal-section ul {
    margin: var(--space-4) 0 var(--space-5) 0;
    padding-left: var(--space-6);
    list-style-type: disc;
}

.legal-section li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    position: relative;
}

.legal-section li::marker {
    color: var(--color-btc-orange);
}

.legal-section li strong {
    color: var(--color-btc-gold);
}

/* Highlight Section */
.legal-section-highlight {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(247, 147, 26, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-8);
}

.legal-section-highlight h2 {
    border-left: none;
    padding-left: 0;
    color: var(--color-btc-gold);
    margin-bottom: var(--space-3);
}

.legal-section-highlight ul {
    margin-bottom: 0;
}

.legal-section-highlight li {
    color: var(--text-primary);
}

/* Contact Email */
.contact-email {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--color-btc-gold);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    display: inline-block;
    margin-top: var(--space-2);
}

/* Links */
.legal-content a {
    color: var(--color-btc-gold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.legal-content a:hover {
    color: #ffed4a;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: var(--space-6) var(--space-4);
    }

    .legal-header h1 {
        font-size: var(--text-3xl);
    }

    .legal-section h2 {
        font-size: var(--text-lg);
    }

    .legal-section h3 {
        font-size: var(--text-base);
    }

    .legal-content {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: var(--text-2xl);
    }

    .legal-section {
        margin-bottom: var(--space-8);
        padding-bottom: var(--space-6);
    }

    .legal-section ul {
        padding-left: var(--space-5);
    }

    .contact-email {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
        word-break: break-all;
    }
}
