/* ============================================
   BP TREADS - Institutional Demo Trading Platform
   Luxury Black Theme - Institutional Aesthetic
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-panel: #141414;
    --bg-hover: #1a1a1a;
    --bg-active: #222222;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --text-disabled: #444444;
    
    --border-color: #2a2a2a;
    --border-light: #333333;
    
    --accent-green: #00d084;
    --accent-green-dark: #00a868;
    --accent-red: #ff4757;
    --accent-red-dark: #cc3644;
    --accent-blue: #3b82f6;
    --accent-gold: #d4af37;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================
   HERO BANNER - Above Dashboard
   ============================================ */
.hero-banner {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1000 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 24px;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.gold-text {
    color: var(--accent-gold);
    background: linear-gradient(90deg, #d4af37, #e5c158, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-subtitle strong {
    color: var(--accent-gold);
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e5c158 100%);
    color: var(--bg-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.cta-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cta-btn.secondary:hover {
    border-color: var(--accent-gold);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.hero-visual {
    flex-shrink: 0;
}

.hero-chart-animation {
    max-width: 300px;
    height: auto;
}

/* Chart animation keyframes */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.chart-anim-1 { animation: fadeUp 0.5s ease forwards; opacity: 0; }
.chart-anim-2 { animation: fadeUp 0.5s ease 0.15s forwards; opacity: 0; }
.chart-anim-3 { animation: fadeUp 0.5s ease 0.3s forwards; opacity: 0; }
.chart-anim-4 { animation: fadeUp 0.5s ease 0.45s forwards; opacity: 0; }
.chart-anim-5 { animation: fadeUp 0.5s ease 0.6s forwards; opacity: 0; }
.chart-anim-6 { animation: fadeUp 0.5s ease 0.75s forwards; opacity: 0; }

@keyframes trendPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.trend-line {
    animation: trendPulse 3s ease infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-label-text {
    animation: liveBlink 1.5s ease infinite;
}

/* Logo SVG in header */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-svg {
    transition: transform var(--transition-fast);
}

.logo:hover .logo-svg {
    transform: scale(1.1);
}

/* ============================================
   FEATURES STRIP
   ============================================ */
.features-strip {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    border-color: var(--accent-gold);
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 18px;
}

.feature-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Tagline in footer */
.tagline {
    display: block;
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 500;
    margin-top: 2px;
}

/* ============================================
   AD ABOVE DASHBOARD
   ============================================ */
.ad-above-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    min-height: 280px;
}

.ad-above-dashboard iframe {
    max-width: 100%;
}

/* ============================================
   RESPONSIVE - Hero Banner & Features
   ============================================ */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 24px 16px;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .hero-stat-value {
        font-size: 16px;
    }
    
    .cta-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .features-strip {
        padding: 12px 16px;
        gap: 6px 12px;
    }
    
    .feature-item {
        padding: 6px 12px;
    }
    
    .feature-text {
        font-size: 11px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* ============================================
   DISCLAIMER BANNER
   ============================================ */
.disclaimer-banner {
    background: linear-gradient(90deg, #1a1500 0%, #2a2000 50%, #1a1500 100%);
    border-bottom: 1px solid var(--accent-gold);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: #d4af37;
    text-align: center;
}

.disclaimer-icon {
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 20px;
    color: var(--accent-gold);
    font-weight: 600;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-btn.active {
    color: var(--text-primary);
    background: var(--bg-active);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.balance-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-green);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 1px;
    background: var(--border-color);
    min-height: calc(100vh - 60px - 120px - 37px);
}

/* ============================================
   MARKET PANEL (Left)
   ============================================ */
.market-panel {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.market-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-active);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.market-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.market-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.market-item:hover {
    background: var(--bg-hover);
}

.market-item.active {
    background: var(--bg-active);
    border-left: 3px solid var(--accent-gold);
}

.market-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.market-symbol {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.market-name {
    font-size: 11px;
    color: var(--text-muted);
}

.market-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.market-price {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.market-change {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
}

.market-change.positive {
    color: var(--accent-green);
}

.market-change.negative {
    color: var(--accent-red);
}

/* ============================================
   CHART PANEL (Center)
   ============================================ */
.chart-panel {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.symbol-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.symbol-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.symbol-price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.price-change {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.price-change.positive {
    color: var(--accent-green);
    background: rgba(0, 208, 132, 0.1);
}

.price-change.negative {
    color: var(--accent-red);
    background: rgba(255, 71, 87, 0.1);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.zoom-controls {
    display: flex;
    gap: 4px;
}

.zoom-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.timeframe-selector {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    padding: 2px;
    border-radius: 4px;
}

.tf-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.tf-btn:hover {
    color: var(--text-primary);
}

.tf-btn.active {
    background: var(--bg-active);
    color: var(--text-primary);
}

.indicator-toggle {
    display: flex;
    gap: 4px;
}

/* Mobile Chart Range Selector */
.chart-range-selector {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    padding: 2px;
    border-radius: 4px;
}

.chart-range-selector .range-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.chart-range-selector .range-btn:hover {
    color: var(--text-primary);
}

.chart-range-selector .range-btn.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Mobile only visibility */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
}

.indicator-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.indicator-btn:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.indicator-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.chart-container {
    flex: 1;
    padding: 16px;
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

#tradingChart {
    width: 100% !important;
    height: 100% !important;
}

/* Chart Navigation Overlay */
.chart-nav-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.chart-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: var(--bg-primary);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    pointer-events: auto;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chart-nav-btn:hover {
    background: var(--accent-gold);
    transform: scale(1.1);
}

.chart-nav-hint {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.chart-nav-hint .swipe-icon {
    font-size: 14px;
}

.chart-reset-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chart-reset-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

/* Hide navigation on large screens if desired */
@media (min-width: 1200px) {
    .chart-nav-hint {
        display: none;
    }
}

/* ============================================
   ORDER PANEL (Right)
   ============================================ */
.order-panel {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.order-panel > .quick-trade-section-top {
    flex-shrink: 0;
}

.order-panel > .order-form {
    flex: 1;
    overflow-y: auto;
}

.order-form {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Quick Trade Section - New Design */
.quick-trade-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 10px;
}

/* Quick Trade Section TOP - Moved to top for easy access */
.quick-trade-section-top {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    order: -1;
}

.quick-trade-section-top .order-buttons.quick-trade {
    margin-bottom: 12px;
}

.quick-trade-section-top .live-prices-row {
    margin-top: 8px;
}

.current-symbol-display {
    text-align: center;
    margin-bottom: 15px;
}

.symbol-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.symbol-name-large {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Trade Duration Selector - Enhanced */
.trade-duration-section {
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-panel) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.duration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.duration-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.duration-value {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 700;
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.duration-options {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.duration-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
    min-width: 50px;
    position: relative;
    overflow: hidden;
}

.duration-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.duration-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e5c158 100%);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.duration-custom {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.duration-custom input {
    width: 70px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.duration-custom input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.duration-custom select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.duration-custom select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.duration-apply {
    background: var(--accent-gold);
    border: none;
    color: var(--bg-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.duration-apply:hover {
    background: #e5c158;
    transform: translateY(-1px);
}

.duration-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.duration-info .info-icon {
    font-size: 14px;
}

.duration-info span:last-child {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-buttons.quick-trade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.order-buttons.quick-trade .btn-sell,
.order-buttons.quick-trade .btn-buy {
    padding: 15px 20px;
    font-size: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    min-height: 60px;
}

.order-buttons.quick-trade .btn-sell {
    background: linear-gradient(135deg, #ff4757 0%, #cc3644 100%);
}

.order-buttons.quick-trade .btn-buy {
    background: linear-gradient(135deg, #00d084 0%, #00a868 100%);
}

.order-buttons.quick-trade .btn-sell:active,
.order-buttons.quick-trade .btn-buy:active {
    transform: scale(0.95);
}

.btn-arrow {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.btn-label {
    display: none;
}

.btn-price {
    display: none;
}

.live-prices-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px 15px;
}

.live-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-price.sell .live-value {
    color: var(--accent-red);
}

.live-price.buy .live-value {
    color: var(--accent-green);
}

.live-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-value {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.spread-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spread-dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.spread-text {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

/* Order Settings Section */
.order-settings {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Balance Menu - Professional Modal for PC & Mobile */
.balance-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.balance-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.balance-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.balance-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.balance-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.balance-menu-header .balance-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
}

.close-balance-menu {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-balance-menu:hover {
    background: var(--accent-red);
    color: white;
}

.balance-menu-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.menu-section-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.balance-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-menu-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.reset-balance-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.reset-balance-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .balance-menu {
        top: auto;
        bottom: 70px;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
    }
    
    .balance-menu.active {
        transform: translateY(0);
    }
}

.balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
}

.close-balance-menu {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.mobile-balance-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balance-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.balance-option:hover {
    border-color: var(--accent-gold);
    background: var(--bg-hover);
}

.balance-option.share {
    border-color: rgba(212, 175, 55, 0.3);
}

.balance-option.youtube {
    border-color: rgba(255, 0, 0, 0.3);
}

.balance-option.facebook {
    border-color: rgba(24, 119, 242, 0.3);
}

.balance-option.tiktok {
    border-color: rgba(255, 0, 80, 0.3);
}

.balance-option.reset {
    border-color: rgba(0, 208, 132, 0.3);
}

.option-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.option-icon svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.balance-option:hover .option-icon svg {
    transform: scale(1.1);
}

.balance-option.youtube .option-icon {
    background: #ff0000;
}

.balance-option.youtube .option-icon svg {
    fill: white;
}

.balance-option.facebook .option-icon {
    background: #1877f2;
}

.balance-option.facebook .option-icon svg {
    fill: white;
}

.balance-option.tiktok .option-icon {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
}

.balance-option.tiktok .option-icon svg {
    fill: white;
}

.balance-option.share .option-icon {
    background: var(--accent-gold);
}

.balance-option.share .option-icon svg {
    fill: var(--bg-primary);
}

.option-text {
    flex: 1;
}

.option-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.option-reward {
    display: block;
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 500;
}

.option-desc {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.option-reward.bonus {
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.option-arrow {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.balance-option:hover .option-arrow {
    transform: translateX(4px);
    color: var(--accent-gold);
}

.balance-option.download {
    border-color: rgba(0, 208, 132, 0.3);
}

.balance-option.download .option-icon {
    font-size: 24px;
    background: linear-gradient(135deg, #00d084, #00b371);
}

.order-type-tabs {
    display: flex;
    gap: 8px;
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.order-type-btn {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.order-type-btn .type-icon {
    display: none;
}

.order-type-btn .type-label {
    font-weight: 600;
    font-size: 13px;
}

.order-type-btn .type-desc {
    display: none;
}

.order-type-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.order-type-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e5c158 100%);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.order-panel-content {
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 15px;
}

.panel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.volume-presets {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.volume-presets button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.volume-presets button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

.order-info.simplified {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group input:read-only {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vol-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vol-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.volume-control input {
    flex: 1;
    text-align: center;
}

.price-display {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
}

.bid-ask {
    display: none;
}

.bid, .ask {
    display: none;
}

.bid .label {
    display: none;
}

.ask .label {
    display: none;
}

.bid .value, .ask .value {
    display: none;
}

.spread {
    display: none;
}

.spread-value {
    display: none;
}

.order-buttons {
    display: flex;
    gap: 8px;
}

.btn-sell, .btn-buy {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-sell {
    background: linear-gradient(180deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
}

.btn-sell:hover {
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.4);
    transform: translateY(-1px);
}

.btn-buy {
    background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
}

.btn-buy:hover {
    box-shadow: 0 4px 16px rgba(0, 208, 132, 0.4);
    transform: translateY(-1px);
}

.btn-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

.btn-price {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.info-row span:first-child {
    color: var(--text-muted);
}

.info-row span:last-child {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* ============================================
   BOTTOM PANEL
   ============================================ */
.bottom-panel {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    height: 280px;
    display: flex;
    flex-direction: column;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-headers {
    display: flex;
    gap: 2px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.tab-header {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-header:hover {
    color: var(--text-primary);
}

.tab-header.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-gold);
}

.badge {
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.tab-content {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.tab-pane {
    display: none;
    height: 100%;
}

.tab-pane.active {
    display: block;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table .empty-state {
    text-align: center;
    color: var(--text-muted);
}

.data-table .empty-state td {
    padding: 40px;
}

.type-buy {
    color: var(--accent-green);
    font-weight: 600;
}

.type-sell {
    color: var(--accent-red);
    font-weight: 600;
}

.pnl-positive {
    color: var(--accent-green);
}

.pnl-negative {
    color: var(--accent-red);
}

.time-remaining {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 600;
}

.close-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Account Stats */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.footer-left .logo-text {
    font-size: 14px;
}

.copyright {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-center {
    flex: 1;
    max-width: 600px;
}

.risk-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.risk-disclaimer strong {
    color: var(--accent-gold);
}

.footer-right {
    min-width: 120px;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.reset-info, .locked-info {
    text-align: center;
    margin-bottom: 24px;
}

.balance-zero-icon, .lock-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.reset-info h4, .locked-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.reset-info p, .locked-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn.twitter:hover {
    border-color: #000;
    background: #000;
}

.share-btn.linkedin:hover {
    border-color: #0077b5;
    background: #0077b5;
}

.share-btn.copy:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.share-icon {
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    color: var(--text-primary);
    z-index: 2000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.active {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--accent-green);
}

.toast.error {
    border-left-color: var(--accent-red);
}

/* ============================================
   GOOGLE ADSENSE - Enhanced Ad Container Styles
   ============================================ */
.ad-container {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.ad-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 0;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.6;
    margin-bottom: 2px;
}

.ad-top {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    min-height: 90px;
}

.ad-sidebar {
    padding: 12px 8px;
    border-top: 1px solid var(--border-color);
    min-height: 250px;
}

.ad-sidebar-2 {
    border-top: 1px solid var(--border-color);
    min-height: 200px;
}

.ad-bottom {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    min-height: 90px;
}

.ad-in-content {
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
    min-height: 90px;
}

.ad-order-panel {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    min-height: 100px;
    margin-top: auto;
}

.ad-learn-section {
    padding: 16px 0;
    margin: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    min-height: 90px;
}

.ad-bottom-panel {
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    min-height: 60px;
}

/* Responsive ads */
@media (max-width: 768px) {
    .ad-top {
        min-height: 50px;
        padding: 4px 0;
    }
    
    .ad-sidebar {
        min-height: 100px;
        padding: 8px;
    }
    
    .ad-sidebar-2 {
        display: none;
    }
    
    .ad-bottom {
        min-height: 50px;
        padding: 8px 0;
    }
    
    .ad-in-content {
        min-height: 50px;
        padding: 4px 12px;
    }
    
    .ad-order-panel {
        min-height: 60px;
        padding: 8px;
    }
    
    .ad-learn-section {
        min-height: 50px;
        padding: 8px 0;
        margin: 12px 0;
    }
    
    .ad-bottom-panel {
        min-height: 40px;
    }
}

/* Hide sidebar ad on mobile */
@media (max-width: 992px) {
    .ad-sidebar {
        display: none;
    }
    
    .ad-sidebar-2 {
        display: none;
    }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Navigation - Always visible on all devices */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 1000;
    justify-content: space-around;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    padding: 8px 16px;
    transition: all var(--transition-fast);
    border-radius: 8px;
}

.mobile-nav-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-nav-btn.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.mobile-nav-icon {
    font-size: 20px;
}

/* PC Optimization - Side navigation on larger screens */
@media (min-width: 1024px) {
    .mobile-nav {
        position: fixed;
        left: 0;
        top: 60px;
        bottom: 0;
        right: auto;
        width: 90px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 0;
        border-top: none;
        border-right: 1px solid var(--border-color);
    }
    
    .mobile-nav-btn {
        padding: 16px 8px;
        margin-bottom: 8px;
        width: 70px;
    }
    
    .mobile-nav-icon {
        font-size: 24px;
    }
    
    body {
        padding-left: 90px;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Tablet and smaller */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 220px 1fr 240px;
    }
}

@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        min-height: auto;
    }
    
    .market-panel {
        max-height: 180px;
        order: 1;
    }
    
    .chart-panel {
        order: 2;
        min-height: 350px;
    }
    
    .order-panel {
        order: 3;
        max-height: none;
    }
    
    .chart-container {
        min-height: 300px;
    }
    
    .bottom-panel {
        order: 4;
        height: auto;
        min-height: 200px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer {
        margin-bottom: 60px;
    }
    
    .toast {
        bottom: 90px;
    }
    
    .modal {
        padding-bottom: 80px;
    }
    
    .disclaimer-banner {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .header {
        padding: 8px 12px;
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
    }
    
    .header-left {
        gap: 12px;
        width: 100%;
        justify-content: space-between;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    
    .balance-display {
        align-items: flex-start;
    }
    
    .balance-value {
        font-size: 14px;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 0;
    }
    
    .market-panel {
        max-height: 160px;
        padding: 8px;
    }
    
    .panel-header {
        padding: 10px 12px;
    }
    
    .market-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .market-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .market-item {
        padding: 8px 10px;
    }
    
    .market-symbol {
        font-size: 12px;
    }
    
    .market-price {
        font-size: 12px;
    }
    
    .chart-panel {
        min-height: 280px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .symbol-info {
        gap: 10px;
    }
    
    .symbol-name {
        font-size: 16px;
    }
    
    .symbol-price {
        font-size: 16px;
    }
    
    .chart-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .zoom-controls {
        order: 2;
    }
    
    .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .timeframe-selector {
        flex: 1;
        min-width: 0;
    }
    
    .tf-btn {
        flex: 1;
        padding: 5px 6px;
        font-size: 10px;
        min-width: 32px;
    }
    
    .indicator-toggle {
        flex-wrap: wrap;
    }
    
    .indicator-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .chart-container {
        min-height: 250px;
        padding: 8px;
    }
    
    .order-panel {
        border-top: 1px solid var(--border-color);
    }
    
    .order-form {
        padding: 12px;
        gap: 12px;
    }
    
    .order-type-tabs {
        gap: 1px;
    }
    
    .order-type-btn {
        padding: 6px;
        font-size: 11px;
    }
    
    .form-group input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .price-display {
        padding: 12px;
    }
    
    .bid .value, .ask .value {
        font-size: 16px;
    }
    
    .order-buttons {
        gap: 6px;
    }
    
    .btn-sell, .btn-buy {
        padding: 12px;
    }
    
    .btn-label {
        font-size: 13px;
    }
    
    .btn-price {
        font-size: 14px;
    }
    
    .bottom-panel {
        min-height: 180px;
    }
    
    .tab-headers {
        padding: 0 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tab-headers::-webkit-scrollbar {
        display: none;
    }
    
    .tab-header {
        padding: 10px 12px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 10px;
    }
    
    .data-table {
        font-size: 10px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 4px;
    }
    
    .account-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .footer {
        padding: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        align-items: center;
    }
    
    .risk-disclaimer {
        font-size: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .share-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .toast {
        left: 12px;
        right: 12px;
        bottom: 80px;
    }
}

/* ============================================
   LEARN TRADING - MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .step-content {
        grid-template-columns: 1fr;
    }
    
    .step-chart {
        order: -1;
    }
    
    .trend-types {
        grid-template-columns: 1fr;
    }
    
    .sr-levels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .learn-trading-section {
        padding: 10px;
    }
    
    .learn-header h2 {
        font-size: 20px;
    }
    
    .learn-step {
        padding: 20px;
    }
    
    .step-header h3 {
        font-size: 18px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .learn-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .learn-nav-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .step-dots {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .candlestick-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .risk-item {
        flex-direction: column;
        text-align: center;
    }
    
    .indicator-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .header {
        padding: 6px 10px;
    }
    
    .logo-icon {
        font-size: 16px;
    }
    
    .logo-text {
        font-size: 13px;
    }
    
    .balance-label {
        font-size: 9px;
    }
    
    .balance-value {
        font-size: 13px;
    }
    
    .connection-status {
        padding: 4px 8px;
    }
    
    .status-text {
        font-size: 10px;
    }
    
    .market-panel {
        max-height: 140px;
    }
    
    .chart-panel {
        min-height: 240px;
    }
    
    .chart-container {
        min-height: 200px;
    }
    
    .symbol-name {
        font-size: 14px;
    }
    
    .symbol-price {
        font-size: 14px;
    }
    
    .price-change {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .tf-btn {
        padding: 4px 5px;
        font-size: 9px;
        min-width: 28px;
    }
    
    .indicator-btn {
        padding: 4px 6px;
        font-size: 9px;
    }
    
    .order-form {
        padding: 10px;
        gap: 10px;
    }
    
    .bid-ask {
        gap: 8px;
    }
    
    .bid .value, .ask .value {
        font-size: 14px;
    }
    
    .btn-sell, .btn-buy {
        padding: 10px;
    }
    
    .btn-label {
        font-size: 12px;
    }
    
    .btn-price {
        font-size: 12px;
    }
    
    .tab-header {
        padding: 8px 10px;
        font-size: 10px;
    }
    
    .data-table {
        font-size: 9px;
    }
    
    .data-table th,
    .data-table td {
        padding: 5px 3px;
    }
    
    .close-btn {
        padding: 3px 8px;
        font-size: 9px;
    }
    
    .account-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .stat-value {
        font-size: 12px;
    }
    
    .reset-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Landscape mode on phones */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 6px 12px;
    }
    
    .main-container {
        grid-template-columns: 180px 1fr 200px;
        grid-template-rows: 1fr auto;
    }
    
    .market-panel {
        max-height: none;
        order: 1;
    }
    
    .chart-panel {
        order: 2;
        min-height: 200px;
    }
    
    .order-panel {
        order: 3;
    }
    
    .bottom-panel {
        order: 4;
        height: 150px;
    }
    
    .chart-container {
        min-height: 180px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .market-item:active {
        background: var(--bg-active);
    }
    
    .nav-btn:active,
    .tab-btn:active,
    .tf-btn:active,
    .indicator-btn:active,
    .order-type-btn:active {
        opacity: 0.7;
    }
    
    .btn-sell:active,
    .btn-buy:active {
        transform: scale(0.98);
    }
    
    /* Larger touch targets */
    .vol-btn {
        min-width: 36px;
        min-height: 36px;
    }
    
    .close-btn {
        min-height: 32px;
        padding: 6px 14px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-item {
    animation: slideUp 0.2s ease;
}

/* Price flash animation */
@keyframes flashGreen {
    0% { background: rgba(0, 208, 132, 0.3); }
    100% { background: transparent; }
}

@keyframes flashRed {
    0% { background: rgba(255, 71, 87, 0.3); }
    100% { background: transparent; }
}

.price-up {
    animation: flashGreen 0.5s ease;
}

.price-down {
    animation: flashRed 0.5s ease;
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* ============================================
   DOWNLOAD APP SECTION - Premium Gold Theme
   ============================================ */
.download-app-section {
    padding: 60px 24px;
    background: linear-gradient(135deg, #000000 0%, #0a0800 50%, #1a1000 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
}

.download-header {
    text-align: center;
    margin-bottom: 50px;
}

.download-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.download-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.download-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Download Content Layout */
.download-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 50px;
}

/* Phone Mockup */
.app-preview {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 480px;
    background: #111;
    border-radius: 36px;
    padding: 12px;
    border: 2px solid #333;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
}

.phone-screen {
    background: #0a0a0a;
    border-radius: 20px;
    height: calc(100% - 60px);
    overflow: hidden;
    border: 1px solid #222;
}

.phone-home-btn {
    width: 120px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 6px auto 0;
}

.mockup-chart {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
}

.mockup-symbol {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.mockup-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
}

.mockup-candles {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 8px 0;
}

.mockup-candle {
    flex: 1;
    border-radius: 2px;
    min-height: 8px;
}

.mockup-candle.green {
    background: linear-gradient(180deg, #00d084, #00a868);
}

.mockup-candle.red {
    background: linear-gradient(180deg, #ff4757, #cc3644);
}

.mockup-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #222;
}

.mockup-btn {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.mockup-btn.buy {
    background: #00d084;
    color: #000;
}

.mockup-btn.sell {
    background: #ff4757;
    color: #fff;
}

.mockup-balance {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Download Info */
.download-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.app-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.app-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.app-feature:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.app-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
}

.app-feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.app-feature-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Download CTA Section */
.download-cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.app-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.app-stat {
    text-align: center;
}

.app-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-mono);
}

.app-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.download-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e5c158 100%);
    color: var(--bg-primary);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    margin-bottom: 16px;
}

.download-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.download-main-btn:active {
    transform: translateY(-1px);
}

.download-icon {
    flex-shrink: 0;
    animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-btn-small {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}

.download-btn-large {
    font-size: 18px;
    font-weight: 700;
}

.download-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Download Steps */
.download-steps {
    text-align: center;
}

.download-steps h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.step-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1);
}

.step-card-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
}

.step-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive - Download Section */
@media (max-width: 992px) {
    .download-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .app-preview {
        order: -1;
    }
    
    .phone-mockup {
        width: 220px;
        height: 400px;
    }
    
    .app-features-list {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .download-app-section {
        padding: 40px 16px;
    }
    
    .download-header h2 {
        font-size: 24px;
    }
    
    .app-features-list {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-stats {
        gap: 20px;
    }
    
    .app-stat-value {
        font-size: 20px;
    }
    
    .download-main-btn {
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .download-btn-large {
        font-size: 16px;
    }
}

/* Make the gold text consistent */
.golden-text {
    color: var(--accent-gold);
}

/* ============================================
   LEARN TRADING SECTION
   ============================================ */
.learn-trading-section {
    padding: 20px;
    background: var(--bg-primary);
    min-height: calc(100vh - 200px);
}

.learn-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Real-Time Learning Lab */
.learning-lab {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.lab-header {
    text-align: center;
    margin-bottom: 20px;
}

.lab-header h3 {
    font-size: 20px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.lab-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.lab-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* AI Teacher Panel */
.ai-teacher-panel {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.ai-icon {
    font-size: 40px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00d084;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-chat {
    flex: 1;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 8px;
}

.chat-message.ai {
    align-items: flex-start;
}

.message-bubble {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}

.ai-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ai-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* Practice Chart Panel */
.practice-chart-panel {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.practice-chart-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.panel-title {
    font-weight: 600;
    color: var(--text-primary);
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-control-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chart-control-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.practice-chart-container {
    flex: 1;
    min-height: 300px;
    position: relative;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

#practiceChart {
    width: 100% !important;
    height: 100% !important;
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.chart-overlay.active {
    opacity: 1;
}

.overlay-hint {
    background: rgba(212, 175, 55, 0.9);
    color: var(--bg-primary);
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.practice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.practice-btn {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.practice-btn.buy {
    background: linear-gradient(135deg, #00d084 0%, #00a868 100%);
    color: white;
}

.practice-btn.sell {
    background: linear-gradient(135deg, #ff4757 0%, #cc3644 100%);
    color: white;
}

.practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for learning lab */
@media (max-width: 768px) {
    .lab-content {
        grid-template-columns: 1fr;
    }
    
    .ai-controls {
        grid-template-columns: 1fr;
    }
    
    .practice-actions {
        grid-template-columns: 1fr;
    }
}

.learn-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
}

.learn-header h2 {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.learn-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.learn-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #b8941f);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 12.5%;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.learn-content {
    margin-bottom: 30px;
}

.learn-step {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.learn-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8941f 100%);
    color: var(--bg-primary);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step-header h3 {
    font-size: 22px;
    color: var(--text-primary);
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.step-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.step-text p {
    margin-bottom: 15px;
}

.step-text ul {
    list-style: none;
    margin: 15px 0;
}

.step-text li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.step-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.example-box {
    background: rgba(0, 208, 132, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.example-box.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.example-box h4 {
    color: var(--accent-green);
    margin-bottom: 10px;
    font-size: 14px;
}

.example-box.warning h4 {
    color: #ffc107;
}

.example-box .profit {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 16px;
}

.step-chart {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-chart canvas {
    width: 100% !important;
    height: 250px !important;
}

.chart-caption {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Candlestick Legend */
.candlestick-legend {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.candle-demo {
    width: 20px;
    height: 30px;
    border-radius: 2px;
}

.candle-demo.green {
    background: var(--accent-green);
}

.candle-demo.red {
    background: var(--accent-red);
}

/* Trend Types */
.trend-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.trend-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.trend-item.uptrend {
    border-color: var(--accent-green);
}

.trend-item.downtrend {
    border-color: var(--accent-red);
}

.trend-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.trend-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.trend-item p {
    font-size: 12px;
    margin-bottom: 10px;
}

.trend-action {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.trend-item.uptrend .trend-action {
    background: rgba(0, 208, 132, 0.2);
    color: var(--accent-green);
}

.trend-item.downtrend .trend-action {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
}

.trend-item.sideways .trend-action {
    background: rgba(160, 160, 160, 0.2);
    color: var(--text-secondary);
}

/* Support & Resistance */
.sr-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.sr-item {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.sr-item.support {
    border: 1px solid var(--accent-green);
}

.sr-item.resistance {
    border: 1px solid var(--accent-red);
}

.sr-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.sr-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.sr-signal {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sr-item.support .sr-signal {
    background: rgba(0, 208, 132, 0.2);
    color: var(--accent-green);
}

.sr-item.resistance .sr-signal {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
}

/* Order Types */
.order-types-learn {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-type-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.order-type-card h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.order-type-card p {
    font-size: 13px;
    margin-bottom: 8px;
}

.order-use {
    font-size: 12px;
    color: var(--accent-blue);
    font-style: italic;
}

/* Risk Management */
.risk-rules {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.risk-item {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.risk-icon {
    font-size: 28px;
}

.risk-item h4 {
    color: var(--text-primary);
    margin-bottom: 3px;
}

.risk-item p {
    font-size: 13px;
    margin-bottom: 3px;
}

.risk-example {
    font-size: 12px;
    color: var(--accent-gold);
}

/* Indicators */
.indicators-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator-item {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.indicator-icon {
    font-size: 28px;
}

.indicator-item h4 {
    color: var(--text-primary);
    margin-bottom: 3px;
}

.indicator-item p {
    font-size: 13px;
    margin-bottom: 3px;
}

.indicator-signal {
    font-size: 12px;
    color: var(--accent-green);
}

/* Practice Section */
.practice-ready {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.1) 0%, rgba(0, 208, 132, 0.05) 100%);
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-radius: 12px;
    margin-bottom: 25px;
}

.ready-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.practice-ready h3 {
    color: var(--accent-green);
    font-size: 22px;
    margin-bottom: 10px;
}

.practice-tips {
    margin-bottom: 25px;
}

.practice-tips h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.practice-tips li {
    padding: 10px 0;
}

.start-trading-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-green) 0%, #00a86b 100%);
    border: none;
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-trading-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.4);
}

/* Learn Navigation */
.learn-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.learn-nav-btn {
    padding: 12px 25px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-nav-btn:hover {
    border-color: var(--accent-gold);
    background: var(--bg-hover);
}

.learn-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--border-light);
}