/**
 * Page-Specific Styles
 * Separated from PHP files for better maintainability
 */

/* ===========================================
   BASE STYLES & CSS VARIABLES
   =========================================== */
:root {
    --bg-body: #0b0e11;
    --bg-card: #151a21;
    --bg-input: #2a2e39;
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --primary-color: #fcd535;
    --primary-hover: #e0bd2f;
    --accent-green: #0ecb81;
    --accent-red: #f6465d;
    --border-color: #2a2e39;
    --nav-height: 60px;
    --bottom-nav-height: 60px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: var(--bottom-nav-height);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
    padding-top: 20px;
}

/* Navbar (Desktop) */
.navbar {
    background-color: var(--bg-card);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.logo img {
    height: 32px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    height: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Mobile Bottom Nav */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    flex: 1;
    height: 100%;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Components */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-success { background-color: var(--accent-green); color: #fff; }
.btn-danger { background-color: var(--accent-red); color: #fff; }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-primary); background: transparent; }

.card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 15px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}
.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Utilities */
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===========================================
   LANGUAGE SWITCHER STYLES
   =========================================== */

/* Mobile Language Toggle - Hidden on desktop */
.mobile-lang-toggle {
    display: none;
    margin-left: auto;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-toggle-btn:hover {
    border-color: var(--primary-color);
    background: rgba(252, 213, 53, 0.1);
}

.lang-toggle-btn i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Desktop Language Dropdown */
.language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-dropdown-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.lang-dropdown-btn i:first-child {
    color: var(--primary-color);
}

.lang-dropdown-btn .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.language-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 200;
    overflow: hidden;
}

.language-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.15s;
    white-space: nowrap;
}

.lang-option:hover {
    background: rgba(252, 213, 53, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--primary-color);
    background: rgba(252, 213, 53, 0.05);
}

.lang-option .fa-check {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .bottom-nav { display: flex; }
    .main-content { padding-bottom: 20px; }
    
    /* Show mobile language toggle */
    .mobile-lang-toggle {
        display: block;
    }
}

/* ===========================================
   NEW TRADE PAGE STYLES (Binance-like UI)
   =========================================== */

.trade-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    background: #0b0e11;
    font-size: 14px;
}

/* Symbol Info Bar */
.symbol-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #1e2329;
    border-bottom: 1px solid #2b3139;
}

.symbol-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #131822 0%, #0f141c 100%);
    border: 1px solid #2f3a4b;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: relative;
}

.symbol-select-new {
    background: transparent;
    border: none;
    color: #f5f7fa;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    padding-right: 18px;
    -webkit-appearance: none;
    appearance: none;
}

.symbol-select-wrapper i {
    color: #9fb3c8;
    font-size: 12px;
}

.symbol-select-wrapper:hover {
    border-color: #fcd535;
    box-shadow: 0 12px 32px rgba(252, 213, 53, 0.08);
}

.current-symbol-name {
    font-size: 16px;
    font-weight: 700;
    color: #fcd535;
    padding: 8px 15px;
    white-space: nowrap;
}

.current-symbol-name.mobile-only {
    display: none;
}

.symbol-search {
    position: relative;
    min-width: 240px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2f3a4b;
    border-radius: 8px;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #f5f7fa;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-input-wrapper i {
    color: #8da0b5;
}

#symbolSearchClear {
    background: none;
    border: none;
    color: #8da0b5;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
}

.symbol-dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #0f131b;
    border: 1px solid #2f3a4b;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    z-index: 20;
    display: none;
}

.symbol-dropdown.open { display: block; }

.symbol-option {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.symbol-option:hover {
    background: rgba(255,255,255,0.04);
}

.symbol-option .pair {
    font-weight: 700;
    color: #f5f7fa;
}

.symbol-option .base {
    color: #8da0b5;
    font-size: 12px;
}

.symbol-option .status {
    font-size: 11px;
    color: #8da0b5;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
}

.price-change.positive { color: #0ecb81; }
.price-change.negative { color: #f6465d; }

/* Funding Rate Bar */
.funding-rate-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #181a20;
    font-size: 12px;
    border-bottom: 1px solid #2b3139;
}

.funding-label {
    color: #848e9c;
}

.funding-value {
    color: #f6465d;
    font-family: -apple-system, BlinkMacSystemFont, monospace;
}

/* Chart Section at TOP */
.chart-section-top {
    background: #0b0e11;
    border-bottom: 1px solid #2b3139;
    flex-shrink: 0;
    overflow: visible;
}

.chart-toolbar {
    display: flex !important;
    visibility: visible !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: #181a20;
    border-bottom: 1px solid #2b3139;
    min-height: 40px;
    z-index: 10;
    position: relative;
}

.timeframe-selector {
    display: flex !important;
    visibility: visible !important;
    gap: 4px;
    flex-wrap: wrap;
    row-gap: 6px;
    min-height: 28px;
}

.timeframe-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    row-gap: 6px;
    padding: 6px;
    background: rgba(24, 26, 32, 0.92);
    border: 1px solid #2b3139;
    border-radius: 6px;
    z-index: 5;
}

.timeframe-btn {
    display: inline-flex !important;
    visibility: visible !important;
    padding: 6px 12px;
    background: #1e2329;
    border: 1px solid #2b3139;
    color: #848e9c;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 32px;
    justify-content: center;
    align-items: center;
}

.timeframe-btn:hover {
    background: #2b3139;
    border-color: #fcd535;
    color: #eaecef;
}

.timeframe-btn.active {
    background: #fcd535;
    color: #0b0e11;
    border-color: #fcd535;
    font-weight: 600;
}

.indicator-selector {
    display: flex;
    gap: 4px;
}

.indicator-btn {
    padding: 5px 10px;
    background: #2b3139;
    border: 1px solid #363c45;
    color: #848e9c;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.indicator-btn:hover {
    border-color: #fcd535;
}

.indicator-btn.active {
    background: #fcd535;
    color: #0b0e11;
    border-color: #fcd535;
}

.chart-wrapper {
    position: relative;
    height: 220px;
}

.chart-wrapper #klineChart {
    width: 100%;
    height: 100%;
}

/* Main Trade Layout */
.trade-main-layout {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    align-items: stretch;
}

/* Order Book Panel - Left */
.order-book-panel {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    background: #1e2329;
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    border-right: 1px solid #2b3139;
    gap: 4px;
}

.order-book-header-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0 8px;
    font-size: 10px;
    color: #848e9c;
    border-bottom: 1px solid #2b3139;
    margin-bottom: 5px;
}

.order-book-header-row span {
    flex: 1;
}

.order-book-header-row span:first-child {
    text-align: left;
}

.order-book-header-row span:last-child {
    text-align: right;
}

/* Order Book Rows */
.order-book-asks,
.order-book-bids {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-book-asks {
    flex-direction: column-reverse;
}

.ob-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    height: 24px;
    overflow: hidden;
}

.ob-row:hover {
    background: rgba(255,255,255,0.05);
}

/* Depth Bar - Solid Progress Bar from Right */
.ob-depth {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: width 0.3s ease;
}

.ob-depth.buy { 
    background: rgba(14, 203, 129, 0.2);
}

.ob-depth.sell { 
    background: rgba(246, 70, 93, 0.2);
}

.ob-price, .ob-amount {
    position: relative;
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    font-size: 12px;
}

.ob-price {
    flex: 1;
    text-align: left;
}

.ob-amount {
    flex: 1;
    text-align: right;
    color: #eaecef;
}

.ob-price.buy { color: #0ecb81; }
.ob-price.sell { color: #f6465d; }

/* Current Price Display */
.order-book-current-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    margin: 8px 0;
}

.current-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #0ecb81;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    line-height: 1.2;
}

.current-price-value.up { color: #0ecb81; }
.current-price-value.down { color: #f6465d; }

.current-price-sub {
    font-size: 11px;
    color: #848e9c;
    margin-top: 2px;
}

/* Ratio Bar */
.order-book-ratio {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0 5px;
    font-size: 9px;
    margin-top: auto;
}

.ratio-buy { color: #0ecb81; font-weight: 600; }
.ratio-sell { color: #f6465d; font-weight: 600; }

.ratio-bar {
    flex: 1;
    height: 3px;
    display: flex;
    border-radius: 2px;
    overflow: hidden;
}

.ratio-bar-buy { background: #0ecb81; }
.ratio-bar-sell { background: #f6465d; }

/* Precision Selector */
.precision-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-top: 5px;
    border-top: 1px solid #2b3139;
}

.precision-select {
    background: #2b3139;
    border: none;
    color: #848e9c;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.precision-selector i {
    color: #848e9c;
    font-size: 14px;
    cursor: pointer;
}

/* Trade Form Panel - Right */
.trade-form-panel {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    background: #1e2329;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

/* Balance Display */
.balance-display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #2b3139;
    border-radius: 6px;
}

.balance-label {
    color: #848e9c;
    font-size: 13px;
}

.balance-value {
    color: #fcd535;
    font-weight: 700;
    font-size: 15px;
}

/* Amount Input Section */
.amount-input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    color: #848e9c;
    font-size: 12px;
}

.amount-input-wrapper {
    background: #2b3139;
    border-radius: 6px;
    padding: 0;
}

.amount-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #eaecef;
    font-size: 16px;
    padding: 14px 12px;
    outline: none;
}

.amount-input::placeholder {
    color: #5e6673;
}

.quick-amount-btns {
    display: flex;
    gap: 8px;
}

.quick-btn {
    flex: 1;
    padding: 10px;
    background: #2b3139;
    border: none;
    border-radius: 4px;
    color: #848e9c;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #3a3f47;
    color: #eaecef;
}

/* Profit Display */
.profit-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(14, 203, 129, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(14, 203, 129, 0.2);
}

.profit-label {
    color: #848e9c;
    font-size: 13px;
}

.profit-value {
    color: #0ecb81;
    font-weight: 700;
    font-size: 15px;
}

/* Trade Buttons */
.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

/* Duration Options (Time Selection) */
.duration-options {
    margin: 10px 0;
    padding: 10px;
    background: #2b3139;
    border-radius: 6px;
}

.duration-label {
    display: block;
    font-size: 12px;
    color: #848e9c;
    margin-bottom: 10px;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.duration-card {
    padding: 10px 8px;
    background: #181a20;
    border: 1px solid #2b3139;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-card.active {
    border-color: #fcd535;
    background: rgba(252, 213, 53, 0.1);
}

.duration-card:hover {
    border-color: #fcd535;
}

.duration-time {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #eaecef;
    margin-bottom: 2px;
}

.duration-profit {
    display: block;
    font-size: 11px;
    color: #0ecb81;
}

/* Trade Action Buttons */
.trade-action-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trade-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.trade-action-btn:active {
    transform: translateY(0);
}

.trade-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.trade-action-btn i {
    font-size: 14px;
}

.trade-action-btn.buy-btn {
    background: linear-gradient(135deg, #0ecb81 0%, #0ba369 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 203, 129, 0.3);
}

.trade-action-btn.sell-btn {
    background: linear-gradient(135deg, #f6465d 0%, #d63050 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(246, 70, 93, 0.3);
}

/* Position Tabs */
.position-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #1e2329;
    border-top: 1px solid #2b3139;
    border-bottom: 1px solid #2b3139;
}

.position-tabs {
    display: flex;
    gap: 25px;
}

.position-tab {
    font-size: 13px;
    color: #848e9c;
    cursor: pointer;
    padding-bottom: 8px;
}

.position-tab.active {
    color: #eaecef;
    border-bottom: 2px solid #fcd535;
}

.position-tabs-container > i {
    color: #848e9c;
    cursor: pointer;
}

/* Positions Content */
.positions-content {
    min-height: 120px;
    background: #181a20;
    padding: 20px;
}

.empty-positions {
    text-align: center;
    padding: 30px;
    color: #5e6673;
}

.empty-positions i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.empty-positions p {
    font-size: 14px;
}

.position-item {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    background: #1e2329;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #2b3139;
}

.position-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2b3139;
}

.position-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.position-symbol {
    font-weight: 700;
    color: #eaecef;
    font-size: 15px;
}

.position-type {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.position-type.buy {
    background: rgba(14, 203, 129, 0.15);
    color: #0ecb81;
}

.position-type.sell {
    background: rgba(246, 70, 93, 0.15);
    color: #f6465d;
}

.position-detail {
    color: #848e9c;
    font-size: 12px;
}

.position-detail .label {
    color: #5e6673;
}

.position-amount {
    color: #848e9c;
    font-size: 13px;
}

.position-timer {
    font-family: monospace;
    font-weight: 700;
    color: #fcd535;
    font-size: 15px;
    background: rgba(252, 213, 53, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    background: #0b0e11;
}

#klineChart {
    width: 100%;
    height: 100%;
}


/* Result Modal */
.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.result-modal-content {
    background: #1e2329;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    animation: popIn 0.3s ease;
}

.result-modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-modal-title {
    color: #eaecef;
    margin-bottom: 10px;
}

.result-modal-message {
    color: #848e9c;
    margin-bottom: 20px;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .current-symbol-name:not(.mobile-only) {
        display: none;
    }
    
    .current-symbol-name.mobile-only {
        display: block;
        width: 100%;
        margin-bottom: 5px;
        font-size: 14px;
        font-weight: 700;
        color: #fcd535;
        padding: 4px 0;
        text-align: left;
    }
    
    .chart-toolbar {
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 8px;
        min-height: auto;
    }
    
    .timeframe-selector {
        width: 100%;
        padding-top: 0;
    }
    
    .timeframe-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .indicator-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .chart-wrapper {
        height: 180px;
    }
    
    .trade-main-layout {
        display: flex;
        flex-direction: row;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    .order-book-panel {
        flex: 0 0 45%;
        width: 45%;
        min-width: 130px;
        max-width: 160px;
        border-right: 1px solid #2b3139;
        border-bottom: none;
        padding: 8px 5px;
        overflow-y: auto;
    }
    
    .ob-row {
        font-size: 10px;
        height: 18px;
        padding: 2px 4px;
    }
    
    .order-book-header-row {
        font-size: 9px;
        padding: 3px 0 5px;
    }
    
    .current-price-value {
        font-size: 13px;
    }
    
    .order-book-current-price {
        padding: 6px 2px;
        margin: 4px 0;
    }
    
    .order-book-ratio {
        padding: 5px 0 3px;
        font-size: 8px;
    }
    
    .precision-selector {
        padding: 5px 0;
    }
    
    .trade-form-panel {
        flex: 1 1 55%;
        max-width: none;
        min-width: 0;
        padding: 8px;
        gap: 8px;
        overflow-y: auto;
    }
    
    .balance-display-row {
        padding: 8px;
    }
    
    .balance-label {
        font-size: 11px;
    }
    
    .balance-value {
        font-size: 13px;
    }
    
    .input-label {
        font-size: 11px;
    }
    
    .amount-input {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .quick-amount-btns {
        gap: 4px;
    }
    
    .quick-btn {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .duration-options {
        padding: 8px;
        margin: 5px 0;
    }
    
    .duration-label {
        font-size: 11px;
    }
    
    .duration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .duration-card {
        padding: 6px 4px;
    }
    
    .duration-time {
        font-size: 11px;
    }
    
    .duration-profit {
        font-size: 9px;
    }
    
    .profit-display {
        padding: 8px;
    }
    
    .profit-label {
        font-size: 11px;
    }
    
    .profit-value {
        font-size: 12px;
    }
    
    .trade-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .trade-action-btn {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .trade-action-btn i {
        font-size: 11px;
    }
    
    .position-tabs-container {
        padding: 8px 10px;
    }
    
    .position-tab {
        font-size: 12px;
    }
    
    .positions-content {
        padding: 10px;
    }
    
    .position-item {
        padding: 10px 12px;
    }
    
    .position-row-top {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .position-symbol {
        font-size: 13px;
    }
    
    .position-type {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .position-timer {
        font-size: 13px;
        padding: 3px 8px;
    }
    
    .position-detail {
        font-size: 11px;
    }
    
    .quick-btn {
        padding: 8px 5px;
        font-size: 11px;
    }
}

/* ===========================================
   LEGACY TRADE PAGE STYLES (keep for compatibility)
   =========================================== */
.trade-container {
    padding: 0;
    max-width: 100%;
    height: calc(100vh - var(--nav-height, 60px) - var(--bottom-nav-height, 60px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.trade-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ===========================================
   HOME PAGE STYLES
   =========================================== */
.home-container {
    padding: 20px;
}

.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-body) 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.market-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.market-card-symbol {
    font-weight: 700;
    font-size: 1.1rem;
}

.market-card-price {
    font-size: 1.3rem;
    font-weight: 700;
}

.market-card-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.market-card-change.positive {
    color: var(--accent-green);
}

.market-card-change.negative {
    color: var(--accent-red);
}

/* ===========================================
   LOGIN/REGISTER PAGE STYLES
   =========================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height) - 40px);
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.input-prefix {
    padding: 12px 15px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
}

.input-group .form-control {
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 12px;
    flex: 1;
}

.input-group .form-control:focus {
    outline: none;
}

 /* Country Selector for Multi-Country Phone Input (Login/Register) */
 .phone-input-group.input-group {
     position: relative;
     overflow: visible;
     align-items: stretch;
 }
 
 .phone-input-group.input-group .form-control {
     min-width: 0;
 }
 
 .phone-input-group .country-selector {
     position: relative;
     flex-shrink: 0;
 }
 
 .phone-input-group .country-selector-btn {
     display: flex;
     align-items: center;
     gap: 6px;
     height: 100%;
     padding: 0 12px;
     background: var(--bg-input);
     border: none;
     border-right: 1px solid var(--border-color);
     border-radius: 4px 0 0 4px;
     color: var(--text-primary);
     cursor: pointer;
     white-space: nowrap;
 }
 
 .phone-input-group .country-selector-btn .country-flag {
     line-height: 1;
 }
 
 .phone-input-group .country-selector-btn .country-code {
     font-weight: 600;
     max-width: 70px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 
 .phone-input-group .country-dropdown {
     position: absolute;
     top: calc(100% + 4px);
     left: 0;
     min-width: 280px;
     max-height: 300px;
     overflow-y: auto;
     background: var(--bg-card);
     border: 1px solid var(--border-color);
     border-radius: 8px;
     box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
     z-index: 2000;
     display: none;
 }
 
 .phone-input-group .country-selector.open .country-dropdown {
     display: block;
 }
 
 .phone-input-group .country-dropdown .country-option {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 12px 16px;
     cursor: pointer;
 }
 
 .phone-input-group .country-dropdown .country-option:hover {
     background: rgba(255, 255, 255, 0.06);
 }
 
 .phone-input-group .country-dropdown .country-option .country-name {
     flex: 1;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     max-width: 180px;
 }
 
 .phone-input-group .country-dropdown .country-option .country-dial {
     flex-shrink: 0;
     color: var(--text-secondary);
 }

 /* Twemoji (emoji -> img) normalization */
 img.emoji {
     height: 1em;
     width: 1em;
     margin: 0 0.05em 0 0.1em;
     vertical-align: -0.1em;
 }

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-card h1.with-margin {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-prefix {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================================
   PROFILE PAGE STYLES
   =========================================== */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

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

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-phone {
    color: var(--text-secondary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-body);
    border-radius: 8px;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.credit-score-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.credit-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.credit-score-fill.good {
    background: var(--accent-green);
}

.credit-score-fill.warning {
    background: var(--primary-color);
}

.credit-score-fill.danger {
    background: var(--accent-red);
}

/* ===========================================
   WITHDRAW PAGE STYLES
   =========================================== */
.withdraw-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.withdraw-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.withdraw-card h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.withdraw-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.withdraw-type-option {
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.withdraw-type-option.active {
    border-color: var(--primary-color);
    background: rgba(252, 213, 53, 0.05);
}

.withdraw-type-option i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.withdraw-history {
    margin-top: 30px;
}

.withdraw-history h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(252, 213, 53, 0.1);
    color: var(--primary-color);
}

.status-badge.approved {
    background: rgba(14, 203, 129, 0.1);
    color: var(--accent-green);
}

.status-badge.rejected {
    background: rgba(246, 70, 93, 0.1);
    color: var(--accent-red);
}

/* ===========================================
   HISTORY PAGE STYLES
   =========================================== */
.history-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.history-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.history-tab {
    padding: 10px 20px;
    background: var(--bg-card);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.history-tab.active {
    background: var(--primary-color);
    color: #000;
}

.history-list {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.history-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item-symbol {
    font-weight: 700;
}

.history-item-type {
    font-size: 0.8rem;
    font-weight: 600;
}

.history-item-type.buy {
    color: var(--accent-green);
}

.history-item-type.sell {
    color: var(--accent-red);
}

.history-item-result {
    text-align: right;
}

.history-item-amount {
    font-weight: 700;
}

.history-item-profit {
    font-size: 0.9rem;
}

.history-item-profit.win {
    color: var(--accent-green);
}

.history-item-profit.lose {
    color: var(--accent-red);
}

/* ===========================================
   NEWS PAGE STYLES
   =========================================== */
.news-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.news-header {
    margin-bottom: 25px;
}

.news-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.news-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-category-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.news-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.news-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

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

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.news-card-image {
    width: 180px;
    min-height: 140px;
    background: var(--bg-input);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
}

.news-card-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-source {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.news-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.news-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

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

.news-error {
    text-align: center;
    padding: 40px;
    color: var(--accent-red);
}

.news-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* News Responsive */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }

    .news-card-image {
        width: 100%;
        height: 180px;
    }
}

/* ===========================================
   ALERT COMPONENTS
   =========================================== */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.1rem;
}

.alert-danger {
    background: rgba(246, 70, 93, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(246, 70, 93, 0.2);
}

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

.alert-warning {
    background: rgba(252, 213, 53, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(252, 213, 53, 0.2);
}

.alert-info {
    background: rgba(132, 142, 156, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(132, 142, 156, 0.2);
}

/* ===========================================
   404 PAGE STYLES
   =========================================== */
.error-container {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-muted {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.no-orders {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

/* ===========================================
   ANNOUNCEMENT MODAL STYLES
   =========================================== */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.announcement-modal.show {
    display: flex;
}

.announcement-modal-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    max-width: 90%;
    width: 400px;
    position: relative;
    animation: popIn 0.3s ease;
}

.announcement-modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    background: none;
    border: none;
}

.announcement-modal-content .close-btn:hover {
    color: var(--text-primary);
}

.announcement-modal-content h2 {
    margin-bottom: 15px;
}

.announcement-modal-content #announcementContent {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Countdown Modal */
.countdown-content {
    text-align: center;
    width: 300px;
    background: #1e2329;
    border: 1px solid #2b3139;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.countdown-header {
    font-size: 16px;
    color: #848e9c;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer-large {
    font-size: 64px;
    font-weight: 700;
    color: #fcd535;
    font-family: 'Roboto Mono', monospace;
    margin: 10px 0 20px;
    text-shadow: 0 0 20px rgba(252, 213, 53, 0.2);
}

.countdown-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0b0e11;
    padding: 15px;
    border-radius: 8px;
}

.countdown-details span {
    display: block;
}

#modalSymbol {
    font-size: 14px;
    color: #eaecef;
    font-weight: 600;
}

#modalType {
    font-size: 18px;
    font-weight: 800;
    margin: 5px 0;
}

#modalType.buy { color: #0ecb81; }
#modalType.sell { color: #f6465d; }

#modalAmount {
    font-size: 14px;
    color: #848e9c;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #1e2329;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===========================================
   HOME PAGE STYLES
   =========================================== */
.hero {
    background: linear-gradient(rgba(11, 14, 17, 0.7), rgba(11, 14, 17, 0.9)), url('/assets/images/hero_banner.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #fcd535, #f0b90b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.price-ticker {
    margin-bottom: 40px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* Live Market List */
.market-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.control-left { flex: 1; min-width: 220px; }
.control-right { display: flex; gap: 10px; align-items: center; }

.input-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #111722;
    border: 1px solid #2f3a4b;
    border-radius: 10px;
}

.input-icon i { color: #6b7c92; }

.input-icon input {
    background: transparent;
    border: none;
    color: #f5f7fa;
    width: 100%;
    outline: none;
}

.market-select {
    background: #111722;
    border: 1px solid #2f3a4b;
    color: #f5f7fa;
    padding: 10px 12px;
    border-radius: 10px;
    min-width: 180px;
}

.market-list {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.market-header,
.market-row {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.1fr 1.2fr 1.1fr 1fr;
    column-gap: 12px;
    padding: 14px 18px;
    align-items: center;
}

.market-header {
    background: #111722;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.market-rows { width: 100%; }

.market-row {
    border-top: 1px solid #1d222a;
    transition: background 0.2s;
}

.market-row:hover { background: rgba(255,255,255,0.02); }

.market-row.empty {
    grid-template-columns: 1fr;
    text-align: center;
    color: var(--text-secondary);
}

.symbol-col .symbol {
    font-weight: 700;
    font-size: 1rem;
}

.symbol-col .name {
    font-size: 12px;
    color: var(--text-secondary);
}

.price-col { font-variant-numeric: tabular-nums; }
.price-col,
.change-col,
.volume-col {
    text-align: center;
}

.market-header span:nth-child(2),
.market-header span:nth-child(3),
.market-header span:nth-child(4),
.market-header span:nth-child(5) {
    text-align: center;
}

.trend-col {
    display: flex;
    justify-content: center;
}

.trend-spark {
    display: block;
}

.change-col.pos { color: var(--accent-green); }
.change-col.neg { color: var(--accent-red); }

.volume-col { color: var(--text-secondary); }

.action-col {
    display: flex;
    justify-content: flex-end;
}

.market-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

.flash-up { animation: flashRowUp 0.6s ease; }
.flash-down { animation: flashRowDown 0.6s ease; }

@keyframes flashRowUp {
    0% { background: rgba(14, 203, 129, 0.08); }
    100% { background: transparent; }
}
@keyframes flashRowDown {
    0% { background: rgba(246, 70, 93, 0.08); }
    100% { background: transparent; }
}

.btn-sm { padding: 8px 12px; font-size: 0.9rem; }
.btn-xs { padding: 6px 10px; font-size: 0.85rem; }

.icon-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #2f3a4b;
    color: #f5f7fa;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.icon-btn:hover {
    border-color: #fcd535;
    color: #fcd535;
    background: rgba(252,213,53,0.08);
}

@media (max-width: 768px) {
    .market-header,
    .market-row {
        grid-template-columns: 1.6fr 1.2fr 1fr 0.8fr 1fr;
        font-size: 13px;
    }
    .control-right { width: 100%; justify-content: flex-start; }

    .market-header span:nth-child(5),
    .market-row .trend-col {
        display: none;
    }
}

@media (max-width: 540px) {
    .market-header,
    .market-row {
        grid-template-columns: 1.5fr 1.1fr 0.9fr 0.9fr 1fr;
        padding: 12px 12px;
    }
    .section-title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .market-controls { width: 100%; }
}

.price-card {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.price-card:hover {
    transform: translateY(-2px);
}

.price-card .symbol {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.price-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.price-card .change {
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
}

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

.price-card.flash-up { animation: flashUp 0.5s ease; }
.price-card.flash-down { animation: flashDown 0.5s ease; }
.price-card .price.up { color: var(--accent-green); }
.price-card .price.down { color: var(--accent-red); }

@keyframes flashUp {
    0% { background: var(--bg-card); }
    50% { background: rgba(14, 203, 129, 0.2); box-shadow: 0 0 10px rgba(14, 203, 129, 0.3); }
    100% { background: var(--bg-card); }
}
@keyframes flashDown {
    0% { background: var(--bg-card); }
    50% { background: rgba(246, 70, 93, 0.2); box-shadow: 0 0 10px rgba(246, 70, 93, 0.3); }
    100% { background: var(--bg-card); }
}

.price-card .coin-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 3px;
    display: block;
}

.price-card .coin-symbol {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.price-card .price-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price-card .price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.price-card .price-arrow {
    font-size: 0.9rem;
    font-weight: bold;
}

.price-card .price-arrow.up { color: var(--accent-green); }
.price-card .price-arrow.down { color: var(--accent-red); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    position: relative;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

/* ===========================================
   PROFILE PAGE STYLES
   =========================================== */
.profile-container {
    padding: 20px 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 3rem;
    color: var(--text-secondary);
}

.profile-header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.member-since {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.profile-card h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.balance-display {
    text-align: center;
    margin-bottom: 20px;
}

.balance-display .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.balance-display .currency {
    font-size: 1rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.deposit-info {
    background: var(--bg-body);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.deposit-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.credit-display {
    text-align: center;
    margin-bottom: 20px;
}

.credit-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.credit-circle.good { border-color: var(--accent-green); color: var(--accent-green); }
.credit-circle.warning { border-color: var(--accent-red); color: var(--accent-red); }

.credit-circle .score { font-size: 1.8rem; font-weight: 700; }
.credit-circle .label { font-size: 0.8rem; color: var(--text-secondary); }

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item .label { color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.info-item .value { font-weight: 600; }

.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-item.success { background: rgba(14, 203, 129, 0.1); color: var(--accent-green); }
.status-item.danger { background: rgba(246, 70, 93, 0.1); color: var(--accent-red); }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    background: var(--bg-body);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-item .stat-value { display: block; font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.stat-item .stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* ===========================================
   WITHDRAW PAGE STYLES
   =========================================== */
.withdraw-container {
    padding: 20px 0;
}

.withdraw-container h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.withdraw-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.withdraw-card h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.1), rgba(252, 213, 53, 0.05));
    border-color: rgba(252, 213, 53, 0.2);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.method-option {
    cursor: pointer;
}

.method-option input { display: none; }

.option-content {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}

.method-option input:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(252, 213, 53, 0.05);
}

.option-content i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
    color: var(--text-secondary);
}

.method-option input:checked + .option-content i { color: var(--primary-color); }

.bound-info {
    background: var(--bg-body);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.info-row:last-child { margin-bottom: 0; }
.info-row .label { color: var(--text-secondary); }
.info-row .value { font-weight: 600; }

/* ===========================================
   HISTORY PAGE STYLES
   =========================================== */
.history-container {
    padding: 20px 0;
}

.history-container h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.stat-card.success i { color: var(--accent-green); }
.stat-card.danger i { color: var(--accent-red); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.history-section {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

.history-section h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tr:last-child td { border-bottom: none; }

.symbol { font-weight: 700; }

.type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.type-badge.buy { background: rgba(14, 203, 129, 0.1); color: var(--accent-green); }
.type-badge.sell { background: rgba(246, 70, 93, 0.1); color: var(--accent-red); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.status-badge.pending { color: var(--primary-color); background: rgba(252, 213, 53, 0.1); }
.status-badge.win { color: var(--accent-green); background: rgba(14, 203, 129, 0.1); }
.status-badge.lose { color: var(--accent-red); background: rgba(246, 70, 93, 0.1); }
.status-badge.approved { background: rgba(14, 203, 129, 0.1); color: var(--accent-green); }
.status-badge.rejected { background: rgba(246, 70, 93, 0.1); color: var(--accent-red); }

.profit-positive { color: var(--accent-green); font-weight: 600; }
.profit-negative { color: var(--accent-red); font-weight: 600; }

.tx-type {
    text-transform: capitalize;
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ===========================================
   404 PAGE STYLES
   =========================================== */
.error-page {
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-content {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1;
}

.error-content h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-home:hover {
    transform: translateY(-2px);
}

/* ===========================================
   COMMON ALERT STYLES
   =========================================== */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-warning { background: rgba(252, 213, 53, 0.1); color: var(--primary-color); border: 1px solid rgba(252, 213, 53, 0.2); }
.alert-success { background: rgba(14, 203, 129, 0.1); color: var(--accent-green); border: 1px solid rgba(14, 203, 129, 0.2); }
.alert-danger { background: rgba(246, 70, 93, 0.1); color: var(--accent-red); border: 1px solid rgba(246, 70, 93, 0.2); }
.alert-info { background: rgba(132, 142, 156, 0.1); color: var(--text-secondary); }

.text-muted { color: var(--text-secondary); font-size: 0.9rem; }

/* ===========================================
   BINANCE STYLE OVERRIDES (History & Withdraw)
   =========================================== */

.finance-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.finance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.finance-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Asset Card */
.asset-card {
    background: #1e2329;
    border-radius: 12px;
    padding: 30px 24px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid #2b3139;
}

.asset-label {
    font-size: 14px;
    color: #848e9c;
    margin-bottom: 12px;
}

.asset-value {
    font-size: 36px;
    font-weight: 700;
    color: #eaecef;
    font-family: 'Roboto Mono', monospace;
    line-height: 1;
}

.asset-value span {
    font-size: 18px;
    color: #848e9c;
    margin-left: 6px;
    font-weight: 500;
}

/* Input Fields */
.binance-input-group {
    margin-bottom: 24px;
}

.binance-label {
    display: block;
    font-size: 14px;
    color: #848e9c;
    margin-bottom: 10px;
}

.binance-input-wrapper {
    display: flex;
    align-items: center;
    background: #2b3139;
    border-radius: 8px;
    padding: 6px 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    height: 50px;
}

.binance-input-wrapper:focus-within {
    border-color: #fcd535;
}

.binance-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #eaecef;
    font-size: 16px;
    padding: 0;
    outline: none;
    height: 100%;
}

.input-suffix {
    color: #848e9c;
    font-size: 14px;
    padding-left: 12px;
    font-weight: 500;
}

/* Action Buttons */
.action-btn-full {
    width: 100%;
    padding: 16px;
    background: #fcd535;
    color: #0b0e11;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 10px;
}

.action-btn-full:hover {
    opacity: 0.9;
}

.action-btn-full:active {
    transform: scale(0.98);
}

.action-btn-full:disabled {
    background: #2b3139;
    color: #5e6673;
    cursor: not-allowed;
    transform: none;
}

/* History List Styles */
.history-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card-item {
    background: #1e2329;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #2b3139;
    transition: background 0.2s;
}

.history-card-item:hover {
    background: #252a33;
}

.history-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-symbol {
    font-size: 16px;
    font-weight: 700;
    color: #eaecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-date {
    font-size: 12px;
    color: #848e9c;
}

.history-row-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    align-items: flex-start;
    gap: 12px;
}

.history-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 0;
    width: 50%;
    min-width: 0;
}

.history-col.right {
    align-items: flex-end;
    text-align: right;
}

.history-col .history-label,
.history-col .history-val {
    display: block;
    width: 100%;
}

.history-label {
    color: #848e9c;
    font-size: 11px;
}

.history-val {
    color: #eaecef;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.val-green { color: #0ecb81; }
.val-red { color: #f6465d; }
.val-yellow { color: #fcd535; }

.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-long { background: rgba(14, 203, 129, 0.15); color: #0ecb81; }
.badge-short { background: rgba(246, 70, 93, 0.15); color: #f6465d; }

/* Tabs */
.custom-tabs {
    display: flex;
    background: #181a20;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #2b3139;
}

.custom-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #848e9c;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.custom-tab:hover {
    color: #eaecef;
}

.custom-tab.active {
    background: #2b3139;
    color: #eaecef;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Bank Selector */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.bank-item {
    background: #1e2329;
    border: 1px solid #2b3139;
    border-radius: 8px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.bank-item:hover {
    border-color: #5e6673;
}

.bank-item.active {
    border-color: #fcd535;
    background: rgba(252, 213, 53, 0.05);
}

.bank-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: #848e9c;
}

.bank-item.active .bank-icon {
    color: #fcd535;
}

.bank-name {
    font-size: 12px;
    color: #eaecef;
    line-height: 1.3;
}

/* Mobile Responsive adjustments for finance pages */
@media (max-width: 768px) {
    .finance-container {
        padding: 16px;
    }
    
    .asset-card {
        padding: 24px 20px;
    }
    
    .asset-value {
        font-size: 32px;
    }
    
    .bank-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5e6673;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}
