/* ===== NIVO TRADE - BINANCE STYLE UI ===== */
:root {
    --bg-primary: #0b0e11;
    --bg-secondary: #1e2329;
    --bg-card: #2b3139;
    --bg-input: #2b3139;
    --border: #2b3139;
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --text-muted: #5e6673;
    --green: #0ecb81;
    --red: #f6465d;
    --gold: #f0b90b;
    --blue: #4a9eff;
    --chart-line: rgba(255,255,255,0.04);
    --chart-label: #5e6673;
}

body.light-mode {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f2f5;
    --border: #e6e8ea;
    --text-primary: #1e2329;
    --text-secondary: #474d57;
    --text-muted: #848e9c;
    --chart-line: rgba(0,0,0,0.06);
    --chart-label: #848e9c;
}

body.light-mode .bottom-nav,
body.light-mode .top-nav {
    background: #ffffff;
    border-color: #e6e8ea;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.06);
}

body.light-mode .top-bar {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

body.light-mode .bet-buttons .btn-up { color: #fff; }
body.light-mode .bet-buttons .btn-down { color: #fff; }
body.light-mode .volume-bar .vol-up { color: #fff; }
body.light-mode .volume-bar .vol-down { color: #fff; }
body.light-mode .login-btn { color: #000; }
body.light-mode .btn-gold { color: #000; }
body.light-mode .profile-avatar { color: #000; }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 64px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===== NIVO CHAIN STYLE LOGO ===== */
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon i {
    font-size: 16px;
    color: #fff;
}

.top-bar .logo {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.top-bar .logo .logo-accent {
    color: var(--gold);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

.top-bar .balance-pill {
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar .logout-btn {
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

/* ===== PRICE HEADER ===== */
.price-header {
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.price-header .pair-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-header .price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.price-header .current-price {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.price-header .price-change {
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.price-header .price-change.up { color: var(--green); background: rgba(14, 203, 129, 0.1); }
.price-header .price-change.down { color: var(--red); background: rgba(246, 70, 93, 0.1); }

.price-header .stats-row {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
}

.price-header .stat-item .lbl { color: var(--text-muted); }
.price-header .stat-item .val { color: var(--text-secondary); font-weight: 500; }

/* ===== CHART ===== */
.chart-container {
    padding: 8px;
    background: var(--bg-primary);
    min-height: 200px;
    position: relative;
    transition: all 0.3s;
}
.chart-container:fullscreen {
    padding: 16px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-container:fullscreen canvas {
    max-height: 90vh;
}

.chart-container canvas {
    width: 100% !important;
    display: block;
}

.chart-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 4px;
}
.chart-ohlc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
}
.chart-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.tf-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
}
.tf-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    transition: 0.25s;
    user-select: none;
}
.tf-btn.active {
    background: #f7931a;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(247,147,26,0.3);
}
.tf-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.chart-actions {
    display: flex;
    gap: 4px;
}
.chart-action-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: 0.25s;
    user-select: none;
}
.chart-action-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-input);
}
@media (max-width: 480px) {
    .chart-toolbar { padding: 6px 8px; }
    .tf-btn { padding: 4px 10px; font-size: 11px; }
    .chart-action-btn { width: 26px; height: 26px; font-size: 11px; }
    .chart-ohlc { font-size: 10px; }
}

/* ===== TIMER BAR ===== */
.timer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.timer-bar .timer-label {
    font-size: 12px;
    color: var(--text-muted);
}

.timer-bar .timer-value {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.timer-bar .timer-value.gold { color: var(--gold); }
.timer-bar .timer-value.red { color: var(--red); }

/* ===== VOLUME BAR ===== */
.volume-section {
    padding: 12px 16px;
}

.volume-bar {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
}

.volume-bar .vol-up {
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    transition: width 0.5s ease;
    min-width: 30px;
}

.volume-bar .vol-down {
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    transition: width 0.5s ease;
    min-width: 30px;
}

.volume-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
}

.volume-labels .up-text { color: var(--green); }
.volume-labels .down-text { color: var(--red); }

/* ===== BET SECTION ===== */
.bet-section {
    padding: 16px;
}

.bet-section .amount-input {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.bet-section .amount-input:focus {
    outline: none;
    border-color: var(--gold);
}

.bet-section .amount-input::placeholder { color: var(--text-muted); }

.preset-row {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.preset-row button {
    flex: 1;
    min-width: 50px;
    padding: 8px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.preset-row button:hover, .preset-row button:active {
    background: rgba(240, 185, 11, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.bet-buttons {
    display: flex;
    gap: 10px;
}

.bet-buttons button {
    flex: 1;
    padding: 16px 8px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bet-buttons .btn-up {
    background: var(--green);
    color: #fff;
}

.bet-buttons .btn-down {
    background: var(--red);
    color: #fff;
}

.bet-buttons button:hover { opacity: 0.9; transform: translateY(-1px); }
.bet-buttons button:active { transform: translateY(0); }
.bet-buttons button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== MY BET ===== */
.my-bet {
    margin: 16px;
    padding: 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
}

.my-bet.up { background: rgba(14, 203, 129, 0.1); border: 1px solid rgba(14, 203, 129, 0.2); color: var(--green); }
.my-bet.down { background: rgba(246, 70, 93, 0.1); border: 1px solid rgba(246, 70, 93, 0.2); color: var(--red); }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 16px;
}

.card-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
}

.card-value.gold { color: var(--gold); }
.card-value.green { color: var(--green); }
.card-value.red { color: var(--red); }

/* ===== INFO ROW ===== */
.info-row {
    display: flex;
    gap: 1px;
    background: var(--border);
    margin: 12px 16px;
    border-radius: 8px;
    overflow: hidden;
}

.info-item {
    flex: 1;
    background: var(--bg-card);
    padding: 12px 8px;
    text-align: center;
}

.info-item .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.info-item .val { font-size: 15px; font-weight: 600; }
.info-item .val.green { color: var(--green); }
.info-item .val.red { color: var(--red); }
.info-item .val.gold { color: var(--gold); }

/* ===== TABLE ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge.won, .badge.up { background: rgba(14, 203, 129, 0.15); color: var(--green); }
.badge.lost, .badge.down { background: rgba(246, 70, 93, 0.15); color: var(--red); }
.badge.pending { background: rgba(240, 185, 11, 0.15); color: var(--gold); }
.badge.draw { background: rgba(132, 142, 156, 0.15); color: var(--text-secondary); }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    margin: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.alert.success { background: rgba(14, 203, 129, 0.1); border: 1px solid rgba(14, 203, 129, 0.2); color: var(--green); }
.alert.error { background: rgba(246, 70, 93, 0.1); border: 1px solid rgba(246, 70, 93, 0.2); color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-block { width: 100%; }

/* ===== FAUCET ===== */
.faucet-card {
    margin: 16px;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    text-align: center;
}

.faucet-icon {
    font-size: 56px;
    color: var(--gold);
    margin-bottom: 16px;
}

.faucet-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.faucet-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    margin: 12px 16px;
    border-radius: 8px;
    overflow: hidden;
}

.stats-grid .stat-box {
    background: var(--bg-card);
    padding: 16px;
    text-align: center;
}

.stats-grid .stat-box .num { font-size: 20px; font-weight: 700; }
.stats-grid .stat-box .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.stats-grid .stat-box.green .num { color: var(--green); }
.stats-grid .stat-box.red .num { color: var(--red); }
.stats-grid .stat-box.gold .num { color: var(--gold); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
}

.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 10px;
    text-decoration: none;
    transition: 0.2s;
    padding: 4px 12px;
}

.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--gold); }
.nav-item:active { transform: scale(0.95); }

/* ===== TOP NAV (Desktop) ===== */
.top-nav {
    display: none;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
}

.top-nav .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.top-nav .nav-links a {
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.top-nav .nav-links a:hover, .top-nav .nav-links a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .top-nav { display: block; }
    body { padding-bottom: 0; }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px;
    }

    .price-header .current-price { font-size: 40px; }

    .chart-container canvas { height: 400px !important; }

    .info-row { margin: 16px 0; }

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

    .bet-section {
        max-width: 500px;
        margin: 0 auto;
    }

    .card { margin: 16px 0; }
    .alert { margin: 16px 0; }
    .faucet-card { margin: 16px auto; max-width: 500px; }
    .my-bet { margin: 16px 0; }
}

/* ===== LOGIN ===== */
.login-body {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.login-logo h1 span { color: var(--gold); }

.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.login-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: 0.2s;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.login-form .form-group input::placeholder { color: var(--text-muted); }

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--gold);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.login-btn:hover { opacity: 0.9; }

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== PROFILE ===== */
.profile-header {
    padding: 24px 16px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 auto 12px;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
}

.profile-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== LISTING TIMER ===== */
.listing-banner {
    margin: 12px 16px;
    padding: 14px 16px;
    background: rgba(240, 185, 11, 0.08);
    border: 1px solid rgba(240, 185, 11, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.listing-banner .listing-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.listing-banner .listing-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

/* ===== DISABLED STATE ===== */
.disabled-msg {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== DASHBOARD SECTION 1: BALANCE + ADD FUND ===== */
.balance-fund-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin: 0 16px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.balance-fund-row .bal-display {
    display: flex;
    flex-direction: column;
}
.balance-fund-row .bal-display .bal-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.balance-fund-row .bal-display .bal-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
}
.balance-fund-row .bal-display .bal-usd {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.bal-usd-val {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}
.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
.stats-card-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.stats-card-header i {
    color: var(--gold);
    margin-right: 6px;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.stats-table th {
    text-align: left;
    padding: 6px 8px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    text-transform: uppercase;
}
.stats-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
}
.stats-table td:first-child {
    font-weight: 600;
}
.stats-table tr:last-child td {
    border-bottom: none;
}
.stats-table .num {
    font-family: 'Courier New', monospace;
    text-align: right;
}
.stats-table .pos { color: var(--green); }
.stats-table .neg { color: var(--red); }
.stats-table .coin-icon-td {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.btn-fund {
    padding: 12px 28px;
    background: #f0b90b;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    white-space: nowrap;
}
.btn-fund:hover {
    background: #dba50a;
    transform: translateY(-1px);
}

/* ===== DASHBOARD SECTION 2: COIN SLIDER ===== */
.coin-slider-section {
    margin: 0 16px 16px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.coin-slider-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.coin-slider-header i {
    color: var(--gold);
}
.slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.slider-track.dragging {
    transition: none;
    cursor: grabbing;
}
.slider-slide {
    min-width: 100%;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
}
.slider-slide .slide-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
}
.slider-slide .slide-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.slider-slide .slide-type {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.slider-slide .slide-timer {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.slider-slide .slide-timer-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: 0.3s;
}
.slider-dot.active {
    opacity: 1;
    background: var(--gold);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
    font-size: 14px;
}
.slider-arrow:hover {
    background: var(--gold);
    color: #000;
}
.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }
.slider-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.slider-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-muted);
    opacity: 0.3;
}

/* ===== DASHBOARD SECTION 3: TRADING COINS LIST ===== */
.coins-list {
    margin: 0 16px 16px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}
.coins-list-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.coins-list-header i {
    color: var(--green);
}
.coin-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
    cursor: pointer;
}
.coin-row:last-child {
    border-bottom: none;
}
.coin-row:hover {
    background: var(--bg-primary);
}
.coin-row .coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.coin-row .coin-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.coin-row .coin-info {
    flex: 1;
    min-width: 0;
}
.coin-row .coin-info .coin-pair {
    font-size: 14px;
    font-weight: 600;
}
.coin-row .coin-info .coin-name {
    font-size: 12px;
    color: var(--text-muted);
}
.coin-row .coin-price {
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    text-align: right;
}
.coin-row .coin-change {
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
}
.btn-trade {
    padding: 8px 16px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
}
.btn-trade:hover {
    opacity: 0.85;
}

/* ===== DEPOSIT PAGE ===== */
.deposit-page {
    padding: 16px;
}
.deposit-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}
.deposit-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(240, 185, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--gold);
}
.deposit-card .form-group {
    text-align: left;
    margin-bottom: 16px;
}
.deposit-card .form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.deposit-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}
.deposit-input:focus {
    border-color: var(--gold);
}
.deposit-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}
select.deposit-input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23848e9c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ===== SLIDER AUTO PLAY PAUSE ===== */
.slider-section:hover .slider-track {
    animation-play-state: paused;
}

@media (max-width: 767px) {
    .balance-fund-row .bal-amount { font-size: 18px; }
    .slider-slide .slide-timer { font-size: 26px; }
    .slider-arrow { display: none; }
}

@media (min-width: 768px) {
    .coins-list { max-width: 600px; margin-left: auto; margin-right: auto; }
    .coin-slider-section { max-width: 600px; margin-left: auto; margin-right: auto; }
    .balance-fund-row { max-width: 600px; margin-left: auto; margin-right: auto; }
}
