/* ApexInvest Pro / DEXFUND Pro - Modern Binance / TradingView Inspired Theme */
:root {
    --bg-dark: #0B0E14;
    --bg-card: #181A20;
    --bg-card-hover: #2B2F36;
    --text-main: #EAECSF;
    --text-muted: #848E9C;
    --accent-gold: #F3BA2F;
    --accent-gold-hover: #E5B80B;
    --accent-green: #0ECB81;
    --accent-red: #F6465D;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(24, 26, 32, 0.85);
    --glass-border: rgba(243, 186, 47, 0.2);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism Card Style */
.fintech-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fintech-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.gold-glow {
    box-shadow: 0 0 30px rgba(243, 186, 47, 0.25);
    border-color: rgba(243, 186, 47, 0.3) !important;
}

.green-glow {
    box-shadow: 0 0 25px rgba(14, 203, 129, 0.2);
    border-color: rgba(14, 203, 129, 0.3) !important;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF099 0%, #F3BA2F 50%, #D49C0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gold {
    background: linear-gradient(135deg, #F3BA2F 0%, #D49C0B 100%);
    color: #000 !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    transition: all 0.25s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFE066 0%, #F3BA2F 100%);
    box-shadow: 0 0 25px rgba(243, 186, 47, 0.5);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Sidebar & Navigation */
.navbar-fintech {
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-fintech {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 70px);
}

.sidebar-link {
    color: var(--text-muted);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--accent-gold);
    background: rgba(243, 186, 47, 0.1);
    border-left: 4px solid var(--accent-gold);
}

/* Dark Submenus & Dropdown Customization (Fix White Background Issue) */
.dropdown-menu {
    background-color: #181A20 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    padding: 0.5rem 0 !important;
}

.dropdown-item {
    color: #EAECSF !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(243, 186, 47, 0.15) !important;
    color: var(--accent-gold) !important;
}

.dropdown-divider {
    border-top: 1px solid var(--border-color) !important;
}

/* Select Box Option Dropdowns (Fix white background on Chrome / Windows) */
select.form-select-fintech, select.form-select {
    background-color: #181A20 !important;
    color: #FFFFFF !important;
    border: 1px solid var(--border-color) !important;
}

select.form-select-fintech option, select.form-select option {
    background-color: #181A20 !important;
    color: #FFFFFF !important;
    padding: 10px !important;
}

select.form-select-fintech option:hover, select.form-select-fintech option:focus, select.form-select-fintech option:checked {
    background-color: var(--accent-gold) !important;
    color: #000000 !important;
}

/* Stat Counters & Badges */
.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.badge-vip {
    background: linear-gradient(135deg, #F3BA2F, #B8860B);
    color: #000;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Custom Table Design & Responsiveness Fixes */
.table-fintech {
    color: var(--text-main);
    width: 100%;
    margin-bottom: 0;
}

.table-fintech th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    padding: 1rem 0.75rem;
}

.table-fintech td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* Avatar Image Anti-Deformation */
.avatar-circle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--accent-gold);
}

/* Custom Inputs */
.form-control-fintech, .form-select-fintech {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color) !important;
    color: #FFF !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.form-control-fintech:focus, .form-select-fintech:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 12px rgba(243, 186, 47, 0.3) !important;
}

/* Pulse Glow Keyframe */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(243, 186, 47, 0.2); }
    50% { box-shadow: 0 0 30px rgba(243, 186, 47, 0.5); }
    100% { box-shadow: 0 0 15px rgba(243, 186, 47, 0.2); }
}

.pulse-gold {
    animation: pulseGlow 3s infinite ease-in-out;
}
