/**
 * WONDER Theme System - Ultra Premium Edition
 * Multi-theme support: Dark (default), Light, Pink
 * Ultra luxury design for Chinese influencers
 * Author: WONDER Team
 * Date: 2025-11-25
 */

/* ============================================
   DARK MODE (Default) - PERFECTO ✓
   ============================================ */
:root,
[data-theme="dark"] {
    /* Background Colors */
    --bg-primary: #0B0F19;
    --bg-secondary: #070A12;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-card-hover: rgba(17, 24, 39, 0.8);
    --bg-input: rgba(15, 23, 42, 0.6);
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-disabled: rgba(255, 255, 255, 0.3);
    
    /* Brand Colors */
    --primary: #00D9FF;
    --primary-hover: #00b8d9;
    --primary-light: rgba(0, 217, 255, 0.1);
    --secondary: #6366F1;
    --secondary-hover: #4f46e5;
    --accent: #A855F7;
    --accent-hover: #9333ea;
    --success: #10B981;
    --success-hover: #059669;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Border Colors */
    --border-color: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(0, 217, 255, 0.5);
    --border-input: rgba(99, 102, 241, 0.25);
    
    /* Sidebar Colors */
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-border: rgba(34, 211, 238, 0.1);
    --sidebar-item-hover: rgba(255, 255, 255, 0.05);
    --sidebar-item-active: rgba(0, 217, 255, 0.1);
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    
    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #6366F1 100%);
    --gradient-secondary: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* ============================================
   LIGHT MODE - ULTRA PREMIUM
   ============================================ */
[data-theme="light"] {
    /* Background Colors - Soft & Elegant */
    --bg-primary: #f5f7fa;
    --bg-secondary: #eef2f7;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-overlay: rgba(255, 255, 255, 0.85);
    
    /* Text Colors - Perfect Contrast */
    --text-primary: #1a1f36;
    --text-secondary: #4a5468;
    --text-muted: #6b7684;
    --text-disabled: #9ca3af;
    
    /* Brand Colors - Vibrant & Luxury */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.08);
    --secondary: #8b5cf6;
    --secondary-hover: #7c3aed;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --success: #10b981;
    --success-hover: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Border Colors - Subtle */
    --border-color: rgba(99, 102, 241, 0.08);
    --border-hover: rgba(99, 102, 241, 0.25);
    --border-input: rgba(139, 92, 246, 0.12);
    
    /* Sidebar Colors - Premium Glass */
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --sidebar-border: rgba(99, 102, 241, 0.08);
    --sidebar-item-hover: rgba(99, 102, 241, 0.06);
    --sidebar-item-active: rgba(99, 102, 241, 0.12);
    
    /* Shadow Colors - Soft & Premium */
    --shadow-sm: 0 1px 3px 0 rgba(99, 102, 241, 0.06);
    --shadow-md: 0 4px 12px 0 rgba(99, 102, 241, 0.08);
    --shadow-lg: 0 10px 24px 0 rgba(99, 102, 241, 0.12);
    --shadow-xl: 0 20px 40px 0 rgba(99, 102, 241, 0.15);
    
    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Light Mode Background - Elegant Gradient */
[data-theme="light"] body {
    background: linear-gradient(135deg, #f0f4f9 0%, #e4e9f2 50%, #f5f7fa 100%);
    position: relative;
}

[data-theme="light"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* ============================================
   PINK MODE - ULTRA SOFT & ELEGANT
   ============================================ */
[data-theme="pink"] {
    /* Background Colors - Very Soft Pink Pastel */
    --bg-primary: #fef8fa;
    --bg-secondary: #fdf2f5;
    --bg-card: rgba(255, 250, 252, 0.85);
    --bg-card-hover: rgba(255, 250, 252, 0.95);
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-overlay: rgba(255, 250, 252, 0.85);
    
    /* Text Colors - Soft but Readable */
    --text-primary: #4a2c3a;
    --text-secondary: #6b4558;
    --text-muted: #8b5f72;
    --text-disabled: #b89aa8;
    
    /* Brand Colors - Soft Pink/Purple Luxury */
    --primary: #e879b9;
    --primary-hover: #e05ea8;
    --primary-light: rgba(232, 121, 185, 0.08);
    --secondary: #f0abce;
    --secondary-hover: #ec8fb9;
    --accent: #fab7d4;
    --accent-hover: #f89bc4;
    --success: #6dd4b0;
    --success-hover: #4ecba0;
    --warning: #fbbf24;
    --danger: #f687a7;
    
    /* Border Colors - Ultra Soft */
    --border-color: rgba(232, 121, 185, 0.06);
    --border-hover: rgba(232, 121, 185, 0.2);
    --border-input: rgba(240, 171, 206, 0.1);
    
    /* Sidebar Colors - Soft Pink Glass */
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --sidebar-border: rgba(232, 121, 185, 0.06);
    --sidebar-item-hover: rgba(232, 121, 185, 0.06);
    --sidebar-item-active: rgba(232, 121, 185, 0.12);
    
    /* Shadow Colors - Soft Pink Tint */
    --shadow-sm: 0 1px 3px 0 rgba(232, 121, 185, 0.06);
    --shadow-md: 0 4px 12px 0 rgba(232, 121, 185, 0.08);
    --shadow-lg: 0 10px 24px 0 rgba(232, 121, 185, 0.12);
    --shadow-xl: 0 20px 40px 0 rgba(232, 121, 185, 0.15);
    
    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #e879b9 0%, #f0abce 100%);
    --gradient-secondary: linear-gradient(135deg, #f0abce 0%, #fab7d4 100%);
    --gradient-success: linear-gradient(135deg, #6dd4b0 0%, #4ecba0 100%);
}

/* Pink Mode Background - Ultra Soft Gradient */
[data-theme="pink"] body {
    background: linear-gradient(135deg, #fef8fa 0%, #fef2f6 50%, #fff5f8 100%);
    position: relative;
}

[data-theme="pink"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(232, 121, 185, 0.012) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 171, 206, 0.012) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(250, 183, 212, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* ============================================
   GLOBAL THEME STYLES
   ============================================ */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Premium Glassmorphism for Cards */
.glass,
.glass-card,
.card,
.stat-card,
.wallet-card,
.form-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md) !important;
}

.glass:hover,
.glass-card:hover,
.card:hover,
.stat-card:hover,
.wallet-card:hover {
    background: var(--bg-card-hover) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border-hover) !important;
}

/* ============================================
   LIGHT MODE - FROSTED GLASS EFFECT (Blanquecino)
   ============================================ */
[data-theme="light"] .glass,
[data-theme="light"] .glass-card,
[data-theme="light"] .card,
[data-theme="light"] .stat-card,
[data-theme="light"] .wallet-card,
[data-theme="light"] .form-card,
[data-theme="light"] .glass-premium,
[data-theme="light"] [class*="glass"] {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.08),
        0 2px 8px rgba(255, 255, 255, 0.5) inset,
        0 -2px 8px rgba(139, 92, 246, 0.05) inset !important;
}

[data-theme="light"] .glass:hover,
[data-theme="light"] .glass-card:hover,
[data-theme="light"] .card:hover,
[data-theme="light"] .stat-card:hover,
[data-theme="light"] .wallet-card:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.12),
        0 3px 10px rgba(255, 255, 255, 0.6) inset,
        0 -3px 10px rgba(139, 92, 246, 0.08) inset !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
}

/* ============================================
   PINK MODE - FROSTED GLASS EFFECT (Blanquecino Rosado)
   ============================================ */
[data-theme="pink"] .glass,
[data-theme="pink"] .glass-card,
[data-theme="pink"] .card,
[data-theme="pink"] .stat-card,
[data-theme="pink"] .wallet-card,
[data-theme="pink"] .form-card,
[data-theme="pink"] .glass-premium,
[data-theme="pink"] [class*="glass"] {
    background: rgba(255, 250, 252, 0.75) !important;
    backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    border: 1px solid rgba(255, 240, 245, 0.4) !important;
    box-shadow: 
        0 8px 32px rgba(232, 121, 185, 0.08),
        0 2px 8px rgba(255, 245, 250, 0.5) inset,
        0 -2px 8px rgba(240, 171, 206, 0.05) inset !important;
}

[data-theme="pink"] .glass:hover,
[data-theme="pink"] .glass-card:hover,
[data-theme="pink"] .card:hover,
[data-theme="pink"] .stat-card:hover,
[data-theme="pink"] .wallet-card:hover {
    background: rgba(255, 250, 252, 0.85) !important;
    box-shadow: 
        0 12px 40px rgba(232, 121, 185, 0.12),
        0 3px 10px rgba(255, 245, 250, 0.6) inset,
        0 -3px 10px rgba(240, 171, 206, 0.08) inset !important;
    border-color: rgba(255, 240, 245, 0.6) !important;
    transform: translateY(-2px);
}

/* Forms & Inputs - Premium Glass */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    background: var(--bg-input) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-input) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}

/* Light Mode - Input Frosted Glass */
[data-theme="light"] .form-input,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(30px) saturate(150%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(1.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 4px 16px rgba(99, 102, 241, 0.04),
        0 1px 4px rgba(255, 255, 255, 0.4) inset !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 4px 20px rgba(99, 102, 241, 0.08),
        0 2px 6px rgba(255, 255, 255, 0.5) inset !important;
}

/* Pink Mode - Input Frosted Glass */
[data-theme="pink"] .form-input,
[data-theme="pink"] input[type="text"],
[data-theme="pink"] input[type="email"],
[data-theme="pink"] input[type="password"],
[data-theme="pink"] input[type="tel"],
[data-theme="pink"] input[type="number"],
[data-theme="pink"] select,
[data-theme="pink"] textarea {
    background: rgba(255, 250, 252, 0.7) !important;
    backdrop-filter: blur(30px) saturate(150%) brightness(1.05) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) brightness(1.05) !important;
    border: 1px solid rgba(255, 240, 245, 0.5) !important;
    box-shadow: 
        0 4px 16px rgba(232, 121, 185, 0.04),
        0 1px 4px rgba(255, 245, 250, 0.4) inset !important;
}

[data-theme="pink"] .form-input:focus,
[data-theme="pink"] input:focus,
[data-theme="pink"] select:focus,
[data-theme="pink"] textarea:focus {
    background: rgba(255, 250, 252, 0.85) !important;
    box-shadow: 
        0 0 0 3px rgba(232, 121, 185, 0.1),
        0 4px 20px rgba(232, 121, 185, 0.08),
        0 2px 6px rgba(255, 245, 250, 0.5) inset !important;
}

/* Sidebar - Fixed & Premium Glass */
#sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border-right: 1px solid var(--sidebar-border) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#sidebar.collapsed {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Light Mode - Sidebar Frosted Glass */
[data-theme="light"] #sidebar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        4px 0 32px rgba(99, 102, 241, 0.06),
        2px 0 8px rgba(255, 255, 255, 0.5) inset !important;
}

/* Pink Mode - Sidebar Frosted Glass */
[data-theme="pink"] #sidebar {
    background: rgba(255, 250, 252, 0.75) !important;
    backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    -webkit-backdrop-filter: blur(40px) saturate(150%) brightness(1.1) !important;
    border-right: 1px solid rgba(255, 240, 245, 0.4) !important;
    box-shadow: 
        4px 0 32px rgba(232, 121, 185, 0.06),
        2px 0 8px rgba(255, 245, 250, 0.5) inset !important;
}

/* Sidebar Navigation Items */
nav a {
    color: var(--text-secondary) !important;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    border-radius: 12px;
}

nav a:hover {
    background: var(--sidebar-item-hover) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(12px) !important;
}

nav a.active {
    background: var(--sidebar-item-active) !important;
    color: var(--primary) !important;
    backdrop-filter: blur(12px) !important;
    font-weight: 600;
}

/* Buttons - Premium Gradient */
.btn-primary {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gradient-secondary) !important;
    box-shadow: var(--shadow-md);
    color: white !important;
}

/* ============================================
   FORCE WHITE TEXT ON BUTTONS AND GRADIENTS
   ============================================ */



/* ============================================
   FORCE WHITE ICONS IN GRADIENT CONTAINERS
   ============================================ */

/* Force white icons in elements with gradient in style attribute */
[style*="background: linear-gradient"] i,
[style*="background: radial-gradient"] i,
[style*="background:linear-gradient"] i,
[style*="background:radial-gradient"] i,
[style*="background-image: linear-gradient"] i,
[style*="background-image: radial-gradient"] i {
    color: white !important;
}

/* Force white for ANY element with .text-white inside gradients */
[class*="bg-gradient"] .text-white,
[class*="bg-gradient-to"] .text-white,
[style*="linear-gradient"] .text-white,
[style*="radial-gradient"] .text-white {
    color: white !important;
}

/* Specific targeting for common gradient patterns */
.from-green-400 i,
.from-blue-400 i,
.from-purple-400 i,
.from-pink-400 i,
.from-red-400 i,
.from-yellow-400 i,
.from-indigo-400 i,
.from-cyan-400 i,
.to-green-600 i,
.to-blue-600 i,
.to-purple-600 i,
.to-pink-600 i,
.to-red-600 i,
.to-yellow-600 i,
.to-indigo-600 i,
.to-cyan-600 i {
    color: white !important;
}


/* ============================================
   SOCIAL MEDIA BUTTONS - SOLID BRAND COLORS
   ============================================ */

/* WhatsApp - Green */
button:has(.fa-whatsapp),
a:has(.fa-whatsapp),
[onclick*="whatsapp"],
[href*="whatsapp"] {
    background: #25D366 !important;
    color: white !important;
    border-color: #25D366 !important;
}

/* Telegram - Blue */
button:has(.fa-telegram),
a:has(.fa-telegram),
[onclick*="telegram"],
[href*="telegram"],
[href*="t.me"] {
    background: #0088cc !important;
    color: white !important;
    border-color: #0088cc !important;
}

/* Twitter - Light Blue */
button:has(.fa-twitter),
a:has(.fa-twitter),
[onclick*="twitter"],
[href*="twitter"] {
    background: #1DA1F2 !important;
    color: white !important;
    border-color: #1DA1F2 !important;
}

/* Facebook - Blue */
button:has(.fa-facebook),
a:has(.fa-facebook),
[onclick*="facebook"],
[href*="facebook"] {
    background: #1877F2 !important;
    color: white !important;
    border-color: #1877F2 !important;
}

/* Icons and text inside social buttons always white */
button:has(.fa-whatsapp) *,
button:has(.fa-telegram) *,
button:has(.fa-twitter) *,
button:has(.fa-facebook) *,
a:has(.fa-whatsapp) *,
a:has(.fa-telegram) *,
a:has(.fa-twitter) *,
a:has(.fa-facebook) * {
    color: white !important;
}


/* Force white on elements with gradient in style */
[style*="linear-gradient"]:not(.theme-option):not(.theme-menu),
[style*="radial-gradient"]:not(.theme-option):not(.theme-menu),
[style*="linear-gradient"]:not(.theme-option):not(.theme-menu) *:not(.gradient-text),
[style*="radial-gradient"]:not(.theme-option):not(.theme-menu) *:not(.gradient-text) {
    color: white !important;
}

/* Product buttons specifically */
.product-btn,
.product-btn *,
.product-button,
.product-button *,
[class*="product-btn"],
[class*="product-btn"] *,
button.product-btn,
button.product-btn *,
.start-selling-btn,
.start-selling-btn * {
    color: white !important;
}

/* CTA buttons */
.cta-btn,
.cta-btn *,
.cta-button,
.cta-button *,
[class*="cta"] button,
[class*="cta"] button *,
.hero-ctas button,
.hero-ctas button *,
.hero-ctas a,
.hero-ctas a * {
    color: white !important;
}

/* Text Colors */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

p, span:not(.gradient-text) {
    color: var(--text-secondary);
}

/* ============================================
   TAILWIND TEXT OVERRIDES FOR LIGHT & PINK MODES
   ============================================ */

/* Light Mode - Override text-white and gray ONLY for non-buttons */
[data-theme="light"] .text-white:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="light"] .text-gray-100:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="light"] .text-gray-200:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="light"] .text-gray-300:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *) {
    color: #1f2937 !important; /* dark gray */
}

[data-theme="light"] .text-gray-400:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="light"] .text-gray-500:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *) {
    color: #374151 !important; /* medium dark */
}

[data-theme="light"] .text-gray-600:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="light"] .text-gray-700:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *) {
    color: #111827 !important; /* very dark */
}

/* Pink Mode - Override text-white and gray ONLY for non-buttons */
[data-theme="pink"] .text-white:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="pink"] .text-gray-100:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="pink"] .text-gray-200:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="pink"] .text-gray-300:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *) {
    color: #1f2937 !important; /* dark gray */
}

[data-theme="pink"] .text-gray-400:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="pink"] .text-gray-500:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *) {
    color: #374151 !important; /* medium dark */
}

[data-theme="pink"] .text-gray-600:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *),
[data-theme="pink"] .text-gray-700:not(button):not(.btn):not([class*="btn-"]):not(button *):not(.btn *):not([class*="btn-"] *) {
    color: #111827 !important; /* very dark */
}

/* ============================================
   ADDITIONAL OVERRIDES FOR STAT CARDS & NUMBERS
   ============================================ */

/* Light Mode - Force all white text to be dark */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .stat-value,
[data-theme="light"] .balance-amount,
[data-theme="light"] .metric-value,
[data-theme="light"] .card-title {
    color: #111827 !important;
}

[data-theme="light"] .stat-label,
[data-theme="light"] .card-subtitle,
[data-theme="light"] .metric-label,
[data-theme="light"] small,
[data-theme="light"] .text-sm {
    color: #4b5563 !important;
}

/* Pink Mode - Force all white text to be dark */
[data-theme="pink"] h1,
[data-theme="pink"] h2,
[data-theme="pink"] h3,
[data-theme="pink"] h4,
[data-theme="pink"] h5,
[data-theme="pink"] h6,
[data-theme="pink"] .stat-value,
[data-theme="pink"] .balance-amount,
[data-theme="pink"] .metric-value,
[data-theme="pink"] .card-title {
    color: #111827 !important;
}

[data-theme="pink"] .stat-label,
[data-theme="pink"] .card-subtitle,
[data-theme="pink"] .metric-label,
[data-theme="pink"] small,
[data-theme="pink"] .text-sm {
    color: #4b5563 !important;
}

/* Override for any remaining white/light colored elements */
[data-theme="light"] div[style*="color: white"],
[data-theme="light"] div[style*="color: #fff"],
[data-theme="light"] span[style*="color: white"],
[data-theme="light"] span[style*="color: #fff"],
[data-theme="light"] p[style*="color: white"],
[data-theme="light"] p[style*="color: #fff"] {
    color: #111827 !important;
}

[data-theme="pink"] div[style*="color: white"],
[data-theme="pink"] div[style*="color: #fff"],
[data-theme="pink"] span[style*="color: white"],
[data-theme="pink"] span[style*="color: #fff"],
[data-theme="pink"] p[style*="color: white"],
[data-theme="pink"] p[style*="color: #fff"] {
    color: #111827 !important;
}

/* Override for rgba white text */
[data-theme="light"] div[style*="rgba(255, 255, 255"],
[data-theme="light"] span[style*="rgba(255, 255, 255"],
[data-theme="light"] p[style*="rgba(255, 255, 255"] {
    color: #374151 !important;
}

[data-theme="pink"] div[style*="rgba(255, 255, 255"],
[data-theme="pink"] span[style*="rgba(255, 255, 255"],
[data-theme="pink"] p[style*="rgba(255, 255, 255"] {
    color: #374151 !important;
}

/* Dashboard Content - Proper Spacing */
#mainContent {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    position: relative;
}

#sidebar.collapsed + #mainContent {
    margin-left: 65px;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.theme-switcher-btn {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-size: 1.4rem !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-xl) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10000 !important;
}

.theme-switcher-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl);
}

.theme-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.theme-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.theme-option:hover {
    background: var(--sidebar-item-hover);
}

.theme-option.active {
    background: var(--sidebar-item-active);
}

.theme-option i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.theme-option .check-icon {
    margin-left: auto;
    font-size: 1rem;
}

/* Theme menu - Explicit colors for each theme mode */
.theme-menu {
    background: var(--bg-card) !important;
}

/* Dark mode - text in white/light colors */
[data-theme="dark"] .theme-option,
[data-theme="dark"] .theme-option .theme-name,
[data-theme="dark"] .theme-option i {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .theme-option.active,
[data-theme="dark"] .theme-option.active .theme-name,
[data-theme="dark"] .theme-option.active i:not(.check-icon) {
    color: var(--primary) !important;
}

/* Light mode - text in dark colors */
[data-theme="light"] .theme-option,
[data-theme="light"] .theme-option .theme-name,
[data-theme="light"] .theme-option i {
    color: #1f2937 !important;
}

[data-theme="light"] .theme-option.active,
[data-theme="light"] .theme-option.active .theme-name,
[data-theme="light"] .theme-option.active i:not(.check-icon) {
    color: var(--primary) !important;
}

/* Pink mode - text in dark colors */
[data-theme="pink"] .theme-option,
[data-theme="pink"] .theme-option .theme-name,
[data-theme="pink"] .theme-option i {
    color: #1f2937 !important;
}

[data-theme="pink"] .theme-option.active,
[data-theme="pink"] .theme-option.active .theme-name,
[data-theme="pink"] .theme-option.active i:not(.check-icon) {
    color: var(--primary) !important;
}

/* Check icon always green in all modes */
.theme-option .check-icon {
    color: var(--success) !important;
}

[data-theme="dark"] .theme-option .check-icon,
[data-theme="light"] .theme-option .check-icon,
[data-theme="pink"] .theme-option .check-icon {
    color: #10b981 !important;
}

/* Placeholder colors */
::placeholder {
    color: var(--text-disabled) !important;
    opacity: 0.6;
}

/* Option colors for select elements */
option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: 16px;
        right: 16px;
    }
    
    .theme-switcher-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .theme-menu {
        min-width: 180px;
    }
    
    #mainContent {
        margin-left: 0;
    }
}

/* ============================================
   HAMBURGER MENU - COLOR PER THEME
   ============================================ */

/* Dark mode - white hamburger */
[data-theme="dark"] .hamburger-icon,
[data-theme="dark"] button[onclick="toggleSidebar()"],
[data-theme="dark"] button[onclick="toggleSidebar()"] i {
    color: white !important;
}

/* Google Translate Globe Icon - Theme Colors */
[data-theme="dark"] #globe-translate-toggle,
[data-theme="dark"] #globe-translate-toggle i {
    color: #9ca3af !important;
}

[data-theme="dark"] #globe-translate-toggle:hover,
[data-theme="dark"] #globe-translate-toggle:hover i {
    color: #22d3ee !important;
}

/* Light mode - dark gray globe */
[data-theme="light"] #globe-translate-toggle,
[data-theme="light"] #globe-translate-toggle i {
    color: #6b7280 !important;
}

[data-theme="light"] #globe-translate-toggle:hover,
[data-theme="light"] #globe-translate-toggle:hover i {
    color: #a855f7 !important;
}

/* Pink mode - pink globe */
[data-theme="pink"] #globe-translate-toggle,
[data-theme="pink"] #globe-translate-toggle i {
    color: #9ca3af !important;
}

[data-theme="pink"] #globe-translate-toggle:hover,
[data-theme="pink"] #globe-translate-toggle:hover i {
    color: #ec4899 !important;
}

/* Light mode - dark gray/blue hamburger */
[data-theme="light"] .hamburger-icon,
[data-theme="light"] button[onclick="toggleSidebar()"],
[data-theme="light"] button[onclick="toggleSidebar()"] i {
    color: #4b5563 !important;
}

/* Pink mode - pink/purple hamburger */
[data-theme="pink"] .hamburger-icon,
[data-theme="pink"] button[onclick="toggleSidebar()"],
[data-theme="pink"] button[onclick="toggleSidebar()"] i {
    color: #e879b9 !important;
}

/* ============================================
   SIDEBAR COLLAPSE BUTTON - COLOR PER THEME
   ============================================ */

/* Dark mode - primary color (cyan/blue) */
[data-theme="dark"] button[onclick="toggleSidebarCollapse()"] i {
    color: #22d3ee !important;
}

/* Light mode - dark purple */
[data-theme="light"] button[onclick="toggleSidebarCollapse()"] i {
    color: #6366f1 !important;
}

/* Pink mode - pink */
[data-theme="pink"] button[onclick="toggleSidebarCollapse()"] i {
    color: #e879b9 !important;
}

/* ============================================
   NETWORK TAB BUTTONS - DARK TEXT IN LIGHT/PINK MODE
   ============================================ */

/* Light mode - dark gray for network tab buttons */
[data-theme="light"] .network-tab,
[data-theme="light"] .network-tab i {
    color: #1f2937 !important;
}

[data-theme="light"] .network-tab:hover,
[data-theme="light"] .network-tab:hover i {
    color: #6366f1 !important;
}

[data-theme="light"] .network-tab.active,
[data-theme="light"] .network-tab.active i {
    color: #6366f1 !important;
}

/* Pink mode - dark gray for network tab buttons */
[data-theme="pink"] .network-tab,
[data-theme="pink"] .network-tab i {
    color: #1f2937 !important;
}

[data-theme="pink"] .network-tab:hover,
[data-theme="pink"] .network-tab:hover i {
    color: #e879b9 !important;
}

[data-theme="pink"] .network-tab.active,
[data-theme="pink"] .network-tab.active i {
    color: #e879b9 !important;
}

/* ============================================
   LOGO - DYNAMIC PER THEME
   ============================================ */

/* Hide dark logo in light/pink, show light logo */
[data-theme="light"] .logo-dark,
[data-theme="pink"] .logo-dark {
    display: none !important;
}

[data-theme="light"] .logo-light,
[data-theme="pink"] .logo-light {
    display: block !important;
}

/* Hide light logo in dark mode, show dark logo */
[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* ============================================
   LANGUAGE SELECTOR - VISIBLE IN ALL THEMES
   ============================================ */

/* Dark mode - white for unselected */
[data-theme="dark"] .lang-btn:not(.active) {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Light mode - dark gray for unselected */
[data-theme="light"] .lang-btn:not(.active) {
    color: #4b5563 !important;
    background: rgba(99, 102, 241, 0.05) !important;
}

/* Pink mode - dark gray for unselected */
[data-theme="pink"] .lang-btn:not(.active) {
    color: #4b5563 !important;
    background: rgba(232, 121, 185, 0.05) !important;
}

/* ============================================
   WALLET BUTTONS - TEXT AND ICONS
   ============================================ */

/* Request Withdrawal button icons should match button text color */
[data-theme="light"] button[onclick="showRequestWithdrawal()"] i,
[data-theme="pink"] button[onclick="showRequestWithdrawal()"] i {
    color: inherit !important;
}

[data-theme="light"] button[onclick="showRequestWithdrawal()"] {
    color: #6366f1 !important;
}

[data-theme="pink"] button[onclick="showRequestWithdrawal()"] {
    color: #e879b9 !important;
}

/* ============================================
   COMMISSION BADGES - GREEN ALWAYS WHITE ICONS
   ============================================ */

/* Commission badges should have white icons in ALL themes */
.bg-gradient-to-r.from-green-500\/20 i,
.bg-gradient-to-r.from-green-500 i,
[style*="background: linear-gradient"][style*="green"] i {
    color: white !important;
}
