/**
 * Modern Fintech UI Styles (2024-2025)
 * Premium, Depth, Soft Glass, Material Design
 * Inspired by: Binance New UI, Coinbase Advanced, Stripe Dashboard, Vercel UI
 */

/* ============================================
   BASE & THEME
   ============================================ */

/* ============================================
   DARK THEME (Default)
   ============================================ */
:root,
:root.theme-dark {
    /* Colors - Very Dark Premium Fintech 2025 */
    --bg-primary: #050508;
    --bg-secondary: #0A0A0D;
    --bg-tertiary: rgba(10, 10, 13, 0.85);
    --bg-elevated: rgba(10, 10, 13, 0.95);

    --border-subtle: rgba(45, 45, 50, 0.5);
    --border-medium: rgba(229, 229, 229, 0.35);
    --border-strong: rgba(229, 229, 229, 0.65);
    --border-hover: rgba(229, 229, 229, 0.7);

    --text-primary: #E5E5E5;
    --text-secondary: #999DB5;
    --text-tertiary: #666666;
    --text-value: #FFFFFF;
    --text-positive: #2ECC71;
    --text-negative: #FF4D4F;
    --text-neutral: #EDEDED;

    /* Accent Colors */
    --accent-orange: #E5E5E5;
    --accent-cyan: #E5E5E5;
    --accent-purple: #E5E5E5;
    --accent-primary: #2ECC71;
    --accent-hover: #34D97A;
    --accent-secondary: #E5E5E5;
    --accent-secondary-hover: #FFFFFF;

    --success: #2ECC71;
    --danger: #FF4D4F;
    --warning: #E5E5E5;

    /* Shadows - Enhanced Depth & Layering with Subtle Color Tints */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 1px rgba(229, 229, 229, 0.03);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 2px rgba(229, 229, 229, 0.05);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 4px rgba(229, 229, 229, 0.08);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.85), 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 6px rgba(229, 229, 229, 0.1);
    --shadow-glow: 0 0 24px rgba(229, 229, 229, 0.12), 0 0 48px rgba(229, 229, 229, 0.06);
    --shadow-glow-success: 0 0 20px rgba(46, 204, 113, 0.15), 0 0 40px rgba(46, 204, 113, 0.08);
    --shadow-glow-danger: 0 0 20px rgba(255, 77, 79, 0.15), 0 0 40px rgba(255, 77, 79, 0.08);
    --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 1px rgba(255, 255, 255, 0.02);
    --shadow-inner-light: inset 0 1px 3px rgba(255, 255, 255, 0.05);

    /* Glass Effect - Enhanced Liquid Glass */
    --glass-bg: rgba(10, 10, 13, 0.88);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(18px);
    --glass-blur-strong: blur(28px);

    /* Gradients - Very Dark with Subtle Depth */
    --gradient-primary: linear-gradient(135deg, #050508 0%, #0A0A0D 50%, #08080B 100%);
    --gradient-accent: linear-gradient(135deg, rgba(229, 229, 229, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(10, 10, 13, 0.4) 0%, #050508 50%, #0A0A0D 100%);
    --gradient-chart: linear-gradient(180deg, #E5E5E5 0%, #FFFFFF 100%);
    --gradient-card-highlight: linear-gradient(135deg, rgba(229, 229, 229, 0.12) 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
}

/* ============================================
   LIGHT THEME (Binance Style)
   ============================================ */
:root.theme-light {
    /* Backgrounds - Soft, Warm, Premium */
    --bg-primary: #F7F8FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* Borders - Subtle, Not Harsh */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.18);
    --border-hover: rgba(0, 0, 0, 0.24);

    /* Text - Dark but Not Pure Black */
    --text-primary: #1E2329;
    --text-secondary: #707A8A;
    --text-tertiary: #B7BDC6;
    --text-value: #0B0E11;
    --text-positive: #0ECB81;
    --text-negative: #F6465D;
    --text-neutral: #474D57;

    /* Accent Colors - Binance Yellow */
    --accent-orange: #F0B90B;
    --accent-cyan: #1E2329;
    --accent-purple: #1E2329;
    --accent-primary: #F0B90B;
    --accent-hover: #F8D12F;
    --accent-secondary: #1E2329;
    --accent-secondary-hover: #0B0E11;

    --success: #0ECB81;
    --danger: #F6465D;
    --warning: #F0B90B;

    /* Shadows - Soft, Subtle, Premium */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 16px rgba(240, 185, 11, 0.2);
    --shadow-glow-success: 0 0 16px rgba(14, 203, 129, 0.2);
    --shadow-glow-danger: 0 0 16px rgba(246, 70, 93, 0.2);
    --shadow-inner: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-inner-light: inset 0 1px 2px rgba(255, 255, 255, 0.8);

    /* Glass Effect - Light Theme */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(30px);

    /* Gradients - Light, Airy, Premium */
    --gradient-primary: linear-gradient(135deg, #F7F8FA 0%, #FFFFFF 50%, #F5F6F7 100%);
    --gradient-accent: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(240, 185, 11, 0.04) 50%, transparent 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.6) 0%, #F7F8FA 50%, #F5F6F7 100%);
    --gradient-chart: linear-gradient(180deg, #0ECB81 0%, #F6465D 100%);
    --gradient-card-highlight: linear-gradient(135deg, rgba(240, 185, 11, 0.1) 0%, rgba(240, 185, 11, 0.05) 50%, transparent 100%);
}

body.fintech-modern {
    background: var(--bg-primary);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ============================================
   LINKS - UNIFIED SYSTEM
   ============================================ */

/* Base link reset - override browser defaults and Vuetify */
.v-application a,
a:not([class]),
a:not([style]) {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-application a:hover,
a:not([class]):hover,
a:not([style]):hover {
    color: var(--text-value) !important;
}

.v-application a:visited,
a:not([class]):visited,
a:not([style]):visited {
    color: var(--text-primary) !important;
}

/* Primary Navigation Links */
.fintech-link-primary {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fintech-link-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-value);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fintech-link-primary:hover::after {
    width: 100%;
}

/* Secondary Links */
.fintech-link-secondary {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Action Links (in tables, cards) */
.fintech-link-action {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-link-action:hover {
    color: var(--text-value);
    text-shadow: 0 0 8px rgba(229, 229, 229, 0.3);
}

/* Muted Links */
.fintech-link-muted {
    color: var(--text-tertiary);
    font-size: 11px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-link-muted:hover {
    color: var(--text-secondary);
}

/* ============================================
   CARDS - LAYERED & DEPTH
   ============================================ */

.fintech-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md), var(--shadow-inner), var(--shadow-inner-light);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fintech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 229, 229, 0.3), transparent);
    opacity: 0.9;
    z-index: 1;
}

.fintech-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-card-highlight);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.fintech-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow), var(--shadow-inner), var(--shadow-inner-light);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    background: rgba(15, 15, 20, 0.94);
}

.fintech-card:hover::after {
    opacity: 0.6;
}

.fintech-card-elevated {
    background: var(--bg-elevated);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    box-shadow: var(--shadow-lg), var(--shadow-inner), var(--shadow-inner-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fintech-card-elevated:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow), var(--shadow-inner), var(--shadow-inner-light);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(12, 12, 18, 0.96);
}

/* Card Variants */
.fintech-card-sm {
    padding: 16px;
    border-radius: 10px;
}

.fintech-card-lg {
    padding: 28px;
    border-radius: 16px;
}

/* ============================================
   BUTTONS - MATERIAL DESIGN
   ============================================ */

.fintech-btn {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-sm), var(--shadow-inner);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fintech-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-btn:hover::before {
    width: 300px;
    height: 300px;
}

.fintech-btn:hover {
    background: rgba(18, 18, 24, 0.96);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md), 0 0 16px rgba(229, 229, 229, 0.12), var(--shadow-inner-light);
    transform: translateY(-2px);
}

.fintech-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Button Variants - Unified System */
.fintech-btn-primary,
.fintech-btn-success {
    background: var(--success);
    border-color: var(--success);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.fintech-btn-primary:hover,
.fintech-btn-success:hover {
    background: #34D97A;
    border-color: #34D97A;
    box-shadow: 0 8px 28px rgba(46, 204, 113, 0.55), 0 4px 14px rgba(0, 0, 0, 0.5), var(--shadow-glow-success), inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-inner-light);
    transform: translateY(-3px);
    color: #FFFFFF;
}

.fintech-btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.fintech-btn-secondary:hover {
    background: rgba(18, 18, 24, 0.96);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md), 0 0 12px rgba(229, 229, 229, 0.08), var(--shadow-inner-light);
}

.fintech-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

.fintech-btn-ghost:hover {
    background: rgba(229, 229, 229, 0.05);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.fintech-btn:disabled,
.fintech-btn-primary:disabled,
.fintech-btn-secondary:disabled,
.fintech-btn-ghost:disabled,
.fintech-btn-success:disabled,
.fintech-btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}


.fintech-btn-danger {
    background: #FF4D4F;
    border-color: #FF4D4F;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.fintech-btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fintech-btn-danger:hover {
    background: #FF6B6D;
    border-color: #FF6B6D;
    box-shadow: 0 8px 28px rgba(255, 77, 79, 0.55), 0 4px 14px rgba(0, 0, 0, 0.5), var(--shadow-glow-danger), inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-inner-light);
    transform: translateY(-3px);
}

.fintech-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 229, 229, 0.2);
}

/* ============================================
   INPUTS - MODERN MATERIAL
   ============================================ */

.fintech-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm), var(--shadow-inner), var(--shadow-inner-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fintech-input:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.7);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18), var(--shadow-md), var(--shadow-glow-success), var(--shadow-inner), var(--shadow-inner-light);
    background: var(--bg-tertiary);
}

/* Input focus for sell/danger context */
.fintech-input[data-side="sell"]:focus {
    border-color: rgba(255, 77, 79, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15), var(--shadow-md), 0 0 16px rgba(255, 77, 79, 0.1), var(--shadow-inner);
}

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

.fintech-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.fintech-input-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* ============================================
   TYPOGRAPHY - HIERARCHY
   ============================================ */

.fintech-heading-1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fintech-heading-2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.fintech-heading-3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.fintech-heading-4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.fintech-text-primary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.fintech-text-secondary {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.fintech-text-tertiary {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-tertiary);
}

.fintech-text-mono {
    font-family: 'Roboto Mono', 'SF Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* Trading Numbers */
.fintech-number {
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.fintech-number-large {
    font-size: 24px;
    font-weight: 700;
}

.fintech-number-medium {
    font-size: 18px;
    font-weight: 600;
}

.fintech-number-small {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   TABLES - MODERN FINANCIAL
   ============================================ */

.fintech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.fintech-table thead th {
    padding: 14px 18px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fintech-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fintech-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: all 0.2s;
}

.fintech-table tbody tr:hover,
.fintech-table tbody tr.active {
    background: rgba(229, 229, 229, 0.04);
    border-color: rgba(229, 229, 229, 0.15);
    box-shadow: inset 0 0 20px rgba(229, 229, 229, 0.02);
}

.fintech-table tbody tr.active {
    background: rgba(229, 229, 229, 0.1);
    border-left: 2px solid var(--text-primary);
}

.fintech-table tbody tr:hover::before {
    background: linear-gradient(180deg, rgba(229, 229, 229, 0.3), transparent);
}

.fintech-table tbody td {
    padding: 16px 18px;
    color: var(--text-primary);
    font-size: 13px;
    vertical-align: middle;
    text-align: left;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.fintech-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm), var(--shadow-inner-light);
}

.fintech-badge-primary {
    background: rgba(255, 192, 20, 0.15);
    border-color: rgba(255, 192, 20, 0.3);
    color: var(--accent-orange);
}

.fintech-badge-success {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ECC71;
}

.fintech-badge-danger {
    background: rgba(255, 77, 79, 0.15);
    border-color: rgba(255, 77, 79, 0.3);
    color: var(--text-negative);
}

/* ============================================
   DIVIDERS & SEPARATORS
   ============================================ */

.fintech-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 16px 0;
    border: none;
}

.fintech-divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--border-subtle);
    margin: 0 16px;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.fintech-glow {
    position: relative;
}

.fintech-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(229, 229, 229, 0.2), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.fintech-glow:hover::after {
    opacity: 1;
}

/* ============================================
   LOADING STATES
   ============================================ */

.fintech-skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.fintech-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: #E5E5E5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   MODAL & OVERLAY
   ============================================ */

.fintech-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.2s ease;
}

.fintech-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-tertiary);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    box-shadow: var(--shadow-xl), var(--shadow-glow), var(--shadow-inner);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fintech-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 229, 229, 0.3), transparent);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.fintech-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 24px;
}

.fintech-grid {
    display: grid;
    gap: 20px;
}

.fintech-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fintech-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fintech-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fintech-flex {
    display: flex;
    gap: 16px;
    align-items: center;
}

.fintech-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.fintech-flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.fintech-flex-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.fintech-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.fintech-flex-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fintech-spacer {
    flex: 1;
}

/* Timeframe Buttons - Trading UI */
.chart-timeframe-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm), var(--shadow-inner);
    font-family: 'Inter', sans-serif;
}

.chart-timeframe-btn:hover {
    background: rgba(20, 20, 28, 0.95);
    border-color: var(--border-strong);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 8px rgba(229, 229, 229, 0.08), var(--shadow-inner);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.chart-timeframe-btn.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 16px rgba(229, 229, 229, 0.4), 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    font-weight: 700;
}

/* ============================================
   RESPONSIVE - UNIFIED BREAKPOINTS
   ============================================ */

/* Mobile: ≤ 480px */
/* Large Mobile: ≤ 640px */
/* Tablet: 768px – 1024px */
/* Desktop: ≥ 1025px */

/* Mobile First - Base styles are for mobile */

/* Large Mobile and up (≥ 481px) */
@media (min-width: 481px) {
    .fintech-container {
        padding: 32px 24px;
    }
}

/* Tablet and up (≥ 768px) */
@media (min-width: 768px) {
    .fintech-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fintech-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .fintech-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop and up (≥ 1025px) */
@media (min-width: 1025px) {
    .fintech-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (≥ 1200px) */
@media (min-width: 1200px) {
    .fintech-container {
        max-width: 1600px;
    }
}

/* Mobile specific (≤ 480px) */
@media (max-width: 480px) {
    .fintech-container {
        padding: 16px 12px;
    }

    .fintech-card {
        padding: 16px;
        border-radius: 10px;
    }

    .fintech-card-sm {
        padding: 12px;
    }

    .fintech-heading-1 {
        font-size: 24px;
    }

    .fintech-heading-2 {
        font-size: 20px;
    }

    .fintech-heading-3 {
        font-size: 16px;
    }

    .fintech-heading-4 {
        font-size: 12px;
    }

    .fintech-btn {
        padding: 14px 20px;
        font-size: 12px;
        min-height: 44px; /* Touch-friendly */
    }

    .fintech-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    .fintech-grid-2,
    .fintech-grid-3,
    .fintech-grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Reduce shadows on mobile for performance */
    .fintech-card {
        box-shadow: var(--shadow-sm);
    }

    .fintech-card:hover {
        transform: none; /* Disable hover effects on mobile */
    }

    /* Optimize typography for mobile */
    .fintech-number-large {
        font-size: 20px;
    }

    .fintech-number-medium {
        font-size: 16px;
    }

    .fintech-number-small {
        font-size: 12px;
    }

    /* Hide elements on mobile */
    .mobile-hide {
        display: none !important;
    }
}

/* Large Mobile (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .fintech-container {
        padding: 20px 16px;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .fintech-container {
        padding: 24px 20px;
    }

    .fintech-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile hide utility - hide on mobile, show on tablet+ */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-top: 1px solid var(--border-subtle);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.8);
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    flex: 1;
    min-height: 60px;
}

.mobile-bottom-nav__item.active {
    color: var(--text-primary);
}

.mobile-bottom-nav__item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Show mobile nav only on mobile */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add padding to body to prevent content from being hidden behind nav */
    body.has-mobile-nav {
        padding-bottom: 76px;
    }
}

/* Hide mobile nav on desktop */
@media (min-width: 1025px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ============================================
   MOBILE TABLE ADAPTATIONS
   ============================================ */

/* Convert tables to cards on mobile */
@media (max-width: 768px) {
    .fintech-table-mobile-card {
        display: block;
    }

    .fintech-table-mobile-card thead {
        display: none;
    }

    .fintech-table-mobile-card tbody {
        display: block;
    }

    .fintech-table-mobile-card tbody tr {
        display: block;
        background: var(--bg-secondary);
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: var(--shadow-sm);
    }

    .fintech-table-mobile-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .fintech-table-mobile-card tbody td:last-child {
        border-bottom: none;
    }

    .fintech-table-mobile-card tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-secondary);
        margin-right: 12px;
    }
}

/* ============================================
   MOBILE CHART ADAPTATIONS
   ============================================ */

@media (max-width: 768px) {
    canvas {
        max-height: 300px !important;
        min-height: 200px;
    }

    .fintech-chart-loader {
        border-radius: 10px;
    }
}

/* ============================================
   MOBILE MODAL ADAPTATIONS
   ============================================ */

@media (max-width: 640px) {
    .fintech-modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        border-radius: 12px;
        padding: 20px;
    }
}

/* ============================================
   ADDITIONAL PREMIUM EFFECTS
   ============================================ */

/* Hover Glow for Links */
a[href]:not(.fintech-btn):not(.fintech-btn-primary) {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href]:not(.fintech-btn):not(.fintech-btn-primary):hover {
    text-shadow: 0 0 8px currentColor;
}

/* Chart Container Enhancements */
canvas {
    border-radius: 8px;
    background: rgba(5, 5, 8, 0.7);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 -1px 1px rgba(255, 255, 255, 0.02), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ============================================
   LOADING STATES - PREMIUM UX
   ============================================ */

/* Global Page Loader */
.fintech-global-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-global-loader.active {
    opacity: 1;
    visibility: visible;
}

.fintech-global-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.fintech-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(229, 229, 229, 0.1);
    border-top-color: rgba(229, 229, 229, 0.9);
    border-right-color: rgba(229, 229, 229, 0.5);
    border-radius: 50%;
    animation: fintech-spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}

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

.fintech-loader-text {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fintech-pulse 2s ease-in-out infinite;
}

@keyframes fintech-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Local Block Loader */
.fintech-local-loader {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.fintech-local-loader-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(229, 229, 229, 0.1);
    border-top-color: rgba(229, 229, 229, 0.6);
    border-radius: 50%;
    animation: fintech-spin 0.8s linear infinite;
}

/* Skeleton Loaders */
.fintech-skeleton {
    background: linear-gradient(
        90deg,
        rgba(229, 229, 229, 0.05) 0%,
        rgba(229, 229, 229, 0.1) 50%,
        rgba(229, 229, 229, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: fintech-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

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

.fintech-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.fintech-skeleton-text:last-child {
    margin-bottom: 0;
}

.fintech-skeleton-text-small {
    height: 12px;
    width: 60%;
}

.fintech-skeleton-text-medium {
    height: 14px;
    width: 80%;
}

.fintech-skeleton-text-large {
    height: 20px;
    width: 100%;
}

.fintech-skeleton-heading {
    height: 24px;
    width: 40%;
    margin-bottom: 16px;
}

.fintech-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.fintech-skeleton-card {
    padding: 20px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
}

.fintech-skeleton-table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.fintech-skeleton-chart {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.fintech-skeleton-badge {
    height: 24px;
    width: 80px;
    border-radius: 6px;
}

/* Inline Loader (для кнопок и маленьких блоков) */
.fintech-inline-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.fintech-inline-loader-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(229, 229, 229, 0.2);
    border-top-color: rgba(229, 229, 229, 0.8);
    border-radius: 50%;
    animation: fintech-spin 0.6s linear infinite;
}

/* Button Loading State */
.fintech-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.fintech-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: fintech-spin 0.6s linear infinite;
}

.fintech-btn-primary.loading::after,
.fintech-btn-success.loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
}

.fintech-btn-danger.loading::after {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
}

/* Chart Loading Overlay */
.fintech-chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.fintech-chart-loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(229, 229, 229, 0.1);
    border-top-color: rgba(229, 229, 229, 0.7);
    border-radius: 50%;
    animation: fintech-spin 0.9s linear infinite;
}

/* Table Loading State */
.fintech-table-loading {
    position: relative;
    min-height: 300px;
}

.fintech-table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

/* Fade In Animation для контента после загрузки */
.fintech-content-fade-in {
    animation: fintech-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fintech-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Row Hover Enhancement */
.fintech-table tbody tr {
    position: relative;
}

.fintech-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: all 0.2s;
}

.fintech-table tbody tr:hover::before {
    background: linear-gradient(180deg, rgba(229, 229, 229, 0.3), transparent);
}


/* Number Values - Strict Fintech Rules */
.text-value {
    color: var(--text-value);
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.text-positive {
    color: var(--text-positive);
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.text-negative {
    color: var(--text-negative);
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
}

.text-neutral {
    color: var(--text-neutral);
    font-family: 'Roboto Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* Legacy support - redirect to new classes */
.text-profit {
    color: var(--text-positive);
}

.text-loss {
    color: var(--text-negative);
}

/* Legacy support - moved to unified breakpoints above */

/* ============================================
   UNIFIED CARD HEADERS & SECTIONS
   ============================================ */

.fintech-card-header {
    padding: 0 0 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fintech-card-header-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.fintech-card-header-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.fintech-card-body {
    /* Card body content */
}

.fintech-card-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.fintech-card-section-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

/* ============================================
   UNIFIED TABLE HEADERS
   ============================================ */

.fintech-table-header {
    padding: 12px 16px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fintech-table-header-right {
    text-align: right;
}

.fintech-table-header-center {
    text-align: center;
}

/* ============================================
   UNIFIED LIST ITEMS
   ============================================ */

.fintech-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-list-item:hover {
    background: rgba(229, 229, 229, 0.02);
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
}

.fintech-list-item:last-child {
    border-bottom: none;
}

/* ============================================
   UNIFIED CHART CONTAINERS
   ============================================ */

.dashboard-chart-card {
    position: relative;
    overflow: hidden;
}

.dashboard-chart-card canvas {
    max-height: 200px;
}

/* ============================================
   UNIFIED STAT CARDS
   ============================================ */

.dashboard-stat-card {
    position: relative;
}

.dashboard-header-badge {
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow-sm), var(--shadow-inner);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-header-badge:hover {
    box-shadow: var(--shadow-md), var(--shadow-inner);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

/* ============================================
   UNIFIED MOVER ITEMS (hover effects)
   ============================================ */

.dashboard-mover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-mover-item:hover {
    background: rgba(229, 229, 229, 0.02);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 8px;
}

.dashboard-mover-item:last-child {
    border-bottom: none;
}

/* ============================================
   CONTAINER - UNIFIED SPACING
   ============================================ */

.fintech-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 24px;
}

@media (max-width: 768px) {
    .fintech-container {
        padding: 20px 16px;
    }
}

/* ============================================
   UNIFIED UI COMPONENTS
   ============================================ */

/* Stat Card */
.fintech-stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-stat-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.fintech-stat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--accent-primary);
}

.fintech-stat-content {
    flex: 1;
    min-width: 0;
}

.fintech-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fintech-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 4px;
}

.fintech-stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.fintech-stat-trend-up {
    color: var(--text-positive);
}

.fintech-stat-trend-down {
    color: var(--text-negative);
}

/* Tabs */
.fintech-tabs {
    width: 100%;
}

.fintech-tabs-list {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
    overflow-x: auto;
}

.fintech-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.fintech-tab:hover {
    color: var(--text-primary);
}

.fintech-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.fintech-tabs-panels {
    position: relative;
}

.fintech-tab-panel {
    animation: fintech-fade-in 0.3s ease;
}

/* Section */
.fintech-section {
    margin-bottom: 32px;
}

.fintech-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 24px;
}

.fintech-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.fintech-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.fintech-section-actions {
    flex-shrink: 0;
}

.fintech-section-content {
    /* Content area */
}

/* List Item */
.fintech-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.fintech-list-item:last-child {
    border-bottom: none;
}

.fintech-list-item:hover {
    background: var(--bg-tertiary);
}

.fintech-list-item.active {
    background: rgba(var(--accent-primary-rgb, 240, 185, 11), 0.1);
    border-left: 3px solid var(--accent-primary);
}

.fintech-list-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.fintech-list-item.active .fintech-list-item-icon {
    color: var(--accent-primary);
}

.fintech-list-item-content {
    flex: 1;
    min-width: 0;
}

.fintech-list-item-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Card Outlined Variant */
.fintech-card-outlined {
    background: transparent;
    border: 2px solid var(--border-subtle);
}

.fintech-card-outlined:hover {
    border-color: var(--border-medium);
}

/* Button Sizes */
.fintech-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.fintech-btn-md {
    padding: 12px 24px;
    font-size: 13px;
}

.fintech-btn-lg {
    padding: 16px 32px;
    font-size: 14px;
}

/* Light Theme Adjustments for New Components */
:root.theme-light .fintech-stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
}

:root.theme-light .fintech-stat-icon {
    background: #F7F8FA;
}

:root.theme-light .fintech-tab.active {
    color: #F0B90B;
    border-bottom-color: #F0B90B;
}

:root.theme-light .fintech-list-item.active {
    background: rgba(240, 185, 11, 0.1);
    border-left-color: #F0B90B;
}

/* ============================================
   UTILITY CLASSES (Replace inline styles)
   ============================================ */

/* Layout Utilities */
.fintech-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fintech-flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.fintech-flex-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.fintech-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fintech-flex-column {
    display: flex;
    flex-direction: column;
}

/* Spacing Utilities */
.fintech-gap-sm { gap: 8px; }
.fintech-gap-md { gap: 12px; }
.fintech-gap-lg { gap: 16px; }
.fintech-gap-xl { gap: 24px; }

.fintech-mb-sm { margin-bottom: 8px; }
.fintech-mb-md { margin-bottom: 16px; }
.fintech-mb-lg { margin-bottom: 24px; }
.fintech-mb-xl { margin-bottom: 32px; }

.fintech-mt-sm { margin-top: 8px; }
.fintech-mt-md { margin-top: 16px; }
.fintech-mt-lg { margin-top: 24px; }
.fintech-mt-xl { margin-top: 32px; }

.fintech-p-sm { padding: 8px; }
.fintech-p-md { padding: 16px; }
.fintech-p-lg { padding: 24px; }
.fintech-p-xl { padding: 32px; }

/* Text Utilities */
.fintech-text-xs { font-size: 10px; }
.fintech-text-sm { font-size: 12px; }
.fintech-text-md { font-size: 14px; }
.fintech-text-lg { font-size: 16px; }
.fintech-text-xl { font-size: 18px; }

.fintech-text-uppercase { text-transform: uppercase; }
.fintech-text-center { text-align: center; }
.fintech-text-right { text-align: right; }
.fintech-text-left { text-align: left; }

.fintech-font-mono { font-family: 'Roboto Mono', monospace; }

.fintech-font-bold { font-weight: 700; }
.fintech-font-semibold { font-weight: 600; }
.fintech-font-medium { font-weight: 500; }

.fintech-flex-1 { flex: 1; }

.dashboard-pair-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Border Utilities */
.fintech-border-top { border-top: 1px solid var(--border-subtle); }
.fintech-border-bottom { border-bottom: 1px solid var(--border-subtle); }

/* Display Utilities */
.fintech-hidden { display: none !important; }
.fintech-block { display: block; }
.fintech-inline-block { display: inline-block; }
.fintech-flex { display: flex; }

/* Color Utilities */
.fintech-text-success { color: var(--success); }
.fintech-text-danger { color: var(--danger); }
.fintech-text-warning { color: var(--warning); }
.fintech-text-muted { color: var(--text-secondary); }

/* Size Utilities */
.fintech-w-full { width: 100%; }
.fintech-h-full { height: 100%; }
.fintech-min-h-screen { min-height: calc(100vh - 64px); }

/* Button Size Variants */
.fintech-btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.fintech-btn-xs {
    padding: 4px 8px;
    font-size: 10px;
}

/* Dashboard Specific Styles */
.dashboard-page {
    min-height: calc(100vh - 64px);
    padding: 0;
}

.dashboard-header-section {
    margin-bottom: 32px;
    padding: 24px;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header-title-section {
    flex: 1;
    min-width: 0;
}

.dashboard-header-stats-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.dashboard-balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr 400px;
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-assets-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-assets-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-assets-header-info {
    flex: 1;
}

.dashboard-asset-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.dashboard-asset-item:hover {
    background: var(--bg-tertiary);
}

.dashboard-asset-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.dashboard-asset-icon-wrapper {
    flex-shrink: 0;
}

.dashboard-top-asset-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-top-asset-item:last-child {
    border-bottom: none;
}

.dashboard-top-asset-item:hover {
    background: var(--bg-tertiary);
}

.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.dashboard-pair-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dashboard-pair-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.dashboard-pair-info {
    flex: 1;
    min-width: 0;
}

.dashboard-header-badge-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.dashboard-balance-section {
    flex: 1;
}

.dashboard-balance-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-balance-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-balance-value {
    font-size: 28px;
}

.dashboard-metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.dashboard-metric-change.positive {
    color: var(--text-positive);
}

.dashboard-metric-change.negative {
    color: var(--text-negative);
}

.dashboard-metric-icon {
    flex-shrink: 0;
}

.dashboard-asset-info {
    flex: 1;
    min-width: 0;
}

.dashboard-asset-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dashboard-market-table {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.dashboard-market-table-header {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    justify-content: space-between;
    background: var(--bg-secondary);
}

.dashboard-market-table-header-info {
    flex: 1;
}

.dashboard-table-wrapper {
    overflow-x: auto;
}

.dashboard-asset-info {
    flex: 1;
    min-width: 0;
}

.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table th.text-right {
    text-align: right;
}

.dashboard-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.dashboard-table td.text-right {
    text-align: right;
}

.dashboard-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Profile Specific Styles */
.profile-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - 64px);
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.profile-content {
    flex: 1;
}

.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.profile-tab-content {
    animation: fintech-fade-in 0.3s ease;
}

.profile-form-group {
    margin-bottom: 24px;
}

.profile-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.profile-form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 240, 185, 11), 0.15);
}

.profile-form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.profile-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.profile-section-header {
    margin-bottom: 32px;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.profile-section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.profile-section-divider {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

/* Settings Specific Styles */
.settings-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - 64px);
}

.settings-header {
    margin-bottom: 32px;
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-tab:hover {
    color: var(--text-primary);
}

.settings-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.settings-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.fintech-form-group {
    margin-bottom: 24px;
}

.fintech-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fintech-form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.fintech-form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 240, 185, 11), 0.15);
}

.fintech-form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 8px;
}

/* Light Theme Adjustments */
:root.theme-light .dashboard-market-table-header {
    background: #F7F8FA;
}

:root.theme-light .dashboard-table tbody tr:hover {
    background: #F7F8FA;
}

:root.theme-light .profile-tab.active {
    color: #F0B90B;
    border-bottom-color: #F0B90B;
}

:root.theme-light .settings-tab.active {
    color: #F0B90B;
    border-bottom-color: #F0B90B;
}

/* ============================================
   LIGHT THEME SPECIFIC ADJUSTMENTS
   ============================================ */

:root.theme-light .fintech-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

:root.theme-light .fintech-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-medium);
}

:root.theme-light .fintech-card-elevated {
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
}

:root.theme-light .fintech-btn {
    background: #F5F6F7;
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

:root.theme-light .fintech-btn:hover {
    background: #EAECEF;
    border-color: var(--border-medium);
}

:root.theme-light .fintech-btn-primary,
:root.theme-light .fintech-btn-success {
    background: #F0B90B;
    border-color: #F0B90B;
    color: #1E2329;
    box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
}

:root.theme-light .fintech-btn-primary:hover,
:root.theme-light .fintech-btn-success:hover {
    background: #F8D12F;
    border-color: #F8D12F;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.4);
}

:root.theme-light .fintech-input {
    background: #FFFFFF;
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

:root.theme-light .fintech-input:focus {
    border-color: #F0B90B;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.15);
    background: #FFFFFF;
}

:root.theme-light .fintech-table thead th {
    background: #F5F6F7;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

:root.theme-light .fintech-table tbody tr:hover {
    background: #F7F8FA;
}

:root.theme-light .fintech-badge {
    background: #F5F6F7;
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

:root.theme-light .fintech-badge-primary {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.3);
    color: #F0B90B;
}

:root.theme-light .fintech-badge-success {
    background: rgba(14, 203, 129, 0.1);
    border-color: rgba(14, 203, 129, 0.3);
    color: #0ECB81;
}

:root.theme-light .fintech-badge-danger {
    background: rgba(246, 70, 93, 0.1);
    border-color: rgba(246, 70, 93, 0.3);
    color: #F6465D;
}

/* Light theme for header */
:root.theme-light .main-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

:root.theme-light .main-header__logo-section__link span,
:root.theme-light .main-menu__section__nav-button {
    color: var(--text-primary);
}

/* Light theme for modals */
:root.theme-light .fintech-modal {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
}

:root.theme-light .fintech-modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

/* Light theme for skeleton loaders */
:root.theme-light .fintech-skeleton {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.04) 100%
    );
}

/* Light theme for dividers */
:root.theme-light .fintech-divider {
    background: var(--border-subtle);
}

/* Light theme for links */
:root.theme-light .v-application a,
:root.theme-light a:not([class]) {
    color: var(--text-primary) !important;
}

:root.theme-light .v-application a:hover,
:root.theme-light a:not([class]):hover {
    color: #F0B90B !important;
}

/* Light theme for chart containers */
:root.theme-light canvas {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
}

/* Light theme for glass effects */
:root.theme-light .fintech-card,
:root.theme-light [class*="glass"] {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
