/* =============================================================
   COLORS.CSS — Tailwind v3 color palette as CSS custom properties
   22 colors × 11 shades = 242 design tokens.

   Load order:  colors.css → base.css → nexus-theme.css

   Usage
   -----
   These are source tokens only — raw hex values, nothing else.
   Consume them in theme files via var(--tw-{color}-{shade}).
   Never reference --tw-* directly in component CSS or templates;
   always map through a semantic token (--palette-*, --bs-*, etc.)
   so that re-theming requires changing only the mapping layer.

   card_color DB field
   -------------------
   Store the bare Tailwind color name (e.g. "rose", "violet",
   "teal", "sky", "amber", "blue", "pink").  The CSS in
   landing.css generates .test-card-{color} for every name below.
   ============================================================= */

:root {
    /* ── Greys ──────────────────────────────────────────────── */

    /* Slate */
    --tw-slate-50:  #f8fafc; --tw-slate-100: #f1f5f9; --tw-slate-200: #e2e8f0;
    --tw-slate-300: #cbd5e1; --tw-slate-400: #94a3b8; --tw-slate-500: #64748b;
    --tw-slate-600: #475569; --tw-slate-700: #334155; --tw-slate-800: #1e293b;
    --tw-slate-900: #0f172a; --tw-slate-950: #020617;

    /* Gray */
    --tw-gray-50:  #f9fafb; --tw-gray-100: #f3f4f6; --tw-gray-200: #e5e7eb;
    --tw-gray-300: #d1d5db; --tw-gray-400: #9ca3af; --tw-gray-500: #6b7280;
    --tw-gray-600: #4b5563; --tw-gray-700: #374151; --tw-gray-800: #1f2937;
    --tw-gray-900: #111827; --tw-gray-950: #030712;

    /* Zinc */
    --tw-zinc-50:  #fafafa; --tw-zinc-100: #f4f4f5; --tw-zinc-200: #e4e4e7;
    --tw-zinc-300: #d4d4d8; --tw-zinc-400: #a1a1aa; --tw-zinc-500: #71717a;
    --tw-zinc-600: #52525b; --tw-zinc-700: #3f3f46; --tw-zinc-800: #27272a;
    --tw-zinc-900: #18181b; --tw-zinc-950: #09090b;

    /* Neutral */
    --tw-neutral-50:  #fafafa; --tw-neutral-100: #f5f5f5; --tw-neutral-200: #e5e5e5;
    --tw-neutral-300: #d4d4d4; --tw-neutral-400: #a3a3a3; --tw-neutral-500: #737373;
    --tw-neutral-600: #525252; --tw-neutral-700: #404040; --tw-neutral-800: #262626;
    --tw-neutral-900: #171717; --tw-neutral-950: #0a0a0a;

    /* Stone */
    --tw-stone-50:  #fafaf9; --tw-stone-100: #f5f5f4; --tw-stone-200: #e7e5e4;
    --tw-stone-300: #d6d3d1; --tw-stone-400: #a8a29e; --tw-stone-500: #78716c;
    --tw-stone-600: #57534e; --tw-stone-700: #44403c; --tw-stone-800: #292524;
    --tw-stone-900: #1c1917; --tw-stone-950: #0c0a09;

    /* ── Warm colours ───────────────────────────────────────── */

    /* Red */
    --tw-red-50:  #fef2f2; --tw-red-100: #fee2e2; --tw-red-200: #fecaca;
    --tw-red-300: #fca5a5; --tw-red-400: #f87171; --tw-red-500: #ef4444;
    --tw-red-600: #dc2626; --tw-red-700: #b91c1c; --tw-red-800: #991b1b;
    --tw-red-900: #7f1d1d; --tw-red-950: #450a0a;

    /* Orange */
    --tw-orange-50:  #fff7ed; --tw-orange-100: #ffedd5; --tw-orange-200: #fed7aa;
    --tw-orange-300: #fdba74; --tw-orange-400: #fb923c; --tw-orange-500: #f97316;
    --tw-orange-600: #ea580c; --tw-orange-700: #c2410c; --tw-orange-800: #9a3412;
    --tw-orange-900: #7c2d12; --tw-orange-950: #431407;

    /* Amber */
    --tw-amber-50:  #fffbeb; --tw-amber-100: #fef3c7; --tw-amber-200: #fde68a;
    --tw-amber-300: #fcd34d; --tw-amber-400: #fbbf24; --tw-amber-500: #f59e0b;
    --tw-amber-600: #d97706; --tw-amber-700: #b45309; --tw-amber-800: #92400e;
    --tw-amber-900: #78350f; --tw-amber-950: #451a03;

    /* Yellow */
    --tw-yellow-50:  #fefce8; --tw-yellow-100: #fef9c3; --tw-yellow-200: #fef08a;
    --tw-yellow-300: #fde047; --tw-yellow-400: #facc15; --tw-yellow-500: #eab308;
    --tw-yellow-600: #ca8a04; --tw-yellow-700: #a16207; --tw-yellow-800: #854d0e;
    --tw-yellow-900: #713f12; --tw-yellow-950: #422006;

    /* ── Greens ─────────────────────────────────────────────── */

    /* Lime */
    --tw-lime-50:  #f7fee7; --tw-lime-100: #ecfccb; --tw-lime-200: #d9f99d;
    --tw-lime-300: #bef264; --tw-lime-400: #a3e635; --tw-lime-500: #84cc16;
    --tw-lime-600: #65a30d; --tw-lime-700: #4d7c0f; --tw-lime-800: #3f6212;
    --tw-lime-900: #365314; --tw-lime-950: #1a2e05;

    /* Green */
    --tw-green-50:  #f0fdf4; --tw-green-100: #dcfce7; --tw-green-200: #bbf7d0;
    --tw-green-300: #86efac; --tw-green-400: #4ade80; --tw-green-500: #22c55e;
    --tw-green-600: #16a34a; --tw-green-700: #15803d; --tw-green-800: #166534;
    --tw-green-900: #14532d; --tw-green-950: #052e16;

    /* Emerald */
    --tw-emerald-50:  #ecfdf5; --tw-emerald-100: #d1fae5; --tw-emerald-200: #a7f3d0;
    --tw-emerald-300: #6ee7b7; --tw-emerald-400: #34d399; --tw-emerald-500: #10b981;
    --tw-emerald-600: #059669; --tw-emerald-700: #047857; --tw-emerald-800: #065f46;
    --tw-emerald-900: #064e3b; --tw-emerald-950: #022c22;

    /* Teal */
    --tw-teal-50:  #f0fdfa; --tw-teal-100: #ccfbf1; --tw-teal-200: #99f6e4;
    --tw-teal-300: #5eead4; --tw-teal-400: #2dd4bf; --tw-teal-500: #14b8a6;
    --tw-teal-600: #0d9488; --tw-teal-700: #0f766e; --tw-teal-800: #115e59;
    --tw-teal-900: #134e4a; --tw-teal-950: #042f2e;

    /* ── Blues ──────────────────────────────────────────────── */

    /* Cyan */
    --tw-cyan-50:  #ecfeff; --tw-cyan-100: #cffafe; --tw-cyan-200: #a5f3fc;
    --tw-cyan-300: #67e8f9; --tw-cyan-400: #22d3ee; --tw-cyan-500: #06b6d4;
    --tw-cyan-600: #0891b2; --tw-cyan-700: #0e7490; --tw-cyan-800: #155e75;
    --tw-cyan-900: #164e63; --tw-cyan-950: #083344;

    /* Sky */
    --tw-sky-50:  #f0f9ff; --tw-sky-100: #e0f2fe; --tw-sky-200: #bae6fd;
    --tw-sky-300: #7dd3fc; --tw-sky-400: #38bdf8; --tw-sky-500: #0ea5e9;
    --tw-sky-600: #0284c7; --tw-sky-700: #0369a1; --tw-sky-800: #075985;
    --tw-sky-900: #0c4a6e; --tw-sky-950: #082f49;

    /* Blue */
    --tw-blue-50:  #eff6ff; --tw-blue-100: #dbeafe; --tw-blue-200: #bfdbfe;
    --tw-blue-300: #93c5fd; --tw-blue-400: #60a5fa; --tw-blue-500: #3b82f6;
    --tw-blue-600: #2563eb; --tw-blue-700: #1d4ed8; --tw-blue-800: #1e40af;
    --tw-blue-900: #1e3a8a; --tw-blue-950: #172554;

    /* Indigo */
    --tw-indigo-50:  #eef2ff; --tw-indigo-100: #e0e7ff; --tw-indigo-200: #c7d2fe;
    --tw-indigo-300: #a5b4fc; --tw-indigo-400: #818cf8; --tw-indigo-500: #6366f1;
    --tw-indigo-600: #4f46e5; --tw-indigo-700: #4338ca; --tw-indigo-800: #3730a3;
    --tw-indigo-900: #312e81; --tw-indigo-950: #1e1b4b;

    /* ── Purples & pinks ─────────────────────────────────────── */

    /* Violet */
    --tw-violet-50:  #f5f3ff; --tw-violet-100: #ede9fe; --tw-violet-200: #ddd6fe;
    --tw-violet-300: #c4b5fd; --tw-violet-400: #a78bfa; --tw-violet-500: #8b5cf6;
    --tw-violet-600: #7c3aed; --tw-violet-700: #6d28d9; --tw-violet-800: #5b21b6;
    --tw-violet-900: #4c1d95; --tw-violet-950: #2e1065;

    /* Purple */
    --tw-purple-50:  #faf5ff; --tw-purple-100: #f3e8ff; --tw-purple-200: #e9d5ff;
    --tw-purple-300: #d8b4fe; --tw-purple-400: #c084fc; --tw-purple-500: #a855f7;
    --tw-purple-600: #9333ea; --tw-purple-700: #7e22ce; --tw-purple-800: #6b21a8;
    --tw-purple-900: #581c87; --tw-purple-950: #3b0764;

    /* Fuchsia */
    --tw-fuchsia-50:  #fdf4ff; --tw-fuchsia-100: #fae8ff; --tw-fuchsia-200: #f5d0fe;
    --tw-fuchsia-300: #f0abfc; --tw-fuchsia-400: #e879f9; --tw-fuchsia-500: #d946ef;
    --tw-fuchsia-600: #c026d3; --tw-fuchsia-700: #a21caf; --tw-fuchsia-800: #86198f;
    --tw-fuchsia-900: #701a75; --tw-fuchsia-950: #4a044e;

    /* Pink */
    --tw-pink-50:  #fdf2f8; --tw-pink-100: #fce7f3; --tw-pink-200: #fbcfe8;
    --tw-pink-300: #f9a8d4; --tw-pink-400: #f472b6; --tw-pink-500: #ec4899;
    --tw-pink-600: #db2777; --tw-pink-700: #be185d; --tw-pink-800: #9d174d;
    --tw-pink-900: #831843; --tw-pink-950: #500724;

    /* Rose */
    --tw-rose-50:  #fff1f2; --tw-rose-100: #ffe4e6; --tw-rose-200: #fecdd3;
    --tw-rose-300: #fda4af; --tw-rose-400: #fb7185; --tw-rose-500: #f43f5e;
    --tw-rose-600: #e11d48; --tw-rose-700: #be123c; --tw-rose-800: #9f1239;
    --tw-rose-900: #881337; --tw-rose-950: #4c0519;


    /* ── RGB channel companions ──────────────────────────────────
       Used for rgba(var(--tw-*-rgb), alpha) patterns.
       Only shades that actually appear in rgba() calls are listed.
       ──────────────────────────────────────────────────────────── */

    /* Slate */
    --tw-slate-50-rgb:  248, 250, 252;
    --tw-slate-400-rgb: 148, 163, 184;
    --tw-slate-500-rgb: 100, 116, 139;
    --tw-slate-800-rgb: 30, 41, 59;
    --tw-slate-900-rgb: 15, 23, 42;

    /* Stone */
    --tw-stone-100-rgb: 245, 245, 244;
    --tw-stone-200-rgb: 231, 229, 228;
    --tw-stone-900-rgb: 28, 25, 23;

    /* Zinc */
    --tw-zinc-800-rgb: 39, 39, 42;

    /* Red / Rose / Amber / Green / Emerald / Teal / Violet / Purple / Cyan */
    --tw-red-500-rgb:     239, 68, 68;
    --tw-rose-400-rgb:    251, 113, 133;
    --tw-rose-600-rgb:    225, 29, 72;
    --tw-amber-100-rgb:   254, 243, 199;
    --tw-amber-600-rgb:   217, 119, 6;
    --tw-green-600-rgb:   22, 163, 74;
    --tw-green-700-rgb:   21, 128, 61;
    --tw-green-900-rgb:   20, 83, 45;
    --tw-emerald-500-rgb: 16, 185, 129;
    --tw-teal-200-rgb:    153, 246, 228;
    --tw-teal-600-rgb:    13, 148, 136;
    --tw-sky-200-rgb:     186, 230, 253;
    --tw-cyan-400-rgb:    34, 211, 238;
    --tw-violet-300-rgb:  196, 181, 253;
    --tw-violet-600-rgb:  124, 58, 237;
    --tw-purple-500-rgb:  168, 85, 247;

    /* Indigo */
    --tw-indigo-300-rgb: 165, 180, 252;
    --tw-indigo-500-rgb: 99, 102, 241;
    --tw-indigo-600-rgb: 79, 70, 229;
    --tw-indigo-950-rgb: 30, 27, 75;
}
/* =============================================================
   BASE.CSS  — Global design system for Nexus / LifeAimLab
   Fonts: Manrope (sans) + Playfair Display (serif)
   Palette: off-white body #FAF9F6, indigo accent #6366f1
   Built on Bootstrap 5.3 — mobile-first
   ============================================================= */

/* ── Root variables ─────────────────────────────────────────── */
:root {
    /* Brand */
    --nexus-indigo: var(--tw-indigo-500);
    --nexus-indigo-dark: var(--tw-indigo-600);
    --nexus-indigo-deeper: var(--tw-indigo-700);

    /* Body & surfaces */
    --nexus-body-bg: var(--tw-neutral-100);
    --nexus-card-bg: white;
    /* Text */
    --nexus-text: var(--tw-zinc-900);
    --nexus-text-secondary: var(--tw-zinc-500);
    --nexus-border: rgba(0, 0, 0, 0.08);
    --nexus-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);

    /* Easing */
    --ease-out-spring: cubic-bezier(0.22, 1, 0.36, 1);

    /* OCEAN Model Colors — shared across discovery and insights */
    --nexus-openness: var(--tw-amber-400);
    --nexus-conscientiousness: var(--tw-red-500);
    --nexus-extraversion: var(--tw-pink-600);
    --nexus-agreeableness: var(--tw-green-500);
    --nexus-neuroticism: var(--tw-cyan-400);
}

/* ── Base resets ────────────────────────────────────────────── */
html,
body {
    background-color: var(--nexus-body-bg);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--nexus-text);
}

/* ── Typography ─────────────────────────────────────────────── */

/* Headings use Playfair Display */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif !important;
}

/* Fluid Typography */
h1,
.h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
}

h2,
.h2 {
    font-size: clamp(1.75rem, 4vw + 1rem, 2.8rem);
}

h3,
.h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.25rem);
}

h4,
.h4 {
    font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
}

p,
.text-body {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
    line-height: 1.7;
}

/* ── Accessibility: touch targets ───────────────────────────── */

/* Minimum 44px touch targets for mobile */
.btn,
.nav-link,
.dropdown-item,
.form-control {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Prevent iOS Safari auto-zoom on inputs (font-size < 16px triggers zoom) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font-size: 16px;
}

/* ── Colour utilities ───────────────────────────────────────── */
.text-indigo {
    color: var(--nexus-indigo);
}

.bg-indigo {
    background-color: var(--nexus-indigo) !important;
}

.text-bg-indigo {
    background-color: var(--tw-indigo-50);
    color: var(--nexus-indigo-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Primary CTA button — colours set in nexus-theme.css */
.cta {
    min-height: 60px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: white;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover,
.cta:focus-visible {
    color: white;
    transform: translateY(-3px);
}

.cta:active {
    transform: translateY(1px);
}

.cta-sm {
    min-height: 52px;
    font-size: 1rem;
}

/* ── Interaction helpers ─────────────────────────────────────── */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

/* ── Animations ─────────────────────────────────────────────── */
.animate-fade-in {
    animation: fadeIn 0.45s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* ── HTMX ───────────────────────────────────────────────────── */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: block !important;
}

/* ── Report Navbar ──────────────────────────────────────────── */
.report-navbar {
    width: 100%;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.13);
    overflow: visible;
}

/* Main content spacing — handled by sticky-top naturally */
body > main {
    padding-top: 0;
}

.report-navbar-watermark {
    display: none;
}

.report-navbar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.report-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--tw-zinc-900);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.report-navbar-brand i {
    font-size: 1.25rem;
    color: var(--tw-indigo-500);
}

.report-navbar-logo {
    width: 67px;
    height: 67px;
    object-fit: contain;
    margin-top: -20px;
    margin-bottom: -20px;
}

.report-navbar-brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-left: -10px;
}

.report-navbar-brand:hover {
    color: var(--nexus-indigo);
    text-decoration: none;
}

.report-navbar-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.report-navbar-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.55rem;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tw-zinc-700);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
    min-height: auto;
}

.report-navbar-tab i {
    font-size: 0.85rem;
    line-height: 1;
}

.report-navbar-tab span {
    display: none;
}

.report-navbar-tab:hover {
    color: var(--tw-zinc-900);
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.report-navbar-tab.active {
    color: var(--tw-indigo-800);
    background: rgba(var(--tw-indigo-500-rgb), 0.09);
    border-color: rgba(var(--tw-indigo-500-rgb), 0.18);
    font-weight: 700;
}

.report-navbar-end {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
}

.report-navbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(var(--tw-indigo-500-rgb), 0.1);
    color: var(--tw-indigo-700);
    white-space: nowrap;
}

.report-navbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    color: var(--tw-slate-600);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    min-height: auto;
}

.report-navbar-icon-btn:hover {
    color: var(--tw-slate-900);
    background: rgba(var(--tw-slate-800-rgb), 0.07);
}

/* ── Navbar icon colours ────────────────────────────────────── */
/* Report tabs */
.report-navbar-tab .bi-grid-1x2   { color: var(--tw-indigo-500); }
.report-navbar-tab .bi-newspaper   { color: var(--tw-rose-500); }
.report-navbar-tab .bi-beaker      { color: var(--tw-emerald-600); }
.report-navbar-tab .bi-briefcase   { color: var(--tw-amber-600); }

/* Icon buttons */
.report-navbar-icon-btn .bi-stars      { color: var(--tw-amber-500); }
.report-navbar-icon-btn .bi-house-door { color: var(--tw-indigo-500); }
.report-navbar-icon-btn .bi-gear       { color: var(--tw-slate-500); }

/* Auth buttons — smaller than stock btn-sm to fit the compact navbar */
.report-navbar-end .btn {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
}

/* Standard navbar category tab icons — one color per slot */
.report-navbar-cats .report-navbar-tab i { font-size: 2.1rem; }

.report-navbar-cats .report-navbar-tab:nth-child(1)  i { color: var(--tw-indigo-500); }
.report-navbar-cats .report-navbar-tab:nth-child(2)  i { color: var(--tw-rose-500); }
.report-navbar-cats .report-navbar-tab:nth-child(3)  i { color: var(--tw-rose-600); }
.report-navbar-cats .report-navbar-tab:nth-child(4)  i { color: var(--tw-amber-500); }
.report-navbar-cats .report-navbar-tab:nth-child(5)  i { color: var(--tw-violet-500); }
.report-navbar-cats .report-navbar-tab:nth-child(6)  i { color: var(--tw-teal-500); }
.report-navbar-cats .report-navbar-tab:nth-child(7)  i { color: var(--tw-pink-500); }
.report-navbar-cats .report-navbar-tab:nth-child(8)  i { color: var(--tw-orange-500); }
.report-navbar-cats .report-navbar-tab:nth-child(9)  i { color: var(--tw-sky-500); }
.report-navbar-cats .report-navbar-tab:nth-child(10) i { color: var(--tw-lime-600); }
.report-navbar-cats .report-navbar-tab:nth-child(11) i { color: var(--tw-fuchsia-500); }
.report-navbar-cats .report-navbar-tab:nth-child(12) i { color: var(--tw-cyan-500); }

.report-navbar-tagline-strip {
    display: none;
}

/* Category tabs — scrollable row for 12 icons */
.report-navbar-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(to right, transparent 0, black 1rem, black calc(100% - 1rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 1rem, black calc(100% - 1rem), transparent 100%);
}

.report-navbar-cats::-webkit-scrollbar { display: none; }

.report-navbar-cats .report-navbar-tab {
    scroll-snap-align: start;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .report-navbar-tab span {
        display: inline;
    }

    .report-navbar-tab {
        padding: 0.5rem 0.85rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 992px) {
    .report-navbar-row {
        padding: 0.6rem 0;
    }

    .report-navbar-brand-text {
        font-size: 1.2rem;
    }

    .report-navbar-tab {
        padding: 0.55rem 1.1rem;
        font-size: 0.76rem;
        border-radius: 0.6rem;
        gap: 0.4rem;
    }

    .report-navbar-tab i {
        font-size: 0.9rem;
    }

    .report-navbar-watermark {
        font-size: 7rem;
        right: 5%;
    }

    .report-navbar-tagline {
        font-size: 0.7rem;
    }
}

/* ── Standard navbar — mobile collapse panel ────────────────── */
.report-navbar-mobile-panel {
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.report-navbar-mobile-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.report-navbar-mobile-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.4rem;
    border-radius: 0.6rem;
    text-decoration: none;
    color: var(--tw-zinc-700);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.report-navbar-mobile-cat i {
    font-size: 1.5rem;
    line-height: 1;
}

.report-navbar-mobile-cat:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--tw-zinc-900);
    text-decoration: none;
}

/* Mirror the desktop slot colours */
.report-navbar-mobile-cats a:nth-child(1)  i { color: var(--tw-indigo-500); }
.report-navbar-mobile-cats a:nth-child(2)  i { color: var(--tw-rose-500); }
.report-navbar-mobile-cats a:nth-child(3)  i { color: var(--tw-rose-600); }
.report-navbar-mobile-cats a:nth-child(4)  i { color: var(--tw-amber-500); }
.report-navbar-mobile-cats a:nth-child(5)  i { color: var(--tw-violet-500); }
.report-navbar-mobile-cats a:nth-child(6)  i { color: var(--tw-teal-500); }
.report-navbar-mobile-cats a:nth-child(7)  i { color: var(--tw-pink-500); }
.report-navbar-mobile-cats a:nth-child(8)  i { color: var(--tw-orange-500); }
.report-navbar-mobile-cats a:nth-child(9)  i { color: var(--tw-sky-500); }
.report-navbar-mobile-cats a:nth-child(10) i { color: var(--tw-lime-600); }
.report-navbar-mobile-cats a:nth-child(11) i { color: var(--tw-fuchsia-500); }
.report-navbar-mobile-cats a:nth-child(12) i { color: var(--tw-cyan-500); }

.report-navbar-mobile-auth {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.report-navbar-mobile-user {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tw-zinc-600);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    background-color: var(--tw-zinc-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tw-indigo-300);
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: white;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    margin: 0 0.15rem;
    font-size: 0.8rem;
    transition: color 0.15s ease;
}

.footer-legal:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
}

.footer-social-icon:hover {
    background: rgba(var(--tw-indigo-500-rgb), 0.3);
    color: white;
}

.footer-cta-card {
    background: var(--tw-zinc-800);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
    max-width: 300px;
}

.footer-cta-body {
    opacity: 0.85;
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

/* Landing page bottom CTA text */
.bottom-cta-text {
    max-width: 480px;
}

/* ── Shared Surfaces & Utilities ────────────────────────────── */
.nexus-surface {
    background-color: var(--nexus-card-bg, white);
    border: 1px solid var(--nexus-border, rgba(0, 0, 0, 0.08));
    border-radius: 0.875rem;
    box-shadow: var(--nexus-card-shadow, 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04));
    position: relative;
    overflow: hidden;
}

/* ── What's Next (shared across articles + results) ─────────── */
.wn-section { padding-block: 2rem 1rem; }

.wn-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.wn-sub {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tw-indigo-500);
    margin: 0.25rem 0 0;
}

.wn-header { margin-bottom: 1.25rem; }

.wn-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 576px) {
    .wn-list { grid-template-columns: repeat(3, 1fr); }
}

.wn-link { text-decoration: none; display: block; height: 100%; }

.wn-card {
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.wn-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bs-box-shadow-lg);
    border-color: var(--tw-indigo-500);
}

.wn-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bs-body-secondary-bg);
}

.wn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wn-card:hover .wn-img img { transform: scale(1.04); }

.wn-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wn-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tw-indigo-500);
    display: block;
    margin-bottom: 0.5rem;
}

.wn-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bs-body-color);
    margin: 0 0 0.4rem;
    padding-bottom: 0;
}

.wn-preview {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--bs-body-secondary-color);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wn-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tw-indigo-500);
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.nexus-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    color: rgba(var(--tw-indigo-500-rgb), 0.04);
}/* =============================================================
   NEXUS-THEME.CSS — Indigo & Violet palette for LifeAimLab
   Overrides Bootstrap 5.3 CSS variables + component styles.
   Palette: Deep Indigo · Aura Violet · Teal · Slate
   Design goal: sharp, modern, gender-neutral self-discovery
   Mobile-first — loaded AFTER base.css for clean cascading.
   ============================================================= */


/* ── 1. Palette source tokens ───────────────────────────────────
   Maps Tailwind color tokens (from colors.css) to semantic
   palette names used throughout this theme.  To shift a color,
   change the var() reference here — never edit a hex value in
   any rule below this block.

   Tailwind mapping
   ----------------
   rose (primary) → tw-indigo-500   #6366f1
   lavender       → tw-violet-300   #c4b5fd
   mint           → tw-teal-200     #99f6e4
   sky            → tw-sky-200      #bae6fd
   butter         → tw-amber-100    #fef3c7
   ──────────────────────────────────────────────────────────── */
:root {
    /* Primary — indigo (tw-indigo family); named "rose" for backwards compat */
    --palette-rose:              var(--tw-indigo-500);   /* #6366f1 */
    --palette-rose-rgb:          var(--tw-indigo-500-rgb);
    --palette-rose-light:        var(--tw-indigo-400);   /* #818cf8 — gradient highlight */
    --palette-rose-dark:         var(--tw-indigo-600);   /* #4f46e5 — hover / pressed    */
    --palette-rose-deep:         var(--tw-indigo-800);   /* #3730a3 — text emphasis      */
    --palette-rose-tint:         var(--tw-indigo-50);    /* #eef2ff — subtle bg          */
    --palette-rose-border:       var(--tw-indigo-200);   /* #c7d2fe — subtle border      */

    /* Lavender — secondary / accent (tw-violet family) */
    --palette-lavender:          var(--tw-violet-300); /* #c4b5fd */
    --palette-lavender-rgb:      var(--tw-violet-300-rgb);
    --palette-lavender-dark:     var(--tw-violet-400); /* #a78bfa — hover secondary    */
    --palette-lavender-deep:     var(--tw-violet-700); /* #6d28d9 — text emphasis      */
    --palette-lavender-tint:     var(--tw-violet-50);  /* #f5f3ff — subtle bg          */
    --palette-lavender-border:   var(--tw-violet-200); /* #ddd6fe — subtle border      */

    /* Mint — success (tw-teal family) */
    --palette-mint:              var(--tw-teal-200);   /* #99f6e4 */
    --palette-mint-rgb:          var(--tw-teal-200-rgb);
    --palette-mint-deep:         var(--tw-teal-600);   /* #0d9488 — text emphasis      */
    --palette-mint-tint:         var(--tw-teal-50);    /* #f0fdfa — subtle bg          */
    --palette-mint-border:       var(--tw-teal-100);   /* #ccfbf1 — subtle border      */

    /* Sky — info (tw-sky family) */
    --palette-sky:               var(--tw-sky-200);    /* #bae6fd */
    --palette-sky-rgb:           var(--tw-sky-200-rgb);
    --palette-sky-deep:          var(--tw-sky-700);    /* #0369a1 — text emphasis      */
    --palette-sky-tint:          var(--tw-sky-50);     /* #f0f9ff — subtle bg          */
    --palette-sky-border:        var(--tw-sky-100);    /* #e0f2fe — subtle border      */

    /* Butter — warning / accent (tw-amber family) */
    --palette-butter:            var(--tw-amber-100);  /* #fef3c7 */
    --palette-butter-rgb:        var(--tw-amber-100-rgb);
    --palette-butter-deep:       var(--tw-amber-700);  /* #b45309 — text emphasis      */
    --palette-butter-tint:       var(--tw-amber-50);   /* #fffbeb — subtle bg          */
    --palette-butter-border:     var(--tw-amber-200);  /* #fde68a — subtle border      */

    /* Neutrals */
    --palette-ivory:             var(--tw-slate-50);    /* body background         */
    --palette-ivory-rgb:         var(--tw-slate-50-rgb);
    --palette-ivory-warm:        var(--tw-stone-100);   /* secondary surface       */
    --palette-ivory-deep:        var(--tw-stone-200);   /* tertiary surface        */
    --palette-border:            var(--tw-stone-200);   /* default border          */
    --palette-ink:               var(--tw-stone-900);   /* headings / emphasis     */
    --palette-ink-rgb:           var(--tw-stone-900-rgb);
    --palette-charcoal:          var(--tw-zinc-800);    /* body text               */
    --palette-charcoal-rgb:      var(--tw-zinc-800-rgb);
    --palette-text-muted:        var(--tw-stone-500);   /* secondary text / icons  */

    /* Dark surfaces (footer) */
    --palette-footer-bg:         var(--tw-stone-900);   /* deep dark bg            */
    --palette-footer-cta:        var(--tw-slate-800);   /* dark cta surface        */
    --palette-footer-heading:    var(--tw-indigo-300);  /* indigo accent heading   */


    /* ── Bootstrap 5.3 core token overrides ─────────────────── */

    /* Semantic colours */
    --bs-primary:                var(--palette-rose);
    --bs-primary-rgb:            var(--tw-indigo-500-rgb);
    --bs-secondary:              var(--palette-lavender);
    --bs-secondary-rgb:          var(--tw-violet-300-rgb);
    --bs-success:                var(--palette-mint);
    --bs-success-rgb:            158, 217, 204;
    --bs-info:                   var(--palette-sky);
    --bs-info-rgb:               168, 216, 232;
    --bs-warning:                var(--palette-butter);
    --bs-warning-rgb:            248, 233, 184;
    --bs-danger:                 var(--palette-rose);
    --bs-danger-rgb:             99, 102, 241;

    /* Surfaces & text */
    --bs-body-bg:                var(--palette-ivory);
    --bs-body-color:             var(--palette-charcoal);
    --bs-body-color-rgb:         var(--tw-zinc-800-rgb);
    --bs-emphasis-color:         var(--palette-ink);
    --bs-emphasis-color-rgb:     var(--tw-stone-900-rgb);
    --bs-secondary-color:        rgba(var(--palette-charcoal-rgb), 0.60);
    --bs-secondary-color-rgb:    var(--tw-zinc-800-rgb);
    --bs-tertiary-color:         rgba(var(--palette-charcoal-rgb), 0.38);
    --bs-tertiary-color-rgb:     var(--tw-zinc-800-rgb);
    --bs-secondary-bg:           var(--palette-ivory-warm);
    --bs-secondary-bg-rgb:       var(--tw-stone-100-rgb);
    --bs-tertiary-bg:            var(--palette-ivory-deep);
    --bs-tertiary-bg-rgb:        var(--tw-stone-200-rgb);

    /* Borders */
    --bs-border-color:           var(--palette-border);
    --bs-border-color-translucent: rgba(var(--palette-rose-rgb), 0.12);

    /* Radius — clean and rounded */
    --bs-border-radius:          1rem;
    --bs-border-radius-sm:       0.75rem;
    --bs-border-radius-lg:       1.25rem;
    --bs-border-radius-xl:       1.5rem;
    --bs-border-radius-xxl:      2rem;
    --bs-border-radius-pill:     9999px;

    /* Shadows — indigo-tinted */
    --bs-box-shadow:      0 8px 28px -8px rgba(var(--palette-rose-rgb), 0.22);
    --bs-box-shadow-sm:   0 2px 10px -4px rgba(var(--palette-rose-rgb), 0.14);
    --bs-box-shadow-lg:   0 18px 44px -12px rgba(var(--palette-lavender-rgb), 0.26);
    --bs-box-shadow-inset: inset 0 1px 3px rgba(var(--palette-rose-rgb), 0.08);

    /* Links */
    --bs-link-color:             var(--palette-rose);
    --bs-link-color-rgb:         99, 102, 241;
    --bs-link-hover-color:       var(--palette-rose-dark);
    --bs-link-hover-color-rgb:   79, 70, 229;
    --bs-link-decoration:        underline;

    /* Subtle colour variants — alerts, badges, etc. */
    --bs-primary-text-emphasis:  var(--palette-rose-deep);
    --bs-secondary-text-emphasis:var(--palette-lavender-deep);
    --bs-success-text-emphasis:  var(--palette-mint-deep);
    --bs-info-text-emphasis:     var(--palette-sky-deep);
    --bs-warning-text-emphasis:  var(--palette-butter-deep);
    --bs-danger-text-emphasis:   var(--palette-rose-deep);

    --bs-primary-bg-subtle:      var(--palette-rose-tint);
    --bs-secondary-bg-subtle:    var(--palette-lavender-tint);
    --bs-success-bg-subtle:      var(--palette-mint-tint);
    --bs-info-bg-subtle:         var(--palette-sky-tint);
    --bs-warning-bg-subtle:      var(--palette-butter-tint);
    --bs-danger-bg-subtle:       var(--palette-rose-tint);

    --bs-primary-border-subtle:  var(--palette-rose-border);
    --bs-secondary-border-subtle:var(--palette-lavender-border);
    --bs-success-border-subtle:  var(--palette-mint-border);
    --bs-info-border-subtle:     var(--palette-sky-border);
    --bs-warning-border-subtle:  var(--palette-butter-border);
    --bs-danger-border-subtle:   var(--palette-rose-border);

    /* Gradient — indigo to violet */
    --bs-gradient: linear-gradient(135deg, var(--palette-rose) 0%, var(--palette-rose-light) 100%);

    /* Typography */
    --bs-font-sans-serif:  'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-size:   1.05rem;
    --bs-body-line-height: 1.65;
    --bs-heading-color:    var(--palette-ink);

    /* Focus ring — soft indigo */
    --bs-focus-ring-color: rgba(var(--palette-rose-rgb), 0.28);
    --bs-focus-ring-width: 3px;

    /* ── Nexus brand token re-map to indigo palette ────────── */
    --nexus-indigo:          var(--palette-rose);
    --nexus-indigo-dark:     var(--palette-rose-dark);
    --nexus-indigo-deeper:   var(--palette-rose-deep);
    --nexus-body-bg:         var(--palette-ivory);
    --nexus-card-bg:         white;
    --nexus-text:            var(--palette-charcoal);
    --nexus-text-secondary:  var(--palette-text-muted);
    --nexus-border:          rgba(var(--palette-rose-rgb), 0.12);
    --nexus-card-shadow:     0 4px 18px -4px rgba(var(--palette-rose-rgb), 0.13),
                             0 1px 4px rgba(0, 0, 0, 0.04);
}


/* ── 2. Body & global base ──────────────────────────────────── */
html,
body {
    background-color: var(--nexus-body-bg);
    color: var(--nexus-text);
}

/* Subtle dual-tone ambient wash — indigo top-left, teal bottom-right */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 8%   0%,  rgba(var(--palette-rose-rgb),     0.05) 0%, transparent 65%),
        radial-gradient(ellipse 55% 40% at 92% 100%,  rgba(var(--palette-lavender-rgb), 0.06) 0%, transparent 65%),
        radial-gradient(ellipse 50% 30% at 50%  50%,  rgba(var(--palette-mint-rgb),     0.025) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}


/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
    color: var(--bs-heading-color);
    line-height: 1.08;
    letter-spacing: -0.015em;
}

p,
.text-body {
    color: var(--nexus-text);
}


/* ── 4. Buttons ─────────────────────────────────────────────── */
.btn {
    border-radius: var(--bs-border-radius-pill);
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Primary — indigo gradient */
.btn-primary {
    --bs-btn-color:              white;
    --bs-btn-bg:                 var(--palette-rose);
    --bs-btn-border-color:       var(--palette-rose);
    --bs-btn-hover-color:        white;
    --bs-btn-hover-bg:           var(--palette-rose-dark);
    --bs-btn-hover-border-color: var(--palette-rose-dark);
    --bs-btn-focus-shadow-rgb:   var(--palette-rose-rgb);
    --bs-btn-active-color:       white;
    --bs-btn-active-bg:          var(--palette-rose-dark);
    --bs-btn-active-border-color:var(--palette-rose-dark);
    --bs-btn-disabled-bg:        var(--palette-rose);
    --bs-btn-disabled-border-color: var(--palette-rose);
    background: var(--bs-gradient);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--palette-rose-dark) 0%, var(--palette-rose) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 28px -6px rgba(var(--palette-rose-rgb), 0.48);
}

/* Secondary — violet */
.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--palette-lavender-dark);
    border-color: var(--palette-lavender-dark);
    color: white;
}

/* Outline primary */
.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--palette-rose-dark) 0%, var(--palette-rose) 100%);
    border-color: transparent;
    color: white;
}

/* Light button */
.btn-light:hover {
    box-shadow: 0 6px 18px -6px rgba(var(--palette-rose-rgb), 0.28);
}


/* ── 5. CTA custom class — indigo gradient ──────────────────── */
.cta {
    background: var(--bs-gradient);
    box-shadow: 0 8px 24px -4px rgba(var(--palette-rose-rgb), 0.40);
}

.cta:hover,
.cta:focus-visible {
    color: white;
    background: linear-gradient(135deg, var(--palette-rose-light) 0%, var(--palette-rose) 100%);
    box-shadow: 0 14px 30px -6px rgba(var(--palette-rose-rgb), 0.50);
}

.cta:active {
    box-shadow: 0 4px 12px -4px rgba(var(--palette-rose-rgb), 0.36);
}


/* ── 6. Cards & surfaces ─────────────────────────────────────── */
.card {
    border-color: var(--bs-border-color);
    box-shadow: var(--nexus-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bs-box-shadow);
}

.card-header {
    background-color: var(--bs-primary-bg-subtle);
    border-bottom-color: var(--bs-primary-border-subtle);
}

/* Nexus shared surface */
.nexus-surface {
    border-color: var(--nexus-border);
    box-shadow: var(--nexus-card-shadow);
}

.nexus-surface:hover {
    box-shadow: var(--bs-box-shadow);
}

/* Ghost watermark colour */
.nexus-watermark {
    color: rgba(var(--palette-rose-rgb), 0.06);
}

/* Hover-lift shadow */
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem -4px rgba(var(--palette-rose-rgb), 0.22) !important;
}


/* ── 7. Form controls ───────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--palette-rose-rgb), 0.50);
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: rgba(var(--palette-rose-rgb), 0.50);
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.form-range::-webkit-slider-thumb {
    background-color: var(--bs-primary);
}

.form-range::-moz-range-thumb {
    background-color: var(--bs-primary);
}


/* ── 8. Badges & pills ──────────────────────────────────────── */
.badge.bg-primary,
.badge.text-bg-primary {
    background: var(--bs-gradient) !important;
    color: white;
}

.badge.bg-secondary,
.badge.text-bg-secondary {
    background-color: var(--bs-secondary) !important;
    color: white;
}


/* ── 9. Alerts ──────────────────────────────────────────────── */
.alert-primary {
    background-color: var(--bs-primary-bg-subtle);
    border-color:     var(--bs-primary-border-subtle);
    color:            var(--bs-primary-text-emphasis);
}

.alert-secondary {
    background-color: var(--bs-secondary-bg-subtle);
    border-color:     var(--bs-secondary-border-subtle);
    color:            var(--bs-secondary-text-emphasis);
}


/* ── 10. Progress bars ─────────────────────────────────────── */
.progress-bar {
    background: var(--bs-gradient);
}

.progress {
    background-color: var(--bs-primary-bg-subtle);
}


/* ── 11. List groups ─────────────────────────────────────────── */
.list-group-item.active {
    background: var(--bs-gradient);
    border-color: transparent;
}

.list-group-item:hover {
    background-color: var(--bs-primary-bg-subtle);
}


/* ── 12. Tabs & nav pills ────────────────────────────────────── */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color:               var(--bs-primary-text-emphasis);
    border-bottom-color: var(--bs-primary);
    background-color:    var(--bs-primary-bg-subtle);
}

.nav-tabs .nav-link:hover {
    border-color: var(--bs-primary-border-subtle) var(--bs-primary-border-subtle) transparent;
    color: var(--bs-primary);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--bs-gradient);
    color: white;
}

.nav-pills .nav-link:hover {
    color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
}


/* ── 13. Colour utility re-map (indigo stays indigo) ─────────── */
.text-indigo {
    color: var(--bs-primary) !important;
}

.bg-indigo {
    background-color: var(--bs-primary) !important;
}

.text-bg-indigo {
    background-color: var(--bs-primary-bg-subtle);
    color:            var(--bs-primary-text-emphasis);
}


/* ── 14. Report Navbar — frosted glass retheme ──────────────── */
.report-navbar {
    background: rgba(var(--palette-ivory-rgb), 0.92);
    border-bottom: 1px solid rgba(var(--palette-rose-rgb), 0.14);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
}

/* Thin gradient top accent line */
.report-navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--palette-rose-light) 0%,
        var(--palette-lavender) 50%,
        var(--palette-mint) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Ghosted BI star — decorative background watermark */
.report-navbar::after {
    content: '';
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    width: 4.5rem;
    height: 4.5rem;
    /* SVG fill colour must be URL-encoded hex; CSS vars cannot reach inside data URIs */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366f1'%3E%3Cpath d='M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.report-navbar-brand {
    color: var(--bs-emphasis-color);
}

.report-navbar-brand i {
    color: var(--bs-primary);
}

.report-navbar-brand:hover {
    color: var(--bs-primary);
}

.report-navbar-tab:hover {
    color: var(--bs-emphasis-color);
    background: rgba(var(--palette-rose-rgb), 0.07);
}

.report-navbar-tab.active {
    color: var(--bs-primary-text-emphasis);
    background: rgba(var(--palette-rose-rgb), 0.10);
    border-color: rgba(var(--palette-rose-rgb), 0.22);
}

.report-navbar-user {
    background: rgba(var(--palette-lavender-rgb), 0.14);
    color: var(--bs-secondary-text-emphasis);
}

.report-navbar-icon-btn {
    color: var(--nexus-text-secondary);
}

.report-navbar-icon-btn:hover {
    color: var(--bs-primary);
    background: rgba(var(--palette-rose-rgb), 0.09);
}


/* ── 15. Footer — deep dark + indigo accents ────────────────── */
.footer {
    background-color: var(--palette-footer-bg);
    border-top: 1px solid rgba(var(--palette-rose-rgb), 0.12);
}

.footer-heading {
    color: var(--palette-footer-heading);
}

.footer-social-icon:hover {
    background: rgba(var(--palette-rose-rgb), 0.24);
    color: white;
}

/* Footer CTA card */
.footer-cta-card {
    background: var(--palette-footer-cta);
    border-color: rgba(var(--palette-rose-rgb), 0.18);
    position: relative;
    overflow: hidden;
}

/* Ghosted BI gem — bottom-right watermark */
.footer-cta-card::before {
    content: '';
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    width: 9rem;
    height: 9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366f1'%3E%3Cpath d='M3.1.7a.5.5 0 0 1 .4-.2h9a.5.5 0 0 1 .4.2l2.976 3.974c.149.185.156.45.01.644L8.4 15.3a.5.5 0 0 1-.8 0L.1 5.3a.5.5 0 0 1 0-.6zM11.239 4.5 9.046 1H6.954L4.761 4.5zm.637.5H12.5l-4.5 8.097zm-5.773 8.097L1.5 5H4.124zM4.58 5 7.25 1H4.574L2.19 5zM7.75 1l2.67 4H7.75zm2.507 4h2.313L10.576 1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.09;
    pointer-events: none;
    z-index: 0;
}

/* Ghosted BI lightning — top-left watermark */
.footer-cta-card::after {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: -1.5rem;
    width: 7rem;
    height: 7rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c4b5fd'%3E%3Cpath d='M5.52.359A.5.5 0 0 1 6 0h4a.5.5 0 0 1 .474.658L8.694 6H12.5a.5.5 0 0 1 .395.807l-7 9a.5.5 0 0 1-.873-.454L6.823 9.5H3.5a.5.5 0 0 1-.48-.641z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

/* Keep text above the watermarks */
.footer-cta-card > * {
    position: relative;
    z-index: 1;
}


/* ── 16. Scrollbar — WebKit, subtle indigo ──────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nexus-body-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--palette-rose-rgb), 0.22);
    border-radius: var(--bs-border-radius-pill);
    border: 2px solid var(--nexus-body-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--palette-rose-rgb), 0.42);
}


/* ── 17. Text selection ─────────────────────────────────────── */
::selection {
    background: rgba(var(--palette-rose-rgb), 0.18);
    color: var(--bs-emphasis-color);
}


/* ── 18. Mobile touch targets (48 px+) ──────────────────────── */
@media (max-width: 575.98px) {
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
}


/* ── 19. Reduced-motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .card,
    .hover-lift,
    .nexus-surface {
        transition: none !important;
    }

    .btn:hover,
    .card:hover,
    .hover-lift:hover {
        transform: none !important;
    }

    body::before {
        display: none;
    }
}
