/* ═══════════════════════════════════════════════════════════════════════════
   CNexus - Premium Crypto Exchange Design System
   Modern Dark Theme with Cyan/Gold Accents
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables - Design Tokens
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Background Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #0f0f16;
    --bg-card: #12121a;
    --bg-card-hover: #16161f;
    --bg-elevated: #1a1a24;
    
    /* Accent Colors */
    --accent-primary: #00d4aa;
    --accent-primary-dim: rgba(0, 212, 170, 0.1);
    --accent-primary-glow: rgba(0, 212, 170, 0.3);
    --accent-secondary: #ffd700;
    --accent-secondary-dim: rgba(255, 215, 0, 0.1);
    
    /* Semantic Colors */
    --success: #00d68f;
    --success-dim: rgba(0, 214, 143, 0.15);
    --danger: #ff3d71;
    --danger-dim: rgba(255, 61, 113, 0.15);
    --warning: #ffaa00;
    --info: #0095ff;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #606070;
    --text-muted: #404050;
    
    /* Border & Divider */
    --border-primary: rgba(255, 255, 255, 0.06);
    --border-secondary: rgba(255, 255, 255, 0.03);
    --border-accent: rgba(0, 212, 170, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #00a080 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.2);
    --shadow-glow-gold: 0 0 40px rgba(255, 215, 0, 0.2);
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Chart Colors (for KlineCharts) */
    --chart-bg: #0d0d14;
    --chart-grid: #1a1a24;
    --chart-text: #6a6a7a;
    --chart-border: #2a2a3a;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Light Theme - Clean & Modern
   ───────────────────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    /* Background Colors - Clean whites */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f4f6f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #ffffff;
    
    /* Accent Colors - Vibrant */
    --accent-primary: #00c896;
    --accent-primary-dim: rgba(0, 200, 150, 0.08);
    --accent-primary-glow: rgba(0, 200, 150, 0.15);
    --accent-secondary: #ff9500;
    --accent-secondary-dim: rgba(255, 149, 0, 0.08);
    
    /* Semantic Colors - Vivid */
    --success: #00c853;
    --success-dim: rgba(0, 200, 83, 0.08);
    --danger: #ff4757;
    --danger-dim: rgba(255, 71, 87, 0.08);
    --warning: #ff9500;
    --info: #2196f3;
    
    /* Text Colors - High contrast */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-muted: #cbd5e1;
    
    /* Border & Divider - Subtle */
    --border-primary: rgba(15, 23, 42, 0.08);
    --border-secondary: rgba(15, 23, 42, 0.04);
    --border-accent: rgba(0, 200, 150, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00c896 0%, #00a67d 100%);
    --gradient-gold: linear-gradient(135deg, #ff9500 0%, #ff7b00 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 200, 150, 0.06) 0%, transparent 70%);
    
    /* Shadows - Soft & elegant */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 32px rgba(0, 200, 150, 0.12);
    --shadow-glow-gold: 0 0 32px rgba(255, 149, 0, 0.12);
    
    /* Chart Colors */
    --chart-bg: #ffffff;
    --chart-grid: #f1f5f9;
    --chart-text: #64748b;
    --chart-border: #e2e8f0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Theme Toggle Button
   ───────────────────────────────────────────────────────────────────────────── */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(15deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Language Toggle Button
   ───────────────────────────────────────────────────────────────────────────── */
/* ─── Language Dropdown ─── */
.lang-dropdown-wrapper {
    position: relative;
    z-index: 1100;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-toggle:hover {
    background: var(--bg-elevated);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.lang-toggle .lang-flag {
    width: 22px;
    height: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.lang-toggle .lang-flag svg {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    display: block;
}

.lang-toggle .lang-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.lang-toggle .lang-arrow {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.lang-dropdown-wrapper.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 6px;
    z-index: 1200;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: left;
}

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

.lang-dropdown-item.active {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
}

.lang-item-flag {
    width: 24px;
    height: 16px;
    display: inline-flex;
    align-items: center;
}

.lang-item-flag svg {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    display: block;
}

.lang-item-name {
    font-size: 0.9rem;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Light theme specific overrides */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

/* Light tema mobile fullscreen menü */
[data-theme="light"] .navbar.menu-open {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .navbar.menu-open .navbar-nav {
    background: var(--bg-primary);
}

[data-theme="light"] .navbar.menu-open .nav-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .navbar.menu-open .nav-link:hover,
[data-theme="light"] .navbar.menu-open .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-auth-zone {
    background: transparent;
}

[data-theme="light"] .brand-logo {
    background: var(--gradient-primary);
    color: white;
}

[data-theme="light"] .card {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--bg-card-hover);
}

[data-theme="light"] .input,
[data-theme="light"] .trade-input {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

[data-theme="light"] .input:focus,
[data-theme="light"] .trade-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

[data-theme="light"] .trading-chart {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary);
}

[data-theme="light"] #chart-container {
    background: var(--bg-secondary) !important;
}

[data-theme="light"] .chart-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

[data-theme="light"] .chart-tool-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .chart-tool-btn:hover,
[data-theme="light"] .chart-tool-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

[data-theme="light"] .wallet-item,
[data-theme="light"] .mobile-wallet-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .trade-tab {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="light"] .trade-tab.active.buy {
    background: var(--success);
    color: white;
}

[data-theme="light"] .trade-tab.active.sell {
    background: var(--danger);
    color: white;
}

[data-theme="light"] .chat-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .chat-msg.admin {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .chat-widget-input input {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

[data-theme="light"] .toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-primary);
}

/* Light theme - Sidebar backgrounds */
[data-theme="light"] .trading-sidebar-left,
[data-theme="light"] .trading-sidebar-right {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

/* Light theme - Price display */
[data-theme="light"] .price-value {
    color: var(--text-primary);
}

/* Light theme - Market pair */
[data-theme="light"] .market-pair-icon {
    background: var(--gradient-primary);
    color: white;
}

[data-theme="light"] .market-pair-name {
    color: var(--text-primary);
}

/* Light theme - Trade input */
[data-theme="light"] .trade-input-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .trade-input {
    background: transparent;
    color: var(--text-primary);
}

/* Light theme - Support box */
[data-theme="light"] .support-info-box {
    background: rgba(0, 200, 150, 0.06);
    border-color: rgba(0, 200, 150, 0.2);
}

/* Light theme - Chat FAB */
[data-theme="light"] .chat-fab {
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.3);
}

/* Light theme - Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--text-muted);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Light theme - Hero */
[data-theme="light"] .hero {
    background: var(--bg-primary);
}

[data-theme="light"] .hero-orb {
    opacity: 0.15;
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 200, 150, 0.08);
    border-color: rgba(0, 200, 150, 0.25);
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary);
}

[data-theme="light"] .hero .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .hero .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

/* Light theme - About hero */
[data-theme="light"] .about-hero {
    background: var(--bg-tertiary);
}

/* Light theme - Section bg override */
[data-theme="light"] .section[style*="bg-secondary"] {
    background: var(--bg-tertiary) !important;
}

/* Light theme - Auth page */
[data-theme="light"] .auth-card {
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-primary);
}

/* Light theme - Menu toggle */
[data-theme="light"] .menu-toggle span {
    background: var(--text-primary);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-mono {
    font-family: var(--font-mono);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) var(--space-xl);
    background: rgba(5, 5, 8, 0.95);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-text span {
    color: var(--accent-primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile menu elements - desktop'ta gizli */
.mobile-auth-zone {
    display: none;
}

.mobile-menu-icon,
.mobile-menu-label,
.mobile-menu-ribbon {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 170, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-sm);
}

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

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-success:hover {
    box-shadow: 0 4px 20px rgba(0, 214, 143, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-primary);
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(255, 61, 113, 0.4);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-glow {
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-primary);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Inputs & Forms
   ───────────────────────────────────────────────────────────────────────────── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.input::placeholder {
    color: var(--text-tertiary);
}

.input:hover {
    border-color: var(--text-tertiary);
}

.input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-dim);
}

.input-lg {
    padding: var(--space-lg);
    font-size: 1.125rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input {
    padding-left: 48px;
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Hero Background Effects */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 148, 255, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(255, 215, 0, 0.06), transparent);
    pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--info);
    top: 40%;
    right: 25%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-primary-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Features Section
   ───────────────────────────────────────────────────────────────────────────── */
.section {
    padding: var(--space-4xl) var(--space-xl);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 212, 170, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 212, 170, 0.05) 100%);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    color: var(--accent-primary);
    position: relative;
    transition: all var(--transition-base);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-primary), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(0, 212, 170, 0.3),
        0 0 60px rgba(0, 212, 170, 0.1);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.25) 0%, rgba(0, 212, 170, 0.1) 100%);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.5));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Price Display
   ───────────────────────────────────────────────────────────────────────────── */
.price-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.price-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-change {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.price-change.positive {
    color: var(--success);
    background: var(--success-dim);
}

.price-change.negative {
    color: var(--danger);
    background: var(--danger-dim);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Trading Layout
   ───────────────────────────────────────────────────────────────────────────── */
.trading-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    grid-template-rows: auto 1fr;
    gap: 1px;
    background: var(--border-primary);
    height: calc(100vh - 70px);
    margin-top: 70px;
}

.trading-sidebar-left {
    background: var(--bg-secondary);
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.trading-chart {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.trading-sidebar-right {
    background: var(--bg-secondary);
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Market Info Panel */
.market-info {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.market-pair {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.market-pair-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-primary);
}

.market-pair-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.market-pair-base {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Wallet Panel */
.wallet-panel {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.wallet-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.wallet-item-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.wallet-item-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Chart Container */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.chart-tools {
    display: flex;
    gap: var(--space-sm);
}

.chart-tool-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chart-tool-btn:hover,
.chart-tool-btn.active {
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.chart-container {
    flex: 1;
    min-height: 0;
}

/* Trading Panel */
.trading-panel {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.trade-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 4px;
}

.trade-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    background: transparent;
    border: none;
}

.trade-tab.active.buy {
    background: var(--success);
    color: var(--bg-primary);
}

.trade-tab.active.sell {
    background: var(--danger);
    color: var(--text-primary);
}

.trade-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trade-input-group {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition-fast);
}

.trade-input-group:focus-within {
    border-color: var(--accent-primary);
}

.trade-input-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
}

.trade-input {
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.trade-input::placeholder {
    color: var(--text-muted);
}

/* Chat Panel */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-primary);
    min-height: 0;
}

.chat-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-header-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chat-message {
    max-width: 85%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-bottom-right-radius: 4px;
}

.chat-message.admin {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: var(--space-md);
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: var(--space-sm);
}

.chat-input-area .input {
    flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Auth Pages
   ───────────────────────────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.1), transparent),
        var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bg-primary);
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-glow);
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-xl);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    background: transparent;
    border: none;
}

.auth-tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form .btn {
    margin-top: var(--space-md);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

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

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   About Page
   ───────────────────────────────────────────────────────────────────────────── */
.about-hero {
    padding: calc(var(--space-4xl) + 70px) var(--space-xl) var(--space-4xl);
    text-align: center;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 212, 170, 0.1), transparent),
        var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-4xl);
}

.about-section {
    margin-bottom: var(--space-3xl);
}

.about-section h3 {
    margin-bottom: var(--space-lg);
    color: var(--accent-primary);
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Admin Panel
   ───────────────────────────────────────────────────────────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 300px 1fr 340px;
    height: calc(100vh - 70px);
    margin-top: 70px;
    gap: 1px;
    background: var(--border-primary);
}

.admin-sidebar {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.admin-sidebar-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.admin-user-list {
    flex: 1;
    overflow-y: auto;
}

.admin-user-item {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-user-item:hover,
.admin-user-item.active {
    background: var(--bg-card);
}

.admin-user-item.active {
    border-left: 3px solid var(--accent-primary);
}

.admin-user-email {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.admin-user-info {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.admin-main {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-chat-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.admin-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.admin-controls {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    overflow-y: auto;
}

.admin-control-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.admin-control-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

.admin-price-display {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.admin-btn-group {
    display: flex;
    gap: var(--space-sm);
}

.admin-btn-group .btn {
    flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-3xl) var(--space-xl);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand-text span {
    color: var(--accent-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-2xl) auto 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: var(--space-md);
}

.footer-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social:hover {
    background: var(--accent-primary-dim);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Toast Notifications
   ───────────────────────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 90px;
    right: var(--space-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    animation: slideIn 0.3s ease;
}

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

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

.toast-close {
    padding: var(--space-xs);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Loading States
   ───────────────────────────────────────────────────────────────────────────── */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-elevated) 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────────────────── */

/* ── TABLET LANDSCAPE (≤1200px) ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .trading-layout {
        grid-template-columns: 1fr 320px;
    }
    
    .trading-sidebar-left {
        display: none;
    }
    
    .admin-layout {
        grid-template-columns: 260px 1fr 300px;
    }
    
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-inner .footer-column:last-child {
        display: none;
    }
}

/* ── TABLET PORTRAIT (≤992px) — Hamburger menü aktif ────────────────────── */
@media (max-width: 992px) {
    
    /* Hamburger butonu göster */
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* ─── Navbar Actions: sadece ikon butonlarını göster ─── */
    .navbar-actions {
        gap: 8px;
        order: 2;
    }
    
    /* Auth butonlarını navbar bar'dan gizle */
    .navbar-actions #auth-zone,
    .navbar-actions > .btn,
    .navbar-actions > a.btn,
    .navbar-actions > button.btn,
    .navbar-actions > span#user-email {
        display: none !important;
    }
    
    /* Theme & lang toggle küçük ikon olarak kalsın */
    .navbar-actions .theme-toggle,
    .navbar-actions .lang-dropdown-wrapper {
        display: inline-flex;
    }
    
    /* Email adresi mobilde gizle */
    #user-email {
        display: none !important;
    }
    
    /* ─── Nav linkleri: varsayılan gizli ─── */
    .navbar-nav {
        display: none;
    }
    
    /* ══════════════════════════════════════════════════════════
       FULLSCREEN MENÜ — Gradient Ribbon + Minimal Line
       ══════════════════════════════════════════════════════════ */
    
    .navbar.menu-open {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 10000;
        transition: none;
    }
    
    /* Fullscreen overlay */
    .navbar.menu-open .navbar-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        background: var(--bg-primary);
        padding: 80px 24px 40px;
        overflow-y: auto;
    }
    
    /* ─── Gradient Ribbon Nav Link ─── */
    .navbar.menu-open .nav-link {
        display: flex;
        align-items: center;
        gap: 18px;
        width: 100%;
        max-width: 380px;
        padding: 16px 20px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1.1rem;
        font-weight: 600;
        text-align: left;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.04);
        transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
        position: relative;
        overflow: hidden;
    }
    
    .navbar.menu-open .nav-link:hover,
    .navbar.menu-open .nav-link:active {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
    }
    
    .navbar.menu-open .nav-link.active {
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Desktop underline kapalı */
    .navbar.menu-open .nav-link::after {
        display: none;
    }
    
    /* ─── Menü Kapatma (X) Butonu ─── */
    .mobile-menu-close {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-secondary);
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10;
        line-height: 1;
        padding: 0;
        font-family: inherit;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
    }
    
    [data-theme="light"] .mobile-menu-close {
        border-color: rgba(0, 0, 0, 0.1);
        background: rgba(0, 0, 0, 0.04);
    }
    
    [data-theme="light"] .mobile-menu-close:hover {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.15);
    }
    
    /* İkon kutusu */
    .mobile-menu-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #050508;
        font-weight: 700;
        transition: box-shadow 0.25s ease;
    }
    
    .navbar.menu-open .nav-link:hover .mobile-menu-icon,
    .navbar.menu-open .nav-link.active .mobile-menu-icon {
        box-shadow: 0 4px 20px var(--icon-glow, rgba(0, 212, 170, 0.4));
    }
    
    /* Metin + ribbon container */
    .mobile-menu-label {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .mobile-menu-label span {
        font-size: 19px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    
    /* Gradient ribbon — hover/active'de genişler */
    .mobile-menu-ribbon {
        height: 3px;
        border-radius: 2px;
        width: 0;
        transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .navbar.menu-open .nav-link:hover .mobile-menu-ribbon,
    .navbar.menu-open .nav-link.active .mobile-menu-ribbon {
        width: 48px;
    }
    
    /* ─── Minimal Line Auth Butonları ─── */
    .mobile-auth-zone {
        display: flex;
        gap: 48px;
        justify-content: center;
        padding-top: 28px;
        margin-top: 12px;
        width: 100%;
        max-width: 380px;
        border-top: 1px solid var(--border-primary);
    }
    
    .mobile-auth-link {
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        padding: 0;
        font-family: inherit;
    }
    
    .mobile-auth-link span {
        font-size: 18px;
        font-weight: 600;
        transition: color 0.2s ease;
    }
    
    .mobile-auth-line {
        height: 2.5px;
        border-radius: 2px;
        width: 28px;
        margin: 0 auto;
        transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .mobile-auth-link:hover .mobile-auth-line {
        width: 100%;
    }
    
    /* Hamburger X animasyonu */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* ─── Scroll kilidi ─── */
    body.mobile-menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
    
    /* ── Hero ── */
    .hero {
        padding: calc(var(--space-4xl) + 30px) var(--space-lg) var(--space-2xl);
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
        margin-top: var(--space-2xl);
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    /* ── Features ── */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: var(--space-md);
    }
    
    .section {
        padding: var(--space-3xl) var(--space-lg);
    }
    
    /* ── About ── */
    .about-hero {
        padding: calc(var(--space-3xl) + 70px) var(--space-lg) var(--space-2xl);
    }
    
    .about-content {
        padding: 0 var(--space-lg) var(--space-3xl);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section p {
        font-size: 1rem;
    }
    
    /* ── Footer ── */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .footer {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    /* ── Trading Layout ── */
    .trading-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .trading-sidebar-right {
        grid-row: auto;
        max-height: 400px;
    }
    
    /* ── Admin Layout ── */
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar,
    .admin-controls {
        display: none;
    }
    
    /* ── Whitepaper ── */
    .wp-layout {
        grid-template-columns: 1fr;
    }
    
    .wp-sidebar {
        display: none;
    }
    
    /* ── Stake ── */
    .staking-grid {
        grid-template-columns: 1fr;
    }
    
    /* ── Profile ── */
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    /* ── Dashboard ── */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* ── History ── */
    .history-table {
        font-size: 0.8rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 10px 12px;
    }
    
    /* ── Toast mobilde ── */
    .toast-container {
        right: var(--space-md);
        left: var(--space-md);
    }
    
    .toast {
        min-width: auto;
    }
}

/* ── PHONE LANDSCAPE (≤768px) ────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --space-xl: 24px;
        --space-2xl: 32px;
        --space-3xl: 48px;
        --space-4xl: 64px;
    }
    
    /* ── Hero ── */
    .hero {
        padding: calc(var(--space-3xl) + 50px) var(--space-md) var(--space-2xl);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .hero-stat {
        min-width: 100px;
    }
    
    /* ── Section ── */
    .section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* ── Features ── */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    /* ── About ── */
    .about-hero {
        padding: calc(var(--space-2xl) + 70px) var(--space-md) var(--space-xl);
    }
    
    .about-hero h1 {
        font-size: 1.75rem;
    }
    
    .about-hero p {
        font-size: 1rem !important;
    }
    
    .about-content {
        padding: 0 var(--space-md) var(--space-2xl);
    }
    
    /* ── Footer ── */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    /* ── Auth (Kayıt/Giriş) ── */
    .auth-page {
        padding: var(--space-lg) var(--space-md);
        min-height: 100vh;
        align-items: flex-start;
        padding-top: calc(var(--space-2xl) + 20px);
    }
    
    .auth-card {
        padding: var(--space-xl);
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    /* ── Trading (hazırlık, Adım 3'te detay gelecek) ── */
    .trading-sidebar-right {
        max-height: none;
        padding: 16px;
    }
    
    /* ── Whitepaper ── */
    .wp-hero {
        padding: calc(var(--space-2xl) + 70px) var(--space-md) var(--space-xl);
    }
    
    .wp-content {
        padding: 0 var(--space-md) var(--space-2xl);
    }
    
    .wp-content h2 {
        font-size: 1.4rem;
    }
    
    .wp-content h3 {
        font-size: 1.15rem;
    }
}

/* ── PHONE PORTRAIT (≤480px) ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .navbar {
        padding: var(--space-sm) var(--space-md);
    }
    
    .brand-text {
        font-size: 1.15rem;
    }
    
    .brand-logo-svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* ── Hero ── */
    .hero {
        padding: calc(var(--space-2xl) + 50px) var(--space-sm) var(--space-xl);
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    /* ── Section ── */
    .section {
        padding: var(--space-xl) var(--space-sm);
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    /* ── About ── */
    .about-hero {
        padding: calc(var(--space-xl) + 60px) var(--space-sm) var(--space-lg);
    }
    
    .about-hero h1 {
        font-size: 1.4rem;
    }
    
    .about-content {
        padding: 0 var(--space-sm) var(--space-xl);
    }
    
    .about-section h3 {
        font-size: 1.1rem;
    }
    
    .about-section p {
        font-size: 0.92rem;
        line-height: 1.7;
    }
    
    /* ── Butonlar ── */
    .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    /* ── Auth ── */
    .auth-card {
        padding: var(--space-lg) var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .auth-logo {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .auth-title {
        font-size: 1.15rem;
    }
    
    .auth-subtitle {
        font-size: 0.85rem;
    }
    
    /* ── Footer ── */
    .footer {
        padding: var(--space-xl) var(--space-sm);
    }
    
    .footer-column h4 {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.88rem;
    }
    
    .footer-bottom {
        font-size: 0.78rem;
    }
    
    /* ── Toast ── */
    .toast-container {
        top: 70px;
        right: var(--space-sm);
        left: var(--space-sm);
    }
    
    .toast {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.85rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Utility Classes
   ───────────────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-auto { margin-top: auto; }
.mb-lg { margin-bottom: var(--space-lg); }

/* ─────────────────────────────────────────────────────────────────────────────
   Order Type Selector
   ───────────────────────────────────────────────────────────────────────────── */
.order-type-selector {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-full);
}

.order-type-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.order-type-btn.active {
    background: var(--accent-primary);
    color: #050508;
}

[data-theme="light"] .order-type-selector {
    background: var(--bg-tertiary);
}

[data-theme="light"] .order-type-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Professional Animations & Micro-interactions
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   Page Load Animation (Removed - was causing jank on navigation)
   ───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   Button Click Effect (Active State)
   ───────────────────────────────────────────────────────────────────────────── */
.btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.btn-primary:active {
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}

/* Button Shine Effect on Hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

/* ─────────────────────────────────────────────────────────────────────────────
   Card Hover Effect (Subtle - no glow)
   ───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   Enhanced Input Focus Animation
   ───────────────────────────────────────────────────────────────────────────── */
.input {
    transition: all var(--transition-base), box-shadow 0.3s ease;
}

.input:focus {
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 3px var(--accent-primary-dim),
        0 4px 20px rgba(0, 212, 170, 0.1);
    transform: translateY(-1px);
}

/* Input Label Animation */
.input-group {
    position: relative;
}

.input-label {
    transition: color var(--transition-fast);
}

.input:focus ~ .input-label,
.input-group:focus-within .input-label {
    color: var(--accent-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Link Underline Animation
   ───────────────────────────────────────────────────────────────────────────── */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   Navbar Brand Hover Effect
   ───────────────────────────────────────────────────────────────────────────── */
.navbar-brand {
    transition: transform var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-logo {
    transition: all var(--transition-base);
}

.navbar-brand:hover .brand-logo {
    box-shadow: 
        var(--shadow-glow),
        0 0 20px rgba(0, 212, 170, 0.4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Stats Counter Animation
   ───────────────────────────────────────────────────────────────────────────── */
.hero-stat-value {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat {
    transition: transform var(--transition-base);
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.hero-stat:hover .hero-stat-value {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Feature Card Icon Animation
   ───────────────────────────────────────────────────────────────────────────── */
.feature-icon {
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Toast Enter/Exit Animation (Enhanced)
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.toast {
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Social Icons Hover Effect
   ───────────────────────────────────────────────────────────────────────────── */
.footer-social {
    transition: all var(--transition-base);
}

.footer-social:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Auth Card Animation
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes authCardEntry {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card {
    animation: authCardEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Auth Tab Switch Animation */
.auth-tab {
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

.auth-tab.active::before {
    width: 80%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Scroll Reveal Animation (for elements with .reveal class)
   ───────────────────────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────────────────────
   Loading Shimmer Effect
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-elevated) 25%,
        var(--bg-card) 50%,
        var(--bg-elevated) 75%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Pulse Animation for Status Indicators
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 170, 0);
    }
}

.status-online {
    animation: statusPulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Smooth Number Transition (for price displays)
   ───────────────────────────────────────────────────────────────────────────── */
.price-value,
.balance-value {
    transition: color 0.3s ease, transform 0.2s ease;
}

.price-up {
    color: var(--success) !important;
    transform: scale(1.02);
}

.price-down {
    color: var(--danger) !important;
    transform: scale(0.98);
}
