/* ═══════════════════════════════════════════════════════════════════════════════
   HIMMAT KARO — Dark Cinematic Theme
   Charcoal + Silver + Crimson Red | Hero-Matched
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Background ────────────────────────────────────────────────────────────── */
body {
    background: linear-gradient(180deg, rgba(6,8,13,0.38), rgba(6,8,13,0.48)), linear-gradient(180deg, rgba(13,17,23,0.84), rgba(13,17,23,0.90)), url('/images/portal-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

/* ── Default (Dark) Theme Variables ───────────────────────────────────────── */
:root {
    --bg-deep: #0d1117;
    --bg-primary: #161b22;
    --bg-secondary: #1c2128;
    --bg-tertiary: #21262d;
    --bg-elevated: #1c2128;

    --accent-coral: #FF2D46;
    --accent-coral-light: #FF6B7A;
    --accent-coral-dim: rgba(255, 45, 70, 0.14);
    --accent-teal: #81CDBD;
    --accent-teal-light: #A9E1D5;
    --accent-teal-dim: rgba(129, 205, 189, 0.12);

    --text-primary: #F0F0F0;
    --text-secondary: #A0AEC0;
    --text-muted: #6B7A8D;
    --text-coral: #FF2D46;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(255, 45, 70, 0.30);
    --border-teal: rgba(129, 205, 189, 0.25);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.40);
    --shadow-glow-coral: 0 0 30px rgba(255, 45, 70, 0.15);
    --shadow-glow-teal: 0 0 30px rgba(129, 205, 189, 0.10);

    --glass-bg: rgba(22, 27, 34, 0.80);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-blur: 20px;

    --gradient-coral: linear-gradient(135deg, #FF2D46, #E0162E);
    --gradient-classy: linear-gradient(135deg, #FF2D46, #D4A853);
    --gradient-hero: linear-gradient(160deg, #0d1117 0%, #161b22 40%, #1c2128 100%);
    --gradient-card: linear-gradient(145deg, rgba(28, 33, 40, 0.9), rgba(33, 38, 45, 0.7));
    --gradient-books: linear-gradient(160deg, #0d1117 0%, #161b22 30%, #1c2128 60%, #21262d 100%);
    --books-card-bg: linear-gradient(145deg, rgba(28, 33, 40, 0.8), rgba(33, 38, 45, 0.5));
    --books-accent: rgba(255, 45, 70, 0.06);
    --books-glow: radial-gradient(ellipse at 20% 50%, rgba(255, 45, 70, 0.06) 0%, transparent 60%);

    --font-heading: 'Cormorant', Georgia, serif;
    --font-body: 'Montserrat', system-ui, sans-serif;

    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-smooth);
    --transition-base: 250ms var(--ease-smooth);
    --transition-slow: 400ms var(--ease-smooth);
}

/* ── Light Theme Variables (toggle) — warm cream, eye-friendly ─────────── */
[data-theme="light"] {
    --bg-deep: #fdf1f4;
    --bg-primary: #fff8fa;
    --bg-secondary: #fbeef2;
    --bg-tertiary: #f6e2e9;
    --bg-elevated: #fffbfc;

    --accent-coral: #d4495a;
    --accent-coral-light: #e2697a;
    --accent-coral-dim: rgba(212, 73, 90, 0.10);
    --accent-teal: #237A6B;
    --accent-teal-light: #38917E;
    --accent-teal-dim: rgba(35, 122, 107, 0.10);

    --text-primary: #241d13;
    --text-secondary: #4a4032;
    --text-muted: #6d6250;
    --text-coral: #c24150;

    --border-subtle: rgba(150, 90, 110, 0.13);
    --border-glow: rgba(212, 73, 90, 0.25);
    --border-teal: rgba(35, 122, 107, 0.30);

    --shadow-sm: 0 2px 8px rgba(140, 80, 100, 0.07);
    --shadow-md: 0 4px 20px rgba(140, 80, 100, 0.09);
    --shadow-lg: 0 8px 40px rgba(140, 80, 100, 0.12);
    --shadow-glow-coral: 0 0 20px rgba(212, 73, 90, 0.09);

    --glass-bg: rgba(255, 248, 250, 0.85);
    --glass-border: rgba(150, 90, 110, 0.10);
    --gradient-hero: transparent;
    --gradient-card: linear-gradient(145deg, rgba(255, 251, 252, 0.92), rgba(251, 238, 242, 0.75));
    --gradient-books: transparent;
    --books-card-bg: linear-gradient(145deg, rgba(255, 251, 252, 0.9), rgba(251, 238, 242, 0.65));
    --books-accent: rgba(212, 73, 90, 0.06);
    --books-glow: radial-gradient(ellipse at 20% 50%, rgba(212, 73, 90, 0.05) 0%, transparent 60%);
}

/* ── Dark Theme Variables (toggle) ────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-deep: #0d1117;
    --bg-primary: #161b22;
    --bg-secondary: #1c2128;
    --bg-tertiary: #21262d;
    --bg-elevated: #1c2128;

    --accent-coral: #FF2D46;
    --accent-coral-light: #FF6B7A;
    --accent-coral-dim: rgba(255, 45, 70, 0.14);
    --accent-teal: #81CDBD;
    --accent-teal-light: #A9E1D5;
    --accent-teal-dim: rgba(129, 205, 189, 0.12);

    --text-primary: #F0F0F0;
    --text-secondary: #A0AEC0;
    --text-muted: #6B7A8D;
    --text-coral: #FF2D46;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(255, 45, 70, 0.30);
    --border-teal: rgba(129, 205, 189, 0.25);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.40);
    --shadow-glow-coral: 0 0 20px rgba(255, 45, 70, 0.15);
    --shadow-glow-teal: 0 0 20px rgba(129, 205, 189, 0.10);

    --glass-bg: rgba(22, 27, 34, 0.80);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;

    --gradient-coral: linear-gradient(135deg, #FF2D46, #E0162E);
    --gradient-classy: linear-gradient(135deg, #FF2D46, #D4A853);
    --gradient-hero: linear-gradient(160deg, rgba(10,15,40,0.8) 0%, rgba(15,25,55,0.7) 40%, rgba(20,30,60,0.8) 100%);
    --gradient-card: linear-gradient(145deg, rgba(28, 33, 40, 0.6), rgba(33, 38, 45, 0.4));
    --gradient-books: linear-gradient(160deg, rgba(15,23,42,0.7) 0%, rgba(30,41,59,0.6) 30%, rgba(15,23,42,0.7) 60%, rgba(10,15,40,0.8) 100%);
    --books-card-bg: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(51, 65, 85, 0.3));
    --books-accent: rgba(255, 45, 70, 0.08);
    --books-glow: radial-gradient(ellipse at 20% 50%, rgba(255, 45, 70, 0.06) 0%, transparent 60%);
}


/* ── Global Dark Styles ──────────────────────────────────────────────────── */
body {
    background: linear-gradient(180deg, rgba(52,42,30,0.20), rgba(44,34,24,0.28)), linear-gradient(180deg, rgba(9,11,17,0.52), rgba(9,11,17,0.62)), linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 72%, transparent), color-mix(in srgb, var(--bg-deep) 80%, transparent)), url('/images/portal-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

html {
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
}

/* ── Flex-item width guard ───────────────────────────────────────────────────
   body and main are flex columns, so every main > section is a flex item.
   A section with `mx-auto` (auto margins) disables cross-axis stretching and
   Chrome sizes it to fit-content — driven up by the min-content width of any
   nowrap (`truncate`) text, e.g. long shelter-card descriptions — which
   stretches the whole page horizontally on phones. Pin sections to the
   container width (Tailwind preflight gives border-box, so padding is safe). */
main > section {
    width: 100%;
    min-width: 0;
}

/* Chain-wide guard: decorative bleeds (card ::after glows at right:-20%,
   blurred orbs, HTTP-1px rounding) must never create a horizontal page
   scroll on phones — Chrome would zoom the page out instead, shrinking
   all text. Clip horizontal overflow at the viewport. */
html, body {
    overflow-x: hidden;
}
@supports (overflow-x: clip) {
    html, body {
        overflow-x: clip;
    }
}

/* ── Hidden-scrollbar scroll strip (mobile filter/toggle pill bars) ───────── */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a { color: var(--accent-coral); transition: color var(--transition-fast); }
a:hover { color: var(--accent-coral-light); }

/* ── Touch targets — prevent 300ms tap delay ────────────────────────────── */
button, a, input, select, textarea {
    touch-action: manipulation;
}

/* ── Glass Utilities ─────────────────────────────────────────────────────── */
.glass-dark {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-coral);
    transform: translateY(-2px);
}

/* ── Pink Glow Button ────────────────────────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: #ffffff;
    background: linear-gradient(135deg, #FF2D46, #D4A853);
    box-shadow: 0 4px 20px rgba(255, 45, 70, 0.3);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 45, 70, 0.4);
}

.btn-gold:active {
    transform: translateY(0) scale(0.98);
}

/* ── Teal Ghost Button ───────────────────────────────────────────────────── */
.btn-teal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: #C8CED6;
    background: transparent;
    border: 1.5px solid rgba(200, 206, 214, 0.20);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.btn-teal:hover {
    background: rgba(200, 206, 214, 0.10);
    border-color: #C8CED6;
    color: #E0E4EA;
    transform: translateY(-2px);
}

/* ── CTA Section (Join Himmat Karo) ────────────────────────────────────── */
.cta-section {
    background: linear-gradient(160deg, #131920 0%, #1a2029 50%, #201820 100%);
}

.cta-section .cta-glow {
    background: radial-gradient(circle at 50% 50%, rgba(255, 45, 70, 0.14), transparent 70%);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(160deg, #fbe9e2 0%, #f8e3d8 50%, #f6ddd3 100%);
}

[data-theme="light"] .cta-section .cta-glow {
    background: radial-gradient(circle at 50% 50%, rgba(212, 73, 90, 0.12), transparent 70%);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    color: #fff;
    background: linear-gradient(135deg, #FF2D46, #E0162E);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 45, 70, 0.30);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 45, 70, 0.42);
    color: #fff;
}

[data-theme="light"] .btn-cta {
    background: linear-gradient(135deg, #d4495a, #c24150);
    box-shadow: 0 4px 18px rgba(212, 73, 90, 0.28);
}

[data-theme="light"] .btn-cta:hover {
    box-shadow: 0 6px 26px rgba(212, 73, 90, 0.38);
}

/* Contrast guard: CTA button text must stay white on the coral gradient in BOTH themes */
.btn-cta, .btn-cta span, .btn-cta svg { color: #ffffff !important; }

/* Dark theme: soften harsh pure-white text to warm cream on brand-gradient buttons */
[data-theme="dark"] .btn-gold { color: #FFF5F5; }
[data-theme="dark"] .btn-gold:hover { color: #FFE9EA; }
[data-theme="dark"] .btn-cta, [data-theme="dark"] .btn-cta span, [data-theme="dark"] .btn-cta svg { color: #FFF5F5 !important; }

/* ── Per-card color identities (feature grids) ─────────────────────────── */
.card-dark.fc-coral  { --fc-bg: rgba(255,45,70,0.13);   --fc-fg: #FF6B7A; }
.card-dark.fc-orange { --fc-bg: rgba(255,145,0,0.14);   --fc-fg: #FF9100; }
.card-dark.fc-gold   { --fc-bg: rgba(212,168,83,0.15);  --fc-fg: #D4A853; }
.card-dark.fc-teal   { --fc-bg: rgba(62,207,178,0.13);  --fc-fg: #3ECFB2; }
.card-dark.fc-green  { --fc-bg: rgba(76,175,125,0.14);  --fc-fg: #4CAF7D; }
.card-dark.fc-pink   { --fc-bg: rgba(224,112,143,0.15); --fc-fg: #E0708F; }

[data-theme="light"] .card-dark.fc-coral  { --fc-bg: rgba(255,45,70,0.09);   --fc-fg: #D6273E; }
[data-theme="light"] .card-dark.fc-orange { --fc-bg: rgba(255,145,0,0.10);   --fc-fg: #D97706; }
[data-theme="light"] .card-dark.fc-gold   { --fc-bg: rgba(212,168,83,0.14);  --fc-fg: #B08636; }
[data-theme="light"] .card-dark.fc-teal   { --fc-bg: rgba(42,157,143,0.10);  --fc-fg: #23867A; }
[data-theme="light"] .card-dark.fc-green  { --fc-bg: rgba(76,175,125,0.11);  --fc-fg: #3D8B5F; }
[data-theme="light"] .card-dark.fc-pink   { --fc-bg: rgba(212,87,122,0.11);  --fc-fg: #C24968; }

/* ── Footer: always sits on the dark seaglass photo — fixed light colors in BOTH themes ── */
footer p { color: #d7dee7 !important; }
footer h4 { color: #ff8a96 !important; }
footer a { color: #e8edf4 !important; }
footer a:hover { color: #ff8a96 !important; }
footer a[href^="tel:"] { color: #ff6b7a !important; font-weight: 700; }
footer a[href^="tel:"]:hover { color: #ff8a96 !important; }

/* ── Outline Gold Button ──────────────────────────────────────────────────── */
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: #FF2D46;
    background: transparent;
    border: 1.5px solid rgba(255, 45, 70, 0.25);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: rgba(255, 45, 70, 0.10);
    border-color: #FF2D46;
    transform: translateY(-2px);
}

/* ── Classic Hero-Matched Cards (theme-aware) ─────────────────────────────── */
.card-dark,
.stat-dark,
.card-mini {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all var(--transition-base);
}

/* Dark theme — cinematic charcoal cards */
[data-theme="dark"] .card-dark,
[data-theme="dark"] .stat-dark,
[data-theme="dark"] .card-mini {
    --bg-secondary: #1a1f27;
    --bg-tertiary: #21262d;
    --text-primary: #f0f0f0;
    --text-secondary: #a0aec0;
    --text-muted: #6b7a8d;
    --accent-coral: #ff2d46;
    --accent-coral-light: #ff6b7a;
    --accent-coral-dim: rgba(255, 45, 70, 0.16);
    --accent-teal: #81CDBD;
    --accent-teal-light: #A9E1D5;
    --accent-teal-dim: rgba(129, 205, 189, 0.14);
    --gradient-coral: linear-gradient(135deg, #ff2d46, #e0162e);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 45, 70, 0.10) 0%, transparent 42%),
        radial-gradient(80% 80% at 100% 100%, rgba(255, 145, 0, 0.06) 0%, transparent 55%),
        linear-gradient(155deg, #1c2128 0%, #171c23 55%, #12161c 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

/* Light theme — soft pink/orange/gray cards matching the hero */
[data-theme="light"] .card-dark,
[data-theme="light"] .stat-dark,
[data-theme="light"] .card-mini {
    --accent-teal: #237A6B;
    --accent-teal-dim: rgba(35, 122, 107, 0.10);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 45, 70, 0.07) 0%, transparent 42%),
        radial-gradient(90% 90% at 100% 100%, rgba(255, 145, 0, 0.08) 0%, transparent 55%),
        linear-gradient(150deg, #ffffff 0%, #fff7f2 55%, #ffead9 100%);
    border: 1px solid rgba(255, 45, 70, 0.16);
    box-shadow: 0 4px 18px rgba(255, 45, 70, 0.07);
}

/* Crimson → orange accent bar — same gradient as the hero CTA */
.card-dark::before,
.stat-dark::before,
.card-mini::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF2D46, #FF9100);
    opacity: 0.9;
    transition: opacity var(--transition-base);
}

.card-dark {
    padding: 1.5rem;
}

.card-mini {
    padding: 1rem;
}

/* ── Soft Theme Card — hero-matched tint for content pages ───────────────── */
.card-soft {
    position: relative;
    background:
        radial-gradient(100% 80% at 0% 0%, rgba(255, 45, 70, 0.05) 0%, transparent 45%),
        linear-gradient(150deg, rgba(255, 252, 251, 0.96) 0%, rgba(255, 243, 243, 0.88) 100%);
    border: 1px solid rgba(255, 45, 70, 0.14);
    border-radius: 1rem;
    box-shadow: 0 4px 18px rgba(255, 45, 70, 0.06);
    transition: all var(--transition-base);
    --bg-tertiary: rgba(252, 234, 234, 0.6);
    --border-subtle: rgba(255, 45, 70, 0.12);
}

.card-soft::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF2D46, #FF9100);
    opacity: 0.7;
    border-radius: 1rem 1rem 0 0;
    transition: opacity var(--transition-base);
}

.card-soft:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 45, 70, 0.30);
    box-shadow: 0 10px 28px rgba(255, 45, 70, 0.12);
}

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

.card-soft.no-bar::before { display: none; }

[data-theme="dark"] .card-soft {
    background:
        radial-gradient(100% 80% at 0% 0%, rgba(255, 45, 70, 0.08) 0%, transparent 45%),
        linear-gradient(150deg, rgba(30, 35, 44, 0.92) 0%, rgba(22, 27, 34, 0.88) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    --bg-tertiary: rgba(45, 52, 64, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

a.card-dark,
a.card-dark:hover,
a.card-dark:focus {
    color: inherit;
    text-decoration: none;
}

.card-dark:hover,
.stat-dark:hover,
.card-mini:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 45, 70, 0.45);
    box-shadow: 0 14px 36px rgba(255, 45, 70, 0.16), 0 6px 16px rgba(0, 0, 0, 0.32);
}

[data-theme="light"] .card-dark:hover,
[data-theme="light"] .stat-dark:hover,
[data-theme="light"] .card-mini:hover {
    box-shadow: 0 12px 30px rgba(255, 45, 70, 0.14);
}

.card-dark:hover::before,
.stat-dark:hover::before,
.card-mini:hover::before {
    opacity: 1;
}

/* Light theme — keep hard-coded inline whites/silvers readable on light cards */
[data-theme="light"] .card-dark [style*="color: #FFFFFF"],
[data-theme="light"] .stat-dark [style*="color: #FFFFFF"],
[data-theme="light"] .card-mini [style*="color: #FFFFFF"] {
    color: #2D1B0E !important;
}
[data-theme="light"] .card-dark [style*="color: #C8CED6"],
[data-theme="light"] .stat-dark [style*="color: #C8CED6"],
[data-theme="light"] .card-mini [style*="color: #C8CED6"] {
    color: #7d8794 !important;
}
[data-theme="light"] .card-mini [style*="color: rgba(255,255,255,0.7)"] {
    color: #6e5f55 !important;
}

/* ── Stat Card ───────────────────────────────────────────────────────────── */
.stat-dark {
    padding: 2rem;
    text-align: center;
}

.stat-dark .stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF2D46;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-dark .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ── Section Headers ─────────────────────────────────────────────────────── */
.section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider-gold {
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #FF2D46, #D4A853);
    margin: 1rem auto 1.5rem;
    border-radius: 1px;
}

/* ── Dark Mode Toggle ────────────────────────────────────────────────────── */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FF2D46;
    transition: transform var(--transition-base);
    box-shadow: 0 2px 6px rgba(255, 45, 70, 0.3);
}

[data-theme="light"] .theme-toggle::after {
    transform: translateX(24px);
    background: #FF6B7A;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    transition: opacity var(--transition-base);
}

.theme-toggle .icon-moon { left: 6px; opacity: 1; }
.theme-toggle .icon-sun { right: 6px; opacity: 0.4; }

[data-theme="light"] .theme-toggle .icon-moon { opacity: 0.4; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; }

/* ── Language Toggle Button ──────────────────────────────────────────────── */
.lang-toggle-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1.5px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    border-color: var(--accent-coral);
    background: var(--accent-coral-dim);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 45, 70, 0.2);
}

.lang-toggle-btn:active {
    transform: translateY(0);
}

.lang-toggle-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Ambient Glow Background ─────────────────────────────────────────────── */
.ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-glow .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.04;
}

.ambient-glow .orb-gold {
    width: 600px;
    height: 600px;
    background: #FF2D46;
    top: -200px;
    right: -100px;
    animation: ambientFloat 20s ease-in-out infinite;
}

.ambient-glow .orb-teal {
    width: 500px;
    height: 500px;
    background: #C8CED6;
    bottom: -200px;
    left: -100px;
    animation: ambientFloat 25s ease-in-out infinite reverse;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

/* ── Scroll Reveal (subtle) ──────────────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ── Reduced Motion — respect users who opt out of animation (vestibular sensitivity) ── */
@media (prefers-reduced-motion: reduce) {
    /* Reveal elements: fully visible immediately, no transform, no transitions */
    .reveal-up,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    /* Killer ambient/pulse/float animations */
    .ambient-glow .orb,
    .tagline-sparkles .sparkle,
    .animate-pulse,
    .animate-bounce,
    .sparkle {
        animation: none !important;
    }
    /* Loading bar */
    #loading-bar { transition: none !important; }
    /* Smooth-scroll triggers */
    html { scroll-behavior: auto !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TAILWIND DARK OVERRIDES — Auto-convert light classes to dark
   ═══════════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
    /* ── Backgrounds ── */
    .bg-white { background-color: var(--bg-secondary) !important; }
    .bg-white\/10, .bg-white\/20, .bg-white\/30, .bg-white\/40, .bg-white\/50,
    .bg-white\/60, .bg-white\/70, .bg-white\/80, .bg-white\/90 { background-color: rgba(30, 41, 59, 0.9) !important; }
    .bg-gray-50, .bg-gray-100 { background-color: var(--bg-tertiary) !important; }
    .bg-gray-200 { background-color: #2D3748 !important; }
    .bg-gray-300 { background-color: #4A5568 !important; }

    /* ── Text Colors ── */
    .text-gray-900, .text-gray-800 { color: var(--text-primary) !important; }
    .text-gray-700, .text-gray-600 { color: var(--text-secondary) !important; }
    .text-gray-500, .text-gray-400 { color: var(--text-muted) !important; }
    .text-gray-300 { color: #64748B !important; }

    /* ── Borders ── */
    .border-gray-100, .border-gray-200 { border-color: var(--border-subtle) !important; }
    .border-gray-300 { border-color: #334155 !important; }
    .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--border-subtle) !important; }

    /* ── Shadows ── */
    .shadow-sm { box-shadow: var(--shadow-sm) !important; }
    .shadow, .shadow-md { box-shadow: var(--shadow-md) !important; }
    .shadow-lg { box-shadow: var(--shadow-lg) !important; }
    .shadow-xl { box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6) !important; }

    /* ── Cards ── */
    .rounded-2xl { border: 1px solid var(--border-subtle); }

    /* ── Form Elements ── */
    input, textarea, select {
        background-color: var(--bg-tertiary) !important;
        color: var(--text-primary) !important;
        border-color: var(--border-subtle) !important;
    }
    input::placeholder, textarea::placeholder {
        color: var(--text-muted) !important;
    }
    input:focus, textarea:focus, select:focus {
        border-color: #FF2D46 !important;
        box-shadow: 0 0 0 3px rgba(255, 45, 70, 0.15) !important;
    }

    /* ── Specific Component Overrides ── */
    .rounded-full { border-color: var(--border-subtle); }
    
    /* ── Hero sections ── */
    section[class*="bg-gradient"] {
        background: var(--bg-primary) !important;
    }

    /* ── Hero cover for dark mode ── */
    .hero-cover {
        background: linear-gradient(135deg, #111827 0%, #1A2332 20%, #1F2D3E 40%, #C8CED6 60%, #FF6B7A 80%, #FF2D46 100%) !important;
    }

    /* ── Tagline banner for dark mode ── */
    .tagline-banner {
        background: linear-gradient(135deg, #111827 0%, #1A2332 25%, #1F2D3E 50%, #C8CED6 75%, #FF6B7A 100%) !important;
    }

    /* ── Hero text for dark mode ── */
    .hero-line-1 { color: rgba(255, 255, 255, 0.8) !important; }
    .hero-subtitle { color: rgba(255, 255, 255, 0.75) !important; }
    .tagline-main { color: #fff !important; text-shadow: 0 1px 8px rgba(200, 206, 214, 0.5) !important; }
    .tagline-sub { color: rgba(255, 255, 255, 0.85) !important; }
    .sparkle { color: rgba(255, 255, 255, 0.6) !important; }
    .particle { color: rgba(255, 255, 255, 0.4) !important; }
    .scroll-mouse { border-color: rgba(255, 255, 255, 0.3) !important; }
    .scroll-wheel { background: rgba(255, 255, 255, 0.5) !important; }
    .hero-btn-secondary { color: #fff !important; border-color: rgba(255, 255, 255, 0.3) !important; }
    .hero-btn-secondary:hover { background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.5) !important; }

    /* Feature cards */
    .card-feature {
        background: var(--bg-secondary) !important;
        border-color: var(--border-subtle) !important;
    }

    /* Badge/Pill components */
    .bg-pink-50, .bg-teal-50, .bg-blue-50, .bg-green-50, 
    .bg-orange-50, .bg-red-50, .bg-yellow-50, .bg-indigo-50,
    .bg-teal-50, .bg-cyan-50, .bg-amber-50, .bg-violet-50,
    .bg-fuchsia-50, .bg-rose-50, .bg-slate-50 {
        background-color: var(--bg-tertiary) !important;
    }

    /* Badge text */
    .text-pink-600, .text-pink-700 { color: #F87171 !important; }
    .text-teal-600, .text-teal-700 { color: #C084FC !important; }
    .text-blue-600, .text-blue-700 { color: #60A5FA !important; }
    .text-green-600, .text-green-700 { color: #4ADE80 !important; }
    .text-orange-600, .text-orange-700 { color: #FB923C !important; }
    .text-red-600, .text-red-700 { color: #F87171 !important; }
    .text-yellow-600, .text-yellow-700 { color: #FACC15 !important; }
    .text-indigo-600, .text-indigo-700 { color: #818CF8 !important; }
    .text-teal-600, .text-teal-700 { color: #C8CED6 !important; }

    /* Badge backgrounds */
    .bg-pink-100 { background-color: rgba(244, 114, 182, 0.15) !important; }
    .bg-teal-100 { background-color: rgba(192, 132, 252, 0.15) !important; }
    .bg-blue-100 { background-color: rgba(96, 165, 250, 0.15) !important; }
    .bg-green-100 { background-color: rgba(74, 222, 128, 0.15) !important; }
    .bg-orange-100 { background-color: rgba(251, 146, 60, 0.15) !important; }
    .bg-red-100 { background-color: rgba(248, 113, 113, 0.15) !important; }
    .bg-yellow-100 { background-color: rgba(250, 204, 21, 0.15) !important; }
    .bg-indigo-100 { background-color: rgba(129, 140, 248, 0.15) !important; }
    .bg-teal-100 { background-color: rgba(200, 206, 214, 0.15) !important; }

    /* ── Table Overrides ── */
    table { color: var(--text-primary); }
    th { background-color: var(--bg-tertiary) !important; color: var(--text-primary); }
    td { border-color: var(--border-subtle) !important; }
    tr:hover td { background-color: var(--bg-tertiary) !important; }

    /* ── Modal/Dialog Overrides ── */
    .fixed inset-0 { background-color: rgba(0, 0, 0, 0.7); }

    /* ── Scrollbar ── */
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: var(--bg-primary); }
    ::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #475569; }

    /* ── Selection ── */
    ::selection {
        background-color: rgba(255, 45, 70, 0.3);
        color: var(--text-primary);
    }

    /* ── Links ── */
    a { color: var(--accent-coral); }
    a:hover { color: var(--accent-coral-light); }

    /* ── Code Blocks ── */
    code, pre {
        background-color: var(--bg-tertiary) !important;
        color: var(--accent-teal) !important;
    }

    /* ── hr Elements ── */
    hr { border-color: var(--border-subtle) !important; }

    /* ── SVG Icons in light classes ── */
    svg.text-gray-400, svg.text-gray-500 { color: var(--text-muted) !important; }
    svg.text-gray-600, svg.text-gray-700 { color: var(--text-secondary) !important; }

    /* ── Nav overrides for dark mode ── */
    .nav-modern { background: rgba(30, 41, 59, 0.92) !important; }
    .nav-modern.scrolled { background: rgba(15, 23, 42, 0.98) !important; }
    .nav-glass { background: linear-gradient(135deg, rgba(255,45,70,0.03) 0%, rgba(30,41,59,0.95) 50%, rgba(200,206,214,0.03) 100%) !important; }
    .nav-pill-group { background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.08) !important; }
    .nav-pill { color: #e2e8f0 !important; }
    .nav-hamburger { color: #e2e8f0 !important; }
    .nav-dropdown-item { color: #e2e8f0 !important; }
    .footer-links { color: #94a3b8 !important; }
    .footer-links a:hover { color: #FF6B7A !important; }
    .footer-helplines a { color: #FF6B7A !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   END TAILWIND DARK OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Dress Accent Decorations ────────────────────────────────────────────── */
.dress-accent-right {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    height: 110%;
    width: 45%;
    object-fit: cover;
    object-position: left center;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 30%, transparent 80%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.4) 30%, transparent 80%);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.dress-accent-left {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    height: 120%;
    width: 40%;
    object-fit: cover;
    object-position: left center;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.35) 20%, transparent 70%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.35) 20%, transparent 70%);
    opacity: 0.20;
    pointer-events: none;
    z-index: 0;
}

/* Hero full-bleed background image */
.hero-dress-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #121415;
    background: #121415 url('/images/womenred-hero.jpg') no-repeat center center;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

/* Dark gradient overlay for text readability */
.hero-dress-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,15,30,0.55) 0%,
        rgba(10,15,30,0.30) 40%,
        rgba(10,15,30,0.45) 70%,
        rgba(10,15,30,0.70) 100%
    );
}

[data-theme="dark"] .hero-dress-overlay::before {
    background: linear-gradient(
        to bottom,
        rgba(5,10,25,0.60) 0%,
        rgba(5,10,25,0.35) 40%,
        rgba(5,10,25,0.50) 70%,
        rgba(5,10,25,0.75) 100%
    );
}

.section-dress-right {
    position: absolute;
    right: 0;
    top: -10%;
    height: 120%;
    width: 350px;
    background: url('/images/dress-hero.jpg') no-repeat center;
    background-size: cover;
    mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5) 0%, transparent 70%);
    opacity: 0.30;
    pointer-events: none;
}

.section-dress-left {
    position: absolute;
    left: 0;
    top: -10%;
    height: 120%;
    width: 350px;
    background: url('/images/dress-hero.jpg') no-repeat center;
    background-size: cover;
    mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 70%);
    opacity: 0.30;
    pointer-events: none;
}

[data-theme="dark"] .dress-accent-right,
[data-theme="dark"] .dress-accent-left,
[data-theme="dark"] .section-dress-right,
[data-theme="dark"] .section-dress-left {
    opacity: 0.20;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   END DARK MODE PREMIUM THEME
   ═══════════════════════════════════════════════════════════════════════════════ */

/* She Rises - Custom Styles */
/* Tailwind handles most styling, this adds custom utilities */

.gradient-bg {
    background: linear-gradient(135deg, #FF2D46 0%, #D4A853 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #FF2D46, #D4A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Hero Cover Section ───────────────────────────────────────────────────── */
.hero-cover {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.90) 20%, rgba(240,244,248,0.95) 40%, rgba(255,45,70,0.05) 60%, rgba(200,206,214,0.04) 80%, rgba(255,255,255,0.95) 100%);
    position: relative;
}

/* Floating Orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 300px; height: 300px;
    background: rgba(255, 45, 70, 0.2);
    top: -50px; left: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px; height: 250px;
    background: rgba(200, 206, 214, 0.15);
    bottom: -30px; right: -30px;
    animation-delay: 3s;
}

.orb-3 {
    width: 200px; height: 200px;
    background: rgba(255, 68, 68, 0.12);
    top: 30%; right: 10%;
    animation-delay: 6s;
}

.orb-4 {
    width: 180px; height: 180px;
    background: rgba(200, 206, 214, 0.10);
    bottom: 20%; left: 15%;
    animation-delay: 9s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.particle {
    position: absolute;
    color: rgba(30, 41, 59, 0.3);
    font-size: 0.8rem;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle-1 { top: 15%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 25%; right: 15%; animation-delay: 0.8s; }
.particle-3 { top: 60%; left: 8%; animation-delay: 1.6s; }
.particle-4 { top: 70%; right: 12%; animation-delay: 2.4s; }
.particle-5 { top: 40%; left: 25%; animation-delay: 3.2s; }
.particle-6 { top: 80%; left: 50%; animation-delay: 4s; }
.particle-7 { top: 20%; left: 60%; animation-delay: 4.8s; }
.particle-8 { top: 50%; right: 25%; animation-delay: 5.6s; }

@keyframes particleFloat {
    0%, 100% { opacity: 0.2; transform: translateY(0) rotate(0deg); }
    50% { opacity: 0.7; transform: translateY(-15px) rotate(180deg); }
}

/* Hero Text */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-line-1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: rgba(30, 41, 59, 0.8);
    letter-spacing: 0.05em;
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-line-2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #FF6B7A 30%, #FF6B6B 60%, #C8CED6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: heroFadeIn 0.8s ease 0.2s forwards;
    filter: drop-shadow(0 4px 20px rgba(255, 45, 70, 0.3));
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: rgba(30, 41, 59, 0.75);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    animation: heroFadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-highlight {
    color: #FF6B7A;
    font-weight: 600;
}

.hero-fade-in {
    animation: heroFadeIn 0.8s ease forwards;
    opacity: 0;
}

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

/* Hero Buttons */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
    background: var(--gradient-classy);
    box-shadow: 0 4px 20px rgba(255,45,70,0.25), 0 0 40px rgba(212,168,83,0.1);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255,45,70,0.3), 0 0 60px rgba(212,168,83,0.15);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    background: transparent;
    border: 2px solid rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(30, 41, 59, 0.1);
    border-color: rgba(30, 41, 59, 0.5);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator { display: flex; flex-direction: column; align-items: center; }

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

/* Mobile Hero */
@media (max-width: 640px) {
    .hero-line-1 { font-size: 1.25rem; }
    .hero-line-2 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-btn-primary, .hero-btn-secondary { padding: 0.875rem 1.5rem; font-size: 0.9rem; }
}

/* ── Feature Cards (Home Page) ─────────────────────────────────────────── */
.card-feature {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 25%, #fde8e8 60%, #fca5a5 100%);
    border: 1.5px solid #f87171;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-feature::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,45,70,0.2) 0%, rgba(255,45,70,0.08) 40%, transparent 70%);
    pointer-events: none;
}

.card-feature:hover {
    transform: translateY(-6px);
    border-color: #ef4444;
    box-shadow: 0 12px 30px rgba(255,45,70,0.18), 0 4px 12px rgba(0,0,0,0.06);
}

.card-feature h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 0.75rem;
}

.card-feature p {
    color: #475569;
    line-height: 1.65;
}

.card-icon-pink {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #FF2D46, #D4A853);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 45, 70, 0.3);
}

.card-icon-teal {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-modern.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.nav-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,45,70,0.03) 0%, rgba(255,255,255,0.90) 50%, rgba(200,206,214,0.03) 100%);
    pointer-events: none;
}

.nav-pill-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4a5568;
    text-shadow: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-pill:hover {
    color: #FF2D46;
    background: rgba(255, 45, 70, 0.08);
}

.nav-pill-active {
    background: linear-gradient(135deg, #FF2D46, #D4A853) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 16px rgba(255, 45, 70, 0.3);
    font-weight: 800;
}

.nav-pill-active:hover {
    box-shadow: 0 4px 24px rgba(255, 45, 70, 0.6);
    transform: translateY(-1px);
}

/* ── Navigation Dropdown ── */
.nav-dropdown {
    background: var(--bg-secondary) !important;
    border: 1px solid rgba(255, 45, 70, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px);
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155 !important;
    border-radius: 0.5rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
    color: var(--accent-coral) !important;
    background: rgba(255, 45, 70, 0.12) !important;
    text-shadow: 0 0 8px rgba(255, 45, 70, 0.2);
}

.nav-dropdown-active {
    color: var(--accent-coral) !important;
    background: rgba(255, 45, 70, 0.15) !important;
    font-weight: 600;
}

.nav-login-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-coral);
    border: 1.5px solid rgba(255, 45, 70, 0.3);
    transition: all 0.25s ease;
}

.nav-login-btn:hover {
    background: rgba(255, 45, 70, 0.1);
    border-color: var(--accent-coral);
}

.nav-signup-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--gradient-classy);
    box-shadow: 0 2px 12px rgba(255, 45, 70, 0.3);
    transition: all 0.25s ease;
}

.nav-signup-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 45, 70, 0.5), 0 0 20px rgba(212,168,83,0.15);
    transform: translateY(-1px);
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
}

.nav-logout-btn:hover {
    color: var(--accent-coral);
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.08);
}

.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #334155;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-hamburger:hover {
    background: rgba(255, 45, 70, 0.15);
    color: var(--accent-coral);
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 45, 70, 0.1);
    color: var(--accent-coral);
}

.mobile-nav-active {
    background: var(--gradient-coral) !important;
    color: #1a0a0a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(255, 45, 70, 0.4);
}

/* ── Tagline Banner ──────────────────────────────────────────────────────── */
.tagline-banner {
    position: relative;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 20%, #FFF5F5 40%, #FF6B7A 60%, #D4A853 80%, #FF2D46 100%);
    border-bottom: 1px solid rgba(255, 45, 70, 0.3);
}

.tagline-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 206, 214, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 45, 70, 0.4) 0%, transparent 50%);
    animation: taglineShimmer 8s ease-in-out infinite;
}

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

.tagline-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tagline-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(255, 45, 70, 0.6));
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255, 45, 70, 0.6)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 12px rgba(255, 45, 70, 0.9)); }
}

.tagline-main {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    text-shadow: 0 1px 8px rgba(200, 206, 214, 0.3);
    letter-spacing: 0.02em;
}

.tagline-divider {
    color: rgba(255, 45, 70, 0.8);
    font-weight: 300;
    font-size: 1.1rem;
}

.tagline-sub {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(30, 41, 59, 0.75);
    letter-spacing: 0.04em;
    font-style: italic;
}

/* Sparkle decorations */
.tagline-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    color: rgba(30, 41, 59, 0.4);
    font-size: 0.7rem;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle-1 { top: 20%; left: 8%; animation-delay: 0s; }
.sparkle-2 { top: 60%; left: 15%; animation-delay: 0.8s; }
.sparkle-3 { top: 30%; right: 10%; animation-delay: 1.6s; }
.sparkle-4 { top: 70%; right: 18%; animation-delay: 2.4s; }
.sparkle-5 { top: 45%; left: 50%; animation-delay: 3.2s; }

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
    50% { opacity: 1; transform: translateY(-4px) scale(1.3); }
}

@media (max-width: 640px) {
    .tagline-main { font-size: 0.78rem; }
    .tagline-sub { font-size: 0.68rem; }
    .tagline-divider { display: none; }
    .tagline-text { gap: 0.3rem; }
    .tagline-banner .relative.z-10 { padding: 0.4rem 0.75rem; }
    .tagline-banner .tagline-sparkles { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED CARD SYSTEM — Every card across the portal uses this design
   ═══════════════════════════════════════════════════════════════════════════
   Base:     soft light blue/gray blending into vibrant magenta/pink at bottom-right
   Border:   crisp thin pink (#f472b6) outline
   Icon:     warm brown/mustard rounded square with white icon
   Title:    golden-brown bold (#9a7b2f)
   Desc:     light gray (#6b7280)
   Tags:     white pills with golden text (#9a7b2f)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Card Container (shared across ALL card types) ─────────────────────── */
.card-unified,
.card-book,
.card-silver-gold,
.card-gold-silver,
.card-double-shade {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

/* Vibrant glow accent in bottom-right corner */
.card-unified::after,
.card-book::after,
.card-silver-gold::after,
.card-gold-silver::after,
.card-double-shade::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,45,70,0.12) 0%, rgba(255,45,70,0.04) 40%, transparent 70%);
    pointer-events: none;
}

.card-unified:hover,
.card-book:hover,
.card-silver-gold:hover,
.card-gold-silver:hover,
.card-double-shade:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 32px rgba(255,45,70,0.12), 0 4px 12px rgba(0,0,0,0.15);
}

/* ── Icon Badge (warm brown/mustard rounded square) ────────────────────── */
.card-icon,
.card-icon-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #FF2D46, #B91C1C);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 45, 70, 0.15);
}

.card-icon svg,
.card-icon-badge svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* ── Card Title (golden-brown bold) ────────────────────────────────────── */
.card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FF2D46;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* ── Card Author / Subtitle ────────────────────────────────────────────── */
.card-author {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    font-weight: 500;
    font-style: italic;
}

/* ── Card Description ──────────────────────────────────────────────────── */
.card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card Detail Row (earnings, reading time, impact) ───────────────────── */
.card-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    padding: 0.5rem 0;
}

/* ── Tag Pill (colorful, soft, pressable) ────────────────────────────────── */
.tag-pill {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    user-select: none;
}
.tag-pill:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.tag-pill.lang {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* ── Tag Pill Colors ─────────────────────────────────────────────────────── */

/* Pink (All / Empowerment) */
.tag-pink {
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
    border: 1px solid #f9a8d4;
    box-shadow: 0 1px 3px rgba(190,24,93,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tag-pink:hover {
    background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
}

/* Green (Healing / No Investment / Kitchen) */
.tag-green {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1px solid #86efac;
    box-shadow: 0 1px 3px rgba(21,128,61,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tag-green:hover {
    background: linear-gradient(180deg, rgba(34,197,94,0.1) 0%, rgba(34,197,94,0.05) 100%);
}

/* Blue (Self-Help / Low Investment / Skill-Based) */
.tag-blue {
    background: linear-gradient(180deg, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.06) 100%);
    color: #60A5FA;
    border: 1px solid rgba(59,130,246,0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.tag-blue:hover {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Teal (Grief / Low Investment) */
.tag-teal {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    color: var(--accent-teal);
    border: 1px solid #c4b5fd;
    box-shadow: 0 1px 3px rgba(20,184,166,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tag-teal:hover {
    background: linear-gradient(180deg, #f3e8ff 0%, #e9d5ff 100%);
}

/* Orange (Parenting / High Investment) */
.tag-orange {
    background: linear-gradient(180deg, rgba(249,115,22,0.12) 0%, rgba(249,115,22,0.06) 100%);
    color: var(--accent-coral);
    border: 1px solid rgba(249,115,22,0.2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.tag-orange:hover {
    background: linear-gradient(180deg, rgba(249,115,22,0.15) 0%, rgba(249,115,22,0.1) 100%);
}

/* Teal (Online / Garden) */
.tag-teal {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0f766e;
    border: 1px solid #5eead4;
    box-shadow: 0 1px 3px rgba(15,118,110,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tag-teal:hover {
    background: linear-gradient(180deg, #ccfbf1 0%, #99f6e4 100%);
}

/* ── Filter Buttons (soft, pressable, prominent, colorful) ────────────────── */
.filter-btn {
    padding: 0.65rem 1.4rem;
     border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1.5px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
    user-select: none;
    position: relative;
    overflow: hidden;
}
.filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 3px rgba(0,0,0,0.06);
}
.filter-btn:hover {
    transform: translateY(-1px);
}
.filter-btn.active,
.filter-btn-active {
    background: linear-gradient(180deg, #ec4899 0%, #db2777 50%, #be185d 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(219,39,119,0.35), 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}
.filter-btn.active:active,
.filter-btn-active:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 6px rgba(219,39,119,0.3), inset 0 2px 4px rgba(0,0,0,0.1) !important;
    background: linear-gradient(180deg, #db2777 0%, #be185d 50%, #9d174d 100%) !important;
}
.filter-btn-inactive {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-subtle);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.filter-btn-inactive:hover {
    transform: translateY(-1px);
    border-color: #a1a1aa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-btn-inactive:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Color Modifiers for Filter Buttons ──────────────────────────────────── */

/* Pink (All / default active) */
.filter-pink {
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
    border: 1.5px solid #f9a8d4;
    box-shadow: 0 2px 4px rgba(190,24,93,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-pink:hover {
    background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f472b6;
    box-shadow: 0 4px 10px rgba(190,24,93,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-pink:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(190,24,93,0.12);
    background: linear-gradient(180deg, #fce7f3 0%, #f9a8d4 100%);
}

/* Green (Healing / Kitchen / Online / Garden) */
.filter-green {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border: 1.5px solid #86efac;
    box-shadow: 0 2px 4px rgba(21,128,61,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-green:hover {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #4ade80;
    box-shadow: 0 4px 10px rgba(21,128,61,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-green:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(21,128,61,0.12);
    background: linear-gradient(180deg, rgba(34,197,94,0.12) 0%, rgba(34,197,94,0.06) 100%);
}

/* Blue (Self-Help / Skill-Based) */
.filter-blue {
    background: linear-gradient(180deg, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.06) 100%);
    color: #60A5FA;
    border: 1.5px solid rgba(59,130,246,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.filter-blue:hover {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #60a5fa;
    box-shadow: 0 4px 10px rgba(29,78,216,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-blue:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(29,78,216,0.12);
    background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
}

/* Teal (Grief / Empowerment) */
.filter-teal {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    color: var(--accent-teal);
    border: 1.5px solid #c4b5fd;
    box-shadow: 0 2px 4px rgba(20,184,166,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-teal:hover {
    background: linear-gradient(180deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #a78bfa;
    box-shadow: 0 4px 10px rgba(20,184,166,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-teal:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(20,184,166,0.12);
    background: linear-gradient(180deg, #f3e8ff 0%, #c4b5fd 100%);
}

/* Orange (Low Investment / Parenting) */
.filter-orange {
    background: linear-gradient(180deg, rgba(249,115,22,0.12) 0%, rgba(249,115,22,0.06) 100%);
    color: var(--accent-coral);
    border: 1.5px solid rgba(249,115,22,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.filter-orange:hover {
    background: linear-gradient(180deg, rgba(249,115,22,0.15) 0%, rgba(249,115,22,0.1) 100%);
    border-color: rgba(249,115,22,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}
.filter-orange:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(180deg, rgba(249,115,22,0.15) 0%, rgba(249,115,22,0.1) 100%);
}

/* Teal (Garden / Online) */
.filter-teal {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0f766e;
    border: 1.5px solid #5eead4;
    box-shadow: 0 2px 4px rgba(15,118,110,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-teal:hover {
    background: linear-gradient(180deg, #ccfbf1 0%, #99f6e4 100%);
    border-color: #2dd4bf;
    box-shadow: 0 4px 10px rgba(15,118,110,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
.filter-teal:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(15,118,110,0.12);
    background: linear-gradient(180deg, #ccfbf1 0%, #5eead4 100%);
}

/* ── Books Section ──────────────────────────────────────────────────────── */
.books-section {
    background: var(--gradient-books);
    position: relative;
    overflow: hidden;
    padding: 3rem 1rem;
    min-height: 100vh;
}

.books-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--books-glow);
    pointer-events: none;
}

.books-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 70, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.books-section .card-book {
    background: var(--books-card-bg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
}

.book-detail-section {
    background: var(--gradient-books);
    position: relative;
    overflow: hidden;
    padding: 3rem 1rem;
    min-height: 100vh;
}

.book-detail-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--books-glow);
    pointer-events: none;
}

.book-chapter-card {
    background: var(--books-card-bg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-smooth);
}

.book-chapter-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-coral);
    transform: translateY(-2px);
}

/* ── Urdu Text Support ───────────────────────────────────────────────────── */
.urdu-text {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2;
    letter-spacing: 0;
}

.urdu-text p {
    direction: rtl;
    text-align: right;
}

.urdu-text ol, .urdu-text ul {
    direction: rtl;
    text-align: right;
    padding-right: 0;
    padding-left: 1.5rem;
}

.urdu-text ol li, .urdu-text ul li {
    direction: rtl;
}

/* ── Book Language Toggle ────────────────────────────────────────────────── */
.book-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 9999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.book-lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: var(--font-body);
}

.book-lang-btn.active {
    background: var(--gradient-coral);
    color: #0B1120;
    box-shadow: 0 2px 8px rgba(255, 45, 70, 0.3);
}

.book-lang-btn:not(.active) {
    background: transparent;
    color: var(--text-muted);
}

.book-lang-btn:not(.active):hover {
    color: var(--text-primary);
}

.book-lang-btn.ur-btn {
    font-family: 'Noto Nastaliq Urdu', serif;
}

/* ── Exercise Filter Buttons (soft, pressable) ─────────────────────────── */
.exercise-filter-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1.5px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
    user-select: none;
}
.exercise-filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 3px rgba(0,0,0,0.1);
    background: var(--bg-secondary);
}

.exercise-filter-active {
    background: linear-gradient(180deg, #FF6B7A 0%, #b45309 50%, #92400e 100%);
    color: #0B1120;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255,45,70,0.35), 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: none;
}
.exercise-filter-active:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255,45,70,0.3), inset 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(180deg, #b45309 0%, #92400e 50%, #78350f 100%);
}

.exercise-filter-inactive {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-subtle);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}
.exercise-filter-inactive:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1);
}
.exercise-filter-inactive:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 3px rgba(0,0,0,0.06);
    background: var(--bg-secondary);
}
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.chat-bubble-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #FF2D46;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.typing-dot {
    animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* Custom scrollbar for chat */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}
#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: #FF2D46;
    border-radius: 4px;
}

/* htmx loading indicator */
[hx-indicator]:not(form) {
    opacity: 0;
    transition: opacity 0.3s;
}
.htmx-request [hx-indicator],
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* ── Motivation Cards ───────────────────────────────────────────────────── */
.motivation-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.motivation-card {
    position: absolute;
    pointer-events: auto;
    max-width: 280px;
    width: calc(100vw - 2rem);
    border-radius: 1rem;
    padding: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 25px 60px rgba(255,45,70,0.25), 0 8px 20px rgba(0,0,0,0.1);
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.motivation-card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 30px 70px rgba(255,45,70,0.35), 0 12px 30px rgba(0,0,0,0.15);
}

.motivation-card .card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    animation: iconPulse 2s ease-in-out infinite;
}

.motivation-card .card-message {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.motivation-card .card-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.5;
}

.motivation-card .card-dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.2);
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.motivation-card .card-dismiss:hover {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.6);
    transform: rotate(90deg);
}

/* Card color themes */
.motivation-card.theme-rose {
    background: linear-gradient(135deg, #ff6b9d, #c44569, #e84393);
    color: #fff;
    box-shadow: 0 25px 60px rgba(255,107,157,0.4);
}
.motivation-card.theme-rose::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-sunset {
    background: linear-gradient(135deg, #f093fb, #f5576c, #ff9a76);
    color: #fff;
    box-shadow: 0 25px 60px rgba(245,87,108,0.4);
}
.motivation-card.theme-sunset::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-lavender {
    background: linear-gradient(135deg, #a18cd1, #C8CED6, #E0E4EA);
    color: #fff;
    box-shadow: 0 25px 60px rgba(200,206,214,0.4);
}
.motivation-card.theme-lavender::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-mint {
    background: linear-gradient(135deg, #43e97b, #38f9d7, #30d158);
    color: #fff;
    box-shadow: 0 25px 60px rgba(67,233,123,0.4);
}
.motivation-card.theme-mint::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-ocean {
    background: linear-gradient(135deg, #667eea, #764ba2, #6366f1);
    color: #fff;
    box-shadow: 0 25px 60px rgba(99,102,241,0.4);
}
.motivation-card.theme-ocean::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-peach {
    background: linear-gradient(135deg, #fccb90, #d57eeb, #e0c3fc);
    color: #fff;
    box-shadow: 0 25px 60px rgba(213,126,235,0.4);
}
.motivation-card.theme-peach::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    color: #1f2937;
    border: 2px solid rgba(255,45,70,0.3);
    box-shadow: 0 25px 60px rgba(255,45,70,0.2);
}
.motivation-card.theme-glass .card-sub { color: #6b7280; }

.motivation-card.theme-royal {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
    color: #fff;
    box-shadow: 0 25px 60px rgba(108,92,231,0.4);
}
.motivation-card.theme-royal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-coral {
    background: linear-gradient(135deg, #ff7675, #fd79a8, #e17055);
    color: #fff;
    box-shadow: 0 25px 60px rgba(253,121,168,0.4);
}
.motivation-card.theme-coral::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-gold {
    background: linear-gradient(135deg, #f9ca24, #f0932b, #eb4d4b);
    color: #fff;
    box-shadow: 0 25px 60px rgba(240,147,43,0.4);
}
.motivation-card.theme-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-teal {
    background: linear-gradient(135deg, #00cec9, #0984e3, #6c5ce7);
    color: #fff;
    box-shadow: 0 25px 60px rgba(0,206,201,0.4);
}
.motivation-card.theme-teal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.motivation-card.theme-magenta {
    background: linear-gradient(135deg, #e84393, #fd79a8, #fab1a0);
    color: #fff;
    box-shadow: 0 25px 60px rgba(232,67,147,0.4);
}
.motivation-card.theme-magenta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-30%) translateY(-30%) rotate(0deg); }
    50% { transform: translateX(30%) translateY(30%) rotate(180deg); }
}

@keyframes slideInBottom {
    0% { transform: translateY(120px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes slideInLeft {
    0% { transform: translateX(-120px) scale(0.8); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes slideInRight {
    0% { transform: translateX(120px) scale(0.8); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes slideInTop {
    0% { transform: translateY(-120px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.anim-slide-bottom { animation: slideInBottom 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-slide-left { animation: slideInLeft 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-slide-right { animation: slideInRight 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-slide-top { animation: slideInTop 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards; }

.motivation-card.show-float {
    animation: cardFloat 4s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes cardDismiss {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.7) translateY(30px); opacity: 0; }
}
.motivation-card.dismissing {
    animation: cardDismiss 0.4s ease forwards;
    pointer-events: none;
}

.motivation-card .card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 0 0 1.5rem 1.5rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
    transition: width linear;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@media (max-width: 640px) {
    .motivation-card {
        max-width: calc(100vw - 1.5rem);
        padding: 1rem;
    }
    .motivation-card .card-message {
        font-size: 1rem;
    }
}

/* Snap scroll for quotes */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

#rotating-quotes {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#rotating-quotes::-webkit-scrollbar {
    height: 6px;
}

#rotating-quotes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#rotating-quotes::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FF2D46, #FF6B7A);
    border-radius: 10px;
}

/* ── Skills Page ──────────────────────────────────────────────────────────── */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skill-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
}

.skill-filter {
    scroll-behavior: smooth;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

.skill-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(255, 45, 70, 0.25);
}

#skills-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    #skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skill-filter.active {
    background-color: #FF2D46;
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.border-3 {
    border-width: 3px;
}

/* ── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    animation: toastSlideIn 0.5s ease forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

.toast.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

/* ── Loading Skeleton ─────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

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

/* ── Mobile Bottom Navigation ────────────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: env(safe-area-inset-top, 6px) 0 env(safe-area-inset-bottom, 6px);
    z-index: 70;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 8px 2px;
        color: #6b7280;
        font-size: 10px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 12px;
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: #FF2D46;
        background: rgba(255, 45, 70, 0.1);
    }
    
    .mobile-bottom-nav svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }
    
    footer {
        padding-bottom: 80px !important;
    }
    
    /* Adjust floating buttons for mobile bottom nav — properly spaced */
    #sos-container {
        bottom: 80px !important;
    }
    
    #back-to-top {
        bottom: 140px !important;
    }
    
    #chat-widget {
        bottom: 80px !important;
    }
    
    /* Quick exit button - positioned on left side above bottom nav */
    .fixed.bottom-36.left-4 {
        bottom: 80px !important;
        left: 12px !important;
    }
    
    /* ── Safe area padding for notch devices ── */
    .nav-modern {
        padding-top: env(safe-area-inset-top, 0px);
    }
    
    /* ── Hamburger button touch target ── */
    .nav-hamburger {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* ── Chat window mobile height ── */
    #chat-window {
        height: calc(100vh - 160px) !important;
        max-height: 500px !important;
        width: calc(100vw - 2rem) !important;
        max-width: 400px !important;
    }
    
    /* ── Language toggle buttons — larger tap targets ── */
    #nav-lang-toggle button {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-height: 32px;
    }
    
    /* ── Smooth scrolling for mobile areas ── */
    #mobile-drawer,
    #chat-messages,
    #sos-panel {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* ── Footer mobile layout ── */
    footer .grid {
        gap: 2rem !important;
    }
    
    footer .grid > div {
        min-height: auto !important;
    }
}

/* ── Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Focus States ─────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #FF6B7A;
    outline-offset: 2px;
}

/* ── Footer over darkened background image (dark footer in both themes) ──── */
footer {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

footer h4,
footer .font-display,
footer [class*="#FF2D46"],
footer [class*="text-red-500"],
footer ul a {
    color: #FFFFFF !important;
}

footer ul a:hover,
footer [class*="#FF2D46"]:hover,
footer [class*="text-red-500"]:hover {
    color: #FFC9D1 !important;
}

footer ul li,
footer ul a {
    font-weight: 500;
}

footer .text-gray-400 {
    color: #D7DEE7 !important;
}

a.card-dark:focus-visible {
    outline: 3px solid var(--accent-coral);
    outline-offset: 2px;
    border-color: var(--accent-coral);
    box-shadow: var(--shadow-glow-coral);
}

/* ── Page Transitions ─────────────────────────────────────────────────────── */
.page-transition {
    animation: pageFadeIn 0.4s ease;
}

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

/* ── Chat Bubble Shadow ───────────────────────────────────────────────────── */
.chat-bubble-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Reveal Up Animation (chat page hero) ─────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.6s ease forwards;
}

.reveal-up:nth-child(1) { animation-delay: 0s; }
.reveal-up:nth-child(2) { animation-delay: 0.1s; }
.reveal-up:nth-child(3) { animation-delay: 0.2s; }
.reveal-up:nth-child(4) { animation-delay: 0.3s; }
.reveal-up:nth-child(5) { animation-delay: 0.4s; }

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

/* ── Shelter Badge Classes (theme-aware) ──────────────────────────────────── */
.badge-shelter {
    background: #FEE2E2;
    color: #991B1B;
}
.badge-legal {
    background: #DBEAFE;
    color: #1E40AF;
}
.badge-support {
    background: #F3E8FF;
    color: #9CA3AF;
}
.badge-financial {
    background: #D1FAE5;
    color: #065F46;
}
.badge-verified {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

/* Dark mode badge overrides */
[data-theme="dark"] .badge-shelter {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}
[data-theme="dark"] .badge-legal {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}
[data-theme="dark"] .badge-support {
    background: rgba(168, 85, 247, 0.2);
    color: #D8B4FE;
}
[data-theme="dark"] .badge-financial {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}
[data-theme="dark"] .badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

/* Shelter card hover */
.shelter-card:hover {
    border-color: var(--border-glow) !important;
}

/* Map container */
.shelter-map-container {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

/* Report modal */
.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* The JS toggles Tailwind's `hidden` class; the `display: flex` above wins
   on equal specificity, which leaves the modal permanently visible.
   This rule restores the hidden state. */
.report-modal-overlay.hidden {
    display: none;
}
.report-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.bg-black { background-color: #000000; }

/* ═══════════════════════════════════════════════════════════════════════════════
   Hero is always dark (brand look) — theme toggle only affects the rest of the
   page. In light theme, blend the dark hero into the light page with a soft
   bottom fade. NO hero text/picture overrides — keep hero untouched.
   ═══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] section[style*="background: #0d1117"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.92) 100%);
}


/* ── Let the dim background image show through page sections (dark theme only) ── */
[data-theme="dark"] section[style*="--bg-"] {
    background: transparent !important;
}

/* ── Light theme: solid cream backgrounds (brick bg image is dark-theme only) ── */
[data-theme="light"] body {
    background: linear-gradient(180deg, #fff7f9 0%, #fdeff3 50%, #fbe6ec 100%) no-repeat fixed, var(--bg-deep);
}

/* ── Light theme: readable darker variants of bright inline accent colors ── */
[data-theme="light"] [style*="color:#22c55e"] { color: #15803d !important; }
[data-theme="light"] [style*="color:#2DD4BF"] { color: #0f766e !important; }
[data-theme="light"] [style*="color:#3b82f6"] { color: #1d4ed8 !important; }
[data-theme="light"] [style*="color:#f97316"] { color: #c2410c !important; }
[data-theme="light"] [style*="color:#ec4899"] { color: #be185d !important; }
[data-theme="light"] p[style*="--accent-teal"] { color: #0f766e !important; }
[data-theme="light"] #nav-lang-toggle button { color: var(--text-secondary) !important; }

/* ── Mobile touch targets: footer links need comfortable tap areas ── */
@media (max-width: 768px) {
    footer ul li a,
    footer a[href^="tel:"] {
        display: inline-block;
        padding: 6px 0;
    }
}

/* ── Hero readability scrim ──────────────────────────────────────────────────
   Darkens the side the hero copy sits on so white text stays readable over
   the bright background image. Must mirror with writing direction: in RTL
   (Urdu) the copy is right-aligned, so the scrim darkens the right instead. */
.hero-scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    /* Edge-free ivory wash from the copy side: readability without a boxed
       card. Just enough wash to lift the darkest dress folds above 4.5:1 for
       ink copy (~25-35%), so the painting keeps its true colors. */
    background: linear-gradient(to right, rgba(255, 249, 246, 0.46) 0%, rgba(255, 249, 246, 0.38) 20%, rgba(255, 249, 246, 0.26) 42%, rgba(255, 249, 246, 0.10) 55%, transparent 64%);
}

[dir="rtl"] .hero-scrim {
    background: linear-gradient(to left, rgba(255, 249, 246, 0.46) 0%, rgba(255, 249, 246, 0.38) 20%, rgba(255, 249, 246, 0.26) 42%, rgba(255, 249, 246, 0.10) 55%, transparent 64%);
}

/* Slight saturation/contrast lift so the red dress reads sharp and rich
   when the 1024px artwork is upscaled full-bleed. */
.hero-art {
    filter: saturate(1.08) contrast(1.04);
}

@media (max-width: 640px) {
    /* Phone: copy spans the full width, so fade top-to-bottom instead and
       let the painting peek at the very top and bottom. */
    .hero-scrim,
    [dir="rtl"] .hero-scrim {
        background: linear-gradient(to bottom, rgba(255, 249, 246, 0.30) 0%, rgba(255, 249, 246, 0.55) 16%, rgba(255, 249, 246, 0.55) 74%, rgba(255, 249, 246, 0.32) 90%, rgba(255, 249, 246, 0.15) 100%);
    }
}
