/* ============================================================
   Bitflip Options — Complete Design System
   File: assets/css/style3.css
   Trading dashboard (dark) + Landing page (light) + Modern components
   ============================================================ */

/* -------- CSS VARIABLES -------- */
:root {
    --primary: #0066ff;
    --primary-dark: #0047b3;
    --primary-light: #4d8fff;
    --primary-glow: rgba(0, 102, 255, 0.3);
    --accent-purple: #7b2ffc;
    
    --success: #059669;
    --success-light: #10b981;
    --danger: #dc2626;
    --danger-light: #ef4444;
    --warning: #f59e0b;
    --info: #0891b2;
    
    --dark: #0a0e17;
    --dark-2: #131825;
    --dark-3: #1a1f2e;
    --dark-4: #232838;
    --dark-border: rgba(255, 255, 255, 0.06);
    --dark-border-hover: rgba(0, 102, 255, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --text-muted: #5d6785;
    
    /* Landing page vars (light) */
    --landing-text: #0f172a;
    --landing-text-secondary: #64748b;
    --landing-text-muted: #94a3b8;
    --landing-border: #e2e8f0;
    --landing-border-hover: #cbd5e1;
    --landing-bg-alt: #f8fafc;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --transition: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 8px 30px rgba(0, 102, 255, 0.25);
    
    --navbar-height: 64px;
    --mobile-nav-height: 64px;
}

/* -------- RESET -------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body.trading-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.landing-page {
    background: #ffffff;
    color: var(--landing-text);
    display: block;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 15px;
}

/* -------- SCROLLBAR -------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 102, 255, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 102, 255, 0.5); }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:disabled { cursor: not-allowed; }

input, select, textarea { font-family: inherit; outline: none; }


/* ============================================================
   PART 1: TRADING DASHBOARD (DARK THEME)
   ============================================================ */

/* -------- NAVBAR (trading) -------- */
.bf-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
    min-height: var(--navbar-height);
    padding: 0 20px;
    background: var(--dark-2);
    border-bottom: 1px solid var(--dark-border);
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

.bf-navbar-left,
.bf-navbar-center,
.bf-navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bf-logo { display: flex; align-items: center; text-decoration: none; }

.bf-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.bf-logo-accent { color: var(--primary); }

/* Mode toggle */
.bf-mode-toggle {
    display: inline-flex;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}

.bf-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition);
    letter-spacing: 0.03em;
}

.bf-mode-btn:hover { color: var(--text-primary); }

.bf-mode-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.bf-mode-btn[data-mode="live"].active {
    background: var(--success);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Balance display */
.bf-balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-pill);
}

.bf-balance-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bf-balance-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.bf-mode-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--info);
    color: white;
}

.bf-mode-badge.live { background: var(--success); }

/* Deposit button */
.bf-btn-deposit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s var(--transition);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.bf-btn-deposit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* User menu */
.bf-user-menu { position: relative; }

.bf-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.bf-user-btn:hover { border-color: var(--primary); }

.bf-user-btn i.fa-chevron-down {
    font-size: 10px;
    color: var(--text-secondary);
}

.bf-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.bf-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bf-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.bf-dropdown-item:hover {
    background: var(--dark-4);
    color: var(--text-primary);
}

.bf-dropdown-item i { width: 16px; font-size: 13px; }

.bf-dropdown-divider {
    height: 1px;
    background: var(--dark-border);
    margin: 6px 0;
}

.bf-dropdown-admin { color: var(--warning) !important; }
.bf-dropdown-danger { color: var(--danger) !important; }
.bf-dropdown-danger:hover { background: rgba(220, 38, 38, 0.1) !important; }

/* -------- MAIN LAYOUT -------- */
.bf-layout {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* -------- ASSET SIDEBAR -------- */
.bf-asset-sidebar {
    background: var(--dark-2);
    border-right: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.bf-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.bf-sidebar-header i { color: var(--primary); }

.bf-sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px 12px;
    padding: 8px 12px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.bf-sidebar-search:focus-within { border-color: var(--primary); }

.bf-sidebar-search i { color: var(--text-muted); font-size: 12px; }

.bf-sidebar-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
}

.bf-sidebar-search input::placeholder { color: var(--text-muted); }

.bf-asset-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 16px;
    min-height: 0;
}

.bf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    gap: 10px;
    font-size: 13px;
}

.bf-asset-group { margin-bottom: 8px; }

.bf-asset-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.bf-asset-group-header:hover { color: var(--text-primary); }

.bf-asset-group-header i:first-child {
    color: var(--primary);
    font-size: 12px;
    width: 14px;
}

.bf-group-chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s;
}

.bf-asset-group.collapsed .bf-group-chevron { transform: rotate(-90deg); }
.bf-asset-group.collapsed .bf-asset-group-list { display: none; }

.bf-asset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.bf-asset-item:hover { background: var(--dark-3); }

.bf-asset-item.active {
    background: rgba(0, 102, 255, 0.1);
    border-left-color: var(--primary);
}

.bf-asset-item-left { display: flex; flex-direction: column; gap: 2px; }

.bf-asset-symbol {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.bf-asset-name-small { font-size: 10px; color: var(--text-muted); }

.bf-asset-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bf-asset-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    transition: all 0.15s;
}

.bf-asset-price.flash-up { color: var(--success); }
.bf-asset-price.flash-down { color: var(--danger); }

.bf-asset-change { font-size: 10px; font-weight: 600; }
.bf-asset-change.positive { color: var(--success-light); }
.bf-asset-change.negative { color: var(--danger-light); }

/* -------- TRADING PANEL -------- */
.bf-trading-panel {
    display: flex;
    flex-direction: column;
    background: var(--dark);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: 40px;
    gap: 12px;
    min-height: 0;
    max-width: 100%;
}

.bf-trading-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.bf-asset-symbol-large {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.bf-asset-name-large {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.bf-trading-header-right { text-align: right; }

.bf-price-large {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.bf-change-large {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.bf-change-large.positive { color: var(--success-light); }
.bf-change-large.negative { color: var(--danger-light); }

/* -------- TRADE TYPE TABS -------- */
.bf-trade-type-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 6px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.bf-type-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 56px;
}

.bf-type-tab i {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.bf-type-tab span { line-height: 1.1; }

.bf-type-tab:hover {
    background: var(--dark-3);
    color: var(--text-primary);
}

.bf-type-tab:hover i { color: var(--primary); }

.bf-type-tab.active {
    background: rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.4);
    color: var(--primary);
}

.bf-type-tab.active i { color: var(--primary); }

/* -------- CONTEXT STRIP -------- */
.bf-context-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.bf-context-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.bf-context-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    font-weight: 600;
}

.bf-context-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

/* -------- COMPACT CONTROLS -------- */
.bf-trade-controls-compact {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 14px;
    padding: 12px 16px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.bf-control-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bf-label-mini {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.bf-mini-input {
    display: flex;
    align-items: center;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.bf-mini-input:focus-within { border-color: var(--primary); }

.bf-mini-input span {
    padding: 0 10px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    background: var(--dark-4);
    height: 100%;
    display: flex;
    align-items: center;
    min-height: 36px;
}

.bf-mini-input input {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    min-width: 0;
}

.bf-mini-input input::-webkit-outer-spin-button,
.bf-mini-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bf-duration-row { display: flex; gap: 4px; }

.bf-duration-mini {
    flex: 1;
    padding: 8px 4px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 36px;
}

.bf-duration-mini:hover { color: var(--text-primary); border-color: var(--primary); }

.bf-duration-mini.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bf-quick-row { display: flex; gap: 4px; }

.bf-quick-mini {
    flex: 1;
    padding: 8px 4px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 36px;
}

.bf-quick-mini:hover { color: var(--text-primary); border-color: var(--primary); background: var(--dark-4); }

/* -------- CHART -------- */
.bf-chart-container {
    position: relative;
    flex: 1;
    min-height: 280px;
    max-height: 500px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 16px;
    overflow: hidden;
}

.bf-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 1;
}

.bf-chart-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 10px;
    background: rgba(5, 150, 105, 0.15);
    color: var(--success-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.bf-chart-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-light);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.bf-chart-badge.offline {
    background: rgba(220, 38, 38, 0.15);
    color: var(--danger-light);
}

.bf-chart-badge.offline::before {
    background: var(--danger-light);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Timer overlay */
.bf-chart-timer {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 12px 16px;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: var(--radius);
    text-align: center;
    min-width: 110px;
    z-index: 10;
    animation: slideInRight 0.3s var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.bf-chart-timer-value {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.bf-chart-timer-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.bf-chart-timer-bar {
    height: 4px;
    background: var(--dark-4);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: 8px;
}

.bf-chart-timer-progress {
    height: 100%;
    background: var(--primary);
    transition: width 0.1s linear, background 0.3s;
    border-radius: var(--radius-pill);
    width: 100%;
}

.bf-chart-timer-progress.warning { background: var(--warning); }
.bf-chart-timer-progress.danger { background: var(--danger); }

/* Active trade overlay */
.bf-chart-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(10, 14, 23, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 102, 255, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 102, 255, 0.2);
    z-index: 10;
    animation: overlaySlideUp 0.3s var(--transition);
    max-width: calc(100% - 32px);
}

@keyframes overlaySlideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.bf-overlay-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
}

.bf-overlay-direction {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-align: center;
}

.bf-overlay-direction.higher {
    background: rgba(5, 150, 105, 0.2);
    color: var(--success-light);
}

.bf-overlay-direction.lower {
    background: rgba(220, 38, 38, 0.2);
    color: var(--danger-light);
}

.bf-overlay-amount {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.bf-overlay-pnl {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 80px;
}

.bf-overlay-pnl-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bf-overlay-pnl-value {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s;
}

.bf-overlay-pnl-value.positive { color: var(--success-light); }
.bf-overlay-pnl-value.negative { color: var(--danger-light); }

.bf-overlay-cashout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: white;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    transition: all 0.2s var(--transition);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.bf-overlay-cashout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

.bf-overlay-cashout strong {
    font-size: 15px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* Result overlay */
.bf-chart-result {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: resultSlideUp 0.4s var(--transition);
    max-width: calc(100% - 32px);
}

@keyframes resultSlideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.bf-result-win,
.bf-result-loss {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.bf-result-win {
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(5, 150, 105, 0.3);
}

.bf-result-loss {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(220, 38, 38, 0.3);
}

.bf-result-icon { font-size: 32px; }
.bf-result-win .bf-result-icon { color: var(--success-light); }
.bf-result-loss .bf-result-icon { color: var(--danger-light); }

.bf-result-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.bf-result-profit {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.bf-result-win .bf-result-profit { color: var(--success-light); }
.bf-result-loss .bf-result-profit { color: var(--danger-light); }

.bf-result-detail { font-size: 11px; color: var(--text-secondary); }

/* Chart barrier marker */
.bf-chart-barrier {
    position: absolute;
    left: 16px;
    right: 70px;
    border-top: 1px dashed var(--warning);
    pointer-events: none;
    z-index: 5;
}

.bf-chart-barrier-label {
    position: absolute;
    right: -55px;
    top: -10px;
    font-size: 9px;
    font-weight: 700;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(245, 158, 11, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
}

.bf-active-trade { display: none !important; }

/* -------- ACTION BUTTONS -------- */
.bf-action-buttons { flex-shrink: 0; }

.bf-action-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bf-action-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--transition);
    border: none;
    text-align: left;
    min-height: 72px;
}

.bf-action-btn > i { font-size: 24px; flex-shrink: 0; }

.bf-action-btn > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bf-action-label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.bf-action-sublabel {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
    font-family: var(--font-body);
    letter-spacing: 0;
}

.bf-action-payout {
    font-size: 15px;
    font-weight: 800;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.bf-action-buy {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.bf-action-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.5);
}

.bf-action-sell {
    background: linear-gradient(135deg, var(--danger), var(--danger-light));
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.bf-action-sell:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
}

.bf-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Match/Differ digit picker */
.bf-action-pair-match {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bf-digit-picker {
    padding: 12px 16px;
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bf-digit-picker-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bf-digit-buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.bf-digit-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-digit-btn:hover { color: var(--text-primary); border-color: var(--primary); }

.bf-digit-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* -------- LIVE FEED -------- */
.bf-live-feed {
    background: var(--dark-2);
    border-left: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.bf-feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--dark-border);
    flex-shrink: 0;
}

.bf-feed-header i { color: var(--primary); }

.bf-live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-left: auto;
    animation: pulse 1.5s infinite;
}

.bf-feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-height: 0;
}

.bf-feed-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.bf-feed-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    background: var(--dark-3);
    border: 1px solid transparent;
    transition: all 0.2s;
    animation: feedIn 0.3s ease-out;
}

.bf-feed-item:hover { border-color: var(--dark-border-hover); }

@keyframes feedIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.bf-feed-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bf-feed-user {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
}

.bf-feed-direction {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
}

.bf-feed-direction.higher {
    background: rgba(5, 150, 105, 0.15);
    color: var(--success-light);
}

.bf-feed-direction.lower {
    background: rgba(220, 38, 38, 0.15);
    color: var(--danger-light);
}

.bf-feed-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.bf-feed-asset {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
}

.bf-feed-amount { color: var(--text-primary); font-weight: 600; }

.bf-feed-result {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
}

.bf-feed-result.win { color: var(--success-light); }
.bf-feed-result.loss { color: var(--danger-light); }

.bf-feed-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* -------- MODALS -------- */
.bf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
    padding: 20px;
}

.bf-modal.active { opacity: 1; visibility: visible; }

.bf-modal-content {
    background: var(--dark-2);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.25s var(--transition);
}

.bf-modal.active .bf-modal-content { transform: scale(1); }

.bf-modal-small { max-width: 380px; }

.bf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--dark-border);
}

.bf-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf-modal-header h3 i { color: var(--primary); }

.bf-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bf-modal-close:hover {
    background: var(--dark-3);
    color: var(--text-primary);
}

.bf-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.bf-modal-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.bf-modal-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    transition: border-color 0.2s;
    margin-top: 8px;
}

.bf-modal-input:focus { border-color: var(--primary); }

.bf-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 12px;
    background: rgba(0, 102, 255, 0.05);
    border-left: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.bf-modal-note i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bf-info-box {
    padding: 14px 16px;
    background: var(--dark-3);
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bf-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.bf-info-row span { color: var(--text-secondary); }

.bf-info-row strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.bf-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--dark-border);
    justify-content: flex-end;
}

.bf-btn-primary,
.bf-btn-secondary {
    padding: 11px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s var(--transition);
}

.bf-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.bf-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.bf-btn-secondary {
    background: var(--dark-3);
    color: var(--text-secondary);
    border: 1px solid var(--dark-border);
}

.bf-btn-secondary:hover {
    color: var(--text-primary);
    background: var(--dark-4);
}

/* -------- TOASTS (trading dark) -------- */
.bf-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
    max-width: 90vw;
}

.bf-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-left-width: 4px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    color: var(--text-primary);
    min-width: 260px;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s var(--transition);
}

.bf-toast.show { opacity: 1; transform: translateX(0); }
.bf-toast i { font-size: 16px; flex-shrink: 0; }
.bf-toast-success { border-left-color: var(--success); }
.bf-toast-success i { color: var(--success-light); }
.bf-toast-error { border-left-color: var(--danger); }
.bf-toast-error i { color: var(--danger-light); }
.bf-toast-warning { border-left-color: var(--warning); }
.bf-toast-warning i { color: var(--warning); }
.bf-toast-info { border-left-color: var(--primary); }
.bf-toast-info i { color: var(--primary); }

/* ============================================================
   Mobile bottom navigation — clean flex tab bar
   ============================================================ */

.bf-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--dark-2);
    border-top: 1px solid var(--dark-border);
    z-index: 500;
    /* Safe-area for iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bf-mobile-nav-items {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}

.bf-mobile-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.bf-mobile-nav-btn i {
    font-size: 17px;
    line-height: 1;
    display: block;
}

.bf-mobile-nav-btn span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bf-mobile-nav-btn:hover,
.bf-mobile-nav-btn:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.bf-mobile-nav-btn.active {
    color: var(--primary);
    background: transparent;
}

/* Top indicator bar on active tab */
.bf-mobile-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.bf-mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    bottom: var(--mobile-nav-height);
    width: 85%;
    max-width: 340px;
    background: var(--dark-2);
    z-index: 600;
    overflow-y: auto;
    transition: transform 0.3s var(--transition);
    border-right: 1px solid var(--dark-border);
}

.bf-mobile-drawer.from-left {
    left: 0;
    transform: translateX(-100%);
}

.bf-mobile-drawer.from-right {
    right: 0;
    border-right: none;
    border-left: 1px solid var(--dark-border);
    transform: translateX(100%);
}

.bf-mobile-drawer.active { transform: translateX(0); }

.bf-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--dark-border);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    background: var(--dark-2);
    z-index: 1;
}

.bf-mobile-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--dark-3);
    cursor: pointer;
    border: none;
}

.bf-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 550;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.bf-mobile-overlay.active { opacity: 1; visibility: visible; }


/* ============================================================
   PART 2: LANDING PAGE (LIGHT THEME - MODERN)
   ============================================================ */

/* -------- NAVBAR (landing) -------- */
.nav-modern {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--landing-border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--landing-text);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-logo .accent { color: var(--primary); margin-left: 2px; }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--landing-text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost-sm {
    padding: 9px 18px;
    color: var(--landing-text);
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}

.btn-ghost-sm:hover { background: var(--landing-bg-alt); }

.btn-glow-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: all 0.3s var(--transition);
}

.btn-glow-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--primary-glow);
    color: #fff !important;
}

.btn-glow-sm i { font-size: 11px; }

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--landing-text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--landing-border);
    padding: 20px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    padding: 14px 16px;
    color: var(--landing-text-secondary);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: var(--landing-bg-alt);
    color: var(--primary);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--landing-border);
    margin: 8px 0;
}

.mobile-cta-outline {
    text-align: center;
    border: 1.5px solid var(--landing-border);
    color: var(--landing-text) !important;
    font-weight: 600 !important;
}

.mobile-cta-primary {
    text-align: center;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600 !important;
}

/* -------- PAGE CONTAINER -------- */
#pageContainer { min-height: calc(100vh - 68px); }

.page { display: none; }
.page.active { display: block; animation: pageFade 0.4s ease-out; }

@keyframes pageFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------- HERO -------- */
.hero-modern {
    position: relative;
    padding: 80px 0 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-1 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%);
}

.hero-glow-2 {
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 47, 252, 0.1), transparent 70%);
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left { max-width: 560px; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.12);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--success-light);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--landing-text);
    margin-bottom: 20px;
}

.text-gradient-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--landing-text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-desc strong { color: var(--landing-text); font-weight: 600; }

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-primary-xl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    box-shadow: 0 8px 24px var(--primary-glow);
    text-decoration: none;
}

.btn-primary-xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--primary-glow);
    color: #fff !important;
}

.btn-primary-xl i { font-size: 13px; }

.btn-outline-xl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #fff;
    color: var(--landing-text) !important;
    border: 1.5px solid var(--landing-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    text-decoration: none;
}

.btn-outline-xl:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--landing-text-secondary);
    font-weight: 500;
}

.trust-item i { color: var(--primary); font-size: 14px; }

/* Chart card */
.chart-card-modern {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 
        0 20px 60px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.chart-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.chart-card-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--landing-text);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-light);
    border-radius: 50%;
    animation: pulseGreen 2s infinite;
}

.chart-card-time {
    font-size: 10px;
    font-weight: 700;
    color: var(--danger-light);
    background: rgba(239, 68, 68, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.08em;
}

.chart-card-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.chart-price-main {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--landing-text);
    letter-spacing: -0.03em;
}

.chart-price-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.chart-price-change.up {
    color: var(--success-light);
    background: rgba(16, 185, 129, 0.1);
}

.chart-price-change.down {
    color: var(--danger-light);
    background: rgba(239, 68, 68, 0.1);
}

.chart-card-graph {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 18px;
}

.chart-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.action-btn.up {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.action-btn.down {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.action-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.15); }
.action-btn i { font-size: 16px; }
.action-btn strong {
    font-size: 13px;
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

/* Trust bar */
.trust-bar {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 24px;
}

.trust-bar-inner {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
}

.trust-block { text-align: center; flex: 1; }

.trust-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #00d4ff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-num .star { color: var(--warning); -webkit-text-fill-color: var(--warning); }

.trust-label {
    font-size: 11px;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: 600;
}

.trust-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.08); }

/* -------- SECTIONS -------- */
.section-modern {
    padding: 80px 0;
    background: #fff;
}

.section-alt { background: var(--landing-bg-alt); }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--landing-text);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--landing-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* -------- FEATURE GRID -------- */
.feature-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-tile {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s var(--transition);
}

.feature-tile:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.08);
}

.feature-tile-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(123, 47, 252, 0.06));
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.feature-tile h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--landing-text);
}

.feature-tile p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* -------- TRADE TYPE SHOWCASE -------- */
.type-showcase {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.type-showcase-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.type-tab-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1.5px solid var(--landing-border);
    border-radius: var(--radius-pill);
    color: var(--landing-text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.type-tab-modern:hover { border-color: var(--primary); color: var(--primary); }

.type-tab-modern.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-glow);
}

.type-tab-modern i { font-size: 13px; }

.type-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.type-panel.active { display: grid; }

.type-panel-left h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--landing-text);
}

.type-panel-left p {
    color: var(--landing-text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.type-panel-left p strong { color: var(--primary); font-weight: 700; }

.type-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--landing-text-secondary);
}

.type-features i { color: var(--success-light); font-size: 14px; }

.payout-badge {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
}

.payout-label {
    font-size: 11px;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 6px;
    font-weight: 600;
}

/* -------- STEPS -------- */
.steps-modern {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-modern {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s;
}

.step-modern:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.08);
}

.step-modern-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

.step-modern h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--landing-text);
}

.step-modern p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* -------- MARQUEE (testimonials) -------- */
.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 20px;
    animation: marquee 60s linear infinite;
    width: fit-content;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-card {
    flex-shrink: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
}

.marquee-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.08);
}

.stars {
    color: var(--warning);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.marquee-card p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.marquee-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--landing-text);
}

/* -------- CTA -------- */
.cta-modern {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}

.cta-modern-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-modern h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-modern p {
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    margin-bottom: 28px;
}

.cta-modern .btn-primary-xl {
    background: #fff;
    color: var(--primary) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.cta-modern .btn-primary-xl:hover {
    color: var(--primary-dark) !important;
    background: #f0f6ff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.cta-footnote {
    margin-top: 20px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* -------- FEATURES DEEP -------- */
.features-deep {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-deep {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.feature-deep:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.08);
}

.feature-deep-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px var(--primary-glow);
}

.feature-deep h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--landing-text);
}

.feature-deep p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* -------- MARKETS -------- */
.markets-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.market-modern {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.market-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cat-color, var(--primary));
}

.market-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.market-modern-icon {
    width: 64px;
    height: 64px;
    background: color-mix(in srgb, var(--cat-color, #0066ff) 10%, transparent);
    color: var(--cat-color, var(--primary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.market-modern h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--landing-text);
}

.market-modern p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.market-modern-count {
    display: inline-block;
    padding: 4px 12px;
    background: color-mix(in srgb, var(--cat-color, #0066ff) 12%, transparent);
    color: var(--cat-color, var(--primary));
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.markets-cta { text-align: center; margin-top: 48px; }

/* -------- ABOUT -------- */
.about-stats {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-stat {
    text-align: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
}

.about-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.about-stat-label {
    color: var(--landing-text-secondary);
    font-size: 13px;
}

.testimonials-modern {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-m {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.testimonial-m:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.08);
}

.testimonial-m p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 14px 0;
    font-style: italic;
}

.testimonial-m-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--landing-text);
}

.testimonial-m-author span {
    color: var(--landing-text-muted);
    font-weight: 500;
    margin-left: 6px;
}

/* -------- FAQ -------- */
.faq-modern {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item-m {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: all 0.2s;
}

.faq-item-m:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.faq-item-m h6 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--landing-text);
}

.faq-item-m p {
    color: var(--landing-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* -------- AUTH -------- */
.auth-modern {
    min-height: calc(100vh - 68px);
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%);
}

.auth-card-m {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.auth-logo-m {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo-m .logo-icon {
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 14px;
}

.auth-title-m {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    color: var(--landing-text);
}

.auth-subtitle-m {
    color: var(--landing-text-secondary);
    text-align: center;
    font-size: 14px;
    margin-bottom: 28px;
}

.label-m {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--landing-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.input-m {
    width: 100%;
    padding: 13px 16px;
    background: var(--landing-bg-alt);
    border: 1.5px solid var(--landing-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--landing-text);
    transition: all 0.2s;
}

.input-m:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.input-m::placeholder { color: var(--landing-text-muted); }

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary-lg:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px var(--primary-glow);
}

.btn-primary-lg:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    background: transparent;
    color: var(--landing-text);
    border: 1.5px solid var(--landing-border);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-lg:hover { border-color: var(--primary); color: var(--primary); }

.auth-footer-m {
    text-align: center;
    color: var(--landing-text-secondary);
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 0;
}

.auth-footer-m a { color: var(--primary); font-weight: 600; }
.auth-footer-m a:hover { text-decoration: underline; }

.text-muted-m { color: var(--landing-text-muted); }

/* -------- FOOTER -------- */
.footer-modern {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 24px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }

.footer-brand p {
    color: #8892b0;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h6 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #8892b0;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }
.footer-col a i { margin-right: 6px; }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* -------- LANDING TOASTS -------- */
body.landing-page .bf-toast-container {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

body.landing-page .bf-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
    font-size: 14px;
    color: var(--landing-text);
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

body.landing-page .bf-toast.show { opacity: 1; transform: translateX(0); }
body.landing-page .bf-toast i { font-size: 16px; }
body.landing-page .bf-toast-success { border-left-color: var(--success-light); }
body.landing-page .bf-toast-success i { color: var(--success-light); }
body.landing-page .bf-toast-error { border-left-color: var(--danger-light); }
body.landing-page .bf-toast-error i { color: var(--danger-light); }
body.landing-page .bf-toast-warning { border-left-color: var(--warning); }
body.landing-page .bf-toast-warning i { color: var(--warning); }
body.landing-page .bf-toast-info { border-left-color: var(--primary); }
body.landing-page .bf-toast-info i { color: var(--primary); }


/* ============================================================
   RESPONSIVE (BOTH THEMES)
   ============================================================ */

@media (max-width: 1200px) and (min-width: 993px) {
    .bf-layout { grid-template-columns: 220px 1fr 240px; }
    .bf-balance-display { display: none; }
}

@media (max-width: 1100px) {
    /* Landing */
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-left { max-width: none; }
    .hero-headline { font-size: 2.6rem; }
    .chart-card-modern { max-width: 500px; margin: 0 auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .features-deep { grid-template-columns: repeat(2, 1fr); }
    .markets-modern { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .testimonials-modern { grid-template-columns: 1fr; }
    .steps-modern { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    /* Trading dashboard */
    .bf-navbar { padding: 0 12px; gap: 8px; }
    .bf-navbar-center { display: none; }
    .bf-logo-text { font-size: 16px; }
    .bf-balance-display { display: flex; padding: 5px 10px; gap: 6px; }
    .bf-balance-label { display: none; }
    .bf-balance-value { font-size: 13px; }
    .bf-mode-badge { font-size: 8px; padding: 2px 6px; }
    .bf-btn-deposit { padding: 8px 12px; font-size: 11px; }
    .bf-user-btn { padding: 7px 10px; font-size: 12px; }
    .bf-user-btn span { display: none; }
    
    .bf-layout { grid-template-columns: 1fr; }
    .bf-asset-sidebar, .bf-live-feed { display: none; }
    
    body.trading-page { padding-bottom: var(--mobile-nav-height); }
    
    .bf-trading-panel {
        padding: 12px;
        padding-bottom: calc(var(--mobile-nav-height) + 20px);
        gap: 12px;
    }
    
    .bf-mobile-nav { display: flex; }
    .bf-mobile-drawer { display: block; }
    .bf-mobile-overlay { display: block; }
    
    .bf-chart-container {
        height: 240px;
        min-height: 200px;
        max-height: 320px;
    }
    
    .bf-price-large { font-size: 22px; }
    .bf-asset-symbol-large { font-size: 18px; }
    .bf-asset-name-large { font-size: 11px; }
    
    .bf-trade-type-tabs {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 4px;
    }
    
    .bf-type-tab {
        padding: 8px 4px;
        font-size: 9px;
        min-height: 48px;
    }
    
    .bf-type-tab i { font-size: 12px; }
    .bf-context-strip { gap: 12px; padding: 8px 12px; }
    .bf-context-item { min-width: 60px; }
    .bf-context-value { font-size: 12px; }
    
    .bf-trade-controls-compact {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .bf-control-quick { grid-column: 1 / -1; }
    
    .bf-action-btn { padding: 14px 12px; min-height: 64px; gap: 8px; }
    .bf-action-btn > i { font-size: 18px; }
    .bf-action-label { font-size: 13px; }
    .bf-action-sublabel { font-size: 9px; }
    .bf-action-payout { font-size: 12px; padding: 3px 8px; }
    
    .bf-digit-btn { width: 32px; height: 32px; font-size: 12px; }
    .bf-modal-content { max-width: 100%; }
    
    .bf-toast-container {
        top: auto;
        bottom: calc(var(--mobile-nav-height) + 16px);
        right: 12px;
        left: 12px;
        max-width: none;
    }
    
    .bf-toast { min-width: auto; max-width: none; width: 100%; }
    .bf-chart-overlay { gap: 12px; padding: 10px 14px; bottom: 12px; }
    .bf-overlay-header, .bf-overlay-pnl { padding-right: 12px; min-width: 70px; }
    .bf-overlay-cashout { padding: 10px 14px; font-size: 12px; }
    .bf-overlay-cashout strong { font-size: 13px; }
    .bf-chart-timer { padding: 10px 14px; min-width: 90px; }
    .bf-chart-timer-value { font-size: 28px; }
    
    /* Landing */
    body.landing-page .nav-links { display: none; }
    body.landing-page .nav-actions { display: none; }
    .nav-mobile-toggle { display: block; }
    
    .hero-modern { padding: 48px 0 24px; }
    .hero-headline { font-size: 2rem; }
    .hero-desc { font-size: 15px; }
    .section-modern { padding: 56px 0; }
    .section-title { font-size: 1.8rem; }
    .feature-grid, .features-deep, .markets-modern { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .chart-price-main { font-size: 26px; }
    .type-panel { grid-template-columns: 1fr; padding: 28px; gap: 20px; }
    .payout-badge { font-size: 2.2rem; }
    .cta-modern h2 { font-size: 2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    
    body.landing-page .bf-toast-container {
        top: auto;
        bottom: 20px;
        right: 12px;
        left: 12px;
    }
    body.landing-page .bf-toast { min-width: auto; max-width: none; width: 100%; }
}

@media (max-width: 576px) {
    /* Trading */
    .bf-navbar { padding: 0 10px; gap: 6px; }
    .bf-logo-text { font-size: 14px; }
    .bf-logo-accent { display: none; }
    .bf-user-btn { padding: 6px 8px; }
    .bf-btn-deposit { padding: 7px 10px; font-size: 10px; gap: 4px; }
    .bf-btn-deposit i { font-size: 10px; }
    
    .bf-trading-panel { padding: 10px; padding-bottom: calc(var(--mobile-nav-height) + 16px); gap: 10px; }
    
    .bf-trading-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bf-trading-header-right {
        text-align: left;
        width: 100%;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    
    .bf-price-large { font-size: 22px; }
    .bf-change-large { font-size: 12px; }
    .bf-chart-container { height: 200px; min-height: 180px; padding: 10px; }
    
    .bf-trade-type-tabs { grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 3px; }
    .bf-type-tab { padding: 6px 2px; font-size: 8px; min-height: 42px; gap: 2px; }
    .bf-type-tab i { font-size: 11px; }
    .bf-type-tab span { display: block; line-height: 1; font-size: 8px; }
    
    .bf-context-strip { gap: 8px; padding: 8px 10px; }
    .bf-context-item { min-width: 50px; flex: 1; }
    .bf-context-label { font-size: 8px; }
    .bf-context-value { font-size: 11px; }
    
    .bf-trade-controls-compact { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
    .bf-control-quick { grid-column: auto; }
    
    .bf-action-btn { grid-template-columns: auto 1fr; padding: 12px 10px; min-height: 56px; gap: 8px; }
    .bf-action-btn > i { font-size: 16px; }
    .bf-action-label { font-size: 12px; }
    .bf-action-sublabel { display: none; }
    .bf-action-payout { grid-column: 2 / -1; justify-self: start; font-size: 10px; padding: 2px 6px; margin-top: 2px; }
    
    .bf-digit-picker { padding: 10px; gap: 10px; flex-direction: column; align-items: stretch; }
    .bf-digit-picker-label { text-align: center; }
    .bf-digit-buttons { justify-content: center; }
    .bf-digit-btn { width: 30px; height: 30px; font-size: 12px; }
    
    .bf-mobile-nav { height: 60px; }
    .bf-mobile-nav-btn i { font-size: 16px; }
    .bf-mobile-nav-btn { font-size: 9px; }
    
    .bf-modal { padding: 10px; }
    .bf-modal-header { padding: 16px 18px; }
    .bf-modal-body { padding: 18px; }
    .bf-modal-footer { padding: 14px 18px; }
    .bf-modal-header h3 { font-size: 14px; }
    .bf-modal-input { padding: 12px 14px; font-size: 14px; }
    
    .bf-btn-primary, .bf-btn-secondary { padding: 10px 16px; font-size: 12px; }
    
    .bf-result-icon { font-size: 28px; }
    .bf-result-label { font-size: 14px; }
    .bf-result-profit { font-size: 20px; }
    .bf-result-win, .bf-result-loss { padding: 12px 18px; gap: 10px; }
    
    .bf-chart-overlay {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px;
        bottom: 10px;
        width: calc(100% - 20px);
    }
    
    .bf-overlay-header, .bf-overlay-pnl {
        padding-right: 0;
        border-right: none;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        min-width: 0;
    }
    
    .bf-overlay-header { flex-direction: row; justify-content: space-between; align-items: center; }
    .bf-overlay-pnl { flex-direction: row; justify-content: space-between; align-items: center; }
    .bf-overlay-cashout { width: 100%; justify-content: center; padding: 12px; }
    
    .bf-chart-timer { top: 10px; right: 10px; padding: 8px 12px; min-width: 80px; }
    .bf-chart-timer-value { font-size: 24px; }
    .bf-chart-timer-label { font-size: 8px; }
    .bf-chart-badge { top: 10px; left: 10px; font-size: 9px; padding: 3px 8px; }
    
    /* Landing */
    body.landing-page .nav-logo .accent { display: none; }
    .hero-headline { font-size: 1.7rem; }
    .section-title { font-size: 1.5rem; }
    .btn-primary-xl, .btn-outline-xl {
        padding: 13px 22px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    .hero-ctas { flex-direction: column; }
    .auth-card-m { padding: 32px 24px; }
    .action-btn { padding: 12px; font-size: 13px; }
    .action-btn strong { font-size: 11px; }
    .trust-bar-inner { flex-direction: column; padding: 24px; gap: 12px; }
    .trust-sep { display: none; }
    .trust-block {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .trust-block:last-child { border-bottom: none; }
    .trust-num { font-size: 1.4rem; }
    .trust-label { margin-top: 0; }
}

@media (max-width: 380px) {
    .bf-logo-text { font-size: 12px; }
    .bf-btn-deposit span { display: none; }
    .bf-btn-deposit { padding: 8px; }
    .bf-balance-value { font-size: 12px; }
    .bf-user-btn { padding: 6px; }
    
    .bf-quick-mini { min-width: 40px; padding: 5px 3px; font-size: 10px; }
    .bf-duration-mini { padding: 6px 3px; font-size: 10px; }
    .bf-overlay-amount, .bf-overlay-pnl-value { font-size: 14px; }
}

/* ============================================================
   LARGE MODALS — Profile / Trade History / Transactions
   Appended for: profile, history, transactions pages
   ============================================================ */

/* Large modal widths */
.bf-modal-lg .bf-modal-content { max-width: 640px; }

.bf-modal-xl .bf-modal-content {
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
}

.bf-modal-xl .bf-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px 22px;
}

/* ---------- Profile Tabs ---------- */
.bf-profile-tabs {
    display: flex;
    gap: 4px;
    background: var(--dark-3);
    padding: 5px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.bf-profile-tabs::-webkit-scrollbar { display: none; }

.bf-ptab {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 90px;
}

.bf-ptab:hover { color: var(--text-primary); }

.bf-ptab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.bf-ptab-panel { display: none; }

.bf-ptab-panel.active {
    display: block;
    animation: bfPanelFade 0.2s ease;
}

@keyframes bfPanelFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Profile info rows ---------- */
.bf-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
    gap: 12px;
}

.bf-profile-row:last-child { border-bottom: none; }

.bf-profile-row .label {
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}

.bf-profile-row .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
}

.bf-profile-row .value.mono {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* ---------- Stats mini grid ---------- */
.bf-stats-section-title {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px 0;
}

.bf-stats-section-title.live { color: var(--success-light); }

.bf-stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.bf-stat-mini {
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.bf-stat-mini .label {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    line-height: 1.2;
}

.bf-stat-mini .value {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bf-stat-mini .value.positive { color: var(--success-light); }
.bf-stat-mini .value.negative { color: var(--danger-light); }

/* ---------- Forms (profile edit) ---------- */
.bf-form-group { margin-bottom: 16px; }

.bf-form-group label {
    display: block;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bf-form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.2s;
    box-sizing: border-box;
}

.bf-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.bf-form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Filters row (history + transactions) ---------- */
.bf-history-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.bf-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bf-filter-group label {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bf-filter-select {
    padding: 9px 14px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
    min-width: 150px;
    transition: border-color 0.2s;
}

.bf-filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ---------- Tables inside modals ---------- */
.bf-table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--dark-border);
}

.bf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.bf-table thead { background: rgba(255, 255, 255, 0.03); }

.bf-table th {
    padding: 12px 14px;
    text-align: left;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border-bottom: 1px solid var(--dark-border);
}

.bf-table td {
    padding: 12px 14px;
    color: #dbe4f3;
    border-bottom: 1px solid var(--dark-border);
    white-space: nowrap;
}

.bf-table tbody tr:last-child td { border-bottom: none; }

.bf-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.bf-table-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--text-muted);
}

/* ---------- Badges ---------- */
.bf-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.bf-badge.win       { background: rgba(16, 185, 129, 0.15); color: var(--success-light); }
.bf-badge.loss      { background: rgba(239, 68, 68, 0.15);  color: var(--danger-light); }
.bf-badge.cashout   { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.bf-badge.pending   { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.bf-badge.demo      { background: rgba(6, 182, 212, 0.15);  color: #06b6d4; }
.bf-badge.live      { background: rgba(16, 185, 129, 0.15); color: var(--success-light); }
.bf-badge.completed { background: rgba(16, 185, 129, 0.15); color: var(--success-light); }
.bf-badge.failed    { background: rgba(239, 68, 68, 0.15);  color: var(--danger-light); }
.bf-badge.cancelled { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

.bf-dir-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bf-dir-badge.higher { background: rgba(16, 185, 129, 0.15); color: var(--success-light); }
.bf-dir-badge.lower  { background: rgba(239, 68, 68, 0.15);  color: var(--danger-light); }
.bf-dir-badge.even   { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.bf-dir-badge.odd    { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.bf-dir-badge.match  { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.bf-dir-badge.differ { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.bf-profit { color: var(--success-light); font-weight: 700; }
.bf-loss   { color: var(--danger-light);  font-weight: 700; }

/* ---------- Pagination ---------- */
.bf-pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.bf-pagination button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--dark-3);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bf-pagination button:hover:not(:disabled) {
    background: rgba(0, 102, 255, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.bf-pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.bf-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ---------- Loading ---------- */
.bf-loading-inline {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.bf-loading-inline i { margin-right: 8px; }

/* ---------- Referral box ---------- */
.bf-referral-box {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 102, 255, 0.02));
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 12px;
}

.bf-referral-code {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
    margin: 10px 0 16px;
    word-break: break-all;
}

.bf-referral-copy {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bf-referral-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

/* ---------- Small button variant ---------- */
.bf-btn-sm {
    padding: 9px 14px !important;
    font-size: 12px !important;
}

/* ============================================================
   RESPONSIVE — Large modals
   ============================================================ */

@media (max-width: 992px) {
    .bf-stats-mini-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .bf-modal-xl .bf-modal-content,
    .bf-modal-lg .bf-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .bf-modal-xl .bf-modal-body {
        padding: 16px;
    }

    .bf-stats-mini-grid { grid-template-columns: repeat(2, 1fr); }

    .bf-profile-tabs {
        justify-content: flex-start;
        padding: 4px;
    }

    .bf-ptab {
        flex: 0 0 auto;
        padding: 9px 12px;
        font-size: 11px;
        min-width: 0;
    }

    .bf-ptab i { font-size: 13px; }

    .bf-history-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .bf-filter-group { width: 100%; }
    .bf-filter-select { width: 100%; min-width: 0; }

    .bf-table { font-size: 11.5px; }
    .bf-table th { padding: 10px 10px; font-size: 9px; }
    .bf-table td { padding: 10px 10px; }

    .bf-profile-row .label { font-size: 12px; }
    .bf-profile-row .value { font-size: 12px; }
}

@media (max-width: 480px) {
    .bf-stats-mini-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .bf-stat-mini { padding: 10px; }
    .bf-stat-mini .value { font-size: 15px; }
    .bf-stat-mini .label { font-size: 8.5px; }

    .bf-ptab { padding: 8px 10px; font-size: 10px; }
    .bf-ptab span { display: inline; }
    .bf-ptab i { display: none; }

    .bf-referral-code { font-size: 18px; letter-spacing: 2px; }
}

.bf-mobile-mode-toggle {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bf-mobile-mode-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.bf-mobile-mode-toggle .bf-mode-toggle {
    width: 100%;
}

.bf-mobile-mode-toggle .bf-mode-btn {
    flex: 1;
    justify-content: center;
}