/* Lightning Faucet CSS Bundle - Built Wed Mar 25 01:54:51 PM PDT 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 */

    /* ===== CASINO BACKWARD-COMPATIBILITY ALIASES ===== */
    /* These map legacy casino variable names to the design system */
    --primary: var(--color-btc-orange);
    --primary-dark: var(--color-btc-orange-dark);
    --primary-light: var(--color-btc-orange-light);
    --secondary: #4a90d9;
    --bg-dark: var(--bg-primary);
    --success: var(--color-success);
    --danger: var(--color-error);
    --warning: var(--color-warning);
    --border: var(--border-default);
    --glow: rgba(247, 147, 26, 0.4);
}

/* ===========================================
   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%;
    overflow-x: hidden;
}

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;
    overflow-x: hidden;
    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);
    text-wrap: balance;
}

/* Prevent orphan words on short UI text */
[class*="subtitle"],
[class*="-desc"],
[class*="-hint"],
[class*="-tagline"],
[class*="-caption"],
[class*="-warning"],
[class*="-label"],
[class*="-note"] {
    text-wrap: balance;
}

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
   =========================================== */

/* Accessibility skip link - hidden until focused */
.skip-nav {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: #f7931a;
    color: #000;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}

.skip-nav:focus {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

.site-header {
    background: linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
    border-bottom: 1px solid rgba(247, 147, 26, 0.08);
    box-shadow: 0 1px 0 rgba(247, 147, 26, 0.04), 0 4px 24px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

/* Section-specific header border accent */
.site-header[data-area="earn"] {
    border-bottom-color: rgba(16, 185, 129, 0.08);
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.04), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.site-header[data-area="build"] {
    border-bottom-color: rgba(153, 69, 255, 0.08);
    box-shadow: 0 1px 0 rgba(153, 69, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

/* 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);
}

/* ===== 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);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin: 0 auto;
}

/* 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;
}

/* Section-specific tabs container glow */
.site-header[data-area="earn"] .primary-tabs::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent 40%, transparent 60%, rgba(16, 185, 129, 0.1));
}

.site-header[data-area="build"] .primary-tabs::before {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.1), transparent 40%, transparent 60%, rgba(153, 69, 255, 0.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);
}

/* Section-specific active tab colors */
.site-header[data-area="play"] .primary-tab.active {
    background: linear-gradient(135deg, #f7931a 0%, #ffc107 100%);
    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);
}

.site-header[data-area="earn"] .primary-tab.active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.site-header[data-area="build"] .primary-tab.active {
    background: linear-gradient(135deg, #9945ff 0%, #b77dff 100%);
    box-shadow: 0 0 16px rgba(153, 69, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

/* Context-aware CTA button (Free Sats / Get Started) — tinted style */
.header-cta {
    display: inline-flex;
    align-items: center;
    background: rgba(247, 147, 26, 0.15);
    color: #f7931a;
    border: 1px solid rgba(247, 147, 26, 0.3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.header-cta:hover {
    background: rgba(247, 147, 26, 0.25);
    border-color: rgba(247, 147, 26, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.15);
}

.header-cta:active {
    transform: scale(0.97);
}

/* Section-specific CTA button colors */
.site-header[data-area="earn"] .header-cta {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.site-header[data-area="earn"] .header-cta:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.site-header[data-area="build"] .header-cta {
    background: rgba(153, 69, 255, 0.15);
    color: #9945ff;
    border-color: rgba(153, 69, 255, 0.3);
}

.site-header[data-area="build"] .header-cta:hover {
    background: rgba(153, 69, 255, 0.25);
    border-color: rgba(153, 69, 255, 0.5);
    box-shadow: 0 4px 12px rgba(153, 69, 255, 0.15);
}

/* ===== Section-specific Logo + Login colors ===== */

/* Earn: green logo + login */
.site-header[data-area="earn"] .lightning-icon {
    color: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}
.site-header[data-area="earn"] .lightning-text {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.site-header[data-area="earn"] .header-login-btn {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.site-header[data-area="earn"] .header-login-btn::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.12), transparent);
}
.site-header[data-area="earn"] .header-login-btn:hover {
    background: rgba(16, 185, 129, 0.13);
    border-color: rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.12), inset 0 0 12px rgba(16, 185, 129, 0.04);
}
.site-header[data-area="earn"] .header-login-btn svg {
    color: #10b981;
}
.site-header[data-area="earn"] .header-login-btn:hover svg {
    color: #6ee7b7;
}

/* Build: purple logo + login */
.site-header[data-area="build"] .lightning-icon {
    color: #9945ff;
    filter: drop-shadow(0 0 8px rgba(153, 69, 255, 0.5));
}
.site-header[data-area="build"] .lightning-text {
    background: linear-gradient(135deg, #9945ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.site-header[data-area="build"] .header-login-btn {
    background: rgba(153, 69, 255, 0.07);
    border-color: rgba(153, 69, 255, 0.2);
    color: #c084fc;
}
.site-header[data-area="build"] .header-login-btn::before {
    background: linear-gradient(90deg, transparent, rgba(153, 69, 255, 0.12), transparent);
}
.site-header[data-area="build"] .header-login-btn:hover {
    background: rgba(153, 69, 255, 0.13);
    border-color: rgba(153, 69, 255, 0.45);
    color: #d8b4fe;
    box-shadow: 0 0 24px rgba(153, 69, 255, 0.12), inset 0 0 12px rgba(153, 69, 255, 0.04);
}
.site-header[data-area="build"] .header-login-btn svg {
    color: #9945ff;
}
.site-header[data-area="build"] .header-login-btn:hover svg {
    color: #d8b4fe;
}

/* 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: 0.5rem 1.125rem;
    background: rgba(247, 147, 26, 0.07);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-btc-orange-light);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.015em;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.header-login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.12), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.header-login-btn:hover::before {
    left: 100%;
}

.header-login-btn:hover {
    background: rgba(247, 147, 26, 0.13);
    border-color: rgba(247, 147, 26, 0.45);
    color: var(--color-btc-gold);
    box-shadow: 0 0 24px rgba(247, 147, 26, 0.12), inset 0 0 12px rgba(247, 147, 26, 0.04);
}

.header-login-btn:active {
    transform: scale(0.97);
}

.header-login-btn svg {
    width: 16px;
    height: 16px;
    color: var(--color-btc-orange);
    transition: color 0.25s ease;
}

.header-login-btn:hover svg {
    color: var(--color-btc-gold);
}

/* ===== 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 1rem 0.375rem 0.75rem;
    background: rgba(247, 147, 26, 0.06);
    border: 1px solid rgba(247, 147, 26, 0.15);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.header-balance-link:hover {
    background: rgba(247, 147, 26, 0.12);
    border-color: rgba(247, 147, 26, 0.3);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.08);
}

.header-balance-link .balance-icon {
    font-size: 1rem;
    display: inline-block;
    animation: balance-pulse 3s ease-in-out infinite;
}

.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);
    letter-spacing: -0.02em;
}

.header-balance-link .balance-unit {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-medium);
    letter-spacing: 0.03em;
    text-transform: lowercase;
}

/* Bonus split indicator - subtle always-visible breakdown */
.balance-split {
    display: none;
    font-size: 0.625rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin-top: -1px;
}

.balance-split.visible {
    display: block;
}

.balance-split .split-real {
    color: rgba(255, 255, 255, 0.5);
}

.balance-split .split-bonus {
    color: rgba(247, 147, 26, 0.45);
}

.header-balance-link.has-bonus-split {
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 0.25rem;
}

.header-balance-link.has-bonus-split .balance-split {
    flex-basis: 100%;
    text-align: center;
}

/* Bonus indicator dot - subtle hint that balance has bonus component */
.balance-bonus-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f7931a;
    box-shadow: 0 0 4px rgba(247, 147, 26, 0.5);
    pointer-events: none;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* Balance tooltip - hover breakdown of withdrawable + bonus */
.balance-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated, #21262d);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    min-width: 200px;
    z-index: 9000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.balance-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: var(--bg-elevated, #21262d);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
}

.header-balance-link:hover .balance-tooltip,
.header-balance-link.tooltip-active .balance-tooltip {
    display: block;
}

.tooltip-row {
    font-size: 0.8rem;
    color: var(--text-primary, #f0f6fc);
    padding: 0.125rem 0;
    white-space: nowrap;
}

.tooltip-row + .tooltip-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.25rem;
    padding-top: 0.375rem;
}


.tooltip-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.tooltip-expiry {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.tooltip-expiry-warn {
    color: #f59e0b;
}

.tooltip-expiry-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
    line-height: 1;
}

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

/* User menu trigger button - refined pill shape */
.user-menu-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 3px 10px 3px 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    height: 36px;
}

.user-menu-btn:hover {
    border-color: rgba(247, 147, 26, 0.4);
    background: rgba(247, 147, 26, 0.06);
    box-shadow: 0 0 16px rgba(247, 147, 26, 0.06);
}

.user-menu-btn.open {
    border-color: rgba(247, 147, 26, 0.5);
    background: rgba(247, 147, 26, 0.08);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.08);
}

/* Avatar - glowing orange gradient with pulse ring */
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7931a 0%, #ffc107 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 10px rgba(247, 147, 26, 0.4);
    flex-shrink: 0;
    position: relative;
    animation: avatar-glow 3s ease-in-out infinite;
}

/* Chevron icon */
.dropdown-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.user-menu-btn:hover .dropdown-chevron {
    opacity: 0.9;
}

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

/* Dropdown menu - frosted glass panel */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 224px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(247, 147, 26, 0.1);
    border-radius: 16px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 48px rgba(247, 147, 26, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    overflow: hidden;
}

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

/* Menu header with balance - warm gradient */
.menu-header {
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(247, 147, 26, 0.09) 0%, rgba(247, 147, 26, 0.02) 100%);
    border-bottom: 1px solid rgba(247, 147, 26, 0.08);
    position: relative;
}

/* Faint noise texture overlay */
.menu-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: inherit;
}

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

.menu-balance-label {
    display: block;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    font-weight: 600;
}

.menu-balance-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f7931a;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(247, 147, 26, 0.25);
}

/* Action buttons (deposit/withdraw) - compact side-by-side */
.menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
}

.menu-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.menu-action-btn svg {
    transition: transform 0.2s ease;
}

.menu-action-btn:hover svg {
    transform: translateY(-1px);
}

/* Deposit - green gradient */
.menu-action-btn.deposit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.2);
}

.menu-action-btn.deposit:hover {
    background: linear-gradient(135deg, #2dd968 0%, #1eb854 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.menu-action-btn.deposit:active {
    transform: scale(0.97);
}

/* Withdraw - transparent with border */
.menu-action-btn.withdraw {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-action-btn.withdraw:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-action-btn.withdraw:active {
    transform: scale(0.97);
}

/* Menu divider - subtle gradient line */
.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(247, 147, 26, 0.12) 50%, transparent 100%);
    margin: 0;
}

/* Menu navigation items (Profile, Logout) */
.menu-nav {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
}

.menu-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.menu-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.menu-nav-item:active {
    background: rgba(255, 255, 255, 0.1);
}

.menu-nav-item.logout {
    color: rgba(239, 68, 68, 0.85);
}

.menu-nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}

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

.menu-nav-item:hover svg {
    opacity: 1;
}

/* Legacy menu-item support */
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

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


/* ===== HEADER ANIMATIONS ===== */

/* Balance icon soft pulse */
@keyframes balance-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* Avatar ambient glow */
@keyframes avatar-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(247, 147, 26, 0.4); }
    50% { box-shadow: 0 0 16px rgba(247, 147, 26, 0.55), 0 0 4px rgba(255, 215, 0, 0.2); }
}

/* 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 {
        order: 1;
    }

    .header-cta {
        order: 2;
        margin-left: auto;
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }

    .header-auth-container {
        margin-left: 0;
        gap: var(--space-2);
        order: 3;
    }

    /* Primary tabs - full-width second row */
    .primary-tabs {
        position: static;
        transform: none;
        margin: 0;
        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;
    }

    /* Balance link on mobile - compact */
    .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 - icon only */
    .header-login-btn span {
        display: none;
    }

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

    /* Dropdown: fixed position so it's visible when scrolled */
    .user-menu-dropdown {
        position: fixed;
        top: auto;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }
}

@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);
    }

    /* Narrow screens: tighter padding on fixed dropdown */
    .user-menu-dropdown {
        left: 8px;
        right: 8px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .header-login-btn::before,
    .header-balance-link .balance-icon,
    .user-avatar {
        animation: none !important;
        transition: none !important;
    }
    .user-menu-dropdown {
        transition: opacity 0.15s ease !important;
        transform: none !important;
    }
    .user-menu-dropdown.open {
        transform: none !important;
    }
}

/* Balance increase glow animation */
.header-balance-link.balance-glow {
    animation: balanceGlow 1.5s ease-out;
}

.header-balance-link.balance-glow .balance-value {
    color: #4ade80;
    transition: color 0.3s ease;
}

@keyframes balanceGlow {
    0% {
        background: rgba(74, 222, 128, 0.25);
        border-color: rgba(74, 222, 128, 0.5);
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.3), 0 0 40px rgba(74, 222, 128, 0.1);
    }
    40% {
        background: rgba(74, 222, 128, 0.12);
        border-color: rgba(74, 222, 128, 0.3);
        box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
    }
    100% {
        background: rgba(247, 147, 26, 0.06);
        border-color: rgba(247, 147, 26, 0.15);
        box-shadow: none;
    }
}

/* ===========================================
   BOUNCE ALERT BANNER
   Shown when user's email has hard-bounced
   =========================================== */

.bounce-alert {
    background: rgba(255, 193, 7, 0.12);
    color: #f0c040;
    border: 1px solid rgba(255, 193, 7, 0.25);
    padding: 10px 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    gap: 12px;
}

.bounce-alert a {
    color: #f7931a;
    text-decoration: underline;
}

.bounce-alert-dismiss {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #f0c040;
    padding: 0 5px;
    flex-shrink: 0;
    line-height: 1;
}

/* === 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 !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    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;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ticker-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.ticker-collapse-btn:focus {
    outline: none;
    background: transparent !important;
}

.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.04);
    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.15) 50%,
        transparent 100%);
}

/* Section-specific top highlight */
.subnav[data-area="earn"]::before {
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.15) 50%, transparent 100%);
}
.subnav[data-area="build"]::before {
    background: linear-gradient(90deg, transparent 0%, rgba(153, 69, 255, 0.15) 50%, transparent 100%);
}

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

.subnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 6px 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: 8px 14px;
    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);
    font-weight: var(--font-semibold);
}

/* Section-specific active link colors */
.subnav[data-area="play"] .subnav-links a.active { color: #f7931a; }
.subnav[data-area="earn"] .subnav-links a.active { color: #10b981; }
.subnav[data-area="build"] .subnav-links a.active { color: #9945ff; }

/* Highlighted promo item - looks like a normal item, colored only when active */
.subnav-links a.subnav-highlight {
    font-weight: var(--font-semibold);
}

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



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

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

    /* Right-edge fade to hint at scrollable content */
    .subnav-container::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 32px;
        background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.95));
        pointer-events: none;
        z-index: 1;
    }

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

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

@media (max-width: 380px) {
    .subnav-links a,
    .subnav-links span {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
}

/* 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
   Electric terminal aesthetic with Lightning energy
   Note: IBM Plex Mono & Space Grotesk fonts loaded via site-head.php
   =========================================== */

.site-footer {
    position: relative;
    background: linear-gradient(180deg, #0d0d1a 0%, #080812 50%, #050508 100%);
    color: #888;
    margin-top: 0;
    border-top: 1px solid rgba(247, 147, 26, 0.15);
    overflow: hidden;
}

/* Animated electric grid background */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(247, 147, 26, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(247, 147, 26, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    pointer-events: none;
}

/* Subtle top glow */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.6), transparent);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.3);
}

.footer-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 32px 36px;
}

/* =========== MAIN GRID =========== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

/* Lightning bolt accent between sections */
.footer-grid::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 33%;
    width: 34%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 69, 255, 0.4), transparent);
}

/* =========== BRAND SECTION =========== */
.footer-brand {
    max-width: 300px;
}

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

.footer-brand .logo-icon {
    position: relative;
    font-size: 1.5rem;
    color: #f7931a;
    filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.4));
}

/* Subtle pulse animation on logo */
@keyframes lightning-pulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.4));
    }
    50% {
        opacity: 0.85;
        filter: drop-shadow(0 0 12px rgba(247, 147, 26, 0.6));
    }
}

.footer-brand .logo-icon svg {
    animation: lightning-pulse 3s ease-in-out infinite;
}

.footer-brand .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.825rem;
    line-height: 1.7;
    color: #999;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #999;
    background: rgba(247, 147, 26, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(247, 147, 26, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover {
    background: rgba(247, 147, 26, 0.1);
    border-color: rgba(247, 147, 26, 0.3);
    color: #f7931a;
    transform: translateY(-1px);
}

.badge svg {
    opacity: 0.7;
}

/* =========== LINKS SECTION =========== */
.footer-links {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.links-group h4 {
    font-family: 'IBM Plex Mono', monospace;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
    position: relative;
    padding-left: 12px;
}

/* Accent line before headers */
.links-group h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, #f7931a, #9945ff);
    border-radius: 2px;
}

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

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

.links-group a {
    font-family: 'IBM Plex Mono', monospace;
    color: #777;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.links-group a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #f7931a, #9945ff);
    transition: width 0.3s ease;
}

.links-group a:hover {
    color: #f7931a;
    transform: translateX(2px);
}

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

/* =========== NEWSLETTER SECTION =========== */
.footer-newsletter {
    background: rgba(247, 147, 26, 0.03);
    border: 1px solid rgba(247, 147, 26, 0.15);
    border-radius: 12px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    align-self: start;
}

/* Subtle gradient overlay */
.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-newsletter h4 {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.footer-newsletter > p {
    position: relative;
    z-index: 1;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-newsletter strong {
    color: #f7931a;
    font-weight: 600;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #f7931a;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1),
                0 0 20px rgba(247, 147, 26, 0.15);
}

.newsletter-form button {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f7931a 0%, #ff9f2e 100%);
    color: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #ff9f2e 0%, #ffb347 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.newsletter-form button:hover::before {
    left: 100%;
}

.newsletter-form button:active {
    transform: translateY(0);
}

.newsletter-form button:disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.5;
}

.newsletter-form button .btn-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #0a0a0a;
    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-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    margin-top: 10px;
    min-height: 1em;
}

.form-message.success {
    color: #22c55e;
}

.form-message.error {
    color: #ef4444;
}

/* =========== FOOTER BOTTOM =========== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #999;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #f7931a;
}

/* =========== SOCIAL LINKS =========== */
.footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(247, 147, 26, 0.05);
    border: 1px solid rgba(247, 147, 26, 0.15);
    color: #888;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(247, 147, 26, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    background: rgba(247, 147, 26, 0.12);
    border-color: rgba(247, 147, 26, 0.4);
    color: #f7931a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.2);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social svg {
    display: block;
    position: relative;
    z-index: 1;
}

/* =========== LEGAL LINKS =========== */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-email {
    transition: color 0.2s ease;
    position: relative;
}

.footer-email:hover {
    color: #9945ff;
}

/* =========== POWERED BY =========== */
.footer-powered {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(247, 147, 26, 0.05);
    border: 1px solid rgba(247, 147, 26, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-powered:hover {
    background: rgba(247, 147, 26, 0.08);
    border-color: rgba(247, 147, 26, 0.2);
}

.footer-powered .btc {
    color: #f7931a;
    font-weight: 700;
    font-size: 0.85rem;
    filter: drop-shadow(0 0 6px rgba(247, 147, 26, 0.3));
}

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

/* =========== RESPONSIVE =========== */
@media (max-width: 900px) {
    .footer-wrapper {
        padding: 50px 24px 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-wrapper {
        padding: 40px 20px 28px;
    }

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

    .footer-brand {
        max-width: none;
        margin: 0 auto;
    }

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

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

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

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

    .links-group h4 {
        padding-left: 0;
    }

    .links-group h4::before {
        display: none;
    }

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

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

    .footer-social {
        order: 1;
    }

    .footer-bottom > p {
        order: 0;
    }

    .footer-legal {
        order: 2;
    }

    .footer-email {
        order: 3;
    }

    .footer-powered {
        order: 4;
    }
}

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

    .links-group {
        text-align: center;
        min-width: auto;
    }

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

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

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* === 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: rgba(255, 255, 255, 0.92);
    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);
}

/* Deposit button - Green gradient */
.btn-deposit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.btn-deposit:hover {
    background: linear-gradient(135deg, #2dd968 0%, #1eb854 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* Create Account button - Green gradient */
.btn-create-account {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
    max-width: none !important;
    margin: 0 !important;
    display: inline-flex !important;
}

.btn-create-account:hover {
    background: linear-gradient(135deg, #2dd968 0%, #1eb854 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* Withdraw button - Transparent with border */
.btn-withdraw {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    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(255, 255, 255, 0.3);
    border-top-color: #fff;
}

@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 */
.platform-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: rgba(255, 255, 255, 0.92);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.platform-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;
    }

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

    .platform-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;
    }

    .user-dropdown-menu {
        max-width: calc(100vw - 32px);
        right: -8px;
    }

    .user-dropdown-trigger {
        min-height: 44px;
    }
}

/* === 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;
    display: flex;
    flex-direction: column;
    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;
    flex: 1 1 auto;
    min-height: 0;
}

/* 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;
    gap: 8px;
    padding: 0 var(--space-4);
    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: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.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-2);
    text-wrap: balance;
}

.auth-qr-warning {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    text-wrap: balance;
}

/* 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);
    text-wrap: balance;
}

/* Recovery code login link (inside wallet tab) */
.auth-recovery-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-3);
    text-align: center;
    text-wrap: balance;
}

.auth-recovery-link a {
    color: var(--color-btc-orange, #f7931a);
    text-decoration: none;
    font-weight: var(--font-medium);
}

.auth-recovery-link a:hover {
    text-decoration: underline;
}

/* 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 {
    border-color: var(--color-btc-orange);
}
.recovery-input-wrapper input:focus:not(:focus-visible) {
    outline: none;
}

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

/* Forgot Recovery Code */
.forgot-code-section {
    margin-top: var(--space-4);
    text-align: center;
}

.forgot-code-link {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.forgot-code-link:hover {
    color: var(--color-btc-orange);
}

.forgot-code-form {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}

.forgot-code-hint {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.forgot-code-input-row {
    display: flex;
    gap: var(--space-2);
}

.forgot-code-input-row 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-size: var(--text-sm);
}

.forgot-code-input-row input:focus {
    border-color: var(--color-btc-orange);
}
.forgot-code-input-row input:focus:not(:focus-visible) {
    outline: none;
}

.forgot-code-input-row input::placeholder {
    color: var(--text-muted);
}

.forgot-code-input-row .btn {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-3);
}

.forgot-code-status {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    min-height: 1.2em;
}

/* New User Section - Subtle and compact */
.auth-new-user-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    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);
}

.forgot-login-link {
    width: 100%;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-decoration: none;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease;
}

.forgot-login-link:hover {
    color: var(--color-btc-orange);
}

.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 {
    border-color: var(--color-btc-orange);
}
.recovery-input-group input:focus:not(:focus-visible) {
    outline: none;
}

.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: 10px 12px;
    }

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

    .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;
    }

    .forgot-login-link {
        font-size: 0.68rem;
        padding-top: 4px;
    }

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

    /* 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: 12px 4px 8px;
        min-height: auto; /* Override desktop min-height */
    }

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

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

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

    .auth-qr-hint {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .auth-qr-warning {
        font-size: 0.66rem;
        margin-bottom: 6px;
    }

    .auth-status {
        padding: 5px 10px;
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

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

    .auth-wallet-actions .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .auth-wallet-list {
        font-size: 0.68rem;
        margin-top: 6px;
    }

    .auth-recovery-link {
        font-size: 0.72rem;
        margin-top: 6px;
    }

    /* 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 {
    border-color: var(--color-btc-orange);
}
.recovery-email-form input:focus:not(:focus-visible) {
    outline: none;
}

.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);
}

.recovery-back-link {
    text-align: center;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
}

.recovery-back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.recovery-back-link a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

#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 {
    border-color: var(--color-btc-orange);
}
.email-prompt-form .input-field:focus:not(:focus-visible) {
    outline: none;
}

.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;
    }
}
