@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ═══ BRAND PALETTE ═══ */
    --primary:          #f97316;
    --primary-light:    #fb923c;
    --primary-dark:     #ea580c;
    --primary-glow:     rgba(249,115,22,0.5);
    --primary-soft:     rgba(249,115,22,0.15);

    --secondary:        #ec4899;
    --secondary-light:  #f472b6;
    --accent:           #8b5cf6;
    --accent-light:     #a78bfa;
    --success:          #10b981;
    --warning:          #f59e0b;
    --danger:           #ef4444;

    /* ═══ LIGHT THEME BACKGROUNDS ═══ */
    --bg:               #fff7ed;
    --bg-secondary:     #ffffff;
    --bg-card:          #ffffff;
    --bg-glass:         rgba(255,255,255,0.95);
    --sidebar-bg:       #1e1b4b;
    --sidebar-item:     rgba(255,255,255,0.08);
    --sidebar-active:   rgba(249,115,22,0.35);

    /* ═══ GRADIENTS ═══ */
    --grad-primary:     linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%);
    --grad-hero:        linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #6d28d9 100%);
    --grad-accent:      linear-gradient(135deg, #ec4899 0%, #f97316 50%, #8b5cf6 100%);
    --grad-success:     linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-warm:        linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-cool:        linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --grad-sunset:      linear-gradient(135deg, #f97316 0%, #ef4444 100%);

    /* ═══ TEXT ═══ */
    --text:             #0f172a;
    --text-muted:       #475569;
    --text-subtle:      #94a3b8;
    --text-on-dark:     #f1f5f9;

    /* ═══ BORDERS & SHADOWS ═══ */
    --border:           #fed7aa;
    --border-focus:     #f97316;
    --shadow-sm:        0 2px 8px rgba(249,115,22,0.12), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md:        0 8px 24px rgba(249,115,22,0.2), 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:        0 16px 48px rgba(249,115,22,0.25), 0 8px 24px rgba(0,0,0,0.12);
    --shadow-card:      0 4px 16px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover:     0 24px 64px rgba(249,115,22,0.3), 0 12px 32px rgba(0,0,0,0.15);
    --shadow-glow:      0 0 50px rgba(249,115,22,0.45);

    /* ═══ SIZES ═══ */
    --radius-sm:        10px;
    --radius-md:        14px;
    --radius-lg:        18px;
    --radius-xl:        28px;
    --radius-full:      9999px;
    --max-width:        1200px;

    /* ═══ TRANSITIONS ═══ */
    --trans-fast:       0.15s ease;
    --trans-normal:     0.25s ease;
    --trans-slow:       0.4s ease;

    /* ═══ TYPOGRAPHY ═══ */
    --font-main:        'Inter', sans-serif;
    --font-display:     'Outfit', sans-serif;
}

/* ─────────────────────────── RESET ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99,102,241,0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139,92,246,0.03) 0%, transparent 25%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─────────────────────────── LOADER ─────────────────────────── */
.loader-overlay {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-spinner {
    width: 44px; height: 44px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

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