/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Income Action Selection Modal Styles */
.income-action-info {
    text-align: center;
    padding: 20px;
}

.income-action-info p {
    font-size: 16px;
    color: #111827;
    margin-bottom: 30px;
    font-weight: 500;
}

.income-action-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.income-action-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.income-action-btn:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.wallet-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.reinvest-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.action-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.income-action-btn:hover .action-title {
    color: white;
}

.action-description {
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
}

.income-action-btn:hover .action-description {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .income-action-options {
        flex-direction: column;
        align-items: center;
    }
    
    .income-action-btn {
        max-width: 100%;
        width: 100%;
        min-width: unset;
    }
}

/* KYC Document Viewing Styles */
.user-info {
    line-height: 1.2;
}

.user-info small {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
}

.document-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
    height: 100%;
}

.document-card h6 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 600;
}

.document-preview {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.document-preview:hover {
    transform: scale(1.02);
}

.document-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.video-preview {
    border-radius: 4px;
    overflow: hidden;
}

.video-preview video {
    width: 100%;
    max-height: 200px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Status Badge Styles */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: var(--bg-tertiary, #f5f5f5);
    color: var(--text-primary, #000000);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.status-submitted {
    background-color: #cce5ff;
    color: #004085;
}

.status-unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

/* KYC Pending Message */
.pending-message .alert {
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    background-color: #d1ecf1;
    color: #0c5460;
}

.pending-message .alert i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
    white-space: nowrap;
}

.action-buttons .btn i {
    font-size: 0.7rem;
}

/* Table Code Styling */
table code {
    background: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* Manual Income User Verification Styles */
.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-group .form-input {
    flex: 1;
}

.verification-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.user-details-section {
    margin: 1.5rem 0;
}

.user-details-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.user-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-details-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

.detail-item span {
    font-size: 1rem;
    font-weight: 600;
}

/* Back to Dashboard Button */
.back-to-dashboard {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.back-to-dashboard:active {
    transform: translateY(0);
}

.back-to-dashboard .arrow-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-to-dashboard:hover .arrow-icon {
    transform: translateX(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-to-dashboard {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .back-to-dashboard .arrow-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .back-to-dashboard {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Verification Status Messages */
.verification-success {
    color: #059669;
    background-color: #ecfdf5;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #10b981;
}

.verification-error {
    color: #dc2626;
    background-color: #fef2f2;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ef4444;
}

.verification-loading {
    color: #2563eb;
    background-color: #eff6ff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #3b82f6;
}

/* Deposit Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-pending {
    background-color: var(--bg-tertiary, #f5f5f5);
    color: var(--text-primary, #000000);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.status-approved {
    background-color: var(--bg-tertiary, #f5f5f5);
    color: var(--text-primary, #000000);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

.status-rejected {
    background-color: var(--bg-tertiary, #f5f5f5);
    color: var(--text-primary, #000000);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-md);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-premium .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

@media (min-width: 769px) {
    .hero-container {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero-card-a {
        position: absolute;
        top: 10px;
        right: 10px;
        width: min(360px, 92%);
    }

    .hero-card-b {
        position: absolute;
        top: 165px;
        left: 10px;
        width: min(340px, 88%);
    }

    .hero-card-c {
        position: absolute;
        top: 290px;
        right: 28px;
        width: min(360px, 92%);
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .story-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .hero-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ======================================== */
/* PREMIUM BLACK & WHITE THEME SYSTEM */
/* ======================================== */

/* Root Variables - Premium Black & White (Single Theme Token Source) */
/* All components and themes should use only these variables for colors/shadows. */
:root {
    /* Brand */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;

    /* Semantic status colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --danger-color: #ef4444;

    /* Text */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #6b7280;
    --text-contrast: #ffffff;

    /* Surfaces */
    --bg-page: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-elevated: #ffffff;

    /* Card / nav */
    --card-bg-primary: var(--bg-elevated);
    --card-bg-subtle: #f8f9fa;
    --nav-bg: var(--bg-elevated);
    --nav-bg-hover: #f9fafb;
    --nav-text: var(--text-secondary);
    --nav-text-hover: var(--text-primary);

    /* Borders */
    --border-color: #e5e7eb;
    --border-color-strong: #d1d5db;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --bg-page-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Alerts (for JS-driven messages) */
    --alert-info-bg: rgba(59, 130, 246, 0.12);
    --alert-success-bg: rgba(16, 185, 129, 0.12);
    --alert-warning-bg: rgba(245, 158, 11, 0.12);
    --alert-danger-bg: rgba(239, 68, 68, 0.12);

    --alert-info-border: rgba(59, 130, 246, 0.35);
    --alert-success-border: rgba(16, 185, 129, 0.35);
    --alert-warning-border: rgba(245, 158, 11, 0.35);
    --alert-danger-border: rgba(239, 68, 68, 0.35);

    /* Inputs / disabled states */
    --input-bg-disabled: var(--bg-secondary);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-card: var(--shadow-md);
}

/* Theme overrides (single source: variables only) */
html[data-theme="dark"] {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #22d3ee;

    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-contrast: #0b1220;

    --bg-page: linear-gradient(135deg, #0b1220 0%, #111827 100%);
    --bg-primary: #111827;
    --bg-secondary: #0b1220;
    --bg-elevated: #111827;

    --card-bg-primary: #111827;
    --card-bg-subtle: #0f172a;
    --nav-bg: #111827;
    --nav-bg-hover: #1f2937;

    --border-color: #273244;
    --border-color-strong: #334155;
}

html[data-theme="crypto"] {
    --primary-color: #00d4ff;
    --primary-dark: #007bff;
    --secondary-color: #10b981;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;
    --text-contrast: #0b1220;

    --bg-page: linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
    --bg-primary: #0f172a;
    --bg-secondary: #0b1220;
    --bg-elevated: #111827;

    --card-bg-primary: #111827;
    --card-bg-subtle: #0f172a;
    --nav-bg: #111827;
    --nav-bg-hover: #1f2937;

    --border-color: rgba(0, 212, 255, 0.15);
    --border-color-strong: rgba(0, 212, 255, 0.25);
}

/* BEAUTIFUL THEME - GLOBAL OVERRIDES */
body {
    background: var(--bg-page) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Beautiful Cards */
.premium-card, .finance-card, .hero-card, .modern-card, .card {
    background: var(--card-bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.3s ease !important;
}

.premium-card:hover, .finance-card:hover, .hero-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Beautiful Navigation */
.nav-item, .nav-link, .premium-nav-item {
    background: var(--nav-bg) !important;
    color: var(--nav-text) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.nav-item:hover, .nav-link:hover, .premium-nav-item:hover {
    background: var(--nav-bg-hover) !important;
    color: var(--nav-text-hover) !important;
    transform: translateY(-2px) !important;
}

.nav-item.active, .nav-link.active, .premium-nav-item.active {
    background: var(--primary-dark) !important;
    color: var(--text-contrast) !important;
    border-color: var(--primary-dark) !important;
}

/* Beautiful Sidebar */
.premium-sidebar, .sidebar {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-primary) !important;
}

/* Beautiful Buttons */
.btn, .premium-btn, button {
    background: var(--primary-dark) !important;
    color: var(--text-contrast) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn:hover, .premium-btn:hover, button:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

.header-title h1, h1, .dashboard-title {
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    font-weight: 800 !important;
}

/* Beautiful Values - REMOVED FOR ULTRA-READABLE VALUES */
/* All value styles moved to ultra-readable-values.css */

/* Disable All Themes */
body.theme-dark, body.theme-crypto, body.theme-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #111827 !important;
}

body.theme-dark *,
body.theme-crypto *,
body.theme-light * {
    background: inherit !important;
    color: inherit !important;
    border-color: inherit !important;
}

body.theme-dark .premium-card,
body.theme-crypto .premium-card,
body.theme-light .premium-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #111827 !important;
}

body.theme-dark .nav-item,
body.theme-crypto .nav-item,
body.theme-light .nav-item {
    background: #ffffff !important;
    color: #6b7280 !important;
}

body.theme-dark .nav-item.active,
body.theme-crypto .nav-item.active,
body.theme-light .nav-item.active {
    background: #333333 !important;
    color: #ffffff !important;
}

/* Premium Typography System */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* Premium Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--text-primary);
}

/* Premium Cards System */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-primary);
}

.premium-card:hover::before {
    opacity: 1;
}

/* Premium Buttons System */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.premium-btn:hover::before {
    left: 100%;
}

.premium-btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.premium-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.premium-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
}

.premium-btn-secondary:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

/* Premium Form Elements */
.premium-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.premium-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.premium-input::placeholder {
    color: var(--text-muted);
}

/* Premium Tables */
.premium-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.premium-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.premium-table td {
    color: var(--text-secondary);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.premium-table tbody tr:hover {
    background: var(--bg-tertiary);
}

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

/* Premium Status Badges */
.premium-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-2xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-badge-success {
    background: var(--accent-primary);
    color: #ffffff;
}

.premium-badge-warning {
    background: var(--accent-primary);
    color: #ffffff;
}

.premium-badge-error {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Premium Alert System */
.premium-alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.premium-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Premium Navigation */
.premium-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.premium-nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-normal);
    cursor: pointer;
}

.premium-nav-item:hover {
    background: #f8f9fa !important;
    color: #111827 !important;
}

.premium-nav-item.active {
    background: #007bff !important;
    color: #ffffff !important;
}

/* Premium Sidebar */
.premium-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.premium-sidebar-header {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.premium-sidebar-content {
    padding: var(--spacing-md);
}

/* Premium Footer */
.premium-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-3xl);
}

/* Premium Utilities */
.premium-text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

.premium-shadow-gradient {
    box-shadow: var(--shadow-primary);
}

.premium-transition {
    transition: var(--transition-normal);
}

.premium-transition-fast {
    transition: var(--transition-fast);
}

.premium-transition-slow {
    transition: var(--transition-slow);
}

/* ======================================== */
/* LEGACY THEME COMPATIBILITY */
/* ======================================== */

/* Legacy theme support - disabled */
body.theme-crypto {
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(48, 209, 88, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.04) 0%, transparent 50%);
    animation: cryptoBackground 20s ease-in-out infinite;
}

@keyframes cryptoBackground {
    0%, 100% { 
        background-position: 0% 50%, 100% 50%, 50% 0%;
    }
    33% { 
        background-position: 50% 30%, 80% 70%, 30% 50%;
    }
    50% { 
        background-position: 100% 50%, 0% 50%, 50% 100%;
    }
    66% { 
        background-position: 70% 70%, 30% 30%, 70% 30%;
    }
}

/* Main Body - Premium White Background */
body {
    background: var(--bg-primary, #ffffff) !important;
    color: var(--text-primary, #000000) !important;
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.main {
    flex: 1;
    padding: 1.5rem 0;
}

/* Header & Navigation */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
    min-width: 44px;
    min-height: 44px;
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Clean theme toggle styles */

@keyframes sparkle {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
}

.btn-nav-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav-primary::before {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
}

.hero-premium .hero-content {
    text-align: left;
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 450;
    max-width: 52ch;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-primary);
}

.theme-toggle-btn.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle-btn.active .theme-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .theme-toggle {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }
    
    .theme-toggle:hover {
        transform: scale(1.05);
    }
}

.hero-trust {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.trust-item {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.trust-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.trust-title {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-size: 0.9rem;
}

.trust-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.hero-visual {
    position: relative;
    min-height: 400px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.hero-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-card-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 0.35rem;
    color: var(--accent-primary);
}

.hero-card-meta {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-card-a { transform: translateY(8px); animation: slideInRight 0.8s ease-out 1s both; }
.hero-card-b { margin-top: 1rem; opacity: 0.96; animation: slideInRight 0.8s ease-out 1.2s both; }
.hero-card-c { margin-top: 1rem; opacity: 0.92; animation: slideInRight 0.8s ease-out 1.4s both; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
}

.section-elevated {
    background: radial-gradient(900px 450px at 50% 0%, rgba(124, 92, 255, 0.12), transparent 60%),
                rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-head {
    margin-bottom: 1.6rem;
}

.section-title {
    font-size: 1.65rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 0.65rem;
    max-width: 70ch;
}

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

.feature-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-copy {
    color: var(--text-secondary);
    line-height: 1.7;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.steps {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-copy {
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-row {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.story-panel {
    position: relative;
}

.panel-card {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 1.3rem;
    box-shadow: var(--shadow-lg);
}

.panel-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.panel-metric {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.panel-metric-label {
    color: var(--text-secondary);
    font-weight: 700;
}

.panel-metric-value {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.panel-bars {
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
}

.panel-bar {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.0), rgba(124, 92, 255, 0.55), rgba(34, 211, 238, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-note {
    margin-top: 0.9rem;
    color: var(--text-secondary);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.testimonial {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xl);
    padding: 1.2rem;
}

.testimonial-quote {
    font-weight: 750;
    letter-spacing: -0.01em;
}

.testimonial-meta {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.section-cta {
    padding-top: 1.5rem;
}

.cta-card {
    border: 1px solid var(--border-color);
    background: radial-gradient(700px 300px at 20% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
                radial-gradient(700px 300px at 80% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
                rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-xl);
    padding: 1.4rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1rem;
}

.cta-title {
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-full {
    width: 100%;
}

/* Authentication Section */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* Status indicators */
.status-active {
    color: var(--success);
    font-weight: 600;
}

.status-inactive {
    color: var(--error);
    font-weight: 600;
}

.status-pending {
    color: var(--warning);
    font-weight: 600;
}

.status-admin {
    color: var(--accent-primary);
    font-weight: 600;
}

.status-loading {
    color: var(--text-secondary);
    font-style: italic;
}

.balance-positive {
    color: var(--success);
}

.balance-negative {
    color: var(--error);
}

/* Loading placeholders */
.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.loading-placeholder::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Referral link styling */
.referral-code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.referral-link-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.referral-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
}

.referral-link:hover {
    text-decoration: underline;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* Data tables */
.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.data-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.data-table td {
    color: var(--text-secondary);
}

/* Withdrawal Module Styles */
.withdrawal-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.withdrawal-container {
    width: 100%;
    max-width: 900px;
}

.withdrawal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.withdrawal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.withdrawal-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Balance Display */
.balance-display {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.balance-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.balance-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.balance-info span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Withdrawal Form */
.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Payout Details */
.payout-method-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.payout-info {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.withdrawal-history-container {
    margin-top: 1rem;
}

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

.withdrawal-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Withdrawal Details Modal */
.withdrawal-detail-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.withdrawal-detail-item strong {
    color: var(--text-primary);
}

/* ROI Settings Styles */
.roi-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-status {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.roi-status p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

/* Level Income Styles */
.level-income-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.level-income-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-income-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.level-number {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.level-amount {
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
}

.level-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.level-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.level-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.level-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* Deposit History Styles */
.deposit-history-container {
    margin-top: 1rem;
}

.deposit-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-note {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--warning-text);
}

.deposit-history-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.deposit-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.deposit-history-table th,
.deposit-history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.deposit-history-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deposit-history-table tr:hover {
    background: var(--bg-hover);
}

.deposit-history-table .loading-row {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.locked {
    background: var(--error-color);
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.3);
}

.status-dot.unlocked {
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.deposit-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deposit-status.locked {
    background: var(--error-bg);
    color: var(--error-color);
    border: 1px solid var(--error-border);
}

.deposit-status.unlocked {
    background: var(--success-bg);
    color: var(--success-color);
    border: 1px solid var(--success-border);
}

.days-remaining {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.days-remaining.warning {
    color: var(--warning-color);
}

.days-remaining.danger {
    color: var(--error-color);
}

.days-remaining.safe {
    color: var(--success-color);
}

/* Enhanced Withdrawal Form Styles */
.withdrawal-info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.withdrawal-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.withdrawal-info ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.withdrawal-info li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.summary-item.total {
    grid-column: 1 / -1;
    background: var(--accent-bg);
    border-color: var(--accent-primary);
    font-weight: 600;
}

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

.summary-item .value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.summary-item.total .value {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.error-messages {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--error-color);
}

.error-messages ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-messages li {
    margin-bottom: 0.5rem;
}

.form-group select:disabled {
    background: var(--bg-disabled);
    color: var(--text-disabled);
    cursor: not-allowed;
}

/* Responsive Level Income styles */
@media (max-width: 768px) {
    .withdrawal-card {
        padding: 1.5rem;
    }
    
    .balance-card {
        padding: 1.5rem;
    }
    
    .balance-amount {
        font-size: 2.5rem;
    }
    
    .balance-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .withdrawal-controls {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Deposit Module Styles */
.deposit-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.deposit-container {
    width: 100%;
    max-width: 900px;
}

.deposit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.deposit-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.deposit-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.deposit-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* CRITICAL: Ensure all wrapper containers are always visible */
.deposit-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.deposit-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.form-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.payment-instructions {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.instruction-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

.instruction-item:first-child {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.instruction-item.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible;
}

/* Force visibility when display is set to block via JavaScript */
.instruction-item[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible;
}

/* Force visibility when class 'active' is added */
.instruction-item.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible;
}

/* Ensure all form sections are visible */
.form-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.instruction-item h4 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.instruction-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.payment-address {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
    word-break: break-all;
}

.qr-code-container {
    text-align: center;
    margin-top: 1rem;
}

.qr-code-container img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    padding: 0.5rem;
}

.qr-loading {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

.payment-details {
    line-height: 1.6;
}

.deposit-history-container {
    margin-top: 1rem;
}

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

.deposit-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Form validation for deposits */
input[type="number"]:invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1) !important;
}

select:invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1) !important;
}

/* Responsive deposit styles */
@media (max-width: 768px) {
    .deposit-card {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .payment-instructions {
        grid-template-columns: 1fr;
    }
    
    .deposit-controls {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* KYC Module Styles */
.kyc-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.kyc-container {
    width: 100%;
    max-width: 800px;
}

.kyc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.kyc-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
}

.kyc-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.kyc-status-container {
    margin-bottom: 2rem;
}

.kyc-status-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

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

.status-badge.status-pending {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

.status-badge.status-approved {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.status-badge.status-rejected {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.rejection-reason {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 6px;
}

.rejection-reason strong {
    color: var(--error);
}

.submitted-info {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.kyc-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* File Upload Styles */
.file-preview {
    margin-top: 0.5rem;
    position: relative;
}

.preview-image {
    position: relative;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.preview-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-remove:hover {
    background: var(--error);
}

.upload-progress {
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
    width: 0%;
}

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

/* KYC Management Styles */
.kyc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.kyc-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-success:hover {
    background: #00cc70;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #ff6666;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-close:hover {
    background: var(--bg-secondary);
}

.modal-body {
    padding: 1.5rem;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.document-item {
    text-align: center;
}

.document-item h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.document-item img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.document-item img:hover {
    transform: scale(1.05);
}

.kyc-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.kyc-details h4 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.kyc-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.kyc-status-display {
    text-align: center;
}

.kyc-message {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.kyc-detail-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Form Validation */
input.invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1) !important;
}

/* Responsive KYC */
@media (max-width: 768px) {
    .kyc-card {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .kyc-controls {
        justify-content: center;
    }
    
    .document-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Section */
.dashboard-section {
    padding: 2rem;
}

.dashboard-container {
    max-width: var(--container);
    margin: 0 auto;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dashboard-eyebrow {
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.dashboard-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827 !important;
    letter-spacing: -0.03em;
}

.dashboard-subtitle {
    color: #111827 !important;
    font-size: 1.0rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.15rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 211, 238, 0.18);
}

.dashboard-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.02em;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-subhead {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-chip {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    white-space: nowrap;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-lines {
    display: grid;
    gap: 0.75rem;
}

.profile-line {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.profile-label {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    font-size: 0.9rem;
}

.profile-value {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.metric {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-value {
    margin-top: 0.35rem;
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(34, 211, 238, 0.90));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-meta {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
}

.metric-compact .metric-value {
    font-size: 1.25rem;
}

.referral-block {
    display: grid;
    gap: 0.9rem;
}

.referral-line {
    display: grid;
    gap: 0.35rem;
}

.referral-label {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    font-size: 0.9rem;
}

.referral-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kyc-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.kyc-label {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 800;
    font-size: 0.95rem;
}

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

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.35rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        max-width: 520px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 1.1rem;
        border-radius: 14px;
    }

    .auth-section {
        padding: 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        margin-bottom: 1.1rem;
        font-size: 0.95rem;
    }

    .auth-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.65rem 0.75rem;
        font-size: 0.95rem;
    }

    .auth-footer {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    #forgotPasswordModal .modal-content,
    #registrationSuccessModal .modal-content {
        padding: 18px !important;
        width: calc(100% - 24px) !important;
        max-width: 380px !important;
        border-radius: 16px !important;
        max-height: 85svh !important;
        overflow-y: auto !important;
    }

    #forgotPasswordModal h3 {
        margin: 0 0 12px 0 !important;
        font-size: 1.1rem !important;
    }

    #registrationSuccessModal h2 {
        font-size: 22px !important;
        margin: 0 0 10px 0 !important;
    }

    #registrationSuccessModal p {
        font-size: 14px !important;
        margin: 0 0 14px 0 !important;
    }

    #registrationSuccessModal #userWelcomeInfo {
        padding: 14px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    #registrationSuccessModal #goToLoginBtn,
    #registrationSuccessModal #closeSuccessModalBtn,
    #forgotPasswordModal #checkUserIdBtn,
    #forgotPasswordModal #sendResetLinkBtn,
    #forgotPasswordModal #cancelForgotPasswordBtn,
    #forgotPasswordModal #closeModalBtn {
        width: 100% !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
    }

    #registrationSuccessModal #goToLoginBtn {
        margin-bottom: 10px !important;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
}

/* ========================================
   PREMIUM DASHBOARD STYLES
   ======================================== */

/* Premium Sidebar */
.premium-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.premium-sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-accent {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: var(--shadow-gold);
    animation: pulse 2s infinite;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover span {
    background: var(--accent-gold);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1.5rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
    opacity: 0.1;
}

.nav-item:hover {
    color: #111827 !important;
    background: #f8f9fa !important;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item.active {
    color: #111827 !important;
    background: #e9ecef !important;
}

.nav-item.active::before {
    width: 100%;
    opacity: 0.2;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-accent {
    position: absolute;
    right: 1.5rem;
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-item.active .nav-accent {
    opacity: 1;
    box-shadow: var(--shadow-gold);
}

/* Premium Main Content */
.premium-main {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg-primary);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-main.expanded {
    margin-left: 0;
}

.premium-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.header-title h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-title p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.refresh-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent-gold);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Cards Section */
.hero-cards-section {
    margin-bottom: 3rem;
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    border-radius: var(--radius-xl);
}

.hero-card-gold .hero-card-bg {
    background: var(--gradient-gold);
}

.hero-card-emerald .hero-card-bg {
    background: var(--gradient-emerald);
}

.hero-card-electric .hero-card-bg {
    background: var(--gradient-electric);
}

.hero-card-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-card-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.hero-card-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-card-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-card-gold .hero-card-glow {
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}

.hero-card-emerald .hero-card-glow {
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
}

.hero-card-electric .hero-card-glow {
    background: radial-gradient(circle, var(--accent-electric) 0%, transparent 70%);
}

.hero-card:hover .hero-card-glow {
    opacity: 0.1;
}

/* Referral Section */
.referral-section {
    margin-bottom: 3rem;
}

.referral-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
}

.referral-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}

.referral-header {
    margin-bottom: 1.5rem;
}

.referral-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.referral-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.referral-input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.referral-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.referral-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.referral-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-gold);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.referral-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.copy-icon {
    font-size: 1.1rem;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-skeletons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.skeleton-card {
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    height: 200px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premium-sidebar {
        transform: translateX(-280px);
    }
    
    .premium-sidebar.active {
        transform: translateX(0);
    }
    
    .premium-main {
        margin-left: 0;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .loading-skeletons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .premium-header {
        padding: 1rem 1.5rem;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .hero-card {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .hero-card-value {
        font-size: 2rem;
    }
    
    .referral-input-group {
        flex-direction: column;
    }
    
    .referral-copy-btn {
        justify-content: center;
    }
}

/* ========================================
   CRYPTO THEME ANIMATIONS
   ======================================== */

/* Clean crypto theme animations */

/* REMOVED FOR ULTRA-READABLE VALUES */

@keyframes goldGlow {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    50% { 
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

@keyframes emeraldGlow {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    50% { 
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

@keyframes electricGlow {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    50% { 
        opacity: 0.9;
        filter: brightness(1.1);
    }
}

/* Count-up animation for numbers */
body.theme-crypto .hero-card-value {
    animation: countUp 0.8s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism enhancement in crypto theme */
body.theme-crypto .hero-card {
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

body.theme-crypto .referral-card {
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

body.theme-crypto .referral-card:hover {
    border-color: var(--border-primary);
    box-shadow: var(--shadow-primary);
}

/* Sidebar enhancements */
body.theme-crypto .premium-sidebar {
    border-right: 1px solid var(--border-primary);
    backdrop-filter: blur(20px);
}

body.theme-crypto .nav-item.active {
    background: var(--gradient-card);
    border-left: 3px solid var(--accent-primary);
}

/* Header enhancements */
body.theme-crypto .premium-header {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

/* Subtle animations for all interactive elements */
body.theme-crypto .refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

body.theme-crypto .referral-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Loading skeleton animation for crypto theme */
body.theme-crypto .skeleton-card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 122, 255, 0.1),
        transparent
    );
}

/* ========================================
   NEW DASHBOARD COMPONENTS STYLES
   ======================================== */

/* Status Badge Styles */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-inactive {
    background: #666666;
}

.status-active {
    background: #333333;
}

.status-text {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Profile Icon Styles */
.profile-icon-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
}

.profile-icon-container:hover .profile-upload-overlay {
    opacity: 1;
}

/* Preferences Section */
.preferences-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.preferences-section h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.preference-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #111827;
    font-size: 1rem;
}

.preference-label span {
    font-size: 1.2rem;
}

/* Currency Toggle Styles */
.currency-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.currency-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
}

.currency-label.active {
    color: #3b82f6;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Bottom Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #dee2e6;
    backdrop-filter: none;
    padding: 0.75rem 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    min-width: 60px;
}

.bottom-nav .nav-item:hover {
    color: #111827 !important;
    background: #f8f9fa !important;
    transform: translateY(-2px);
}

.bottom-nav .nav-item.active {
    color: #111827 !important;
    background: #e9ecef !important;
}

.bottom-nav .nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.bottom-nav .nav-text {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .status-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .currency-toggle {
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }
    
    .currency-label {
        font-size: 0.75rem;
    }
    
    .profile-icon-container {
        width: 45px;
        height: 45px;
    }
    
    .bottom-nav {
        padding: 0.5rem 0;
    }
    
    .bottom-nav .nav-item {
        padding: 0.375rem 0.75rem;
        min-width: 50px;
    }
    
    .bottom-nav .nav-icon {
        font-size: 1.125rem;
    }
    
    .bottom-nav .nav-text {
        font-size: 0.6875rem;
    }
}

/* Adjust main content for bottom navigation */
.premium-main {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .premium-main {
        padding-bottom: 70px;
    }
}

/* KYC Required Message Styles */
.kyc-required {
    background: linear-gradient(135deg, #f1f5f9 0%, #e5e7eb 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.kyc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.kyc-content h4 {
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kyc-content p {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.kyc-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.kyc-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.kyc-actions .btn-primary {
    background: #333333;
    color: white;
}

.kyc-actions .btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.kyc-actions .btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.kyc-actions .btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .kyc-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .kyc-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ========================================
   TEAM & INCOME SECTION STYLES
   ======================================== */

.team-section, .income-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: none; /* Hidden by default, shown by JavaScript */
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.security-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.security-section h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-actions .btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.security-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.security-actions .btn span:first-child {
    font-size: 1.2rem;
}

/* ========================================
   DEPOSIT & WITHDRAWAL PAGE STYLES
   ======================================== */

.deposit-tabs, .withdrawal-tabs {
    display: flex;
    background: white;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    margin-bottom: 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.tab-btn.active {
    background: white;
    color: #1f2937;
    border-bottom: 3px solid #3b82f6;
}

.tab-content {
    display: none !important;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.tab-content.active {
    display: block !important;
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
}

.deposit-history-container {
    padding: 25px;
}

.deposit-history-container h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#deposit-history-table {
    width: 100%;
    border-collapse: collapse;
}

#deposit-history-table thead {
    background: #f9fafb;
}

#deposit-history-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    border-bottom: 2px solid #e5e7eb;
}

#deposit-history-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
}

#deposit-history-table tbody tr:hover {
    background: #f9fafb;
}

/* Status badges for deposit history */
.deposit-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.deposit-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.deposit-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.deposit-status.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.deposit-amount {
    font-weight: 700;
    color: #065f46;
}

/* Withdrawal History Styles */
.withdrawal-history-container {
    padding: 25px;
}

.withdrawal-history-container h2 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.withdrawal-history-container p {
    color: #111827;
    margin-bottom: 20px;
}

/* Withdrawal status badges */
.withdrawal-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.withdrawal-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.withdrawal-status.approved {
    background: #d1fae5;
    color: #065f46;
}

.withdrawal-status.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.withdrawal-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

/* Days remaining styling */
.days-remaining {
    color: #333333;
    font-weight: 600;
}

.days-complete-today {
    color: #333333;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.days-completed {
    color: #333333;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Early withdrawal warning */
.early-withdrawal-warning {
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
}

.early-withdrawal-warning .warning-icon {
    font-size: 24px;
    color: #333333;
}

.early-withdrawal-warning .warning-content h4 {
    margin: 0 0 4px 0;
    color: #333333;
    font-size: 1rem;
    font-weight: 600;
}

.early-withdrawal-warning .warning-content p {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
}

/* Mobile responsive for deposit and withdrawal pages */
@media (max-width: 768px) {
    .deposit-tabs, .withdrawal-tabs {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .deposit-history-container, .withdrawal-history-container {
        padding: 15px;
    }

    #deposit-history-table th,
    #deposit-history-table td,
    #withdrawal-history-table th,
    #withdrawal-history-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Income Section Specific Styles */
.income-container {
    max-width: 100%;
}

.income-header {
    text-align: center;
    margin-bottom: 30px;
}

.income-header h1 {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.income-header p {
    color: #111827;
    font-size: 1.1rem;
    margin: 0;
}

/* Income Summary Cards */
.income-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.summary-card.total-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.summary-card.total-card .card-value {
    color: white;
}

.card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 12px;
}

.total-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.card-content h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.total-card .card-content h3 {
    color: white;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #111827;
    margin: 0;
}

.total-card .card-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Income Controls */
.income-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.controls-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.controls-right {
    display: flex;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Income History Container */
.income-history-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

.table-info {
    color: #111827;
    font-size: 0.9rem;
}

/* Enhanced Data Table */
.income-history-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* Income Type Badges */
.income-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.income-type::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.data-table tbody tr:has(.income-type:contains("ROI")) .income-type::before {
    background: #333333;
}

.data-table tbody tr:has(.income-type:contains("Level")) .income-type::before {
    background: #666666;
}

.data-table tbody tr:has(.income-type:contains("Admin")) .income-type::before {
    background: #999999;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #e5e7eb;
    color: #333333;
}

.status-pending {
    background: #cccccc;
    color: #333333;
}

.status-failed {
    background: #999999;
    color: #ffffff;
}

/* Income Amount */
.income-amount {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
}

/* Mobile Card Styles for Income */
.mobile-card .income-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-card .income-type:contains("ROI") {
    background: #dbeafe;
    color: #1e40af;
}

.mobile-card .income-type:contains("Level") {
    background: #d1fae5;
    color: #065f46;
}

.mobile-card .income-type:contains("Admin") {
    background: #fef3c7;
    color: #92400e;
}

/* Loading Row */
.loading-row {
    text-align: center;
    padding: 40px !important;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

/* No Data and Error States */
.no-data, .error-row {
    text-align: center;
    padding: 40px 20px !important;
    color: #111827;
    font-style: italic;
}

.error-row {
    color: #dc2626;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.pagination-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #111827;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: 500;
    color: #111827;
}

.team-header, .income-header {
    text-align: center;
    margin-bottom: 2rem;
}

.team-header h2, .income-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.team-header p, .income-header p {
    color: #111827;
    font-size: 1.125rem;
}

/* Level 1 Styles */
.team-level {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.level-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.level-stats {
    display: flex;
    gap: 1.5rem;
}

.level-stats .stat {
    font-size: 0.875rem;
    color: #111827;
}

.level-stats .stat strong {
    color: #1f2937;
    font-weight: 600;
}

/* Member Cards */
.member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.member-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.member-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #111827;
    flex-wrap: wrap;
}

.member-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.member-deposits {
    font-weight: 600;
    color: #059669;
}

.member-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.member-status.active {
    background: #d1fae5;
    color: #065f46;
}

.member-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.no-members {
    text-align: center;
    padding: 2rem;
    color: #111827;
    font-style: italic;
}

/* Levels 2-30 Summary */
.team-levels-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.team-levels-summary h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.level-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.level-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.level-number {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.level-summary .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.level-summary .label {
    color: #111827;
}

.level-summary .value {
    font-weight: 500;
    color: #1f2937;
}

/* ========================================
   INCOME SECTION STYLES
   ======================================== */

.income-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    min-width: 150px;
}

.income-history-table {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f9fafb;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.income-type {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.income-type.roi {
    background: #dbeafe;
    color: #1e40af;
}

.income-type.level {
    background: #d1fae5;
    color: #065f46;
}

.income-type.admin {
    background: #fef3c7;
    color: #92400e;
}

.income-amount {
    font-weight: 600;
    color: #059669;
}

.status.completed {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.loading-levels {
    text-align: center;
    padding: 2rem;
    color: #111827;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-section, .income-section {
        padding: 1rem;
    }

    .income-header h1 {
        font-size: 2rem;
    }

    .income-summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .card-value {
        font-size: 1.5rem;
    }

    .income-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .controls-left {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .controls-right {
        justify-content: center;
    }

    .filter-group {
        justify-content: space-between;
    }

    .table-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional mobile responsive styles */
@media (max-width: 768px) {
    .level-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .level-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .member-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-stats {
        align-items: flex-start;
        width: 100%;
    }

    .member-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .levels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .income-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }
}

/* ========================================
   ADVANCED TEAM SYSTEM STYLES
   ======================================== */

.advanced-team-dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Team Summary Cards */
.team-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.summary-card .card-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.summary-card .card-content h3 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #111827;
    font-weight: 500;
}

.summary-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.summary-card .card-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Team Controls */
.team-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-btn {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

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

.filter-btn {
    padding: 10px 18px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Progress Overview */
.progress-overview {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.progress-overview h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.overall-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-fill.qualified {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-text {
    font-weight: 600;
    color: #1f2937;
}

.next-level-info {
    color: #111827;
    font-size: 0.95rem;
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.level-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.level-card.qualified {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.level-card.active {
    border-color: #007bff;
}

.level-card.empty {
    opacity: 0.7;
    border-color: #e5e7eb;
}

.level-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.level-info {
    flex: 1;
}

.level-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.level-status {
    font-size: 0.9rem;
    color: #111827;
}

.level-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}


.level-progress {
    padding: 0 20px 20px;
}

.level-progress .progress-bar {
    height: 8px;
    background: #f3f4f6;
}

.level-progress .progress-text {
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

.level-details {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.members-preview {
    margin-bottom: 15px;
}

.member-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.member-preview.active {
    border-left: 4px solid #28a745;
}

.member-preview.inactive {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.member-info {
    flex: 1;
}

.member-info strong {
    display: block;
    color: #1f2937;
    margin-bottom: 3px;
}

.member-id {
    font-size: 0.8rem;
    color: #111827;
}

.member-stats {
    display: flex;
    gap: 10px;
    align-items: center;
}

.deposit-amount {
    font-weight: 600;
    color: #007bff;
}

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

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.no-members {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}

.more-members {
    text-align: center;
    color: #111827;
    font-size: 0.85rem;
    margin-top: 10px;
}

.view-details-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: #0056b3;
}

/* Level 1 Details Table */
.level-1-details {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.level-1-details h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
}

.members-table-container {
    overflow-x: auto;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.members-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
}

.members-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.members-table .active-row {
    background: #f8fff9;
}

.members-table .inactive-row {
    background: #fff8f8;
    opacity: 0.7;
}

/* Loading and Error States */
.team-loading-container,
.team-error-container {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    margin: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-loading-container h3 {
    color: #1f2937;
    margin-bottom: 10px;
}

.team-loading-container p {
    color: #111827;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.team-error-container h3 {
    color: #dc3545;
    margin-bottom: 10px;
}

.team-error-container p {
    color: #111827;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.retry-btn:hover {
    background: #0056b3;
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ======================================== */

/* Base Mobile Styles - Applied to all screen sizes below 1024px */
@media (max-width: 1024px) {

    /* ===== GENERAL MOBILE FIXES ===== */
    * {
        box-sizing: border-box;
    }

    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* ===== LAYOUT & CONTAINERS ===== */
    .container, .main-container, .dashboard-container {
        padding: 10px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .premium-main {
        margin-left: 0;
        padding: 15px;
        padding-bottom: 100px; /* Space for bottom nav */
    }

    /* ===== HEADER & NAVIGATION ===== */
    .header {
        padding: 10px 15px;
    }

    .nav-container {
        padding: 0;
    }

    .nav-menu {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: #333333 !important;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* ===== SIDEBAR ===== */
    .premium-sidebar {
        width: 280px;
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .premium-sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* ===== CARDS & COMPONENTS ===== */
    .hero-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .hero-card-content {
        align-items: center;
    }

    .hero-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .hero-card-label {
        font-size: 0.9rem;
    }

    .hero-card-value {
        font-size: 2rem;
    }

    .hero-card-subtitle {
        font-size: 0.8rem;
    }

    /* ===== FORMS ===== */
    .form-section {
        margin-bottom: 25px;
    }

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

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 16px; /* Prevents zoom on iOS */
        transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #3b82f6;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }

    .form-actions .btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        min-height: 48px; /* Minimum touch target */
    }

    /* ===== BUTTONS ===== */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
    }

    .btn-primary {
        background: #3b82f6;
        color: white;
        border: none;
    }

    .btn-primary:hover {
        background: #2563eb;
        transform: translateY(-1px);
    }

    .btn-secondary {
        background: white;
        color: #111827;
        border: 2px solid #e5e7eb;
    }

    .btn-secondary:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .btn-danger {
        background: #dc2626;
        color: white;
        border: none;
    }

    .btn-danger:hover {
        background: #b91c1c;
    }

    /* ===== TABLES - RESPONSIVE ===== */
    .table-container, .data-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        margin: 15px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .data-table {
        width: 100%;
        min-width: 600px; /* Minimum width for horizontal scroll */
        border-collapse: collapse;
        font-size: 0.85rem;
        background: white;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

    .data-table th {
        background: #f9fafb;
        font-weight: 600;
        color: #111827;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* Table scroll indicator */
    .table-container::after {
        content: "← Scroll horizontally →";
        position: absolute;
        bottom: -25px;
        right: 10px;
        font-size: 0.75rem;
        color: #111827;
        background: rgba(255,255,255,0.9);
        padding: 4px 8px;
        border-radius: 4px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .table-container:hover::after {
        opacity: 1;
    }

    /* ===== MODALS ===== */
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .modal-header {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 20px;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 10px;
    }

    /* ===== TABS ===== */
    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .tab-content {
        padding: 15px;
    }

    /* ===== INCOME PAGE ===== */
    .income-summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .income-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .controls-left {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .controls-right {
        justify-content: center;
    }

    .income-history-container {
        padding: 15px;
    }

    /* Profile page mobile styles */
    .security-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .security-actions {
        gap: 12px;
    }

    .security-actions .btn {
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    /* ===== DEPOSIT & WITHDRAWAL PAGES ===== */
    .deposit-tabs, .withdrawal-tabs {
        flex-direction: column;
    }

    .deposit-history-container, .withdrawal-history-container {
        padding: 15px;
    }

    /* ===== DASHBOARD COMPONENTS ===== */
    .status-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 12px;
    }

    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .filter-group label {
        font-weight: 600;
        color: #111827;
        font-size: 0.9rem;
    }

    .filter-group select {
        padding: 10px 12px;
        border: 2px solid #e5e7eb;
        border-radius: 6px;
        font-size: 0.9rem;
        background: white;
    }

    /* ===== BOTTOM NAVIGATION ===== */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 100;
        padding: 10px 0;
    }

    .bottom-nav .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        background: none;
        box-shadow: none;
        position: static;
    }

    .bottom-nav .nav-item {
        flex: 1;
        text-align: center;
        padding: 8px;
        border-radius: 8px;
        margin: 0 4px;
        transition: all 0.3s ease;
    }

    .bottom-nav .nav-item:hover {
        background: #f8f9fa !important;
    }

    .bottom-nav .nav-item.active {
        background: #e9ecef !important;
        color: #111827 !important;
    }

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

    .bottom-nav .nav-text {
        font-size: 0.75rem;
    }

    /* ===== TYPOGRAPHY ===== */
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    p, .form-help {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .small-text, small {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* ===== SPACING ===== */
    .section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .card {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    /* ===== UTILITIES ===== */
    .text-center {
        text-align: center;
    }

    .text-left {
        text-align: left;
    }

    .text-right {
        text-align: right;
    }

    .mb-1 { margin-bottom: 0.5rem; }
    .mb-2 { margin-bottom: 1rem; }
    .mb-3 { margin-bottom: 1.5rem; }
    .mb-4 { margin-bottom: 2rem; }

    .mt-1 { margin-top: 0.5rem; }
    .mt-2 { margin-top: 1rem; }
    .mt-3 { margin-top: 1.5rem; }
    .mt-4 { margin-top: 2rem; }

    .hidden-mobile {
        display: none !important;
    }

    .visible-mobile {
        display: block !important;
    }

    /* ===== TOUCH TARGETS ===== */
    button, .btn, input, select, textarea, a {
        min-height: 44px;
        min-width: 44px;
    }

    /* ===== SCROLLING ===== */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* ===== IMAGES & MEDIA ===== */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    .qr-code-container img {
        max-width: 150px;
        height: auto;
    }

    /* ===== ALERTS & MESSAGES ===== */
    .alert, .message, .notification {
        padding: 15px;
        margin: 15px 0;
        border-radius: 8px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .alert-success {
        background: #d1fae5;
        color: #065f46;
        border: 1px solid #a7f3d0;
    }

    .alert-warning {
        background: #f5f5f5;
        color: #333333;
        border: 1px solid #e5e7eb;
    }

    .alert-error {
        background: #fee2e2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

    /* ===== LOADING STATES ===== */
    .loading-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid #e5e7eb;
        border-top: 2px solid #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        display: inline-block;
        margin-right: 10px;
    }

    .loading-text {
        display: inline-block;
        vertical-align: middle;
    }

    /* ===== ACCESSIBILITY ===== */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Focus states for keyboard navigation */
    button:focus, .btn:focus, input:focus, select:focus, textarea:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }
}

/* ===== TABLE CARDS FOR MOBILE ===== */
@media (max-width: 640px) {
    /* Hide table and show cards on small screens */
    .data-table {
        display: none;
    }

    .table-container::after {
        display: none;
    }

    /* Create card layout for table data */
    .table-container {
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .table-container .mobile-cards {
        display: block;
    }

    .mobile-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #e5e7eb;
    }

    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .mobile-card-row:last-child {
        border-bottom: none;
    }

    .mobile-card-label {
        font-weight: 600;
        color: #111827;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-card-value {
        color: #1f2937;
        font-weight: 500;
        text-align: right;
        flex: 1;
    }

    .mobile-card-status {
        display: inline-block;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .mobile-card-status.approved {
        background: #d1fae5;
        color: #065f46;
    }

    .mobile-card-status.pending {
        background: #fef3c7;
        color: #92400e;
    }

    .mobile-card-status.rejected {
        background: #fee2e2;
        color: #dc2626;
    }

    .mobile-card-amount {
        color: #065f46;
        font-weight: 700;
    }

    .mobile-card-days {
        font-weight: 600;
    }

    .mobile-card-days.days-remaining {
        color: #333333;
    }

    .mobile-card-days.days-complete-today {
        color: #333333;
        animation: pulse 2s infinite;
    }

    .mobile-card-days.days-completed {
        color: #333333;
    }
}

/* ===== SMALL MOBILE DEVICES (480px and below) ===== */
@media (max-width: 480px) {
    .premium-main {
        padding: 10px;
        padding-bottom: 90px;
    }

    .hero-card {
        padding: 15px;
    }

    .hero-card-value {
        font-size: 1.8rem;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    .income-summary-cards,
    .deposit-tabs,
    .withdrawal-tabs {
        gap: 10px;
    }

    .summary-card {
        padding: 15px;
    }
}

/* ===== LARGE MOBILE/TABLET (769px to 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .premium-main {
        margin-left: 0;
        padding: 20px;
    }

    .hero-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .income-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-table {
        font-size: 0.9rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .premium-sidebar,
    .bottom-nav,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }

    .premium-main {
        margin-left: 0;
        padding: 0;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
        border: 1px solid #000;
    }
    
    .team-summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: none;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-buttons button {
        width: 100%;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .level-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .level-stats {
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .members-table {
        font-size: 0.8rem;
    }
    
    .members-table th,
    .members-table td {
        padding: 8px;
    }
}

/* ========================================
   EXACT LIGHT & CRYPTO DARK THEMES
   ======================================== */

/* Theme 2: Royal Gold Empire - DISABLED - Force White Theme */
body.theme-light {
    /* Force White Background - Premium Theme */
    --bg-primary: #ffffff !important;
    --bg-secondary: #fafafa !important;
    --bg-tertiary: #f5f5f5 !important;
    --bg-card: #ffffff !important;
    --text-primary: #000000 !important;
    --text-secondary: #333333 !important;
    --text-muted: #666666 !important;
}

/* Clean theme styles */

@keyframes goldShimmerFloat {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%;
        opacity: 1;
    }
    20% { 
        background-position: 15% 15%, 85% 85%, 60% 40%, 15% 85%, 85% 15%;
        opacity: 0.95;
    }
    40% { 
        background-position: 30% 30%, 70% 70%, 40% 60%, 30% 70%, 70% 30%;
        opacity: 1;
    }
    60% { 
        background-position: 25% 45%, 75% 55%, 55% 35%, 45% 65%, 65% 25%;
        opacity: 0.9;
    }
    80% { 
        background-position: 10% 25%, 90% 75%, 45% 55%, 25% 75%, 75% 25%;
        opacity: 0.95;
    }
}

/* ========================================
   NUCLEAR WHITE THEME - FORCE ALL TO WHITE
   ======================================== */

/* UNIVERSAL WHITE THEME - OVERRIDE EVERYTHING */
* {
    --bg-primary: #ffffff !important;
    --bg-secondary: #fafafa !important;
    --bg-tertiary: #f5f5f5 !important;
    --bg-card: #ffffff !important;
    --text-primary: #000000 !important;
    --text-secondary: #333333 !important;
    --text-muted: #666666 !important;
    --border-color: #dee2e6 !important;
    --border-primary: #dee2e6 !important;
    --border-secondary: #e9ecef !important;
    --border-light: #f8f9fa !important;
}

/* FORCE BODY WHITE */
body, body.theme-light, body.theme-crypto, body.theme-dark {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
}

/* FORCE ALL CARDS WHITE */
.card, .finance-card, .summary-card, .income-card, .profile-card, .kyc-card, .deposit-card, .withdraw-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #dee2e6 !important;
}

/* FORCE ALL BUTTONS WHITE */
.btn, .btn-primary, .btn-secondary, .filter-btn, .tab-btn {
    background: #f8f9fa !important;
    color: #111827 !important;
    border: 1px solid #dee2e6 !important;
}

/* FORCE ALL TEXT BLACK */
h1, h2, h3, h4, h5, h6, p, span, div, td, th {
    color: #111827 !important;
}

/* FORCE ALL INPUTS WHITE */
input, select, textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #dee2e6 !important;
}

/* ========================================
   JAW-DROPPING PREMIUM THEMES 2024
   ======================================== */

/* ========================================
   ULTRA PREMIUM JAW-DROPPING THEMES 2024
   ======================================== */

/* Theme 1: Neon Galaxy Wealth - DISABLED - Force White Theme */
body.theme-crypto {
    /* Force White Background - Premium Theme */
    --bg-primary: #ffffff !important;
    --bg-secondary: #fafafa !important;
    --bg-tertiary: #f5f5f5 !important;
    --bg-card: rgba(255, 255, 255, 0.9) !important;
    --bg-card-hover: rgba(240, 240, 240, 0.9) !important;
    --glass-bg: rgba(255, 255, 255, 0.8) !important;
    --glass-border: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%) !important;
    
    /* Crystal Clear Text - Maximum Contrast */
    --text-primary: #000000 !important;
    --text-secondary: #333333 !important;
    --text-muted: #666666 !important;
    --text-bright: #000000 !important;
    --text-card-primary: #000000 !important;
    --text-card-secondary: #333333 !important;
    --text-card-muted: #666666 !important;
    --text-dim: #999999 !important;
    --text-neon-cyan: #00f5ff;
    --text-neon-magenta: #ff00d4;
    --text-neon-lime: #39ff14;
    
    /* Electric Neon Accents - Cosmic Energy */
    --accent-primary: #00f5ff;
    --accent-secondary: #ff00d4;
    --accent-gold: #ffd700;
    --accent-emerald: #39ff14;
    --accent-success: #39ff14;
    --accent-warning: #ff6b35;
    --accent-error: #ff3366;
    --accent-purple: #ff00d4;
    --accent-cyan: #00f5ff;
    --accent-lime: #39ff14;
    --accent-pink: #ff00d4;
    --accent-orange: #ff6b35;
    
    /* Cosmic Neon Gradients - Galaxy Feel */
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #ff00d4 25%, #39ff14 50%, #00f5ff 75%, #ff00d4 100%);
    --gradient-success: linear-gradient(135deg, #39ff14 0%, #00f5ff 25%, #39ff14 50%, #39ff14 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(255, 0, 212, 0.10) 50%, rgba(57, 255, 20, 0.05) 100%);
    --gradient-hero: linear-gradient(135deg, #00f5ff 0%, #ff00d4 20%, #39ff14 40%, #ffd700 60%, #ff6b35 80%, #00f5ff 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff6b35 25%, #ff00d4 50%, #ffd700 100%);
    --gradient-emerald: linear-gradient(135deg, #39ff14 0%, #00f5ff 25%, #39ff14 50%, #39ff14 100%);
    --gradient-purple: linear-gradient(135deg, #ff00d4 0%, #00f5ff 25%, #39ff14 50%, #ff00d4 100%);
    --gradient-cyan: linear-gradient(135deg, #00f5ff 0%, #39ff14 25%, #00f5ff 50%, #39ff14 100%);
    
    /* Neon Borders & Glows - Cosmic Effects */
    --border-color: rgba(0, 245, 255, 0.2);
    --border-primary: rgba(0, 245, 255, 0.4);
    --border-success: rgba(57, 255, 20, 0.4);
    --border-gold: rgba(255, 215, 0, 0.4);
    --border-emerald: rgba(57, 255, 20, 0.4);
    --border-purple: rgba(255, 0, 212, 0.4);
    --border-cyan: rgba(0, 245, 255, 0.4);
    --border-pink: rgba(255, 0, 212, 0.4);
    
    --success: #39ff14;
    --warning: #ff6b35;
    --error: #ff3366;
    --gold: #ffd700;
    --emerald: #39ff14;
    --purple: #ff00d4;
    --cyan: #00f5ff;
    --lime: #39ff14;
    --pink: #ff00d4;
    --orange: #ff6b35;
    
    /* Intense Cosmic Glow Effects - Premium Terminal */
    --shadow-primary: 0 0 60px rgba(0, 245, 255, 0.5);
    --shadow-success: 0 0 60px rgba(57, 255, 20, 0.5);
    --shadow-gold: 0 0 50px rgba(255, 215, 0, 0.4);
    --shadow-emerald: 0 0 50px rgba(57, 255, 20, 0.4);
    --shadow-purple: 0 0 50px rgba(255, 0, 212, 0.4);
    --shadow-cyan: 0 0 50px rgba(0, 245, 255, 0.4);
    --shadow-pink: 0 0 50px rgba(255, 0, 212, 0.4);
    --shadow-lg: 0 35px 70px -25px rgba(0, 0, 0, 0.9), 0 25px 50px -20px rgba(0, 245, 255, 0.25);
    --shadow-md: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 20px 40px -12px rgba(0, 245, 255, 0.2);
    --shadow-sm: 0 15px 30px -8px rgba(0, 0, 0, 0.6), 0 10px 20px -6px rgba(0, 245, 255, 0.15);
    --shadow-xs: 0 8px 16px -4px rgba(0, 0, 0, 0.5), 0 4px 8px -3px rgba(0, 245, 255, 0.1);
    
    /* Enhanced Radius & Spacing - Modern Look */
    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 20px;
    --radius-sm: 16px;
    --radius-xs: 12px;
    --container: 1200px;
    
    /* Typography - Ultra Crisp & Professional */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
}

/* Clean crypto theme styles */

/* Clean animations */

/* Clean card styles */

@keyframes neonBorderPulse {
    0% { 
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 25px rgba(0, 245, 255, 0.9);
    }
    100% { 
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.7);
    }
}

/* Ultra Premium Button Effects */
body.theme-light .btn {
    background: var(--gradient-gold);
    border: none;
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.theme-light .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

body.theme-light .btn:hover::before {
    left: 100%;
}

body.theme-light .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

body.theme-crypto .btn {
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    font-weight: var(--font-weight-bold);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.theme-crypto .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s;
}

body.theme-crypto .btn:hover::before {
    left: 100%;
}

body.theme-crypto .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.7);
}

/* Enhanced Text Readability & Typography */
body.theme-light {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6 {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

body.theme-light .hero-card-value,
body.theme-light .card-value {
    font-weight: var(--font-weight-black);
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

body.theme-crypto {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

body.theme-crypto h1,
body.theme-crypto h2,
body.theme-crypto h3,
body.theme-crypto h4,
body.theme-crypto h5,
body.theme-crypto h6 {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

body.theme-crypto .hero-card-value,
body.theme-crypto .card-value {
    font-weight: var(--font-weight-black);
    font-size: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Jaw-Dropping Toggle Switch - Premium Effects */
.theme-toggle-btn {
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

/* Golden Luxe Dawn Toggle */
body.theme-light .theme-toggle-btn {
    background: var(--gradient-gold);
    border: 2px solid var(--accent-gold);
    color: var(--text-primary);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: var(--shadow-gold);
    animation: goldShimmer 4s ease-in-out infinite alternate;
}

body.theme-light .theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

body.theme-light .theme-toggle-btn:hover::before {
    left: 100%;
}

body.theme-light .theme-toggle-btn:hover {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    border-color: transparent;
}

body.theme-light .theme-toggle-btn:hover .theme-icon {
    color: var(--text-primary);
    transform: scale(1.3) rotate(360deg);
    text-shadow: none !important;
}

body.theme-crypto .theme-toggle-btn {
    background: var(--gradient-primary);
    border: 2px solid var(--accent-primary);
    color: var(--bg-primary);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-primary);
    animation: cyberPulse 3s ease-in-out infinite alternate;
}

body.theme-crypto .theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.6s ease;
}

body.theme-crypto .theme-toggle-btn:hover::before {
    left: 100%;
}

body.theme-crypto .theme-toggle-btn:hover {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.8);
    border-color: transparent;
}

body.theme-crypto .theme-toggle-btn:hover .theme-icon {
    color: var(--bg-primary);
    transform: scale(1.3) rotate(360deg);
    text-shadow: none !important;
}

@keyframes cyberPulse {
    0% { 
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
        border-color: rgba(0, 240, 255, 0.6);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.7);
        border-color: rgba(0, 240, 255, 0.9);
    }
    100% { 
        box-shadow: 0 0 55px rgba(0, 240, 255, 0.5);
        border-color: rgba(0, 240, 255, 0.8);
    }
}

.theme-icon {
    font-size: 1.4rem;
    transition: all 0.4s ease;
    z-index: 2;
    position: relative;
}

/* Ultra Crystal Clear Text - Maximum Readability & Shine */
body.theme-light .hero-card-value,
/* Hero card values - REMOVED ALL GLOW EFFECTS */
body.theme-light .hero-card-value,
body.theme-light .card-value,
body.theme-light .dashboard-card .amount,
body.theme-light .stats-card h3,
body.theme-light .stats-card .value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #111827 !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

body.theme-light .hero-card-title,
body.theme-light .card-title,
body.theme-light .dashboard-card h4,
body.theme-light .stats-card .label,
body.theme-light .card-subtitle {
    font-weight: var(--font-weight-bold);
    /* Crypto theme hero card values - REMOVED ALL GLOW EFFECTS */
}

body.theme-light .hero-card-subtitle,
body.theme-light .card-subtitle,
body.theme-light .dashboard-card p,
body.theme-light .stats-card .description {
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.5;
    color: #333333 !important;
    text-shadow: none !important;
    filter: none !important;
}

body.theme-crypto .hero-card-value,
body.theme-crypto .card-value,
body.theme-crypto .dashboard-card h3,
body.theme-crypto .dashboard-card .amount,
body.theme-crypto .stats-card h3,
body.theme-crypto .stats-card .value {
    font-weight: var(--font-weight-black);
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

body.theme-crypto .hero-card-title,
body.theme-crypto .card-title,
body.theme-crypto .dashboard-card h4,
body.theme-crypto .stats-card .label,
body.theme-crypto .card-subtitle {
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #ff00ff !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

body.theme-crypto .hero-card-subtitle,
body.theme-crypto .card-subtitle,
body.theme-crypto .dashboard-card p,
body.theme-crypto .stats-card .description {
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.5;
    color: #cccccc !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Enhanced Shine Animations - REMOVED ALL GLOW */
@keyframes goldShine {
    0% { 
        text-shadow: none;
        filter: none;
    }
    50% { 
        text-shadow: none;
        filter: none;
    }
    100% { 
        text-shadow: none;
        filter: none;
    }
}

@keyframes goldPulse {
    0% { 
        text-shadow: none;
        filter: none;
    }
    100% { 
        text-shadow: none;
        filter: none;
    }
}

@keyframes neonGlow {
    0% { 
        text-shadow: none;
        filter: none;
    }
    50% { 
        text-shadow: none;
        filter: none;
    }
    100% { 
        text-shadow: none;
        filter: none;
    }
}

@keyframes neonPulse {
    0% { 
        text-shadow: none;
        filter: none;
    }
    100% { 
        text-shadow: none;
        filter: none;
    }
}

/* General Card Text Enhancement - ULTRA CLEAR */
body.theme-light .card h1,
body.theme-light .card h2,
body.theme-light .card h3,
body.theme-light .card h4,
body.theme-light .card h5,
body.theme-light .card h6,
body.theme-light .card p,
body.theme-light .card span,
body.theme-light .card div {
    color: var(--text-card-primary) !important;
    text-shadow: none !important;
    filter: none !important;
}

body.theme-crypto .card h1,
body.theme-crypto .card h2,
body.theme-crypto .card h3,
body.theme-crypto .card h4,
body.theme-crypto .card h5,
body.theme-crypto .card h6,
body.theme-crypto .card p,
body.theme-crypto .card span,
body.theme-crypto .card div {
    color: var(--text-card-primary) !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Enhanced Light Theme Components */
body.theme-light .premium-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafd 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.03);
}

body.theme-light .premium-main {
    background: var(--bg-primary);
}

body.theme-light .premium-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

body.theme-light .hero-card,
body.theme-light .summary-card,
body.theme-light .referral-card,
body.theme-light .level-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.theme-light .hero-card::before,
body.theme-light .summary-card::before,
body.theme-light .referral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.theme-light .hero-card:hover::before,
body.theme-light .summary-card:hover::before,
body.theme-light .referral-card:hover::before {
    opacity: 1;
}

body.theme-light .nav-item {
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-light .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left 0.3s ease;
}

body.theme-light .nav-item:hover::before {
    left: 0;
}

body.theme-light .nav-item:hover {
    background: #f8f9fa !important;
    transform: translateX(4px);
}

body.theme-light .nav-item.active {
    background: #e9ecef !important;
    color: #111827 !important;
    box-shadow: none;
}

body.theme-light .btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

body.theme-light .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.theme-light .btn-primary:hover::before {
    left: 100%;
}

body.theme-light .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

body.theme-light .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

body.theme-light .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.theme-light .status-active {
    background: var(--gradient-success);
    color: #FFFFFF;
    box-shadow: var(--shadow-success);
}

body.theme-light .status-inactive {
    background: #666666;
    color: #FFFFFF;
    box-shadow: none;
}

body.theme-light .data-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

body.theme-light .data-table th {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-primary);
    font-weight: 600;
}

body.theme-light .data-table td {
    border-bottom: 1px solid var(--border-color);
}

body.theme-light .data-table tr:hover {
    background: var(--bg-card-hover);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Enhanced Crypto Dark Theme Components */
body.theme-crypto .premium-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafd 100%) !important;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.03);
}

body.theme-crypto .premium-main {
    background: var(--bg-primary);
}

body.theme-crypto .premium-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 2px 30px rgba(0, 212, 255, 0.1);
}

body.theme-crypto .hero-card,
body.theme-crypto .summary-card,
body.theme-crypto .referral-card,
body.theme-crypto .level-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.theme-crypto .hero-card::before,
body.theme-crypto .summary-card::before,
body.theme-crypto .referral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% { opacity: 0.6; box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
    100% { opacity: 1; box-shadow: 0 0 20px rgba(0, 212, 255, 0.8); }
}

body.theme-crypto .hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-primary);
}

body.theme-crypto .nav-item {
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-crypto .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 0.3s ease;
}

body.theme-crypto .nav-item:hover::before {
    left: 0;
}

body.theme-crypto .nav-item:hover {
    background: #f8f9fa !important;
    transform: translateX(4px);
    box-shadow: none;
}

body.theme-crypto .nav-item.active {
    background: #e9ecef !important;
    color: #111827 !important;
    box-shadow: none;
}

body.theme-crypto .btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

body.theme-crypto .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.theme-crypto .btn-primary:hover::before {
    left: 100%;
}

body.theme-crypto .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

body.theme-crypto .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

body.theme-crypto .btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

body.theme-crypto .status-active {
    background: var(--gradient-success);
    color: var(--bg-primary);
    box-shadow: var(--shadow-success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

body.theme-crypto .status-inactive {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b6b 100%);
    color: var(--bg-primary);
    box-shadow: 0 0 25px rgba(255, 149, 0, 0.3);
}

body.theme-crypto .data-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

body.theme-crypto .data-table th {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.theme-crypto .data-table td {
    border-bottom: 1px solid var(--border-color);
}

body.theme-crypto .data-table tr:hover {
    background: var(--bg-card-hover);
    transform: scale(1.01);
    box-shadow: var(--shadow-primary);
    transition: all 0.2s ease;
}

/* Enhanced Hero Card Gradients for Both Themes */
body.theme-light .hero-card-sapphire {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Hero card gradient values - REMOVED FOR ULTRA-READABLE VALUES */

/* Crypto Theme Enhanced Hero Cards with Neon Effects */
body.theme-crypto .hero-card-sapphire {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* All crypto theme value effects - REMOVED FOR ULTRA-READABLE VALUES */

body.theme-crypto .hero-card-rose {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.1) 0%, rgba(255, 20, 147, 0.05) 100%);
    border: 1px solid rgba(255, 99, 71, 0.3);
    box-shadow: 0 0 30px rgba(255, 99, 71, 0.2);
}

/* All remaining value effects - REMOVED FOR ULTRA-READABLE VALUES */

/* Shimmer Animations */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes neonShimmer {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
}

/* Enhanced Referral Section */
body.theme-light .referral-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-light .referral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.theme-light .referral-card:hover::before {
    opacity: 1;
}

body.theme-light .referral-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-primary);
}

body.theme-crypto .referral-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-crypto .referral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.8;
    animation: neonGlow 2s ease-in-out infinite alternate;
}

body.theme-crypto .referral-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-primary);
}

/* Theme toggle button enhancements */
body.theme-light .theme-toggle-btn {
    background: var(--gradient-card);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

body.theme-light .theme-toggle-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--shadow-primary);
}

body.theme-crypto .theme-toggle-btn {
    background: var(--gradient-card);
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: toggleGlow 3s ease-in-out infinite alternate;
}

@keyframes toggleGlow {
    0% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

body.theme-crypto .theme-toggle-btn:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

/* Bottom Navigation Enhancements */
body.theme-light .bottom-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

body.theme-light .bottom-nav .nav-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-light .bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

body.theme-light .bottom-nav .nav-item:hover::before,
body.theme-light .bottom-nav .nav-item.active::before {
    width: 100%;
}

body.theme-light .bottom-nav .nav-item:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

body.theme-light .bottom-nav .nav-item.active {
    color: var(--accent-primary);
}

body.theme-crypto .bottom-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-primary);
    box-shadow: 0 -2px 30px rgba(0, 212, 255, 0.1);
}

body.theme-crypto .bottom-nav .nav-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-crypto .bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

body.theme-crypto .bottom-nav .nav-item:hover::before,
body.theme-crypto .bottom-nav .nav-item.active::before {
    width: 100%;
}

body.theme-crypto .bottom-nav .nav-item:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Bottom navigation glow - REMOVED */
body.theme-crypto .bottom-nav .nav-item.active {
    color: var(--accent-primary);
    text-shadow: none !important;
}

/* Complete theme toggle button styles */
.theme-toggle-btn {
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
}

body.theme-light .theme-toggle-btn {
    color: #2563EB;
}

body.theme-crypto .theme-toggle-btn {
    color: #00E5FF;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* Text colors for both themes */
body.theme-light .text-muted {
    color: #6B7280;
}

body.theme-crypto .text-muted {
    color: #7B8DB5;
}

/* Success states */
body.theme-light .success {
    color: #16A34A;
    background: #16A34A10;
}

body.theme-crypto .success {
    color: #00FFA3;
    background: #00FFA310;
}

/* Error states */
body.theme-light .error {
    color: #DC2626;
    background: #DC262610;
}

body.theme-crypto .error {
color: #FF3B3B;
background: #FF3B3B10;
}

/* Pending states - REMOVED YELLOW */
body.theme-light .pending {
color: #333333;
background: #f5f5f5;
}

body.theme-crypto .pending {
color: #cccccc;
background: #404040;
}

/* Secondary accent for crypto theme */
body.theme-crypto .accent-secondary {
color: #7C3AED;
background: #7C3AED10;
    background: #7C3AED10;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   MOBILE-FIRST WITHDRAWAL PAGE RESPONSIVENESS
   ======================================== */

/* Base mobile styles (320px and up) */
@media (max-width: 480px) {
    /* Withdrawal page layout */
    .withdrawal-section {
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    
    .withdrawal-container {
        max-width: 100%;
        padding: 0;
    }
    
    .withdrawal-card {
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    /* Typography for mobile readability */
    .withdrawal-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .withdrawal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Tabs for mobile */
    .withdrawal-tabs {
        flex-direction: row;
        gap: 0.25rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .tab-btn {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 0;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .tab-btn span {
        font-size: 1rem;
    }
    
    .tab-btn.active {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        font-weight: 600;
    }
    
    /* Balance display mobile */
    .balance-display {
        margin-bottom: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .balance-card {
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.25rem;
        text-align: center;
    }
    
    .balance-card h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #111827;
    }
    
    .balance-amount {
        font-size: 1.75rem;
        font-weight: 700;
        color: #059669;
        margin-bottom: 0.75rem;
    }
    
    .balance-info {
        font-size: 0.8rem;
        color: #111827;
        line-height: 1.4;
    }
    
    .balance-info p {
        margin-bottom: 0.25rem;
    }
    
    /* Form sections mobile */
    .form-section {
        margin-bottom: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #1f2937;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }
    
    /* Form groups mobile */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #111827;
        line-height: 1.3;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 0.875rem;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        font-size: 1rem;
        background: white;
        transition: all 0.2s ease;
        min-height: 48px;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .form-group input.readonly,
    .form-group input[readonly] {
        background: #f9fafb;
        color: #111827;
        cursor: not-allowed;
    }
    
    .form-help {
        display: block;
        font-size: 0.8rem;
        color: #111827;
        margin-top: 0.25rem;
        line-height: 1.3;
    }
    
    /* Withdrawal info boxes mobile - REMOVED YELLOW */
.withdrawal-info {
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}
    
    .withdrawal-info h4 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0 0 0.5rem 0;
        color: #333333;
    }
    
    .withdrawal-info ul {
        margin: 0;
        padding-left: 1.25rem;
        font-size: 0.85rem;
        color: #666666;
        line-height: 1.4;
    }
    
    .withdrawal-info li {
        margin-bottom: 0.4rem;
    }
    
    /* Buttons mobile */
    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.875rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .btn-secondary {
        background: #f3f4f6;
        color: #111827;
        border: 1px solid #d1d5db;
    }
    
    .btn-secondary:hover {
        background: #e5e7eb;
        border-color: #9ca3af;
    }
    
    /* Summary grid mobile */
    .withdrawal-summary {
        background: #f0f9ff;
        border: 1px solid #0ea5e9;
        border-radius: 8px;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .withdrawal-summary h4 {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0 0 0.75rem 0;
        color: #0c4a6e;
    }
    
    .summary-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .summary-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e0f2fe;
        font-size: 0.9rem;
    }
    
    .summary-item:last-child {
        border-bottom: none;
    }
    
    .summary-item.total {
        font-weight: 700;
        color: #0c4a6e;
        background: #e0f2fe;
        padding: 0.75rem;
        border-radius: 6px;
        margin-top: 0.5rem;
    }
    
    .summary-item .label {
        font-weight: 500;
        color: #475569;
    }
    
    .summary-item .value {
        font-weight: 600;
        color: #0f172a;
    }
    
    /* Error messages mobile */
    .error-messages {
        background: #fee2e2;
        border: 1px solid #dc2626;
        border-radius: 8px;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .error-messages div {
        color: #991b1b;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Modals mobile */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        z-index: 1000;
    }
    
    .modal-content {
        background: white;
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    .modal-header {
        padding: 1.25rem 1rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0;
    }
    
    .btn-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #111827;
        cursor: pointer;
        padding: 0.25rem;
        line-height: 1;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .pin-info {
        margin-bottom: 1.5rem;
    }
    
    .pin-info p {
        font-size: 0.9rem;
        color: #4b5563;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    /* Withdrawal history table mobile */
    .withdrawal-history-container {
        padding: 0;
        margin-top: 1rem;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        width: 100%;
        min-width: 500px;
        border-collapse: collapse;
        font-size: 0.85rem;
    }
    
    .data-table th {
        background: #f8fafc;
        padding: 0.75rem 0.5rem;
        text-align: left;
        font-weight: 600;
        color: #111827;
        border-bottom: 2px solid #e5e7eb;
        font-size: 0.8rem;
    }
    
    .data-table td {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: middle;
    }
    
    .data-table tr:hover {
        background: #f9fafb;
    }
    
    /* Status badges mobile */
    .type-badge,
    .withdrawal-status {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        white-space: nowrap;
    }
    
    .type-badge.income {
        background: #dbeafe;
        color: #1e40af;
    }
    
    .type-badge.principal {
        background: #d1fae5;
        color: #065f46;
    }
    
    /* Responsive adjustments for very small screens */
    @media (max-width: 360px) {
        .withdrawal-card {
            padding: 0.75rem;
        }
        
        .withdrawal-title {
            font-size: 1.3rem;
        }
        
        .balance-amount {
            font-size: 1.5rem;
        }
        
        .tab-btn {
            font-size: 0.8rem;
            padding: 0.625rem 0.375rem;
        }
        
        .form-group input,
        .form-group select {
            padding: 0.75rem;
            font-size: 0.95rem;
        }
        
        .btn {
            padding: 0.75rem;
            font-size: 0.95rem;
        }
    }

    /* Sidebar mobile responsiveness */
    .premium-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .premium-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: #3b82f6;
        border: none;
        border-radius: 8px;
        padding: 0.5rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: white;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    /* Main content adjustment when sidebar is open */
    .main-content {
        transition: margin-left 0.3s ease;
    }
    
    .premium-sidebar.open ~ .main-content {
        margin-left: 0;
    }
    
    /* Back button mobile */
    .back-to-dashboard {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #f3f4f6;
        color: #111827;
        text-decoration: none;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 1rem;
        transition: all 0.2s ease;
    }
    
    .back-to-dashboard:hover {
        background: #e5e7eb;
        transform: translateY(-1px);
    }
    
    .arrow-icon {
        font-size: 1.2rem;
    }
    
    /* Hide desktop navigation on mobile */
    .nav {
        display: none;
    }
    
    /* Ensure proper viewport and prevent horizontal scroll */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Mobile-specific improvements */
    .withdrawal-section {
        overflow-x: hidden;
    }
    
    /* Touch-friendly tap targets */
    .tab-btn,
    .btn,
    .form-group input,
    .form-group select {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Better mobile focus states */
    .form-group input:focus,
    .form-group select:focus,
    .btn:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }
    
    /* Mobile table improvements */
    @media (max-width: 480px) {
        .data-table {
            font-size: 0.8rem;
        }
        
        .data-table th,
        .data-table td {
            padding: 0.5rem 0.25rem;
        }
        
        .type-badge,
        .withdrawal-status {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
    }
}

/* ========================================
   MOBILE WITHDRAWAL HISTORY FIX
   Fixes withdrawal history not visible on mobile
   ======================================== */

/* Ensure tab content works properly on mobile */
@media (max-width: 768px) {
    
    /* Fix tab content display issues on mobile */
    .tab-content {
        display: none !important;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0 0 12px 12px;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        position: relative;
    }

    .tab-content.active {
        display: block !important;
        visibility: visible;
        opacity: 1;
        height: auto;
        overflow: visible;
        position: relative;
    }

    /* Specific fix for withdrawal history tab */
    #withdrawal-history-tab.tab-content {
        min-height: 400px; /* Ensure minimum height */
        max-height: none; /* Remove any height restrictions */
    }

    #withdrawal-history-tab.tab-content.active {
        min-height: 400px;
        height: auto !important;
        overflow: visible !important;
    }

    /* Fix withdrawal history container on mobile */
    .withdrawal-history-container {
        padding: 15px;
        margin-top: 1rem;
        min-height: 300px;
        overflow: visible;
    }

    /* Fix table container scrolling on mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        min-height: 200px;
    }

    /* Ensure withdrawal history table is visible */
    #withdrawal-history-table {
        width: 100%;
        min-width: 500px; /* Reduced from 600px since we removed Method column */
        height: auto;
        visibility: visible;
        display: table;
    }

    #withdrawal-history-table th,
    #withdrawal-history-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
        vertical-align: middle;
    }

    #withdrawal-history-table th {
        background: #f8fafc;
        font-weight: 600;
        color: #111827;
        border-bottom: 2px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    #withdrawal-history-table tbody {
        visibility: visible;
    }

    #withdrawal-history-table tbody tr {
        display: table-row;
        visibility: visible;
    }

    #withdrawal-history-table tbody td {
        visibility: visible;
    }

    /* Fix loading state */
    #withdrawal-history-body .loading td {
        text-align: center;
        padding: 40px 20px;
        color: #111827;
        font-size: 0.9rem;
    }

    /* Fix no data state */
    #withdrawal-history-body .no-data {
        text-align: center;
        padding: 40px 20px;
        color: #111827;
    }

    /* Ensure withdrawal tabs work on mobile */
    .withdrawal-tabs {
        flex-direction: row;
        gap: 0.25rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
    }

    .tab-btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 0.85rem;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        border-radius: 0;
        background: #f9fafb;
        color: #111827;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tab-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }

    .tab-btn.active {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        font-weight: 600;
    }

    .tab-btn span {
        font-size: 1rem;
    }

    /* Fix withdrawal card on mobile */
    .withdrawal-card {
        background: white;
        border-radius: 12px;
        padding: 20px 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        margin: 0;
        overflow: visible;
    }

    /* Fix main content area */
    .main-content {
        padding: 10px;
        overflow-x: hidden;
    }

    .withdrawal-section {
        padding: 0;
        overflow: visible;
    }

    .withdrawal-container {
        padding: 0;
        overflow: visible;
    }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
    .withdrawal-history-container {
        padding: 10px;
        min-height: 250px;
    }

    #withdrawal-history-table th,
    #withdrawal-history-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .tab-btn {
        padding: 10px 6px;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .withdrawal-card {
        padding: 15px 10px;
    }
}

/* Admin panel mobile fixes */
@media (max-width: 768px) {
    /* Admin withdrawal table mobile fix */
    .admin-section .data-table {
        width: 100%;
        min-width: 600px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-section .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }

    /* Ensure admin withdrawal table is visible */
    #withdrawalsTable {
        display: table;
        visibility: visible;
        width: 100%;
        min-width: 700px; /* Increased for 7 columns with Transaction Hash */
    }

    #withdrawalsTable th,
    #withdrawalsTable td {
        padding: 10px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    #withdrawalsTable tbody {
        visibility: visible;
    }

    #withdrawalsTable tbody tr {
        display: table-row;
        visibility: visible;
    }

    /* Admin content sections */
    .content-section {
        padding: 15px 10px;
        overflow: visible;
    }

    .form-container {
        padding: 20px 15px;
        overflow: visible;
    }
}

/* ========================================
   ENHANCED ADMIN APPROVAL MODAL RESPONSIVE STYLES
   ======================================== */

/* Desktop - Large Modal */
@media (min-width: 992px) {
    #withdrawalApprovalModal .modal-lg {
        max-width: 900px;
    }
    
    #withdrawalApprovalModal .modal-body {
        padding: 2rem;
    }
    
    #withdrawalApprovalModal .row {
        margin: 0 -1rem;
    }
    
    #withdrawalApprovalModal .col-md-6 {
        padding: 0 1rem;
    }
}

/* Tablet - Medium Modal */
@media (min-width: 768px) and (max-width: 991px) {
    #withdrawalApprovalModal .modal-lg {
        max-width: 750px;
    }
    
    #withdrawalApprovalModal .modal-body {
        padding: 1.5rem;
    }
    
    #withdrawalApprovalModal .row {
        margin: 0 -0.75rem;
    }
    
    #withdrawalApprovalModal .col-md-6 {
        padding: 0 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Mobile - Full Width Modal */
@media (max-width: 767px) {
    #withdrawalApprovalModal .modal-dialog {
        margin: 0.5rem;
        max-width: 100vw;
        width: calc(100vw - 1rem);
    }
    
    #withdrawalApprovalModal .modal-content {
        border-radius: 0.5rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }
    
    #withdrawalApprovalModal .modal-header {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    #withdrawalApprovalModal .modal-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    #withdrawalApprovalModal .modal-body {
        padding: 1rem;
    }
    
    #withdrawalApprovalModal .modal-footer {
        padding: 1rem;
        border-top: 1px solid #e5e7eb;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #withdrawalApprovalModal .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
    
    /* Section Headers */
    #withdrawalApprovalModal h6 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #e5e7eb;
    }
    
    /* Form Groups */
    #withdrawalApprovalModal .mb-3 {
        margin-bottom: 1rem;
    }
    
    #withdrawalApprovalModal .mb-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Form Controls */
    #withdrawalApprovalModal .form-control {
        font-size: 0.9rem;
        padding: 0.75rem;
        border-radius: 0.375rem;
    }
    
    #withdrawalApprovalModal .form-label {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #111827;
    }
    
    /* Textarea */
    #withdrawalApprovalModal textarea.form-control {
        resize: vertical;
        min-height: 80px;
    }
    
    /* Icons in headers */
    #withdrawalApprovalModal h6 i {
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Section spacing */
    #withdrawalApprovalModal .row {
        margin-bottom: 1.5rem;
    }
    
    #withdrawalApprovalModal .row:last-child {
        margin-bottom: 0;
    }
    
    /* Read-only fields styling */
    #withdrawalApprovalModal .form-control[readonly] {
        background-color: #f9fafb;
        color: #111827;
        border-color: #e5e7eb;
    }
    
    /* Required field indicator */
    #withdrawalApprovalModal .form-label::after {
        content: '';
    }
    
    #withdrawalApprovalModal label[for="transactionHash"]::after {
        content: ' *';
        color: #ef4444;
        font-weight: 600;
    }
    
    /* Help text */
    #withdrawalApprovalModal .form-text {
        font-size: 0.75rem;
        color: #111827;
        margin-top: 0.25rem;
    }
    
    /* Button styling */
    #withdrawalApprovalModal .btn-success {
        background: linear-gradient(135deg, #10b981, #059669);
        border: none;
        font-weight: 500;
        padding: 0.75rem 1.5rem;
    }
    
    #withdrawalApprovalModal .btn-success:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    #withdrawalApprovalModal .btn-secondary {
        background: #6b7280;
        border: none;
        font-weight: 500;
        padding: 0.75rem 1.5rem;
    }
    
    #withdrawalApprovalModal .btn-secondary:hover {
        background: #4b5563;
        transform: translateY(-1px);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    #withdrawalApprovalModal .modal-dialog {
        margin: 0.25rem;
        width: calc(100vw - 0.5rem);
    }
    
    #withdrawalApprovalModal .modal-header,
    #withdrawalApprovalModal .modal-body,
    #withdrawalApprovalModal .modal-footer {
        padding: 0.75rem;
    }
    
    #withdrawalApprovalModal .modal-title {
        font-size: 1rem;
    }
    
    #withdrawalApprovalModal .form-control {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
    
    #withdrawalApprovalModal .form-label {
        font-size: 0.8rem;
    }
    
    #withdrawalApprovalModal .btn {
        font-size: 0.85rem;
        padding: 0.625rem 1rem;
    }
    
    #withdrawalApprovalModal h6 {
        font-size: 0.9rem;
    }
    
    #withdrawalApprovalModal h6 i {
        font-size: 0.85rem;
    }
}

/* Animation for modal appearance */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#withdrawalApprovalModal .modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

/* Focus states for accessibility */
#withdrawalApprovalModal .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

#withdrawalApprovalModal .btn:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}
