/* ===== CSS VARIABLES & DESIGN TOKENS (PREMIUM CLEAN LIGHT SAAS THEME) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Premium Clean Light Theme Colors */
    --bg-primary: #F4F7FE; /* Soft professional blue-gray background */
    --bg-secondary: #E9EDF7;
    --bg-card: #FFFFFF; /* Pure white cards */
    --bg-card-hover: #F8FAFC;
    --bg-sidebar: #FFFFFF;
    --bg-input: #F8FAFC; /* Very light gray for inputs */

    /* Typography Colors - High Contrast */
    --text-primary: #1E293B; /* Deep Slate for headings */
    --text-secondary: #475569; /* Medium Slate for body */
    --text-muted: #94A3B8; /* Light Slate for hints */

    /* Professional Accents */
    --accent-primary: #4318FF; /* Modern Indigo/Purple-Blue */
    --accent-primary-hover: #3311DB;
    --accent-success: #05CD99; /* Vibrant Green */
    --accent-warning: #FFCE20; /* Bright Yellow/Amber */
    --accent-danger: #EE5D50; /* Clean Red */
    --accent-info: #39B8FF; /* Light Blue */
    
    /* Social Brand Colors */
    --color-whatsapp: #25D366;
    --color-telegram: #0088cc;
    --color-facebook: #1877F2;
    --color-twitter: #1DA1F2;
    --color-youtube: #FF0000;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4318FF 0%, #39B8FF 100%);
    --gradient-success: linear-gradient(135deg, #05CD99 0%, #04A67D 100%);
    --gradient-warning: linear-gradient(135deg, #FFCE20 0%, #E5B81C 100%);
    
    /* Refined Borders */
    --border-color: #E2E8F0;
    --border-active: #4318FF;

    /* Soft Realistic Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(112, 144, 176, 0.15);
    --shadow-lg: 0 10px 30px rgba(112, 144, 176, 0.2);
    --shadow-glow: 0 10px 20px rgba(67, 24, 255, 0.2);

    /* Layout & Spacing */
    --sidebar-width: 280px;
    --topbar-height: 76px;
    
    /* Smooth Squircle Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Fluid Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

a { 
    color: var(--accent-primary); 
    text-decoration: none; 
    transition: color var(--transition-fast); 
}
a:hover { color: var(--accent-primary-hover); }

/* Premium Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ===== AUTH OVERLAY ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    background: rgba(244, 247, 254, 0.9);
    backdrop-filter: blur(10px);
}

.auth-overlay.active { opacity: 1; visibility: visible; }

.auth-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite alternate;
}

.shape-1 { width: 400px; height: 400px; background: #4318FF; top: -10%; right: -5%; }
.shape-2 { width: 350px; height: 350px; background: #39B8FF; bottom: -10%; left: -5%; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.05); }
}

.auth-container { position: relative; z-index: 2; width: 100%; max-width: 440px; padding: 24px; }

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    animation: authSlideUp 0.6s ease forwards;
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo { text-align: center; margin-bottom: 40px; }
.auth-logo .logo-icon { width: 64px; height: 64px; background: var(--gradient-primary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; margin: 0 auto 20px; box-shadow: var(--shadow-glow); }
.auth-logo h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.auth-logo p { color: var(--text-muted); margin-top: 6px; font-size: 15px; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group i:first-child { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--accent-primary); font-size: 16px; }
.input-group input { width: 100%; padding: 16px 16px 16px 48px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 15px; font-weight: 500; transition: all var(--transition-fast); outline: none; }
.input-group input:focus { border-color: var(--accent-primary); background: #fff; box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1); }
.input-group input::placeholder { color: #A0AEC0; font-weight: 400; }

.toggle-password { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.toggle-password:hover { color: var(--accent-primary); }

.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; font-size: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); cursor: pointer; font-weight: 500;}
.checkbox-label input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 2px solid #CBD5E1; border-radius: 4px; background: #fff; cursor: pointer; position: relative; transition: all var(--transition-fast); }
.checkbox-label input[type="checkbox"]:checked { background: var(--accent-primary); border-color: var(--accent-primary); }
.checkbox-label input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.forgot-link { color: var(--accent-primary); font-weight: 600; }

.btn-auth { width: 100%; padding: 16px 24px; background: var(--accent-primary); border: none; border-radius: var(--radius-md); color: #fff; font-size: 16px; font-weight: 700; font-family: 'Outfit', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all var(--transition-fast); box-shadow: var(--shadow-glow); }
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(67, 24, 255, 0.3); background: var(--accent-primary-hover); }

.auth-divider { text-align: center; margin: 32px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border-color); }
.auth-divider span { background: var(--bg-card); padding: 0 16px; color: var(--text-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; position: relative; }

.social-auth { display: flex; gap: 16px; justify-content: center; }
.btn-social { flex: 1; height: 48px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: #fff; color: var(--text-primary); font-size: 18px; cursor: pointer; transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; }
.btn-social:hover { background: var(--bg-input); border-color: var(--accent-primary); color: var(--accent-primary); transform: translateY(-2px); }

.auth-switch { text-align: center; margin-top: 32px; color: var(--text-secondary); font-size: 15px; }
.auth-switch a { color: var(--accent-primary); font-weight: 700; margin-left: 4px; }
.hidden { display: none !important; }

/* ===== APP CONTAINER & SIDEBAR ===== */
.app-container { display: flex; min-height: 100vh; }

.sidebar { width: var(--sidebar-width); background: var(--bg-sidebar); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 1000; transition: transform var(--transition-normal); box-shadow: 4px 0 20px rgba(0,0,0,0.02); }

.sidebar-header { padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }
.logo { display: flex; align-items: center; gap: 14px; }
.logo .logo-icon { width: 38px; height: 38px; background: var(--accent-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; box-shadow: 0 4px 10px rgba(67, 24, 255, 0.3); }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--text-primary); }

.sidebar-close { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 20px 16px; }
.sidebar-nav ul { list-style: none; }
.nav-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 16px 12px 10px; }

.nav-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-md); color: var(--text-secondary); font-size: 15px; font-weight: 600; transition: all var(--transition-fast); margin-bottom: 6px; }
.nav-link:hover { background: var(--bg-primary); color: var(--accent-primary); }
.nav-link.active { background: var(--accent-primary); color: #fff; box-shadow: 0 4px 12px rgba(67, 24, 255, 0.2); }

.nav-link i { width: 22px; text-align: center; font-size: 18px; transition: transform 0.3s; }
.nav-link:hover i { transform: translateX(3px); }
.nav-link.active i { color: #fff; transform: translateX(0); }

.nav-badge { margin-left: auto; background: var(--accent-danger); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

.sidebar-footer { padding: 20px; border-top: 1px solid var(--border-color); }
.user-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-primary); border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: all var(--transition-fast); }
.user-card:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-sm); }

.user-avatar { position: relative; flex-shrink: 0; }
.user-avatar img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; }
.online-dot { position: absolute; bottom: -2px; right: -2px; width: 14px; height: 14px; background: var(--accent-success); border: 2px solid #fff; border-radius: 50%; }

.user-info { flex: 1; min-width: 0; }
.user-info h4 { font-size: 15px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 12px; color: var(--accent-warning); font-weight: 700; display: flex; align-items: center; gap: 4px; }

.btn-icon { background: none; border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.btn-icon:hover { color: var(--accent-danger); background: rgba(238, 93, 80, 0.1); }

/* ===== MAIN CONTENT & TOPBAR ===== */
.main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

.topbar { height: var(--topbar-height); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 100; }

.topbar-left { display: flex; align-items: center; gap: 20px; }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

.search-box { display: flex; align-items: center; gap: 12px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 50px; padding: 12px 20px; width: 380px; transition: all var(--transition-fast); }
.search-box:focus-within { border-color: var(--accent-primary); background: #fff; box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1); }
.search-box i { color: var(--text-muted); font-size: 16px; }
.search-box input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 14px; font-weight: 500; width: 100%; }

.topbar-right { display: flex; align-items: center; gap: 20px; }

.balance-pill { display: flex; align-items: center; gap: 8px; background: rgba(5, 205, 153, 0.1); border: 1px solid rgba(5, 205, 153, 0.2); padding: 10px 20px; border-radius: 50px; font-size: 15px; font-weight: 700; color: var(--accent-success); }

.notification-btn { position: relative; color: var(--text-secondary); font-size: 20px; padding: 8px; border-radius: 50%; background: var(--bg-primary); transition: all 0.3s;}
.notification-btn:hover { color: var(--accent-primary); background: #fff; box-shadow: var(--shadow-sm); }

.notif-badge { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; background: var(--accent-danger); border-radius: 50%; border: 2px solid #fff; }

.topbar-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; cursor: pointer; transition: transform 0.3s; border: 2px solid var(--border-color);}
.topbar-avatar img:hover { transform: scale(1.05); border-color: var(--accent-primary); }

/* Notifications Dropdown */
.notifications-dropdown { position: absolute; top: calc(100% + 12px); right: 32px; width: 380px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); z-index: 200; animation: dropdownFade 0.3s ease; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-color); background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;}
.notif-header h3 { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.notif-header a { font-size: 13px; color: var(--accent-primary); font-weight: 600;}

.notif-item { display: flex; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border-color); transition: background var(--transition-fast); cursor: pointer; }
.notif-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius-xl) var(--radius-xl);}
.notif-item:hover { background: var(--bg-primary); }
.notif-item.unread { background: rgba(67, 24, 255, 0.03); }

.notif-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notif-icon.success { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); }
.notif-icon.info { background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); }
.notif-icon.warning { background: rgba(255, 206, 32, 0.15); color: #D4A000; }

.notif-content p { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-primary); }
.notif-content p strong { color: var(--text-primary); font-weight: 700; }
.notif-content span { font-size: 12px; color: var(--text-muted); display: block; margin-top: 6px; font-weight: 500;}

/* ===== PAGE CONTENT & CARDS ===== */
.page-content { padding: 40px; flex: 1; }
.page { display: none; animation: pageIn 0.5s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 20px; }
.page-header.center-header { justify-content: center; text-align: center; align-items: center; flex-direction: column; }
.page-header h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.page-subtitle { color: var(--text-secondary); font-size: 15px; font-weight: 500;}

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; border: none; transition: all var(--transition-normal); white-space: nowrap; }
.btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 4px 15px rgba(67, 24, 255, 0.2); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-primary-hover); box-shadow: 0 8px 25px rgba(67, 24, 255, 0.3); }

.btn-outline { background: #fff; color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);}
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(67, 24, 255, 0.02); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 18px 36px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ===== PREMIUM CARDS ===== */
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 32px; transition: all var(--transition-normal); box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1;}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-header h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.card-header h3 i { color: var(--accent-primary); }

.view-all { font-size: 14px; color: var(--accent-primary); font-weight: 600; transition: color var(--transition-fast); }
.view-all:hover { color: var(--accent-primary-hover); text-decoration: underline;}

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 32px; }

.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 28px; display: flex; align-items: flex-start; gap: 20px; transition: all var(--transition-normal); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Decorative Side Line */
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px;}
.stat-gradient-1::before { background: var(--accent-primary); }
.stat-gradient-2::before { background: var(--accent-info); }
.stat-gradient-3::before { background: var(--accent-success); }
.stat-gradient-4::before { background: var(--accent-warning); }

.stat-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.stat-gradient-1 .stat-icon { background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); }
.stat-gradient-2 .stat-icon { background: rgba(57, 184, 255, 0.1); color: var(--accent-info); }
.stat-gradient-3 .stat-icon { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); }
.stat-gradient-4 .stat-icon { background: rgba(255, 206, 32, 0.15); color: #D4A000; }

.stat-info { flex: 1; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 700; display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px;}

.stat-change { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.stat-change.positive { color: var(--accent-success); }
.stat-change.negative { color: var(--accent-danger); }

.mini-progress { width: 100%; height: 6px; background: var(--bg-primary); border-radius: 6px; margin-top: 12px; overflow: hidden; }
.mini-progress-bar { height: 100%; background: var(--accent-info); border-radius: 6px; }

/* Dashboard Grids */
.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-bottom: 32px; }
.dashboard-bottom-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; }

/* Activity List */
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius-md); transition: background var(--transition-fast); }
.activity-item:hover { background: var(--bg-primary); }

.activity-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.activity-icon.earned { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); }
.activity-icon.referral { background: rgba(57, 184, 255, 0.1); color: var(--accent-info); }
.activity-icon.withdraw { background: rgba(238, 93, 80, 0.1); color: var(--accent-danger); }
.activity-icon.deposit { background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); }

.activity-details { flex: 1; }
.activity-details p { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.activity-details span { font-size: 13px; color: var(--text-muted); display: block; margin-top: 2px; font-weight: 500;}
.activity-amount { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; }

/* Quick Actions */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-primary); cursor: pointer; transition: all var(--transition-normal); box-shadow: var(--shadow-sm); }
.quick-btn:hover { border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-icon { width: 52px; height: 52px; background: var(--bg-primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent-primary); transition: all 0.3s; }
.quick-btn:hover .quick-icon { background: var(--accent-primary); color: #fff; }
.quick-btn span { font-size: 14px; font-weight: 700; }

/* Bonus Days */
.bonus-days { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap;}
.bonus-day { flex: 1; min-width: 60px; text-align: center; padding: 16px 8px; background: #fff; border-radius: 16px; border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.bonus-day span { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.bonus-day strong { color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800;}
.bonus-day.claimed { background: var(--bg-primary); opacity: 0.7; box-shadow: none; }
.bonus-day.claimed i { color: var(--accent-success); font-size: 18px; }
.bonus-day.current { background: var(--accent-primary); border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(67, 24, 255, 0.3); }
.bonus-day.current span, .bonus-day.current strong, .bonus-day.current i { color: #fff; }
.bonus-day.special { background: rgba(255, 206, 32, 0.1); border-color: #FFCE20; }
.bonus-timer { font-size: 13px; color: var(--accent-primary); font-weight: 700; background: rgba(67, 24, 255, 0.1); padding: 8px 16px; border-radius: 20px; }

/* ===== VIEW ADS PAGE ===== */
.ads-summary-pills { display: flex; gap: 16px; flex-wrap: wrap;}
.pill { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: #fff; border: 1px solid var(--border-color); border-radius: 50px; font-size: 15px; color: var(--text-secondary); font-weight: 600; box-shadow: var(--shadow-sm);}
.pill i { color: var(--accent-primary); font-size: 18px;}
.pill strong { font-family: 'Outfit', sans-serif; font-size: 18px; color: var(--text-primary);}

.ads-filter-bar { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn { padding: 12px 28px; background: #fff; border: 1px solid var(--border-color); border-radius: 50px; color: var(--text-secondary); font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.filter-btn.active, .filter-btn:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; box-shadow: 0 6px 15px rgba(67, 24, 255, 0.25);}

.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ad-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; transition: all var(--transition-normal); position: relative; box-shadow: var(--shadow-sm); }
.ad-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #CBD5E1; }

.ad-badge { position: absolute; top: 16px; right: 16px; padding: 8px 14px; border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; z-index: 2; color: #fff; text-transform: uppercase; box-shadow: var(--shadow-sm);}
.ad-badge.premium { background: var(--gradient-primary); }
.ad-badge.standard { background: var(--text-primary); }
.ad-badge.video { background: var(--accent-danger); }

.ad-preview { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.ad-placeholder { font-size: 56px; color: #CBD5E1; }

.ad-info { padding: 24px; }
.ad-info h4 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.ad-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; color: var(--text-secondary); font-weight: 600;}
.ad-meta span { display: flex; align-items: center; gap: 8px; }
.ad-reward { color: var(--accent-success) !important; font-weight: 800; font-family: 'Outfit', sans-serif; font-size: 16px;}

/* ===== PLANS PAGE ===== */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 60px; align-items: center; }
.plan-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 48px 32px; text-align: center; transition: all 0.5s; position: relative; box-shadow: var(--shadow-md); }
.plan-card:hover { transform: translateY(-8px); border-color: var(--accent-primary); }

.plan-card.popular { background: var(--text-primary); border: 1px solid var(--text-primary); box-shadow: 0 20px 40px rgba(30, 41, 59, 0.2); transform: scale(1.05); padding: 56px 32px; z-index: 10; color: #fff;}
.plan-card.popular:hover { transform: scale(1.05) translateY(-8px); }

.popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--gradient-warning); color: #000; padding: 8px 24px; border-radius: 50px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 6px 15px rgba(255, 206, 32, 0.3); }

.plan-icon { width: 72px; height: 72px; background: rgba(67, 24, 255, 0.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--accent-primary); margin: 0 auto 28px; }
.popular .plan-icon { background: rgba(255, 255, 255, 0.1); color: var(--accent-warning); }

.plan-header h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: inherit; }
.popular .plan-header h3 { color: #fff; }

.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 36px; }
.plan-price .currency { font-size: 24px; font-weight: 700; color: var(--text-muted); }
.popular .plan-price .currency { color: rgba(255,255,255,0.7); }
.plan-price .amount { font-family: 'Outfit', sans-serif; font-size: 64px; font-weight: 800; color: inherit; }
.plan-price .period { font-size: 16px; color: var(--text-muted); font-weight: 500;}
.popular .plan-price .period { color: rgba(255,255,255,0.7); }

.plan-features { list-style: none; text-align: left; margin-bottom: 40px; }
.plan-features li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--bg-primary); }
.popular .plan-features li { color: #E2E8F0; border-bottom-color: rgba(255,255,255,0.1); }
.plan-features li i { font-size: 18px; width: 24px; text-align: center; }
.plan-features li .fa-check { color: var(--accent-success); }
.plan-features li .fa-times { color: var(--text-muted); opacity: 0.5; }
.plan-features li.disabled { opacity: 0.5; text-decoration: line-through; }

/* ===== FINANCE PAGES (DEPOSIT/WITHDRAW) ===== */
.finance-layout.single-column { max-width: 800px; margin: 0 auto; display: block;}

.deposit-form-card { padding: 48px; }
.deposit-form-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 32px; color: var(--text-primary); display: flex; align-items: center; gap: 12px;}
.deposit-form-card h3 i { color: var(--accent-primary); background: rgba(67,24,255,0.1); padding: 10px; border-radius: 12px;}

.amount-presets { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.preset-btn { padding: 14px 24px; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; color: var(--text-primary); font-size: 16px; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); flex: 1; min-width: 80px; text-align: center; box-shadow: var(--shadow-sm);}
.preset-btn.active, .preset-btn:hover { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; box-shadow: 0 4px 15px rgba(67, 24, 255, 0.25); transform: translateY(-2px);}

.input-group-styled { margin-bottom: 28px; }
.input-group-styled label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em;}
/* FIX: Bright visible inputs for light theme */
.input-group-styled input, .input-group-styled select, .input-group-styled textarea { width: 100%; padding: 18px 20px; background: #fff; border: 2px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif; outline: none; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.input-group-styled input:focus, .input-group-styled select:focus, .input-group-styled textarea:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.1); }
.input-group-styled input[readonly] { background: var(--bg-primary); color: var(--text-secondary); cursor: not-allowed; border-color: var(--border-color); }
.input-group-styled textarea { resize: vertical; min-height: 120px; }
.input-group-styled input[type="file"] { padding: 14px; background: var(--bg-primary); border: 2px dashed #CBD5E1; cursor: pointer; text-align: center; color: var(--text-primary); font-weight: 600;}

.currency-input { position: relative; }
.currency-symbol { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--accent-primary); }
.currency-input input { padding-left: 48px; font-size: 24px; font-weight: 800; font-family: 'Outfit', sans-serif; color: var(--text-primary);}

.section-label { font-size: 16px; font-weight: 800; margin-bottom: 20px; color: var(--text-primary); display: block;}

/* Payment Methods Grid */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.payment-option { cursor: pointer; }
.payment-option input { display: none; }
.payment-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; background: #fff; border: 2px solid var(--border-color); border-radius: var(--radius-lg); transition: all var(--transition-fast); font-size: 15px; font-weight: 700; color: var(--text-secondary); box-shadow: var(--shadow-sm);}
.payment-card i { font-size: 36px; transition: transform var(--transition-fast); }

.payment-option input:checked + .payment-card { background: rgba(67, 24, 255, 0.03); border-color: var(--accent-primary); color: var(--accent-primary); box-shadow: 0 8px 20px rgba(67, 24, 255, 0.15); transform: translateY(-2px);}
.payment-option input:checked + .payment-card i { transform: scale(1.15); }

.payment-details-box { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 32px; transition: opacity 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);}

.security-note { text-align: center; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.security-note i { color: var(--accent-success); font-size: 16px;}

.withdraw-balance-box { text-align: center; padding: 40px 24px; background: var(--gradient-primary); border-radius: var(--radius-xl); margin-bottom: 40px; box-shadow: var(--shadow-md); color: #fff;}
.withdraw-balance-box span { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.withdraw-balance-box h2 { font-family: 'Outfit', sans-serif; font-size: 56px; font-weight: 800; color: #fff; margin-top: 8px; }

.withdraw-summary { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 32px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 15px; color: var(--text-secondary); font-weight: 600;}
.summary-row.total { border-top: 2px dashed var(--border-color); margin-top: 12px; padding-top: 20px; font-weight: 800; color: var(--text-primary); font-size: 18px; }

/* ===== TRANSACTIONS TABLE ===== */
.table-filters { margin-bottom: 24px; }
.filter-group { display: flex; gap: 16px; flex-wrap: wrap; }
.filter-select { padding: 12px 24px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; outline: none; cursor: pointer; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.filter-select:focus, .filter-select:hover { border-color: var(--accent-primary); }

.table-responsive { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); background: #fff;}
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { padding: 20px 24px; text-align: left; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 2px solid var(--bg-primary); background: #fff; }
.data-table td { padding: 20px 24px; font-size: 15px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--bg-primary); }
.data-table tbody tr:hover { background: var(--bg-primary); }
.data-table code { font-family: 'JetBrains Mono', monospace; background: var(--bg-primary); padding: 6px 10px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-primary); border: 1px solid var(--border-color);}

.type-badge { display: inline-flex; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.type-badge.earning { background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); }
.type-badge.referral { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); }
.type-badge.withdrawal { background: rgba(238, 93, 80, 0.1); color: var(--accent-danger); }
.type-badge.deposit { background: rgba(57, 184, 255, 0.1); color: var(--accent-info); }

.status-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.status-badge.completed { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); }
.status-badge.pending { background: rgba(255, 206, 32, 0.15); color: #D4A000; }
.status-badge.active { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); }
.status-badge.inactive { background: var(--bg-primary); color: var(--text-muted); border: 1px solid var(--border-color); }

.table-pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
.pagination { display: flex; gap: 8px; align-items: center; }
.page-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); background: #fff; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.page-btn:hover:not(:disabled) { border-color: var(--accent-primary); color: var(--accent-primary); background: rgba(67, 24, 255, 0.03);}
.page-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; box-shadow: 0 4px 10px rgba(67, 24, 255, 0.2);}
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; background: var(--bg-primary); box-shadow: none;}

/* ===== REFERRALS PAGE ===== */
.referral-hero { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 56px; margin-bottom: 40px; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.referral-hero::before { content: ''; position: absolute; top: -50%; left: -10%; width: 400px; height: 400px; background: rgba(67, 24, 255, 0.05); filter: blur(80px); border-radius: 50%; z-index: 0; }
.referral-hero-content, .referral-hero-stats { position: relative; z-index: 1; }
.referral-hero-content { flex: 1; }
.referral-hero h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.referral-hero > .referral-hero-content > p { color: var(--text-secondary); font-size: 16px; font-weight: 500; margin-bottom: 32px; line-height: 1.6; }

.referral-link-display { display: flex; align-items: center; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 14px; padding: 8px 8px 8px 24px; gap: 16px; margin-bottom: 32px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);}
.referral-link-display span { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 600; color: var(--accent-primary); flex: 1; word-break: break-all; } /* Added word-break to fix mobile overlap */
.btn-copy { padding: 14px 28px; background: var(--text-primary); border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.btn-copy:hover { background: #000; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2);}

/* Updated Share Buttons with Brand Colors */
.share-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.share-btn { padding: 14px 24px; border: 1px solid var(--border-color); background: #fff; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.share-btn i { font-size: 18px; }

.share-btn.whatsapp { color: var(--color-whatsapp); border-color: rgba(37, 211, 102, 0.3); }
.share-btn.whatsapp:hover { background: var(--color-whatsapp); color: #fff; border-color: var(--color-whatsapp); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); transform: translateY(-2px);}

.share-btn.telegram { color: var(--color-telegram); border-color: rgba(0, 136, 204, 0.3); }
.share-btn.telegram:hover { background: var(--color-telegram); color: #fff; border-color: var(--color-telegram); box-shadow: 0 6px 15px rgba(0, 136, 204, 0.3); transform: translateY(-2px);}

.share-btn.facebook { color: var(--color-facebook); border-color: rgba(24, 119, 242, 0.3); }
.share-btn.facebook:hover { background: var(--color-facebook); color: #fff; border-color: var(--color-facebook); box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3); transform: translateY(-2px);}

.share-btn.twitter { color: var(--color-twitter); border-color: rgba(29, 161, 242, 0.3); }
.share-btn.twitter:hover { background: var(--color-twitter); color: #fff; border-color: var(--color-twitter); box-shadow: 0 6px 15px rgba(29, 161, 242, 0.3); transform: translateY(-2px);}

.referral-hero-stats { display: flex; gap: 24px; }
.ref-stat { text-align: center; padding: 32px; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--border-color); min-width: 160px; box-shadow: var(--shadow-sm); }
.ref-stat-value { font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; color: var(--accent-primary); }
.ref-stat-label { font-size: 14px; color: var(--text-muted); font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em;}

/* Referral Tiers */
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px;}
.tier-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px 24px; text-align: center; transition: all var(--transition-normal); position: relative; box-shadow: var(--shadow-sm);}
.tier-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.tier-card.active-tier { border-color: var(--accent-primary); background: #fff; box-shadow: 0 10px 30px rgba(67, 24, 255, 0.1); transform: scale(1.02); }
.tier-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-primary); color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 12px; font-weight: 800; text-transform: uppercase; box-shadow: 0 4px 10px rgba(67, 24, 255, 0.3);}
.tier-icon { font-size: 48px; margin-bottom: 20px; color: var(--text-primary); }
.tier-card h4 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.tier-card p { font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-bottom: 20px; }
.tier-rate { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; color: var(--accent-success); background: rgba(5, 205, 153, 0.1); padding: 8px 16px; border-radius: 12px; display: inline-block;}

/* ===== LEADERBOARD ===== */
.leaderboard-podium { display: flex; justify-content: center; align-items: flex-end; gap: 24px; margin-bottom: 56px; padding: 0 20px; }
.podium-item { text-align: center; padding: 40px 24px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-xl); flex: 1; max-width: 260px; transition: all 0.5s; box-shadow: var(--shadow-sm);}
.podium-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-md);}
.podium-item img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 20px; object-fit: cover; }

.podium-item.first { background: var(--gradient-warning); border: none; padding-bottom: 56px; z-index: 2; box-shadow: 0 15px 35px rgba(255, 206, 32, 0.3); }
.podium-item.first img { width: 96px; height: 96px; border: 4px solid #fff; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
.podium-item.first h4, .podium-item.first .podium-earnings { color: #000; }

.crown { font-size: 36px; color: #fff; margin-bottom: -12px; position: relative; z-index: 10; animation: floatCrown 3s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));}
@keyframes floatCrown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.podium-item.second img { border: 3px solid #CBD5E1; }
.podium-item.third img { border: 3px solid #D97706; }

.podium-item h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.podium-earnings { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: var(--accent-success); display: block; margin-bottom: 20px; }
.podium-rank { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; margin: 0 auto; background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-secondary); }
.podium-item.first .podium-rank { background: #000; color: #fff; border: none; }

.rank-num { font-weight: 800; font-size: 15px; color: var(--text-muted); }
.my-rank { background: rgba(67, 24, 255, 0.03) !important; border-left: 4px solid var(--accent-primary);}
.my-rank td { font-weight: 700; color: var(--text-primary); }

.plan-badge { display: inline-flex; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;}
.plan-badge.gold { background: rgba(255, 206, 32, 0.2); color: #B28600; }
.plan-badge.diamond { background: rgba(57, 184, 255, 0.15); color: #0076B8; }

/* ===== COMMUNITY & SUPPORT (PRO COLORED UI) ===== */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.community-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px 32px; text-align: center; transition: all var(--transition-normal); display: flex; flex-direction: column; align-items: center; gap: 16px; text-decoration: none; box-shadow: var(--shadow-sm);}

/* Hover effects with Brand Colors */
.community-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.community-card.whatsapp-card:hover { border-color: var(--color-whatsapp); }
.community-card.telegram-card:hover { border-color: var(--color-telegram); }
.community-card.whatsapp-support-card:hover { border-color: var(--color-whatsapp); }
.community-card.facebook-card:hover { border-color: var(--color-facebook); }
.community-card.youtube-card:hover { border-color: var(--color-youtube); }
.community-card.email-card:hover { border-color: var(--accent-primary); }

.community-icon { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; transition: all var(--transition-fast); }

/* Apply Brand Backgrounds to Icons */
.whatsapp-card .community-icon { background: rgba(37, 211, 102, 0.1); color: var(--color-whatsapp); }
.telegram-card .community-icon { background: rgba(0, 136, 204, 0.1); color: var(--color-telegram); }
.whatsapp-support-card .community-icon { background: rgba(37, 211, 102, 0.1); color: var(--color-whatsapp); }
.facebook-card .community-icon { background: rgba(24, 119, 242, 0.1); color: var(--color-facebook); }
.youtube-card .community-icon { background: rgba(255, 0, 0, 0.1); color: var(--color-youtube); }
.email-card .community-icon { background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); }

.community-card h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.community-card p { font-size: 15px; font-weight: 500; color: var(--text-secondary); line-height: 1.6; }
.member-count { font-size: 14px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; background: var(--bg-primary); border-radius: 50px;}

.community-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-size: 14px; font-weight: 700; background: var(--bg-primary); color: var(--text-primary); transition: all var(--transition-fast); border: 1px solid var(--border-color);}

/* Dynamic Button Hovers */
.whatsapp-card:hover .community-btn, .whatsapp-support-card:hover .community-btn { background: var(--color-whatsapp); color: #fff; border-color: var(--color-whatsapp); }
.telegram-card:hover .community-btn { background: var(--color-telegram); color: #fff; border-color: var(--color-telegram); }
.facebook-card:hover .community-btn { background: var(--color-facebook); color: #fff; border-color: var(--color-facebook); }
.youtube-card:hover .community-btn { background: var(--color-youtube); color: #fff; border-color: var(--color-youtube); }
.email-card:hover .community-btn { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }

/* FAQ */
.faq-card { margin-bottom: 48px; }
.faq-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 28px; display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.faq-card h2 i { color: var(--accent-primary); }
.faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden; transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.faq-item:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-md);}
.faq-item.open { border-color: var(--accent-primary); background: #fff; box-shadow: 0 4px 15px rgba(67, 24, 255, 0.05); }

.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 24px; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--text-primary); }
.faq-question i { color: var(--text-muted); font-size: 16px; transition: transform 0.3s; background: var(--bg-primary); padding: 8px; border-radius: 50%;}
.faq-item.open .faq-question i { transform: rotate(180deg); background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 24px; font-size: 15px; font-weight: 500; color: var(--text-secondary); line-height: 1.7; }

/* ===== SETTINGS PAGE ===== */
.settings-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.settings-sidebar { display: flex; flex-direction: column; gap: 8px; }
.settings-tab { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: transparent; border: none; border-radius: 14px; color: var(--text-secondary); font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; transition: all var(--transition-fast); text-align: left; }
.settings-tab:hover { background: #fff; color: var(--text-primary); box-shadow: var(--shadow-sm); }
.settings-tab.active { background: var(--accent-primary); color: #fff; box-shadow: 0 4px 15px rgba(67, 24, 255, 0.25); }
.settings-tab i { width: 24px; text-align: center; font-size: 18px;}

.settings-panel { display: none; animation: pageIn 0.4s ease; }
.settings-panel.active { display: block; }
.settings-panel h3 { font-size: 22px; font-weight: 800; margin-bottom: 32px; color: var(--text-primary); }

.profile-avatar-section { display: flex; align-items: center; gap: 32px; margin-bottom: 40px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 28px; border: 4px solid #fff; box-shadow: var(--shadow-md); object-fit: cover; }

/* Toggles in Settings */
.toggle-setting { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border-color); }
.toggle-setting:last-of-type { border-bottom: none; margin-bottom: 24px;}
.toggle-setting h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.toggle-setting p { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

/* Switch Toggle Apple Style */
.switch { position: relative; display: inline-block; width: 56px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #CBD5E1; border-radius: 32px; transition: 0.4s; }
.slider::before { content: ''; position: absolute; width: 24px; height: 24px; left: 4px; bottom: 4px; background: #fff; border-radius: 50%; transition: 0.4s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.switch input:checked + .slider { background: var(--accent-success); }
.switch input:checked + .slider::before { transform: translateX(24px); }

/* Payment Settings Methods */
.saved-payment-methods { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.saved-method { display: flex; justify-content: space-between; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: all var(--transition-fast); box-shadow: var(--shadow-sm);}
.saved-method:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-md); }

.method-info { display: flex; align-items: center; gap: 20px; }
.method-info h4 { font-size: 16px; font-weight: 800; color: var(--text-primary);}
.method-info span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.method-actions { display: flex; align-items: center; gap: 16px; }
.default-badge { padding: 6px 16px; background: rgba(5, 205, 153, 0.1); color: var(--accent-success); border-radius: 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;}

/* ===== MODALS (CLEAN & PROFESSIONAL) ===== */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 5000; animation: modalFade 0.3s; }
.modal.active { display: flex; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-content { background: #fff; border: none; border-radius: var(--radius-xl); padding: 48px; max-width: 500px; width: 90%; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalSlide { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* Ad Modal */
.ad-modal-header { text-align: center; margin-bottom: 32px; }
.ad-modal-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 24px; color: var(--text-primary); display: flex; align-items: center; justify-content: center; gap: 10px;}
.ad-timer-circle { width: 140px; height: 140px; position: relative; margin: 0 auto; }
.ad-timer-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-bg { fill: none; stroke: var(--bg-primary); stroke-width: 8; }
.timer-progress { fill: none; stroke: var(--accent-primary); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
#ad-countdown { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Outfit', sans-serif; font-size: 40px; font-weight: 800; color: var(--text-primary); }

.ad-display { background: var(--bg-primary); border: 2px dashed var(--border-color); border-radius: var(--radius-lg); height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.ad-placeholder-large { text-align: center; color: var(--text-muted); }
.ad-placeholder-large i { font-size: 64px; margin-bottom: 16px; display: block; color: #CBD5E1;}

.ad-modal-footer { text-align: center; }
.ad-modal-footer p { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin-bottom: 20px; }
.ad-progress-bar { width: 100%; height: 8px; background: var(--bg-primary); border-radius: 8px; overflow: hidden; }
.ad-progress-fill { height: 100%; width: 0%; background: var(--accent-primary); border-radius: 8px; transition: width 1s linear; }

/* Success Modal */
.success-modal-content { text-align: center; max-width: 420px; }
.success-animation { margin-bottom: 32px; }
.success-circle { width: 96px; height: 96px; background: rgba(5, 205, 153, 0.1); border: 3px solid var(--accent-success); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 48px; color: var(--accent-success); box-shadow: 0 0 30px rgba(5, 205, 153, 0.3); animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes successPop { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.success-modal-content h3 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.success-modal-content p { font-size: 16px; font-weight: 500; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.6;}

/* Toast Notifications */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 16px; }
.toast { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); min-width: 340px; max-width: 440px; animation: toastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.toast.toast-out { animation: toastOut 0.4s forwards; }
@keyframes toastIn { from { transform: translateX(120%) scale(0.9); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0) scale(1); opacity: 1; } to { transform: translateX(120%) scale(0.9); opacity: 0; } }

.toast-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.toast.success .toast-icon { background: rgba(5, 205, 153, 0.1); color: var(--accent-success); border: 1px solid rgba(5, 205, 153, 0.2); }
.toast.error .toast-icon { background: rgba(238, 93, 80, 0.1); color: var(--accent-danger); border: 1px solid rgba(238, 93, 80, 0.2); }
.toast.warning .toast-icon { background: rgba(255, 206, 32, 0.15); color: #D4A000; border: 1px solid rgba(255, 206, 32, 0.2); }
.toast.info .toast-icon { background: rgba(67, 24, 255, 0.1); color: var(--accent-primary); border: 1px solid rgba(67, 24, 255, 0.2); }

.toast-content { flex: 1; }
.toast-content p { font-weight: 800; color: var(--text-primary); font-size: 15px; margin-bottom: 4px;}
.toast-content span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.toast-close { background: var(--bg-primary); border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 8px; border-radius: 10px; transition: all var(--transition-fast);}
.toast-close:hover { color: var(--text-primary); background: var(--border-color); }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .plan-card.popular { transform: scale(1); padding: 48px 32px; z-index: 1;}
    .plan-card.popular:hover { transform: translateY(-8px); }
    .finance-layout { grid-template-columns: 1fr; }
    .referral-hero { flex-direction: column; text-align: center; }
    .referral-hero-stats { width: 100%; justify-content: center; flex-wrap: wrap;}
    .tiers-grid { grid-template-columns: repeat(2, 1fr); }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); box-shadow: 20px 0 40px rgba(0,0,0,0.1); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .hamburger { display: block; }
    .main-content { margin-left: 0; }
    .search-box { display: none; }
    .topbar { padding: 0 20px; }
    .page-content { padding: 20px; }

    .page-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .page-header.center-header { align-items: center; }
    .page-header h1 { font-size: 28px; }

    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .plans-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .ads-grid { grid-template-columns: 1fr; gap: 16px; }
    .ads-summary-pills { flex-wrap: wrap; }
    
    .community-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .settings-layout { grid-template-columns: 1fr; gap: 24px;}
    .settings-sidebar { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
    .settings-tab { white-space: nowrap; }

    .leaderboard-podium { flex-direction: column; align-items: center; gap: 20px; padding: 0;}
    .podium-item { max-width: 100%; width: 100%; }
    .podium-item.first { order: -1; padding-bottom: 40px;}

    .referral-hero { padding: 32px 20px; gap: 32px;}
    .referral-hero-stats { flex-direction: column; gap: 16px; }

    /* Fix: Mobile Deposit/Withdraw Method Grid - Exactly 2 Columns */
    .mobile-grid-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .payment-methods { grid-template-columns: repeat(2, 1fr); gap: 12px; } /* Ensures default payment grid is also 2 col on mobile */
    
    /* Fix: Social Share Buttons - Exactly 2 Columns */
    .share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .share-btn { width: 100%; justify-content: center; }
    
    .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .support-form .form-grid { grid-template-columns: 1fr; }
    .tiers-grid { grid-template-columns: 1fr; gap: 16px; }
    .balance-pill span { display: none; }
}

@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; }
    /* The 2 column grid for share buttons and payment methods works well down to 320px. Adjust if necessary */
}

/* Sidebar backdrop for mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.sidebar-backdrop.active { display: block; opacity: 1; }