/* HybridTrader - Professional Theme with Dark/Light Support */

:root {
    /* Default Dark Mode (Obsidian) */
    --bg-primary: #0b0e11;
    --bg-secondary: #181a20;
    --bg-tertiary: #2b3139;
    --bg-card: #181a20;
    --bg-hover: #2b3139;
    
    --gold-primary: #fcd535;
    --gold-light: #fde062;
    --gold-dark: #c9aa2a;
    --gold-glow: rgba(252, 213, 53, 0.2);
    
    --primary: var(--gold-primary);
    
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --text-muted: #5e6673;
    
    --success: #0ecb81;
    --danger: #f6465d;
    --warning: #f0b90b;
    
    --border-color: #2b3139;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --transition: all 0.2s ease;
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    
    --primary: var(--gold-dark);
    
    --text-primary: #1e2329;
    --text-secondary: #474d57;
    --text-muted: #707a8a;
    
    --success: #059669;
    --danger: #e11d48;
    --warning: #d97706;
    
    --border-color: #eaecef;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

.app-container {
    width: 100%;
    overflow: hidden;
}

/* Utilities */
.text-right { text-align: right !important; }
.text-danger { color: var(--danger) !important; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }

/* Ticker Tape */
.ticker-wrap {
    width: 100%;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 32px;
    display: flex;
    align-items: center;
}
.ticker {
    display: flex;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}
.ticker:hover {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}
.ticker-symbol { color: var(--text-primary); margin-right: 8px; font-weight: 600; }
.ticker-price { color: var(--text-secondary); margin-right: 8px; }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Skeletons */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
.skeleton-text {
    height: 16px;
    width: 80%;
    margin-bottom: 8px;
}
.skeleton-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Top Navbar */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-left, .navbar-right { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; margin-right: 16px; }
.nav-links { display: flex; gap: 20px; }
.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
}
.nav-item:hover, .nav-item.active { color: var(--gold-primary); }

.connection-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); animation: blink 1.5s ease-in-out infinite; }
.status-dot.connected { background: var(--success); animation: none; }

.theme-toggle { cursor: pointer; padding: 8px; border-radius: 50%; transition: var(--transition); }
.theme-toggle:hover { background: var(--bg-tertiary); }
.toggle-icon { font-size: 16px; user-select: none; }

/* User Dropdown */
.user-dropdown-container { position: relative; }
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    transition: var(--transition);
}
.user-info:hover { background: var(--bg-hover); }
.guest-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; color: #fff; background: var(--text-muted); }
.guest-text { font-size: 14px; font-weight: 600; }
.dropdown-arrow { font-size: 10px; color: var(--text-secondary); }

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1001;
}
.user-dropdown-menu.active { display: flex; }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 8px; }
.dropdown-item {
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-tertiary); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 8px 0; }

/* Main Content & Shared Components */
.main-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.page-content { display: none; }
.page-content.active { display: block; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary { background: var(--gold-primary); color: #181a20; }
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-secondary:hover { background: #3e4550; }
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-large { padding: 14px 32px; font-size: 16px; border-radius: 8px; }
.btn-full { width: 100%; }
.btn-buy { background: var(--success); color: white; }
.btn-sell { background: var(--danger); color: white; }
.btn-social { background: var(--bg-tertiary); color: var(--text-primary); width: 100%; border: 1px solid var(--border-color); font-weight: 500;}
.btn-social:hover { background: var(--bg-hover); }
.social-icon { width: 18px; height: 18px; }

/* Hero Section */
.hero-section { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; padding: 40px 0; }
.hero-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}
.hero-highlight { color: var(--gold-primary); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }

/* Responsive Form Rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; }
.hero-stat-box { display: flex; align-items: center; gap: 16px; }
.stat-icon { font-size: 32px; }
.stat-title { font-size: 24px; font-weight: 700; color: var(--gold-primary); }
.stat-desc { font-size: 14px; color: var(--text-secondary); }

/* Widgets */
.widget-card { background: var(--bg-card); border-radius: 16px; padding: 24px; border: 1px solid var(--border-color); }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.widget-tabs { display: flex; gap: 16px; }
.widget-tab { font-size: 16px; font-weight: 600; color: var(--text-secondary); cursor: pointer; padding-bottom: 4px; }
.widget-tab.active { color: var(--text-primary); border-bottom: 2px solid var(--gold-primary); }
.widget-link { font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.widget-link:hover { color: var(--gold-primary); }
.widget-title { font-size: 16px; font-weight: 600; }
.widget-body { display: flex; flex-direction: column; gap: 16px; }
.popular-coin-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; cursor: pointer; }
.popular-coin-row:hover { background: var(--bg-hover); border-radius: 8px; }
.news-item { font-size: 14px; color: var(--text-secondary); line-height: 1.5; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.news-item:hover { color: var(--gold-primary); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; }
.stat-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 4px; }
.stat-change { font-size: 14px; font-weight: 500; }

/* Tables */
.cmc-style-table { width: 100%; border-collapse: collapse; }
.cmc-style-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.cmc-style-table td { padding: 16px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.cmc-style-table tr:hover td { background: var(--bg-hover); }
.coin-name-cell { display: flex; align-items: center; gap: 12px; }
.coin-name { font-weight: 700; color: var(--text-primary); }
.coin-symbol { font-size: 12px; color: var(--text-secondary); background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px; }
.price-font { font-family: 'Inter', sans-serif; font-weight: 600; }
.coin-icon { width: 24px; height: 24px; border-radius: 50%; }

/* Colors & Flashes */
.positive { color: var(--success) !important; }
.negative { color: var(--danger) !important; }
@keyframes flash-green { 0% { background-color: rgba(14, 203, 129, 0.2); } 100% { background-color: transparent; } }
@keyframes flash-red { 0% { background-color: rgba(246, 70, 93, 0.2); } 100% { background-color: transparent; } }
.flash-up { animation: flash-green 1s ease-out; color: var(--success); }
.flash-down { animation: flash-red 1s ease-out; color: var(--danger); }

/* Enhanced Modals & Forms */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal.active { display: flex; }
.modal-content { background: var(--bg-secondary); border-radius: 16px; padding: 40px; width: 100%; max-width: 440px; position: relative; box-shadow: var(--shadow-card); max-height: 90vh; overflow-y: auto; }
.modal-content.modal-large { max-width: 500px; }
.modal-close { position: absolute; top: 20px; right: 24px; font-size: 28px; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.modal-close:hover { color: var(--text-primary); }
.modal-header-centered { text-align: center; margin-bottom: 32px; }
.modal-header-centered h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.modal-header-centered p { color: var(--text-secondary); font-size: 14px; }

.social-auth-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; text-align: center; margin: 24px 0; color: var(--text-secondary); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.auth-divider span { padding: 0 10px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 8px; font-weight: 500; color: var(--text-primary); }
.form-input { width: 100%; padding: 14px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 14px; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 2px var(--gold-glow); }
.password-input-wrap { position: relative; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-secondary); font-size: 16px; }

.form-group-flex { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.forgot-password { color: var(--gold-primary); font-size: 13px; text-decoration: none; font-weight: 500; }
.forgot-password:hover { text-decoration: underline; }

.form-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.form-checkbox input { margin-top: 4px; }
.form-checkbox label { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.form-checkbox a { color: var(--gold-primary); text-decoration: none; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--gold-primary); text-decoration: none; font-weight: 500; }

/* Multi-step Registration */
.step-indicator { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding: 0 20px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.5; transition: var(--transition); }
.step.active { opacity: 1; }
.step.active .step-circle { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }
.step.completed .step-circle { background: var(--success); color: #fff; border-color: var(--success); }
.step-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.step-label { font-size: 12px; font-weight: 500; }
.step-line { flex: 1; height: 2px; background: var(--border-color); margin: 0 10px; position: relative; top: -10px; }

.reg-step { display: none; animation: fadeIn 0.3s ease; }
.reg-step.active { display: block; }

.otp-container { display: flex; justify-content: space-between; gap: 12px; margin: 32px 0; }
.otp-input { width: 100%; height: 50px; font-size: 24px; text-align: center; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }
.otp-input:focus { outline: none; border-color: var(--gold-primary); }

.upload-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.upload-box { border: 2px dashed var(--border-color); border-radius: 12px; padding: 32px 16px; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg-primary); }
.upload-box:hover { border-color: var(--gold-primary); background: var(--bg-hover); }
.upload-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.7; }
.upload-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.upload-subtext { font-size: 12px; color: var(--text-secondary); }
.reg-actions-row { display: flex; gap: 16px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Rest of Pages (Markets, Wallet, Trade, Footer) - Mostly Unchanged structurally, inherited theme colors */
.markets-grid, .wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.market-card, .wallet-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; cursor: pointer; }
.market-card:hover { border-color: var(--gold-primary); transform: translateY(-2px); }
.market-card-header, .wallet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.market-card-name { font-weight: 600; font-size: 16px; }
.market-card-symbol, .wallet-currency { font-size: 14px; color: var(--text-secondary); background: var(--bg-tertiary); padding: 4px 8px; border-radius: 6px; }
.market-card-price, .wallet-balance { font-size: 24px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.market-card-change { font-size: 14px; font-weight: 500; }
.wallet-address { font-size: 12px; color: var(--text-secondary); word-break: break-all; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }

.trade-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 250px); }
.trade-form { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; width: 100%; max-width: 480px; }
.trade-form h2 { margin-bottom: 24px; text-align: center; }
.trade-type-buttons { display: flex; gap: 16px; margin-bottom: 16px; }
.trade-type-buttons .btn { flex: 1; background: var(--bg-tertiary); color: var(--text-secondary); }
.trade-type-buttons .btn.active[data-type="BUY"] { background: var(--success); color: white; }
.trade-type-buttons .btn.active[data-type="SELL"] { background: var(--danger); color: white; }
.trade-summary { background: var(--bg-tertiary); padding: 16px; border-radius: 8px; margin: 24px 0; }
.summary-row { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; }
.trade-notice { text-align: center; font-size: 12px; color: var(--warning); margin-top: 16px; }

.site-footer { background: var(--bg-primary); padding: 64px 24px 24px; border-top: 1px solid var(--border-color); }
.footer-cta { text-align: center; margin-bottom: 64px; display: flex; flex-direction: column; align-items: center; }
.footer-cta h2 { font-size: 32px; margin-bottom: 24px; }
.footer-links { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-column h3 { font-size: 16px; margin-bottom: 16px; font-weight: 600; }
.footer-column a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: var(--transition); }
.footer-column a:hover { color: var(--gold-primary); }
.social-icons { display: flex; flex-wrap: wrap; gap: 16px; }
.social-icons a { color: var(--text-secondary); font-size: 14px; text-decoration: none; }
.social-icons a:hover { color: var(--gold-primary); }
.footer-btn { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; margin-right: 8px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 24px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.footer-bottom p { margin-bottom: 16px; }
.footer-bottom a { color: var(--text-secondary); text-decoration: underline; }
.footer-copyright { display: flex; justify-content: space-between; align-items: center; }

/* Utilities for missing states */
.loading, .empty-state { text-align: center; color: var(--text-secondary); padding: 40px; }
.empty-state { font-style: italic; }

/* Markets Page Enhancements */
.markets-header { border-bottom: 1px solid var(--border-color); padding-bottom: 0px; }
.markets-tabs { display: flex; gap: 32px; }
.market-tab { background: none; border: none; color: var(--text-secondary); font-size: 16px; font-weight: 600; cursor: pointer; padding-bottom: 16px; position: relative; transition: var(--transition); }
.market-tab:hover { color: var(--gold-primary); }
.market-tab.active { color: var(--text-primary); }
.market-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: var(--gold-primary); border-radius: 3px 3px 0 0; }

.star-icon { cursor: pointer; color: var(--text-secondary); font-size: 18px; transition: var(--transition); display: inline-block; }
.star-icon:hover, .star-icon.active { color: var(--gold-primary); text-shadow: 0 0 8px rgba(252, 213, 53, 0.4); }

.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 24px; }
.page-btn { background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: 500; transition: var(--transition); }
.page-btn:hover { background: var(--bg-hover); border-color: var(--gold-primary); }
.page-btn.active { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); font-weight: 700; }
.page-dots { color: var(--text-secondary); padding: 0 4px; font-weight: 600; }

/* Live Price Updates Flash */
.live-flash-up { color: var(--success) !important; text-shadow: 0 0 8px rgba(14, 203, 129, 0.5); transition: none; }
.live-flash-down { color: var(--danger) !important; text-shadow: 0 0 8px rgba(246, 70, 93, 0.5); transition: none; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .top-navbar {
        height: 56px;
        padding: 0 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    .navbar-left, .navbar-right {
        flex-direction: row;
        width: auto;
        gap: 8px;
        align-items: center;
    }
    .nav-links {
        display: none !important; /* Hide desktop links on mobile */
    }
    #connection-text {
        display: none !important; /* Hide connection text, keep the dot */
    }
    .connection-status {
        gap: 4px;
    }
    .logo span {
        font-size: 16px !important;
    }
    .logo img {
        height: 24px !important;
        margin-right: 4px !important;
    }
    .user-info {
        padding: 4px 8px;
        gap: 4px;
        max-width: 140px;
    }
    .guest-text {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70px;
    }
    .guest-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    .main-content {
        padding: 16px 12px 85px !important; /* Mobile padded bottom to prevent bottom nav overlap */
    }
    .tv-chart-container {
        height: 300px !important;
    }
    .hero-title { font-size: clamp(24px, 8vw, 42px); line-height: 1.2; overflow-wrap: break-word; word-break: break-word; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { flex-direction: column; gap: 24px; align-items: center; text-align: center; }
    .hero-left { text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-card { padding: 20px; }
    .stat-value { font-size: 26px; }
    .footer-links { grid-template-columns: 1fr; gap: 32px; }
    .market-table-container, .history-table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cmc-style-table { min-width: 650px; }
    .widget-tabs { flex-wrap: wrap; }
    .footer-bottom { text-align: center; }
    .footer-copyright { flex-direction: column; gap: 12px; }
    .section-header { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(20px, 8vw, 32px); }
    .stat-value { font-size: 24px; }
    .modal-content {
        width: calc(100% - 24px);
        margin: 12px;
        padding: 24px 16px;
    }
    .upload-container { grid-template-columns: 1fr; }
    .step-label { display: none; }
    .step-line { top: 0; } /* Align line center-vertically with circle */
    .btn-large { padding: 16px 24px; font-size: 16px; }
    .cmc-style-table td, .cmc-style-table th { padding: 12px; }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-card);
    animation: slideIn 0.3s ease forwards;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 10010;
    justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 12px));
    box-shadow: var(--shadow-card);
    pointer-events: auto;
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    transition: color 0.2s ease, transform 0.15s ease;
}
.bottom-nav-item:active {
    transform: scale(0.92);
}
.bottom-nav-item.active {
    color: var(--gold-primary);
    font-weight: 600;
}
.bottom-nav-item .nav-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bottom-nav-item.active .nav-icon {
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    .desktop-nav { display: none !important; }
    .site-footer { margin-bottom: 90px; }
}

/* Assets Page Styles */
.total-balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}
.assets-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
}
.asset-left { display: flex; align-items: center; gap: 12px; }
.asset-icon { font-size: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; }
.asset-right { text-align: right; }

/* Verification Badges */
.verif-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.badge-success { background: rgba(14, 203, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(240, 185, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(246, 70, 93, 0.2); color: var(--danger); }

/* Admin Toggles */
.toggle-switch-wrapper {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}
.toggle-switch-wrapper input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--success);
}
input:checked + .slider:before {
    transform: translateX(14px);
}

/* About Modal Styles */
.modal-subtitle-gold {
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-top: 24px;
}

.about-main-text h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 3px solid var(--gold-primary);
    padding-left: 10px;
}

.about-main-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.founder-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.founder-photo-wrap {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.founder-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.founder-photo:hover {
    transform: scale(1.02);
}

.founder-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.founder-title {
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.founder-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.about-footer-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.about-footer-box h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.about-footer-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Legal Disclosures Modal Styles */
.legal-tabs-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.legal-tabs-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.legal-tabs {
    display: flex;
    gap: 8px;
}

.legal-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.legal-tab.active {
    background: rgba(240, 185, 11, 0.1);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.legal-tab-content {
    display: none;
}

.legal-tab-content.active {
    display: block;
}

.legal-scroll-pane {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-scroll-pane::-webkit-scrollbar {
    width: 6px;
}

.legal-scroll-pane::-webkit-scrollbar-track {
    background: transparent;
}

.legal-scroll-pane::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.legal-scroll-pane h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.legal-scroll-pane h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal-scroll-pane h5 {
    font-size: 14px;
    color: var(--text-primary);
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: 600;
}

.legal-scroll-pane p {
    margin-bottom: 12px;
}

.legal-scroll-pane ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.legal-scroll-pane li {
    margin-bottom: 6px;
}

.effective-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.policy-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.text-gold {
    color: var(--gold-primary);
    text-decoration: none;
}

.text-gold:hover {
    text-decoration: underline;
}

/* Cookie Settings Styles */
.cookie-preferences-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    gap: 16px;
}

.cookie-pref-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cookie-pref-info p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-pref-toggle {
    flex-shrink: 0;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    z-index: 1050;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.4s ease;
    pointer-events: none;
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-consent-icon {
    font-size: 24px;
    animation: wiggle 2s infinite ease;
}

.cookie-consent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .founder-card {
        order: -1; /* Founder at top on mobile */
    }
    .about-footer-sections {
        grid-template-columns: 1fr;
    }
    .cookie-consent-banner {
        bottom: calc(75px + 12px); /* Position above bottom mobile navigation bar */
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }
    .cookie-consent-content {
        align-items: flex-start;
    }
    .cookie-consent-actions {
        justify-content: flex-end;
    }
}

/* Language Selector Dropdown (Drop-up) */
.lang-select-container {
    position: relative;
    display: inline-block;
}

.lang-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px); /* Open upwards with a small gap */
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    min-width: 120px;
    display: none; /* Hidden by default */
    flex-direction: column;
    padding: 4px 0;
    z-index: 1000;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown-menu.active {
    display: flex;
    animation: slideUpFade 0.2s ease-out;
}

.lang-opt {
    color: var(--text-primary);
    padding: 8px 12px;
    text-decoration: none;
    font-size: 12px;
    display: block;
    transition: var(--transition);
    text-align: left;
}

.lang-opt:hover {
    background: var(--bg-hover);
    color: var(--gold-primary);
}

/* --- PROFESSIONAL TRADING TICKET & RESULTS OVERLAY --- */
.trade-alert-card {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    width: 340px;
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transform: translateX(380px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.trade-alert-card.active {
    transform: translateX(0);
    opacity: 1;
}
.trade-alert-card.call-theme {
    border-left: 5px solid var(--success);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(38, 166, 154, 0.15);
}
.trade-alert-card.put-theme {
    border-left: 5px solid var(--danger);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 83, 80, 0.15);
}
.trade-alert-card .alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.trade-alert-card .alert-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.trade-alert-card .alert-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.trade-alert-card .alert-badge.call {
    background: rgba(38, 166, 154, 0.15);
    color: #26a69a;
}
.trade-alert-card .alert-badge.put {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}
.trade-alert-card .alert-asset {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.trade-alert-card .alert-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}
.trade-alert-card .detail-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.trade-alert-card .detail-item b {
    color: var(--text-primary);
    font-size: 13px;
}

/* Modal Overlay for Settle Result */
.trade-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.trade-result-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.trade-result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.trade-result-overlay.active .trade-result-card {
    transform: scale(1);
}
.trade-result-card.won {
    border: 1px solid rgba(38, 166, 154, 0.25);
    box-shadow: var(--shadow-card), 0 0 30px rgba(38, 166, 154, 0.15);
}
.trade-result-card.lost {
    border: 1px solid rgba(239, 83, 80, 0.25);
    box-shadow: var(--shadow-card), 0 0 30px rgba(239, 83, 80, 0.15);
}
.result-status-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 20px;
}
.result-status-badge.won {
    color: #26a69a;
    background: rgba(38, 166, 154, 0.1);
}
.result-status-badge.lost {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
}
.result-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.result-title.won {
    color: #26a69a;
    text-shadow: 0 0 15px rgba(38, 166, 154, 0.3);
}
.result-title.lost {
    color: #ef5350;
    text-shadow: 0 0 15px rgba(239, 83, 80, 0.3);
}
.result-title.tie {
    color: var(--text-secondary);
}
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.result-grid-item span {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.result-grid-item b {
    font-size: 15px;
    color: var(--text-primary);
}
.result-payout-row {
    margin-bottom: 26px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(197, 160, 89, 0.05);
}
.result-payout-row.won {
    background: rgba(38, 166, 154, 0.05);
}
.result-payout-row.lost {
    background: rgba(239, 83, 80, 0.05);
}
.result-payout-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.result-payout-val {
    font-size: 24px;
    font-weight: 800;
}
.result-payout-val.won {
    color: #26a69a;
}
.result-payout-val.lost {
    color: #ef5350;
}
.result-close-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    background: var(--gold-primary);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}
.result-close-btn:hover {
    background: #e2b662;
    transform: translateY(-2px);
}
.result-close-btn:active {
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Global table responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure no Sign Up elements show up anywhere when logged in */
body.logged-in #auth-buttons,
body.logged-in .footer-signup-btn,
body.logged-in #hero-cta-container,
body.logged-in .hidden-when-logged-in {
    display: none !important;
}

/* Editable profile avatar styles */
.profile-avatar {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    filter: brightness(0.85);
    box-shadow: 0 0 15px rgba(243, 186, 47, 0.4);
}

.profile-avatar::after {
    content: "📷";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-avatar:hover::after {
    opacity: 1;
}

/* KYC Upload Progress Bar styles */
.kyc-upload-progress-container {
    display: none;
    width: 100%;
    background: var(--bg-tertiary);
    border-radius: 8px;
    height: 24px;
    position: relative;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kyc-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold-light, #fde062));
    width: 0%;
    border-radius: 8px 0 0 8px;
    transition: width 0.15s ease-in-out;
}

.kyc-upload-progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
}

/* Binance-style Transaction Details Modal */
.binance-tx-card {
    max-width: 440px !important;
    width: 100% !important;
    background: #181a20 !important; /* Binance signature dark */
    color: #eaecef !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid #2b3139 !important;
    font-family: 'Inter', sans-serif;
    text-align: left !important;
}

[data-theme="light"] .binance-tx-card {
    background: #ffffff !important;
    color: #1e2329 !important;
    border: 1px solid #eaecef !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

.binance-tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.binance-tx-header .back-btn, .binance-tx-header .right-icons {
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.binance-tx-header .back-btn:hover, .binance-tx-header .right-icons:hover {
    color: var(--text-primary);
}

.binance-tx-amount-section {
    text-align: center;
    margin-bottom: 24px;
}

.binance-tx-amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.binance-tx-amount-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.binance-tx-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.binance-tx-status.completed {
    color: var(--success, #0ecb81);
}

.binance-tx-status.pending {
    color: var(--warning, #f0b90b);
}

.binance-tx-status.failed {
    color: var(--danger, #f6465d);
}

.binance-tx-subtext {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.4;
}

.binance-tx-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.binance-tx-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
}

.binance-tx-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.binance-tx-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 65%;
    word-break: break-all;
}

.binance-tx-copy-btn {
    cursor: pointer;
    color: var(--primary);
    font-size: 12px;
    transition: transform 0.1s ease;
}

.binance-tx-copy-btn:active {
    transform: scale(0.9);
}

.binance-tx-promo-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-bottom: 10px;
}

.binance-tx-promo-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.binance-tx-promo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.binance-tx-promo-tag {
    font-size: 10px;
    color: var(--text-secondary);
}

.binance-tx-promo-pair {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.binance-tx-promo-price {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.binance-tx-promo-price .change {
    margin-left: 4px;
    font-size: 11px;
}

.binance-tx-promo-btn {
    background: var(--primary);
    color: #0b0e11;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}




