/* ==========================================
   CRYPTO FAUCET - MAIN STYLES
   Modern Dark Theme
   ========================================== */

:root {
    /* Colors */
    --bg-primary: #0a0e17; /* Updated to match faucet.php */
    --bg-secondary: #0f1420;
    --bg-tertiary: #1a1a25;
    --bg-card: #111827; /* Updated to match faucet.php */
    --bg-card-hover: #1a2234; /* Updated to match faucet.php */

    --text-primary: #f1f5f9; /* Updated to match faucet.php */
    --text-secondary: #94a3b8; /* Updated to match faucet.php */
    --text-muted: #64748b;

    --accent-primary: #10b981; /* Updated to match faucet.php */
    --accent-secondary: #34d399; /* Updated to match faucet.php */
    --accent-glow: rgba(16, 185, 129, 0.4);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Crypto Colors */
    --btc: #f7931a;
    --eth: #627eea;
    --ltc: #345d9d; /* fallback */
    --doge: #c2a633;
    
    /* Ranks */
    --rank-bronze: #cd7f32;
    --rank-silver: #c0c0c0;
    --rank-gold: #ffd700;
    --rank-platinum: #e5e4e2;
    --rank-diamond: #b9f2ff;

    /* Borders */
    --border-color: #1e293b; /* Updated to match faucet.php */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(247, 147, 26, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
    width: 100%;
    max-width: 1280px; /* Increased to match faucet.php */
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   NAVBAR (New Design)
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #000;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
}

.btn-twitter { background: #1da1f2; color: #fff; border-radius: 50%; }
.btn-telegram { background: #0088cc; color: #fff; border-radius: 50%; }
.btn-facebook { background: #4267b2; color: #fff; border-radius: 50%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================
   MAIN CONTENT & PAGE HEADER
   ========================================== */

.main-content {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2rem;
    margin-bottom: 12px;
}

.page-title i {
    color: var(--accent-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ==========================================
   CARDS & FORMS
   ========================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.card h2 i {
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control, .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
}

/* ==========================================
   DASHBOARD & STATS
   ========================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #000;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FAUCET
   ========================================== */

.faucet-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.faucet-claim-card {
    position: relative;
    overflow: hidden;
}

.faucet-claim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.crypto-selector {
    margin-bottom: 24px;
}

.crypto-selector label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.crypto-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.crypto-btn {
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-btn i {
    font-size: 1.2rem;
}

.crypto-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.crypto-btn.active {
    border-color: var(--btc);
    background: rgba(247, 147, 26, 0.1);
    color: var(--btc);
}

.timer-display {
    text-align: center;
    margin: 32px 0;
}

.timer-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-card));
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px var(--accent-glow), inset 0 0 40px rgba(16, 185, 129, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow), inset 0 0 40px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 70px var(--accent-glow), inset 0 0 50px rgba(16, 185, 129, 0.15); }
}

.timer-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.reward-estimate {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.reward-estimate .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reward-estimate .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin: 8px 0;
}

.bonuses {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bonus-item {
    font-size: 0.85rem;
    color: #64748b;
    background: #1e293b;
    padding: 4px 12px;
    border-radius: 8px;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.balances-list {
    margin-bottom: 20px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 10px;
}

.crypto-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.crypto-icon.btc { background: linear-gradient(135deg, #f7931a, #ff9500); }
.crypto-icon.eth { background: linear-gradient(135deg, #627eea, #8c9eff); }
.crypto-icon.ltc { background: linear-gradient(135deg, #bfbbbb, #a0a0a0); }
.crypto-icon.doge { background: linear-gradient(135deg, #c2a633, #d4b642); }
.crypto-icon.usdt { background: linear-gradient(135deg, #26a17b, #1e8f6e); }

.balance-info { flex: 1; }
.balance-info .crypto-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.balance-info .crypto-symbol { font-size: 0.8rem; color: #64748b; }
.balance-amount { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--accent-primary); font-size: 0.95rem; }

.referral-link {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.referral-link input {
    flex: 1;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.referral-stats {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.ref-stat {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.ref-stat .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
}

.ref-stat .label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-buttons .btn {
    width: 44px;
    height: 44px;
    padding: 0;
}

@media (max-width: 1024px) {
    .faucet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .crypto-buttons { flex-direction: column; }
}

/* ==========================================
   GAMES
   ========================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.game-header i {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.game-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.game-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-glow);
}

.game-result {
    margin-top: 20px;
}

.result-box {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-box.win {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.result-box.lose {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Wheel */
.wheel-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 30px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--accent-primary) 0deg 60deg,
            var(--btc) 60deg 120deg,
            var(--eth) 120deg 180deg,
            var(--accent-primary) 180deg 240deg,
            var(--btc) 240deg 300deg,
            var(--danger) 300deg 360deg);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel::after {
    content: '';
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    position: absolute;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent-primary);
}

/* Lottery */
.lottery-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.jackpot-display,
.draw-time {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.jackpot-display .label,
.draw-time .label {
    color: #64748b;
    font-size: 0.85rem;
}

.jackpot-display .value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--btc);
}

.draw-time .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lottery-numbers {
    margin-bottom: 20px;
}

.lottery-numbers label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.number-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    justify-content: center;
}

.lottery-num {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
}

.lottery-num:focus {
    border-color: var(--accent-primary);
    outline: none;
}

/* ==========================================
   TASKS
   ========================================== */

.task-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.task-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.task-icon {
    width: 56px;
    height: 56px;
    background: #1e293b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.task-info {
    flex: 1;
}

.task-info h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.task-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.task-meta {
    display: flex;
    gap: 16px;
}

.task-meta span {
    font-size: 0.8rem;
    color: #64748b;
}

.task-reward {
    text-align: right;
}

.task-reward .reward-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.task-reward .reward-xp {
    font-size: 0.85rem;
    color: #64748b;
}

.offers-section {
    margin-top: 60px;
}

.offers-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.offers-section h2 i {
    color: var(--accent-primary);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.offer-card:hover {
    border-color: var(--btc);
}

.offer-card h3 {
    margin-bottom: 8px;
}

.offer-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.offer-reward {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--btc);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .task-card {
        flex-direction: column;
        text-align: center;
    }

    .task-reward {
        text-align: center;
    }
}

/* ==========================================
   WALLET
   ========================================== */

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.balance-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.balance-usd {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-completed { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

/* ==========================================
   LEADERBOARD & PROFILE
   ========================================== */

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.leaderboard-container {
    margin-top: 30px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.leaderboard-item.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), var(--bg-card));
    border-color: var(--rank-gold);
}

.leaderboard-item.top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), var(--bg-card));
    border-color: var(--rank-silver);
}

.leaderboard-item.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), var(--bg-card));
    border-color: var(--rank-bronze);
}

.rank {
    width: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.top-1 .rank { color: var(--rank-gold); }
.top-2 .rank { color: var(--rank-silver); }
.top-3 .rank { color: var(--rank-bronze); }

.rank-icon { font-size: 1.8rem; }

.user-info { flex: 1; margin-left: 16px; }
.username { font-weight: 600; font-size: 1.1rem; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    background: #1e293b;
    color: var(--text-secondary);
}

.badge.diamond { background: linear-gradient(135deg, #b9f2ff, #00bcd4); color: #000; }
.badge.platinum { background: linear-gradient(135deg, #e5e4e2, #a0a0a0); color: #000; }
.badge.gold { background: linear-gradient(135deg, #ffd700, #ffb800); color: #000; }
.badge.silver { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card h3 {
    margin: 24px 0 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child { border-bottom: none; }

.info-row .label { color: var(--text-secondary); }
.info-row .value { font-weight: 600; color: var(--text-primary); }
.info-row .value code {
    background: #1e293b;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .leaderboard-item { flex-wrap: wrap; }
    .profile-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   FAQ
   ========================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--accent-primary);
}

.faq-item h3 {
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item ul {
    padding-left: 24px;
    margin-top: 12px;
}

.faq-item li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================
   UTILITIES & TOAST
   ========================================== */

.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.toast.success { border-left: 4px solid var(--accent-primary); }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: #1e293b;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.loading {
    text-align: center;
    color: #64748b;
    padding: 40px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-error { color: var(--error); }