/* ============================================================
   Multi-Tool Utility Hub v2.0 â€” Global Design System
   Font: Inter (Google Fonts)
   Theme: Premium Dark Navy + Electric Blue
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Backgrounds */
    --bg-primary:     #070b17;
    --bg-secondary:   #0c1228;
    --bg-tertiary:    #111830;
    --bg-card:        rgba(255,255,255,0.03);
    --bg-card-hover:  rgba(255,255,255,0.055);
    --bg-input:       rgba(255,255,255,0.05);
    --bg-glass:       rgba(15,22,50,0.7);

    /* Accent Colors */
    --accent-blue:    #4f8ef7;
    --accent-blue-light: #7aabff;
    --accent-purple:  #8b5cf6;
    --accent-pink:    #ec4899;
    --accent-cyan:    #06b6d4;
    --accent-green:   #10b981;

    /* Gradients */
    --gradient-main:   linear-gradient(135deg, #4f8ef7 0%, #8b5cf6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(79,142,247,0.15) 0%, rgba(139,92,246,0.15) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(79,142,247,0.12) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(79,142,247,0.08) 0%, rgba(139,92,246,0.08) 100%);

    /* Text */
    --text-primary:   #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --text-accent:    #4f8ef7;

    /* Borders */
    --border-subtle:  rgba(79,142,247,0.1);
    --border-default: rgba(79,142,247,0.2);
    --border-accent:  rgba(79,142,247,0.45);
    --border-card:    rgba(255,255,255,0.07);

    /* Status */
    --success:        #10b981;
    --success-bg:     rgba(16,185,129,0.1);
    --warning:        #f59e0b;
    --warning-bg:     rgba(245,158,11,0.1);
    --error:          #ef4444;
    --error-bg:       rgba(239,68,68,0.1);
    --info:           #06b6d4;
    --info-bg:        rgba(6,182,212,0.1);

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.25);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.35);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 30px rgba(79,142,247,0.18);
    --shadow-glow-sm: 0 0 15px rgba(79,142,247,0.12);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:   'Courier New', Courier, monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --max-width: 1280px;
    --nav-height: 68px;
}

/* --- 20 PREMIUM THEMES (10 DARK, 10 LIGHT) --- */

html[data-theme="dark-dark"] {
    --bg-primary:     #0f172a;
    --bg-secondary:   #1e293b;
    --bg-tertiary:    #334155;
    --bg-glass:       rgba(30, 41, 59, 0.7);
    --accent-blue:    #6366f1;
    --accent-blue-light: #4f46e5;
    --text-primary:   #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --text-accent:    #4f46e5;
    --gradient-main:   linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(99, 102, 241, 0.15);
    --border-default: #334155;
    --border-accent:  #475569;
}
html[data-theme="dark-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #6366f1;
    --accent-blue-light: #4f46e5;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #6366f1;
    --gradient-main:   linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #6366f1;
}
html[data-theme="royal-dark"] {
    --bg-primary:     #0a1128;
    --bg-secondary:   #121e42;
    --bg-tertiary:    #1b2d63;
    --bg-glass:       rgba(18, 30, 66, 0.85);
    --accent-blue:    #2563eb;
    --accent-blue-light: #1d4ed8;
    --text-primary:   #ffffff;
    --text-secondary: #bfdbfe;
    --text-muted:     #60a5fa;
    --text-accent:    #1d4ed8;
    --gradient-main:   linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(37, 99, 235, 0.2);
    --border-default: #273e82;
    --border-accent:  #2563eb;
}
html[data-theme="royal-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #2563eb;
    --accent-blue-light: #1d4ed8;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #2563eb;
    --gradient-main:   linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #2563eb;
}
html[data-theme="cyberpunk-dark"] {
    --bg-primary:     #09090e;
    --bg-secondary:   #12131f;
    --bg-tertiary:    #1d1e30;
    --bg-glass:       rgba(18, 19, 31, 0.8);
    --accent-blue:    #ff007f;
    --accent-blue-light: #e00070;
    --text-primary:   #ffffff;
    --text-secondary: #00f2fe;
    --text-muted:     #737399;
    --text-accent:    #e00070;
    --gradient-main:   linear-gradient(135deg, #00f2fe, #ff007f);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 0, 127, 0.2) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(255, 0, 127, 0.2) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(255, 0, 127, 0.2) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(255, 0, 127, 0.2);
    --border-default: #262942;
    --border-accent:  #ff007f;
}
html[data-theme="cyberpunk-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #ff007f;
    --accent-blue-light: #e00070;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #ff007f;
    --gradient-main:   linear-gradient(135deg, #00f2fe, #ff007f);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 0, 127, 0.2) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(255, 0, 127, 0.2) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(255, 0, 127, 0.2) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #ff007f;
}
html[data-theme="emerald-dark"] {
    --bg-primary:     #061712;
    --bg-secondary:   #0d2b22;
    --bg-tertiary:    #153e32;
    --bg-glass:       rgba(13, 43, 34, 0.8);
    --accent-blue:    #10b981;
    --accent-blue-light: #059669;
    --text-primary:   #ecfdf5;
    --text-secondary: #a7f3d0;
    --text-muted:     #5eead4;
    --text-accent:    #059669;
    --gradient-main:   linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(16, 185, 129, 0.18);
    --border-default: #1a4f40;
    --border-accent:  #10b981;
}
html[data-theme="emerald-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #10b981;
    --accent-blue-light: #059669;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #10b981;
    --gradient-main:   linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #10b981;
}
html[data-theme="sunset-dark"] {
    --bg-primary:     #180e22;
    --bg-secondary:   #271738;
    --bg-tertiary:    #3b2354;
    --bg-glass:       rgba(39, 23, 56, 0.8);
    --accent-blue:    #f97316;
    --accent-blue-light: #ea580c;
    --text-primary:   #fff7ed;
    --text-secondary: #fed7aa;
    --text-muted:     #c084fc;
    --text-accent:    #ea580c;
    --gradient-main:   linear-gradient(135deg, #f97316, #ec4899);
    --gradient-subtle: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(249, 115, 22, 0.18);
    --border-default: #482b66;
    --border-accent:  #f97316;
}
html[data-theme="sunset-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #f97316;
    --accent-blue-light: #ea580c;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #f97316;
    --gradient-main:   linear-gradient(135deg, #f97316, #ec4899);
    --gradient-subtle: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #f97316;
}
html[data-theme="space-dark"] {
    --bg-primary:     #030712;
    --bg-secondary:   #0b1329;
    --bg-tertiary:    #152244;
    --bg-glass:       rgba(11, 19, 41, 0.85);
    --accent-blue:    #3b82f6;
    --accent-blue-light: #2563eb;
    --text-primary:   #f1f5f9;
    --text-secondary: #93c5fd;
    --text-muted:     #60a5fa;
    --text-accent:    #2563eb;
    --gradient-main:   linear-gradient(135deg, #3b82f6, #a855f7);
    --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(59, 130, 246, 0.18);
    --border-default: #1e2952;
    --border-accent:  #3b82f6;
}
html[data-theme="space-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #3b82f6;
    --accent-blue-light: #2563eb;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #3b82f6;
    --gradient-main:   linear-gradient(135deg, #3b82f6, #a855f7);
    --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #3b82f6;
}
html[data-theme="mocha-dark"] {
    --bg-primary:     #1c1917;
    --bg-secondary:   #292524;
    --bg-tertiary:    #3d3835;
    --bg-glass:       rgba(41, 37, 36, 0.85);
    --accent-blue:    #d97706;
    --accent-blue-light: #b45309;
    --text-primary:   #fafaf9;
    --text-secondary: #e7e5e4;
    --text-muted:     #a8a29e;
    --text-accent:    #b45309;
    --gradient-main:   linear-gradient(135deg, #d97706, #f59e0b);
    --gradient-subtle: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(217, 119, 6, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(217, 119, 6, 0.18);
    --border-default: #44403c;
    --border-accent:  #d97706;
}
html[data-theme="mocha-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #d97706;
    --accent-blue-light: #b45309;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #d97706;
    --gradient-main:   linear-gradient(135deg, #d97706, #f59e0b);
    --gradient-subtle: linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(217, 119, 6, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(217, 119, 6, 0.18) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #d97706;
}
html[data-theme="sakura-dark"] {
    --bg-primary:     #171014;
    --bg-secondary:   #23181d;
    --bg-tertiary:    #302028;
    --bg-glass:       rgba(23, 16, 20, 0.85);
    --accent-blue:    #ec4899;
    --accent-blue-light: #f472b6;
    --text-primary:   #fdf2f8;
    --text-secondary: #fbcfe8;
    --text-muted:     #f9a8d4;
    --text-accent:    #f472b6;
    --gradient-main:   linear-gradient(135deg, #db2777, #ec4899);
    --gradient-subtle: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(236, 72, 153, 0.15);
    --border-default: #302028;
    --border-accent:  #ec4899;
}
html[data-theme="sakura-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #ec4899;
    --accent-blue-light: #db2777;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #ec4899;
    --gradient-main:   linear-gradient(135deg, #ec4899, #a855f7);
    --gradient-subtle: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #ec4899;
}
html[data-theme="ocean-dark"] {
    --bg-primary:     #021820;
    --bg-secondary:   #072a38;
    --bg-tertiary:    #0d3d52;
    --bg-glass:       rgba(7, 42, 56, 0.85);
    --accent-blue:    #06b6d4;
    --accent-blue-light: #0891b2;
    --text-primary:   #ecfeff;
    --text-secondary: #a5f3fc;
    --text-muted:     #67e8f9;
    --text-accent:    #0891b2;
    --gradient-main:   linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-subtle: linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(6, 182, 212, 0.18);
    --border-default: #11536f;
    --border-accent:  #06b6d4;
}
html[data-theme="ocean-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #06b6d4;
    --accent-blue-light: #0891b2;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #06b6d4;
    --gradient-main:   linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-subtle: linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #06b6d4;
}
html[data-theme="dracula-dark"] {
    --bg-primary:     #181926;
    --bg-secondary:   #24273a;
    --bg-tertiary:    #363a4f;
    --bg-glass:       rgba(36, 39, 58, 0.85);
    --accent-blue:    #c6a0f6;
    --accent-blue-light: #b4befe;
    --text-primary:   #cad3f5;
    --text-secondary: #b7bdf8;
    --text-muted:     #939ab7;
    --text-accent:    #b4befe;
    --gradient-main:   linear-gradient(135deg, #c6a0f6, #f5c2e7);
    --gradient-subtle: linear-gradient(135deg, rgba(198, 160, 246, 0.18) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(198, 160, 246, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(198, 160, 246, 0.18) 0%, rgba(255,255,255,0.02) 100%);
    --border-subtle:  rgba(198, 160, 246, 0.18);
    --border-default: #494d64;
    --border-accent:  #c6a0f6;
}
html[data-theme="dracula-light"] {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #c6a0f6;
    --accent-blue-light: #b4befe;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #c6a0f6;
    --gradient-main:   linear-gradient(135deg, #c6a0f6, #f5c2e7);
    --gradient-subtle: linear-gradient(135deg, rgba(198, 160, 246, 0.18) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(198, 160, 246, 0.18) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(198, 160, 246, 0.18) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #c6a0f6;
}

/* DEFAULT ALIAS */
:root {
    --bg-primary:     #f8fafc;
    --bg-secondary:   #ffffff;
    --bg-tertiary:    #f1f5f9;
    --bg-glass:       rgba(255, 255, 255, 0.85);
    --accent-blue:    #2563eb;
    --accent-blue-light: #1d4ed8;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --text-accent:    #2563eb;
    --gradient-main:   linear-gradient(135deg, #2563eb, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(0,0,0,0.02) 100%);
    --gradient-glow:   radial-gradient(ellipse at center, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    --gradient-card:   linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(0,0,0,0.01) 100%);
    --border-subtle:  rgba(0, 0, 0, 0.05);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-accent:  #2563eb;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--accent-blue-light); }

img { max-width: 100%; height: auto; }

button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    outline: none;
}
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

input, textarea, select {
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   4. NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    transition: background var(--transition-base);
}

.navbar.scrolled {
    background: var(--bg-primary);
    border-bottom-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-glow-sm);
}

.nav-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.nav-logo-text span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* User avatar di navbar */
.nav-user {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}
.nav-user:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-default);
}
.nav-user.visible { display: flex; }

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-default);
}

.nav-user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(251,191,36,0.2));
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

/* Primary Button */
.btn-primary {
    background: var(--gradient-main);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79,142,247,0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(79,142,247,0.45);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary/Ghost Button */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

/* Outline Accent Button */
.btn-outline {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--border-accent);
}
.btn-outline:hover {
    background: rgba(79,142,247,0.1);
    box-shadow: var(--shadow-glow-sm);
}

/* Danger Button */
.btn-danger {
    background: rgba(239,68,68,0.1);
    color: var(--error);
    border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.5);
}

/* Large Button */
.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

/* Small Button */
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: var(--radius-xs);
}

/* Icon only Button */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Google Sign-In Button */
.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: box-shadow var(--transition-fast), background var(--transition-fast);
}
.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.btn-google img {
    width: 18px;
    height: 18px;
}

/* Trakteer/Donate Button */
.btn-trakteer {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.btn-trakteer:hover {
    box-shadow: 0 6px 25px rgba(255,107,53,0.45);
    transform: translateY(-1px);
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: inherit;
    pointer-events: none;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-default);
    box-shadow: var(--shadow-card), var(--shadow-glow-sm);
    transform: translateY(-3px);
}

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

/* Tool Card Specific */
.tool-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    cursor: pointer;
    text-decoration: none;
}

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.tool-card-body {
    flex: 1;
}

.tool-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tool-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.tool-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: rgba(16,185,129,0.12);
    color: var(--success);
    border: 1px solid rgba(16,185,129,0.25);
}

.badge-premium {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.15));
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

.tool-card-arrow {
    color: var(--text-muted);
    transition: all var(--transition-base);
    font-size: 16px;
}

.tool-card:hover .tool-card-arrow {
    color: var(--accent-blue);
    transform: translateX(4px);
}

/* ============================================================
   7. FORM ELEMENTS
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 11px 14px;
    font-size: 14px;
    transition: all var(--transition-fast);
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
    background: rgba(255,255,255,0.06);
}

.form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Character counter */
.char-counter {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
    transition: color var(--transition-fast);
}
.char-counter.warning { color: var(--warning); }
.char-counter.error   { color: var(--error); }

/* ============================================================
   8. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 40px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: var(--radius-xs) 0 0 var(--radius-xs);
}

.toast-success::before { background: var(--success); }
.toast-error::before   { background: var(--error); }
.toast-warning::before { background: var(--warning); }
.toast-info::before    { background: var(--info); }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: var(--info); }

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--border-subtle);
    width: 100%;
    transform-origin: left;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ============================================================
   9. MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(0.92) translateY(10px);
    transition: transform var(--transition-base);
    position: relative;
    overflow: hidden;
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* ============================================================
   10. BADGES & TAGS
   ============================================================ */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-blue   { background: rgba(79,142,247,0.12); color: var(--accent-blue); border: 1px solid rgba(79,142,247,0.25); }
.tag-purple { background: rgba(139,92,246,0.12); color: var(--accent-purple); border: 1px solid rgba(139,92,246,0.25); }
.tag-green  { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.25); }
.tag-orange { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.25); }

/* ============================================================
   11. LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.page-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.section {
    padding: var(--space-4xl) 0;
}

.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 11px; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   12. DIVIDER
   ============================================================ */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-lg) 0;
}

.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    margin: var(--space-lg) 0;
    opacity: 0.3;
}

/* ============================================================
   13. SEARCH BAR
   ============================================================ */
.search-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    transition: all var(--transition-base);
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15), var(--shadow-glow-sm);
    background: rgba(255,255,255,0.06);
}

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

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-xl) 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-brand-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-blue); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   15. LOADING / SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-card) 0%,
        rgba(255,255,255,0.06) 50%,
        var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-wave {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   16. ADSENSE AD SLOTS
   ============================================================ */
.ad-slot {
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    min-height: 90px;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-slot-banner { min-height: 90px; }
.ad-slot-rect   { min-height: 250px; }

/* ============================================================
   17. SCROLL BAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ============================================================
   18. RESPONSIVE â€” MOBILE FIRST
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --space-lg: 20px;
        --space-xl: 28px;
    }

    .container { padding: 0 var(--space-md); }
    .nav-logo-text { font-size: 1rem; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .btn-lg { padding: 12px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
    .toast-container {
        top: calc(var(--nav-height) + 8px);
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }

    .modal { padding: var(--space-lg); }
}

/* ============================================================
   19. MICRO-ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(300%) rotate(45deg); }
}

@keyframes bounceIn {
    0%   { transform: scale(0.85); opacity: 0; }
    70%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in    { animation: fadeIn 0.4s ease forwards; }
.animate-bounce-in  { animation: bounceIn 0.5s ease forwards; }

/* Stagger delays for card grids */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* Shine effect on premium elements */
.shine {
    position: relative;
    overflow: hidden;
}
.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================
   TEMPORARY PREMIUM HIDE (SEMBUNYIKAN SEBELUM LAUNCHING)
   ============================================================ */
.premium-section,
.premium-cta-card,
.nav-premium-badge,
#menu-premium-info,
.premium-badge-tag {
    display: none !important;
}

/* ============================================================
   GOOGLE ADSENSE ANCHOR ADS SPACING (HP/MOBILE)
   Mencegah iklan melayang menutupi konten / tombol navigasi bawah
   ============================================================ */
@media (max-width: 768px) {
    body {
        /* Berikan ruang aman minimal 90px untuk AdSense Sticky Bottom Anchor Ad */
        padding-bottom: 95px !important;
    }
}


/* ============================================================
   10. HOMEPAGE STYLES (Extracted from index.php)
   ============================================================ */
/* ============================================================
           INDEX PAGE SPECIFIC STYLES
           ============================================================ */

        /* Hero Section */
        .hero {
            position: relative;
            min-height: calc(100vh - var(--nav-height));
            display: flex;
            align-items: center;
            overflow: hidden;
            padding: var(--space-4xl) 0 var(--space-3xl);
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
        }

        .hero-bg-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.12;
        }

        .hero-bg-orb-1 {
            width: 600px;
            height: 600px;
            background: #4f8ef7;
            top: -200px;
            left: -100px;
        }

        .hero-bg-orb-2 {
            width: 500px;
            height: 500px;
            background: #8b5cf6;
            bottom: -150px;
            right: -100px;
        }

        .hero-bg-orb-3 {
            width: 300px;
            height: 300px;
            background: #06b6d4;
            top: 40%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .hero-bg-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(79,142,247,0.12) 1px, transparent 1px),
                linear-gradient(90deg, rgba(79,142,247,0.12) 1px, transparent 1px);
            background-size: 50px 50px;
            -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
        }

        .hero-inner {
            position: relative;
            z-index: 1;
            text-align: center;
            max-width: 700px;
            margin: 0 auto;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--space-xs);
            padding: 6px 16px;
            background: rgba(79,142,247,0.1);
            border: 1px solid rgba(79,142,247,0.25);
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 600;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            letter-spacing: 0.5px;
            color: var(--accent-blue);
            margin-bottom: var(--space-lg);
            animation: fadeInUp 0.5s ease forwards;
        }

        .hero-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 900;
            line-height: 1.15;
            margin-bottom: var(--space-lg);
            text-shadow: 0 0 40px rgba(79,142,247,0.3);
            animation: fadeInUp 0.5s 0.1s ease both;
        }

        .hero-subtitle {
            font-size: clamp(0.95rem, 2vw, 1.15rem);
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: var(--space-xl);
            animation: fadeInUp 0.5s 0.2s ease both;
        }

        .hero-cta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-md);
            flex-wrap: wrap;
            animation: fadeInUp 0.5s 0.3s ease both;
        }

        .hero-stats {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-xl);
            margin-top: var(--space-2xl);
            padding-top: var(--space-xl);
            border-top: 1px solid var(--border-subtle);
            animation: fadeInUp 0.5s 0.4s ease both;
        }

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

        .stat-value {
            font-size: 1.8rem;
            font-weight: 800;
            background: var(--gradient-main);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Tools Section */
        .tools-section {
            padding: var(--space-4xl) 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: var(--space-2xl);
        }

        .section-header h2 {
            margin-bottom: var(--space-sm);
        }

        .section-header p {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: var(--space-lg);
        }

        /* Enhanced Tool Card for Portal */
        .portal-tool-card {
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
            padding: var(--space-xl);
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: var(--radius-xl);
            text-decoration: none;
            transition: all var(--transition-base);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .portal-tool-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-card);
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .portal-tool-card::after {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: var(--radius-xl);
            padding: 1px;
            background: var(--gradient-main);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity var(--transition-base);
        }

        .btn-outline:hover {
            background: var(--bg-card-hover);
        }

        .stretched-link::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 10;
        }

        /* === HEADER / NAVBAR === */

        .portal-tool-card:hover {
            background: var(--bg-card-hover);
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg), 0 0 50px rgba(79,142,247,0.15);
            border-color: rgba(79,142,247,0.3);
        }

        .portal-tool-card:hover::before { opacity: 1; }
        .portal-tool-card:hover::after  { opacity: 1; }

        .card-icon-wrap {
            width: 60px;
            height: 60px;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            position: relative;
            z-index: 1;
        }

        .card-icon-1 { background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(79,142,247,0.1)); box-shadow: 0 4px 20px rgba(79,142,247,0.15); }
        .card-icon-2 { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.1)); box-shadow: 0 4px 20px rgba(16,185,129,0.15); }
        .card-icon-3 { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1)); box-shadow: 0 4px 20px rgba(139,92,246,0.15); }

        .card-content { position: relative; z-index: 1; }

        .card-title {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .card-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: var(--space-md);
        }

        .card-features {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin-bottom: var(--space-md);
        }

        .card-feature-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .card-feature-item span:first-child { color: var(--success); font-size: 10px; }

        .card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
            margin-top: auto;
        }

        .card-cta {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-blue);
            transition: gap var(--transition-fast);
        }

        .portal-tool-card:hover .card-cta { gap: 10px; }

        /* Search Section */
        .search-section {
            display: flex;
            justify-content: center;
            margin-bottom: var(--space-xl);
        }

        /* Features Section */
        .features-section {
            padding: var(--space-3xl) 0;
            background: linear-gradient(180deg, transparent, var(--bg-secondary) 30%, var(--bg-secondary) 70%, transparent);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: var(--space-lg);
        }

        .feature-item {
            text-align: center;
            padding: var(--space-lg);
        }

        .feature-icon {
            font-size: 36px;
            margin-bottom: var(--space-md);
        }

        .feature-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .feature-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Premium CTA Section */
        .premium-cta-section {
            padding: var(--space-3xl) 0;
        }

        .premium-cta-card {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(79,142,247,0.05) 100%);
            border: 1px solid rgba(79,142,247,0.2);
            border-radius: var(--radius-2xl);
            padding: var(--space-3xl);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .premium-cta-card::before {
            content: '';
            position: absolute;
            top: -80px;
            left: 50%;
            transform: translateX(-50%);
            width: 400px;
            height: 200px;
            background: radial-gradient(ellipse, rgba(79,142,247,0.15), transparent 70%);
            pointer-events: none;
        }

        .premium-cta-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 16px;
            background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.15));
            border: 1px solid rgba(245,158,11,0.3);
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 700;
            color: #f59e0b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: var(--space-lg);
        }

        .premium-cta-title {
            font-size: clamp(1.4rem, 3vw, 2rem);
            font-weight: 900;
            margin-bottom: var(--space-sm);
        }

        .premium-cta-desc {
            font-size: 14px;
            color: var(--text-secondary);
            max-width: 480px;
            margin: 0 auto var(--space-xl);
            line-height: 1.7;
        }

        .premium-perks {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-xl);
            flex-wrap: wrap;
            margin-bottom: var(--space-xl);
        }

        .premium-perk {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .premium-perk span:first-child { color: #f59e0b; }

        /* No results state */
        #search-no-results {
            display: none;
            text-align: center;
            padding: var(--space-2xl);
            color: var(--text-muted);
            font-size: 14px;
        }

        /* FAQ Section */
        .faq-section {
            padding: var(--space-4xl) 0;
            border-top: 1px solid var(--border-card);
        }

        .faq-grid {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: var(--space-lg);
        }

        .faq-item {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: var(--radius-lg);
            padding: var(--space-xl);
            transition: all var(--transition-base);
        }

        .faq-item:hover {
            border-color: rgba(79, 142, 247, 0.3);
            box-shadow: 0 4px 20px rgba(79, 142, 247, 0.05);
        }

        .faq-question {
            font-size: 1rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: var(--space-sm);
        }

        .faq-answer {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* Search wrapper max-width */
        .search-wrapper {
            max-width: 540px;
            width: 100%;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .features-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .tools-grid { grid-template-columns: 1fr; }
            .hero-stats { gap: var(--space-lg); }
            .features-grid { grid-template-columns: repeat(2, 1fr); }
            .premium-perks { gap: var(--space-md); }
            .premium-cta-card { padding: var(--space-xl) var(--space-lg); }
            .hero-cta .btn { min-width: 160px; }
        }

        @media (max-width: 480px) {
            .features-grid { grid-template-columns: 1fr; }
            .hero-stats { flex-wrap: wrap; gap: var(--space-md); }
            .hero-cta { flex-direction: column; align-items: center; }
            .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
        }

        /* Text-Rich Sections (SEO & AdSense) */
        .text-rich-section {
            padding: var(--space-4xl) 0;
            background: var(--bg-body);
        }
        .text-rich-section:nth-of-type(even) {
            background: var(--bg-card);
            border-top: 1px solid var(--border-card);
            border-bottom: 1px solid var(--border-card);
        }
        .text-rich-container {
            max-width: 860px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
        }
        .text-rich-section h2 {
            font-size: 2.2rem;
            margin-bottom: var(--space-xl);
            color: var(--text-primary);
            text-align: center;
        }
        .text-rich-section h3 {
            font-size: 1.4rem;
            margin-top: var(--space-2xl);
            margin-bottom: var(--space-md);
            color: var(--accent-blue);
        }
        .text-rich-section p {
            font-size: 1.05rem;
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: var(--space-lg);
        }
        .text-rich-section ul {
            padding-left: 20px;
            margin-bottom: var(--space-lg);
        }
        .text-rich-section li {
            font-size: 1.05rem;
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 8px;
        }

        /* ============================================================
           NEW UI / GLASSMORPHISM / BLOG STYLES
           ============================================================ */
        .glass-panel {
            background: rgba(255, 255, 255, 0.03);
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-xl);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
        }

        .hero-bg-orb-4 {
            width: 400px;
            height: 400px;
            background: var(--accent-pink);
            bottom: -50px;
            left: 20%;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.08;
            position: absolute;
            pointer-events: none;
        }

        /* Blog Section */
        .blog-section {
            padding: var(--space-4xl) 0;
            background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(79,142,247,0.03) 100%);
            position: relative;
        }

        .blog-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: var(--space-lg);
            margin-top: var(--space-xl);
        }

        .blog-teaser-card {
            display: flex;
            flex-direction: column;
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: var(--radius-xl);
            overflow: hidden;
            transition: all var(--transition-base);
            text-decoration: none;
            color: inherit;
        }

        .blog-teaser-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 142, 247, 0.1);
            border-color: var(--border-accent);
        }

        .blog-teaser-cover {
            height: 200px;
            background: var(--gradient-card);
            position: relative;
            overflow: hidden;
        }

        .blog-teaser-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .blog-teaser-card:hover .blog-teaser-cover img {
            transform: scale(1.05);
        }

        .blog-teaser-body {
            padding: var(--space-lg);
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .blog-teaser-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: var(--space-sm);
        }

        .blog-teaser-category {
            color: var(--accent-blue);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .blog-teaser-title {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.4;
            margin-bottom: var(--space-sm);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .blog-teaser-excerpt {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: var(--space-md);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex: 1;
        }

        .blog-teaser-readmore {
            font-size: 13px;
            font-weight: 700;
            color: var(--accent-blue);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap var(--transition-fast);
        }

        .blog-teaser-card:hover .blog-teaser-readmore {
            gap: 10px;
        }
        /* === COMMAND PALETTE === */
        #cmd-palette-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(10, 15, 30, 0.6);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 10vh;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }
        #cmd-palette-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }
        #cmd-palette-modal {
            width: 90%;
            max-width: 600px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 142, 247, 0.15);
            overflow: hidden;
            transform: scale(0.95) translateY(-10px);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #cmd-palette-backdrop.open #cmd-palette-modal {
            transform: scale(1) translateY(0);
        }
        .cmd-palette-header {
            display: flex;
            align-items: center;
            padding: 0 var(--space-md);
            border-bottom: 1px solid var(--border-color);
        }
        .cmd-palette-icon {
            font-size: 1.25rem;
            color: var(--text-muted);
            margin-right: var(--space-sm);
        }
        #cmd-palette-input {
            width: 100%;
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 1.1rem;
            padding: var(--space-md) 0;
            outline: none;
        }
        #cmd-palette-input::placeholder {
            color: var(--text-muted);
        }
        .cmd-palette-body {
            max-height: 50vh;
            overflow-y: auto;
            padding: var(--space-sm);
        }
        .cmd-palette-item {
            display: flex;
            align-items: center;
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius-md);
            color: var(--text-main);
            text-decoration: none;
            gap: var(--space-md);
            transition: background 0.2s;
            cursor: pointer;
        }
        .cmd-palette-item:hover, .cmd-palette-item.active {
            background: rgba(79, 142, 247, 0.1);
        }
        .cmd-palette-item-icon {
            font-size: 1.5rem;
            width: 32px;
            text-align: center;
        }
        .cmd-palette-item-text {
            flex: 1;
        }
        .cmd-palette-item-title {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 2px;
        }
        .cmd-palette-item-desc {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .cmd-palette-footer {
            padding: var(--space-sm) var(--space-md);
            border-top: 1px solid var(--border-color);
            font-size: 0.75rem;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .cmd-kbd {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 4px;
            padding: 2px 6px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.75rem;
        }
        .fake-search-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-full);
            padding: 12px 20px;
            color: var(--text-muted);
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }
        .fake-search-btn:hover {
            border-color: rgba(79,142,247,0.4);
            box-shadow: 0 0 20px rgba(79,142,247,0.1);
        }
        .fake-search-btn-left {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }


/* ============================================================
   11. NEW UI/UX ENHANCEMENTS (Animations & Accordion & Lucide Icons)
   ============================================================ */
   
/* Lucide Icons specific styling */
.card-icon-wrap i {
    width: 32px;
    height: 32px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.portal-tool-card:hover .card-icon-wrap i {
    transform: scale(1.15) rotate(-5deg);
}

/* Unified Brand Identity Colors for Cards */
.card-icon-1 { background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(79,142,247,0.1)); box-shadow: 0 4px 20px rgba(79,142,247,0.15); color: var(--accent-blue); }
.card-icon-2 { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1)); box-shadow: 0 4px 20px rgba(139,92,246,0.15); color: var(--accent-purple); }
.card-icon-3 { background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(79,142,247,0.1)); box-shadow: 0 4px 20px rgba(79,142,247,0.15); color: var(--accent-blue); }
.card-icon-4 { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1)); box-shadow: 0 4px 20px rgba(139,92,246,0.15); color: var(--accent-purple); }
.card-icon-5 { background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(79,142,247,0.1)); box-shadow: 0 4px 20px rgba(79,142,247,0.15); color: var(--accent-blue); }
.card-icon-6 { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.1)); box-shadow: 0 4px 20px rgba(139,92,246,0.15); color: var(--accent-purple); }
.card-icon-7 { background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(79,142,247,0.1)); box-shadow: 0 4px 20px rgba(79,142,247,0.15); color: var(--accent-blue); }

/* Shine Effect on CTA */
.shine {
    position: relative;
    overflow: hidden;
}
.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine-sweep 4s infinite;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Background Animations */
@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0.12; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.18; }
    100% { transform: translateY(0) scale(1); opacity: 0.12; }
}

.hero-bg-orb {
    animation: float 8s ease-in-out infinite;
}
.hero-bg-orb-2 { animation-delay: -2s; }
.hero-bg-orb-3 { animation-delay: -4s; }

/* SEO Accordion */
.seo-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    overflow: hidden;
}
.seo-accordion-header {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default triangle */
}
.seo-accordion-header::-webkit-details-marker {
    display: none;
}
.seo-accordion-content {
    padding: 0;
    border-top: 1px solid var(--border-card);
}
.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}
details[open] .accordion-icon {
    transform: rotate(180deg);
}

/* Navbar Links */
.nav-links {
    display: none; /* Hide on mobile */
}
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.nav-link:hover {
    color: var(--text-primary);
}

/* Remove 3D tilt JS logic, keep smooth CSS hover */
.portal-tool-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.portal-tool-card:hover {
    box-shadow: 0 10px 30px -10px var(--primary-light), 0 0 0 1px var(--primary-light);
}
.portal-tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.portal-tool-card:hover::before {
    opacity: 1;
}

/* Premium Glass & Gradient Breathe */
.premium-glass {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: var(--space-3xl) var(--space-xl);
    border-radius: 2rem;
}

.gradient-breathe {
    background-size: 200% auto;
    animation: gradient-breathe 4s ease infinite;
}

@keyframes gradient-breathe {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Staggered Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

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

/* Premium Search Bar */
.premium-search {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}
.premium-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}
.search-glow {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease;
}
.premium-search:focus-within .search-glow {
    opacity: 0.15;
}

/* ============================================================
   THEME DROPDOWN
   ============================================================ */
.theme-dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease forwards;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.theme-dropdown-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-subtle);
}
.theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}
.theme-grid::-webkit-scrollbar {
    width: 6px;
}
.theme-grid::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}
.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    background: var(--bg-card);
}
.theme-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-subtle);
}
.theme-option.active {
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
}
.theme-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.theme-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

