/*
 * GitaAI — 2026 Premium UI
 * Dark-first · Minimal · Cinematic
 * Inspired by Linear, Vercel, Apple
 */

/* ========== TOKENS ========== */
:root {
    /* Brand */
    --saffron: #F97316;
    --saffron-light: #FB923C;
    --saffron-dark: #C2410C;
    --saffron-glow: rgba(249, 115, 22, 0.4);
    --gold: #D4AF37;
    
    /* Dark Theme (Default) */
    --bg-0: #050505;
    --bg-1: #0A0A0A;
    --bg-2: #111111;
    --bg-3: #1A1A1A;
    --bg-4: #222222;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-0: #FAFAFA;
    --text-1: #E5E5E5;
    --text-2: #A3A3A3;
    --text-3: #666666;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    /* Fonts */
    --f-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --f-display: 'Crimson Pro', Georgia, serif;
    --f-sanskrit: 'Noto Sans Devanagari', sans-serif;
    
    /* Sizing */
    --nav-h: 64px;
    --container: 1200px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;
    
    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
}

/* Light Theme */
[data-theme="light"] {
    --bg-0: #FFFFFF;
    --bg-1: #FAFAFA;
    --bg-2: #F5F5F5;
    --bg-3: #EEEEEE;
    --bg-4: #E5E5E5;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    
    --text-0: #0A0A0A;
    --text-1: #262626;
    --text-2: #525252;
    --text-3: #A3A3A3;
    
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    
    --glass: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.06);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--bg-1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--saffron); color: white; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ========== CURSOR GLOW ========== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--saffron-glow), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

[data-theme="light"] .cursor-glow { display: none; }

@media (hover: none) { .cursor-glow { display: none; } }

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: all var(--t-base) var(--ease);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-1);
    opacity: 0;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    transition: opacity var(--t-base);
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled::before {
    opacity: 0.85;
    border-bottom-color: var(--border);
}

.nav__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-0);
    transition: opacity var(--t-fast);
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-icon {
    font-family: var(--f-sanskrit);
    font-size: 1.5rem;
    color: var(--saffron);
    line-height: 1;
}

/* Nav Links */
.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--radius);
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text-0);
    background: var(--bg-card-hover);
}

.nav__link.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--saffron);
    border-radius: 2px;
}

/* Dropdown */
.nav__dropdown-trigger { position: relative; cursor: pointer; }

.nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    padding: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base) var(--ease);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.nav__dropdown-trigger:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-2);
    border-radius: 8px;
    transition: all var(--t-fast);
}

.nav__dropdown-item:hover {
    color: var(--text-0);
    background: var(--bg-card-hover);
}

/* Nav Actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__lang {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-fast);
    letter-spacing: 0.05em;
}

.nav__lang:hover {
    color: var(--saffron);
    border-color: var(--saffron);
}

.nav__theme {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-fast);
    position: relative;
    overflow: hidden;
}

.nav__theme:hover { border-color: var(--border-hover); }

.nav__theme-icon {
    position: absolute;
    font-size: 1rem;
    transition: all var(--t-base);
}

[data-theme="dark"] .nav__theme-icon[data-theme-icon="dark"] { opacity: 1; transform: scale(1); }
[data-theme="dark"] .nav__theme-icon[data-theme-icon="light"] { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .nav__theme-icon[data-theme-icon="light"] { opacity: 1; transform: scale(1); }
[data-theme="light"] .nav__theme-icon[data-theme-icon="dark"] { opacity: 0; transform: scale(0.5); }

.nav__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--saffron);
    border-radius: var(--radius-full);
    transition: all var(--t-base) var(--ease);
    box-shadow: 0 0 0 0 var(--saffron-glow);
}

.nav__cta:hover {
    background: var(--saffron-light);
    box-shadow: 0 0 20px var(--saffron-glow);
    transform: translateY(-1px);
}

.nav__cta-dot {
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

/* Mobile Toggle */
.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.nav__mobile-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text-1);
    border-radius: 2px;
    transition: all var(--t-base);
}

/* Language Drawer */
.lang-drawer {
    position: fixed;
    top: var(--nav-h);
    right: 24px;
    padding: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-base) var(--ease);
    z-index: 101;
}

.lang-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-drawer__item {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-2);
    border-radius: 8px;
    transition: all var(--t-fast);
}

.lang-drawer__item:hover,
.lang-drawer__item.is-active {
    color: var(--saffron);
    background: var(--bg-card-hover);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100dvh;
    background: var(--bg-2);
    z-index: 200;
    transition: right var(--t-slow) var(--ease);
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-open { right: 0; }

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    background: var(--bg-card);
    border-radius: var(--radius);
}

.mobile-menu__links {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mobile-menu__link {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-1);
    border-radius: var(--radius);
    transition: all var(--t-fast);
}

.mobile-menu__link:hover { background: var(--bg-card-hover); }

.mobile-menu__link--cta {
    margin: 8px 0;
    background: var(--saffron);
    color: white;
    text-align: center;
    font-weight: 600;
}

.mobile-menu__divider {
    height: 1px;
    background: var(--border);
    margin: 12px 16px;
}

.mobile-menu__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.mobile-menu__langs {
    display: flex;
    gap: 8px;
}

.mobile-menu__langs a {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-fast);
}

.mobile-menu__langs a.is-active,
.mobile-menu__langs a:hover {
    color: var(--saffron);
    border-color: var(--saffron);
}

.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
}

.mobile-menu__overlay.is-open { opacity: 1; visibility: visible; }

/* ========== MAIN ========== */
.main {
    padding-top: var(--nav-h);
    min-height: 100dvh;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--f-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--saffron);
    color: white;
    box-shadow: 0 0 0 0 var(--saffron-glow);
}

.btn--primary:hover {
    background: var(--saffron-light);
    box-shadow: 0 0 30px var(--saffron-glow);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-1);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn--ghost {
    background: transparent;
    color: var(--text-2);
    padding: 8px 16px;
}

.btn--ghost:hover { color: var(--text-0); background: var(--bg-card); }

.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--sm { padding: 8px 18px; font-size: 0.8rem; }

/* ========== TYPOGRAPHY ========== */
.heading-xl {
    font-family: var(--f-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-0);
}

.heading-lg {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-0);
}

.heading-md {
    font-family: var(--f-body);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-0);
}

.text-body { font-size: 1rem; color: var(--text-2); line-height: 1.7; }
.text-sm { font-size: 0.875rem; color: var(--text-3); }
.text-sanskrit { font-family: var(--f-sanskrit); color: var(--saffron); }
.text-gradient {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BADGE ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--saffron);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-full);
}

/* ========== SECTION ========== */
.section {
    padding: 100px 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__header .badge { margin-bottom: 16px; }
.section__header p { max-width: 500px; margin: 12px auto 0; }

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base) var(--ease);
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========== VERSE DISPLAY ========== */
.verse-display {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.verse-display::before {
    content: 'ॐ';
    position: absolute;
    top: -30px;
    right: -10px;
    font-family: var(--f-sanskrit);
    font-size: 200px;
    color: var(--saffron);
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
}

.verse-sanskrit {
    font-family: var(--f-sanskrit);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 2.2;
    color: var(--saffron);
    text-align: center;
    margin-bottom: 24px;
}

.verse-transliteration {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-3);
    text-align: center;
    line-height: 2;
    margin-bottom: 24px;
}

.verse-translation {
    font-family: var(--f-display);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-1);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.verse-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--saffron);
    background: rgba(249, 115, 22, 0.1);
    border-radius: var(--radius-full);
}

/* ========== LANGUAGE TABS ========== */
.lang-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-3);
    border-radius: var(--radius-full);
    width: fit-content;
    margin: 0 auto 32px;
}

.lang-tabs__btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-3);
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
}

.lang-tabs__btn:hover { color: var(--text-1); }

.lang-tabs__btn.is-active {
    color: var(--text-0);
    background: var(--bg-card-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========== FOOTER ========== */
.footer {
    margin-top: 80px;
    border-top: 1px solid var(--border);
}

.footer__top {
    padding: 60px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-0);
    margin-bottom: 12px;
}

.footer__logo span { color: var(--saffron); font-family: var(--f-sanskrit); font-size: 1.5rem; }

.footer__desc {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer__numbers {
    display: flex;
    gap: 24px;
}

.footer__numbers div {
    font-size: 0.8rem;
    color: var(--text-3);
}

.footer__numbers strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--saffron);
}

.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-2);
    transition: color var(--t-fast);
}

.footer__col a:hover { color: var(--saffron); }

.footer__newsletter-text {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer__form {
    display: flex;
    gap: 8px;
}

.footer__form input {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    font-family: var(--f-body);
    transition: border-color var(--t-fast);
}

.footer__form input:focus { outline: none; border-color: var(--saffron); }
.footer__form input::placeholder { color: var(--text-3); }

.footer__form button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saffron);
    color: white;
    border-radius: var(--radius);
    font-size: 1.1rem;
    transition: all var(--t-fast);
}

.footer__form button:hover { background: var(--saffron-light); }

.footer__bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-3);
    text-align: center;
}

.footer__bottom a { color: var(--text-2); transition: color var(--t-fast); }
.footer__bottom a:hover { color: var(--saffron); }

/* ========== BACK TO TOP ========== */
.btt {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--t-base) var(--ease);
    z-index: 50;
}

.btt.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btt:hover {
    background: var(--saffron);
    color: white;
    border-color: var(--saffron);
}

/* ========== FAB ========== */
.fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saffron);
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    box-shadow: 0 4px 20px var(--saffron-glow);
    z-index: 50;
    transition: all var(--t-base) var(--ease);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--saffron-glow);
}

.fab__pulse {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--saffron);
    border-radius: 50%;
    animation: fab-pulse 2s ease infinite;
}

@keyframes fab-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav__links { display: none; }
    .nav__mobile-toggle { display: flex; }
    .nav__cta { display: none; }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }
    
    .footer__grid { grid-template-columns: 1fr; }
    .footer__brand { grid-column: span 1; }
    
    .verse-display { padding: 24px; }
    .verse-sanskrit { font-size: 1.1rem; }
    .lang-tabs { flex-wrap: wrap; }
    
    .btt { bottom: 16px; right: 16px; width: 40px; height: 40px; }
    .fab { bottom: 16px; left: 16px; width: 48px; height: 48px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .section { padding: 40px 0; }
    .section__header { margin-bottom: 32px; }
    .footer__numbers { flex-direction: column; gap: 12px; }
}

/* ========== PRINT ========== */
@media print {
    .nav, .footer, .fab, .btt, .cursor-glow, .mobile-menu, .mobile-menu__overlay { display: none !important; }
    .main { padding-top: 0; }
    body { background: white; color: black; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    overflow: hidden;
}

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

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--saffron);
    top: -10%;
    left: -5%;
    animation: orb-float 20s ease-in-out infinite;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: #A855F7;
    bottom: -10%;
    right: -5%;
    animation: orb-float 25s ease-in-out infinite reverse;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    top: 40%;
    right: 20%;
    opacity: 0.08;
    animation: orb-float 15s ease-in-out infinite;
}

[data-theme="light"] .hero__orb { opacity: 0.06; }

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

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

.hero__title { margin-bottom: 20px; }

.hero__subtitle {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* Hero Input */
.hero__input-wrap {
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero__input-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 20px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-base);
}

.hero__input-inner:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.hero__input-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero__input {
    flex: 1;
    padding: 12px 0;
    font-size: 0.95rem;
    font-family: var(--f-body);
    background: none;
    border: none;
    color: var(--text-1);
    outline: none;
}

.hero__input::placeholder { color: var(--text-3); }

.hero__input-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: var(--saffron);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--t-base);
    white-space: nowrap;
}

.hero__input-btn:hover {
    background: var(--saffron-light);
    box-shadow: 0 0 20px var(--saffron-glow);
}

/* Quick Prompts */
.hero__prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.hero__prompts-label {
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}

.hero__prompt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
}

.hero__prompt-chip:hover {
    color: var(--saffron);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-2px);
}

/* Trust Bar */
.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__trust-item {
    font-size: 0.85rem;
    color: var(--text-3);
}

.hero__trust-item strong {
    color: var(--text-1);
    font-weight: 700;
}

.hero__trust-sep {
    color: var(--text-3);
    opacity: 0.3;
}

/* ========== VERSE ACTIONS ========== */
.verse-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ========== BENTO GRID ========== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento__item {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: inherit;
}

.bento__item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.bento__item--lg {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(168,85,247,0.04));
    border-color: rgba(249, 115, 22, 0.15);
}

.bento__item--lg:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.bento__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.bento__item--lg .bento__icon {
    font-size: 3rem;
    margin-bottom: 0;
}

.bento__item--lg h3 { margin-bottom: 8px; }

.bento__cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--saffron);
}

/* ========== CHAPTERS GRID ========== */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.chapter-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: inherit;
}

.chapter-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.chapter-card__num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.chapter-card__content {
    flex: 1;
    min-width: 0;
}

.chapter-card__content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-card__content .text-sanskrit {
    font-size: 0.85rem;
    margin-top: 2px;
}

.chapter-card__content .text-sm { margin-top: 2px; }

.chapter-card__arrow {
    color: var(--text-3);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--t-base);
}

.chapter-card:hover .chapter-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========== TOPICS GRID ========== */
.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: var(--text-1);
}

.topic-pill:hover {
    background: rgba(249, 115, 22, 0.08);
    border-color: var(--tc, var(--saffron));
    color: var(--tc, var(--saffron));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.topic-pill__icon { font-size: 1.2rem; }

.topic-pill__name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== POPULAR GRID ========== */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.popular-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.popular-card__ref {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--saffron);
    margin-bottom: 12px;
}

.popular-card__sanskrit {
    font-family: var(--f-sanskrit);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--saffron);
    opacity: 0.8;
    margin-bottom: 12px;
}

.popular-card__translation {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-2);
    flex: 1;
    margin-bottom: 16px;
}

.popular-card__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-3);
    transition: color var(--t-fast);
}

.popular-card:hover .popular-card__cta { color: var(--saffron); }

/* ========== CTA BLOCK ========== */
.cta-block {
    position: relative;
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(249, 115, 22, 0.2);
    background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(168,85,247,0.03));
}

.cta-block__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-block__orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--saffron);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-block__content {
    position: relative;
    z-index: 1;
}

.cta-block__content h2 { margin-bottom: 12px; }
.cta-block__content p { margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-block__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE HOMEPAGE ========== */
@media (max-width: 768px) {
    .hero { min-height: 80vh; padding: 40px 0; }
    .hero__prompt-chip { font-size: 0.75rem; padding: 5px 12px; }
    
    .bento {
        grid-template-columns: 1fr;
    }
    .bento__item--lg {
        grid-column: span 1;
        display: block;
        padding: 28px;
    }
    .bento__item--lg .bento__icon { margin-bottom: 16px; }
    
    .chapters-grid { grid-template-columns: 1fr; }
    .popular-grid { grid-template-columns: 1fr; }
    
    .hero__trust { flex-direction: column; gap: 8px; }
    .hero__trust-sep { display: none; }
    
    .cta-block { padding: 48px 24px; }
}
/* ========== CHAT PAGE ========== */
.page-chat .main { padding-top: var(--nav-h); }
.page-chat .footer { display: none; }
.page-chat .fab { display: none; }

.chat {
    height: calc(100dvh - var(--nav-h));
}

.chat__container {
    display: flex;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.chat__sidebar {
    width: 320px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    flex-shrink: 0;
}

.chat__sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat__sidebar-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
}

.chat__sidebar-prompts {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chat__prompt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-2);
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-align: left;
    transition: all var(--t-fast);
    margin-bottom: 4px;
    font-family: var(--f-body);
}

.chat__prompt-btn:hover {
    color: var(--text-0);
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.chat__prompt-btn span { font-size: 1.1rem; flex-shrink: 0; }

.chat__sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.chat__lang-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-family: var(--f-body);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    cursor: pointer;
}

.chat__lang-select option {
    background: var(--bg-3);
    color: var(--text-1);
}

/* Main Chat */
.chat__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.chat__sidebar-toggle { display: none; }

.chat__header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat__header-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    border-radius: var(--radius);
    font-size: 1.2rem;
}

.chat__header-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
}

.chat__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-3);
}

.chat__status-dot {
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
}

/* Messages */
.chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat__welcome {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: auto;
}

.chat__welcome-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.chat__welcome h2 { margin-bottom: 12px; }

/* Message Bubbles */
.chat__msg {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: msg-in 0.3s var(--ease);
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat__msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat__msg-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
    background: var(--bg-4);
}

.chat__msg--bot .chat__msg-avatar {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
}

.chat__msg-body {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.7;
}

.chat__msg--bot .chat__msg-body {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-1);
    border-bottom-left-radius: 4px;
}

.chat__msg--user .chat__msg-body {
    background: var(--saffron);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Verse Card in Chat */
.chat__verse {
    margin: 12px 0;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--saffron);
    border-radius: var(--radius);
}

.chat__verse-ref {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--saffron);
    margin-bottom: 8px;
}

.chat__verse-sanskrit {
    font-family: var(--f-sanskrit);
    font-size: 1rem;
    line-height: 2;
    color: var(--saffron);
    opacity: 0.9;
    margin-bottom: 8px;
}

.chat__verse-translation {
    font-family: var(--f-display);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-2);
    font-style: italic;
}

.chat__verse-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.chat__verse-actions a,
.chat__verse-actions button {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    font-family: var(--f-body);
}

.chat__verse-actions a:hover,
.chat__verse-actions button:hover {
    color: var(--saffron);
    border-color: var(--saffron);
}

/* Typing Indicator */
.chat__typing {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
}

.chat__typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-3);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Area */
.chat__input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

.chat__input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--t-fast);
}

.chat__input-wrap:focus-within {
    border-color: var(--saffron);
}

.chat__voice-btn,
.chat__send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-3);
    transition: all var(--t-fast);
    flex-shrink: 0;
}

.chat__voice-btn:hover { color: var(--text-1); background: var(--bg-card); }

.chat__send-btn {
    background: var(--saffron);
    color: white;
    border-radius: var(--radius);
}

.chat__send-btn:hover {
    background: var(--saffron-light);
}

.chat__textarea {
    flex: 1;
    padding: 8px 4px;
    font-size: 0.95rem;
    font-family: var(--f-body);
    background: none;
    border: none;
    color: var(--text-1);
    resize: none;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
}

.chat__textarea:focus { outline: none; }
.chat__textarea::placeholder { color: var(--text-3); }

.chat__input-note {
    font-size: 0.7rem;
    color: var(--text-3);
    text-align: center;
    margin-top: 8px;
}

/* Chat Responsive */
@media (max-width: 768px) {
    .chat__sidebar {
        position: fixed;
        left: -100%;
        top: var(--nav-h);
        bottom: 0;
        width: 300px;
        z-index: 50;
        transition: left var(--t-slow) var(--ease);
    }
    
    .chat__sidebar.is-open { left: 0; }
    .chat__sidebar-toggle { display: flex; }
    
    .chat__msg { max-width: 90%; }
    .chat__input-area { padding: 12px 16px; }
    .chat__messages { padding: 16px; }
}

/* ========== CHAPTER HERO ========== */
.ch-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.ch-hero__content { max-width: 800px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-3);
    margin-bottom: 24px;
}

.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--saffron); }

.ch-hero__meta {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.ch-hero__num {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: white;
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.ch-hero__summary {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ========== CHAPTER NAV ========== */
.ch-nav {
    position: sticky;
    top: var(--nav-h);
    z-index: 40;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ch-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    max-width: 800px;
}

.ch-nav__btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
}

.ch-nav__btn:hover { color: var(--saffron); border-color: var(--saffron); }

.ch-nav__select {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--f-body);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    cursor: pointer;
    max-width: 200px;
}

.ch-nav__display {
    display: flex;
    gap: 2px;
    padding: 2px;
    background: var(--bg-3);
    border-radius: var(--radius-full);
}

.ch-nav__display-btn {
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-3);
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
    font-family: var(--f-body);
}

.ch-nav__display-btn:hover { color: var(--text-1); }

.ch-nav__display-btn.is-active {
    color: var(--text-0);
    background: var(--bg-card-hover);
}

/* ========== VERSE CARD ========== */
.v-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: all var(--t-base);
}

.v-card:hover {
    border-color: var(--border-hover);
}

.v-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.v-card__ref {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--saffron);
    padding: 4px 12px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: var(--radius-full);
}

.v-card__speaker {
    font-size: 0.75rem;
    color: var(--text-3);
}

.v-card__section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.v-card__section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.v-card__sanskrit {
    font-family: var(--f-sanskrit);
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--saffron);
    text-align: center;
    padding: 16px;
    background: rgba(249, 115, 22, 0.04);
    border-radius: var(--radius);
}

.v-card__romanized {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 2;
    color: var(--text-3);
    text-align: center;
    margin-top: 12px;
}

.v-card__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-1);
}

.v-card__explanation {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-3);
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-2);
}

.v-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.v-card__action {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-3);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    font-family: var(--f-body);
}

.v-card__action:hover {
    color: var(--saffron);
    border-color: var(--saffron);
}

/* ========== CHAPTER BOTTOM NAV ========== */
.ch-bottom-nav { padding: 40px 0 60px; }

.ch-bottom-nav__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ch-bottom-nav__card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
    text-decoration: none;
    color: var(--text-1);
}

.ch-bottom-nav__card:hover {
    border-color: var(--saffron);
    transform: translateY(-3px);
}

.ch-bottom-nav__card strong {
    display: block;
    margin-top: 4px;
    color: var(--text-0);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    padding: 80px 20px;
    text-align: center;
}

/* ========== CHAPTER RESPONSIVE ========== */
@media (max-width: 768px) {
    .ch-hero__meta { flex-direction: column; }
    .ch-hero__num { width: 48px; height: 48px; font-size: 1.3rem; }
    
    .ch-nav__inner { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .ch-nav__select { max-width: 100%; flex: 1; }
    
    .v-card { padding: 20px; }
    .v-card__sanskrit { font-size: 1rem; padding: 12px; }
    
    .ch-bottom-nav__grid { grid-template-columns: 1fr; }
}

/* ========== SEARCH PAGE ========== */
.search-page { padding: 48px 0 80px; }

.search-bar {
    max-width: 100%;
    margin-bottom: 20px;
}

.search-bar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 18px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: border-color var(--t-fast);
}

.search-bar__inner:focus-within {
    border-color: var(--saffron);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
}

.search-bar__icon {
    color: var(--text-3);
    flex-shrink: 0;
}

.search-bar__input {
    flex: 1;
    padding: 10px 0;
    font-size: 1rem;
    font-family: var(--f-body);
    background: none;
    border: none;
    color: var(--text-1);
    outline: none;
}

.search-bar__input::placeholder { color: var(--text-3); }

.search-bar__clear {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-4);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-3);
    flex-shrink: 0;
}

.search-bar__clear:hover { background: var(--saffron); color: white; }

.search-bar__btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: var(--saffron);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--f-body);
    transition: all var(--t-fast);
    white-space: nowrap;
}

.search-bar__btn:hover { background: var(--saffron-light); }

/* Search Tags */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 40px;
}

.search-tag {
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-3);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
}

.search-tag:hover,
.search-tag.is-active {
    color: var(--saffron);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.06);
}

/* Search Results */
.search-results__header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.search-result {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: inherit;
}

.search-result:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.search-result__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.search-result__ref {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--saffron);
}

.search-result__meta {
    font-size: 0.75rem;
    color: var(--text-3);
}

.search-result__sanskrit {
    font-family: var(--f-sanskrit);
    font-size: 0.9rem;
    color: var(--saffron);
    opacity: 0.7;
    margin-bottom: 8px;
    line-height: 1.6;
}

.search-result__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-2);
}

/* Search Empty */
.search-empty {
    text-align: center;
    padding: 60px 20px;
}

/* Browse Topics */
.search-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.search-topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base) var(--ease);
    text-align: center;
}

.search-topic-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.search-topic-icon { font-size: 2rem; }
.search-topic-name { font-size: 0.9rem; font-weight: 600; color: var(--text-0); }
.search-topic-hindi { font-family: var(--f-sanskrit); font-size: 0.8rem; color: var(--text-3); }

@media (max-width: 768px) {
    .search-topics { grid-template-columns: repeat(2, 1fr); }
    .search-bar__btn { padding: 10px 16px; font-size: 0.8rem; }
}

/* ========== INFO PAGES (Vedas, Dharma, About) ========== */
.info-page { padding: 48px 0 80px; }

.info-hero {
    text-align: center;
    margin-bottom: 48px;
}

.info-block {
    margin-bottom: 32px;
}

.info-block p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.info-cta {
    margin-top: 60px;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

/* Veda Card */
.veda-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--vc, var(--saffron));
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    transition: all var(--t-base);
}

.veda-card:hover {
    border-color: var(--vc, var(--saffron));
    background: var(--bg-card-hover);
}

.veda-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.veda-card__icon { font-size: 2rem; }

.veda-card__stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.veda-card__stat {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-3);
    border-radius: var(--radius-full);
}

.veda-card__mantra {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-3);
    border-radius: var(--radius);
}

/* Layer Item */
.layer-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: all var(--t-fast);
}

.layer-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.layer-item__num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saffron);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.layer-item__content h4 {
    font-size: 0.95rem;
    color: var(--text-0);
}

/* Gayatri Block */
.gayatri-block {
    margin-top: 48px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gayatri-block::before {
    content: 'ॐ';
    position: absolute;
    top: -30px;
    right: -10px;
    font-family: var(--f-sanskrit);
    font-size: 200px;
    color: var(--saffron);
    opacity: 0.03;
    pointer-events: none;
}

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(249, 115, 22, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-left: 3px solid var(--saffron);
    border-radius: var(--radius);
    margin: 24px 0;
}

.highlight-box__icon { font-size: 1.5rem; flex-shrink: 0; }

.highlight-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 4px;
}

.highlight-box p { font-size: 0.9rem; line-height: 1.6; }

/* ========== PRINCIPLE GRID ========== */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.principle-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
}

.principle-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.principle-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.principle-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 8px;
}

.principle-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 12px;
}

.principle-card__quote {
    padding: 12px;
    background: var(--bg-3);
    border-radius: 8px;
    border-left: 2px solid var(--saffron);
}

.principle-card__quote .text-sanskrit {
    font-size: 1rem;
    margin-bottom: 4px;
}

.principle-card__quote em {
    font-size: 0.8rem;
    color: var(--text-3);
}

/* ========== VALUE CHIPS ========== */
.value-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.value-chip {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-fast);
    text-align: center;
}

.value-chip:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.value-chip h4 {
    font-size: 0.85rem;
    color: var(--text-0);
    margin-bottom: 2px;
}

.value-chip .text-sanskrit { font-size: 0.9rem; }
.value-chip .text-sm { font-size: 0.75rem; margin-top: 2px; }

/* ========== PATH GRID ========== */
.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.path-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--pc, var(--saffron));
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
}

.path-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.path-card__icon { font-size: 2rem; margin-bottom: 12px; }

.path-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
}

.path-card h4 {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 12px;
}

.path-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 12px;
}

.path-card__detail {
    padding: 12px;
    background: var(--bg-3);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.6;
}

.path-card__detail strong { color: var(--text-0); }

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--saffron), var(--border));
}

.timeline__item {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
}

.timeline__item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--saffron);
    border-radius: 50%;
    border: 2px solid var(--bg-1);
}

.timeline__item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 2px;
}

.timeline__item h5 {
    font-size: 0.85rem;
    color: var(--text-3);
    font-weight: 400;
    margin-bottom: 8px;
}

/* ========== FAQ ========== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all var(--t-fast);
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-0);
    background: none;
    text-align: left;
    font-family: var(--f-body);
}

.faq-q__toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--text-3);
    transition: all var(--t-base);
    flex-shrink: 0;
}

.faq-item.is-open .faq-q__toggle {
    transform: rotate(45deg);
    background: var(--saffron);
    color: white;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
}

.faq-item.is-open .faq-a {
    max-height: 300px;
}

.faq-a__inner {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-2);
}

/* ========== OFFER GRID (About) ========== */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.offer-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
}

.offer-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.offer-card__icon { font-size: 1.5rem; margin-bottom: 12px; }

.offer-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-0);
    margin-bottom: 6px;
}

.offer-card p {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.5;
}

/* ========== STATS ROW ========== */
.stats-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.stats-row__item { text-align: center; }

.stats-row__num {
    display: block;
    font-family: var(--f-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--saffron);
    line-height: 1;
}

.stats-row__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-3);
    margin-top: 4px;
}

/* ========== INFO RESPONSIVE ========== */
@media (max-width: 768px) {
    .info-page { padding: 32px 0 60px; }
    .veda-card { padding: 20px; }
    .veda-card__header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .gayatri-block { padding: 24px; }
    .principle-grid { grid-template-columns: 1fr; }
    .path-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 24px; }
    .stats-row { flex-direction: column; gap: 16px; }
    .offer-grid { grid-template-columns: 1fr; }
}

/* ========== CHAPTERS LIST ========== */
.chapter-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: inherit;
}

.chapter-list-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.chapter-list-item__num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.chapter-list-item__content {
    flex: 1;
    min-width: 0;
}

.chapter-list-item__content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-0);
}

.chapter-list-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chapter-list-item__meta svg {
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--t-base);
}

.chapter-list-item:hover .chapter-list-item__meta svg {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .chapter-list-item { padding: 14px 16px; gap: 12px; }
    .chapter-list-item__num { width: 40px; height: 40px; font-size: 0.95rem; }
    .chapter-list-item__meta { display: none; }
}

/* ========== TOPICS BROWSE ========== */
.topics-browse {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.topic-browse-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--t-base) var(--ease);
}

.topic-browse-item:hover {
    color: var(--tc, var(--saffron));
    border-color: var(--tc, var(--saffron));
    background: rgba(249, 115, 22, 0.06);
    transform: translateY(-2px);
}

.topic-browse-item.is-active {
    background: var(--tc, var(--saffron));
    color: white;
    border-color: transparent;
}

/* ========== VERSE DETAIL PAGE ========== */
.verse-page {
    padding: 32px 0 80px;
}

.verse-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

/* Header */
.verse-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(168,85,247,0.03));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.verse-detail__header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.verse-detail__badge {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.verse-detail__title {
    font-family: var(--f-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-0);
}

.verse-detail__chapter {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-top: 2px;
}

.verse-detail__speaker {
    font-size: 0.85rem;
    color: var(--text-2);
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Tabs */
.verse-detail__tabs {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}

/* Sections */
.verse-detail__section {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
}

.verse-detail__section:last-of-type {
    border-bottom: none;
}

.verse-detail__section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

/* Sanskrit Box */
.verse-detail__sanskrit-box {
    padding: 28px;
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: var(--radius);
    margin-bottom: 4px;
}

.verse-detail__sanskrit-text {
    font-family: var(--f-sanskrit);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 2.4;
    color: var(--saffron);
    text-align: center;
}

/* Romanized */
.verse-detail__romanized {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-3);
    border-radius: var(--radius);
}

.verse-detail__romanized p {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 2;
    color: var(--text-3);
    text-align: center;
}

/* Translation */
.verse-detail__translation {
    font-family: var(--f-display);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-1);
}

/* Explanation */
.verse-detail__explanation {
    margin-top: 16px;
    padding: 20px;
    background: var(--bg-3);
    border-radius: var(--radius);
    border-left: 3px solid var(--saffron);
}

.verse-detail__explanation-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}

.verse-detail__explanation p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-2);
}

/* Word Meanings */
.verse-detail__words {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.word-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-3);
    border-radius: 8px;
    font-size: 0.85rem;
}

.word-pair__sanskrit {
    font-family: var(--f-sanskrit);
    font-weight: 600;
    color: var(--saffron);
}

.word-pair__sep { color: var(--text-3); }
.word-pair__meaning { color: var(--text-2); }

/* Themes */
.verse-detail__themes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.verse-detail__theme-tag {
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-3);
    background: var(--bg-3);
    border-radius: var(--radius-full);
    transition: all var(--t-fast);
}

.verse-detail__theme-tag:hover {
    color: var(--saffron);
    background: rgba(249, 115, 22, 0.08);
}

/* Actions */
.verse-detail__actions {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-3);
    flex-wrap: wrap;
}

.verse-detail__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    font-family: var(--f-body);
}

.verse-detail__action:hover {
    color: var(--saffron);
    border-color: var(--saffron);
    background: rgba(249, 115, 22, 0.06);
}

.verse-detail__action svg { flex-shrink: 0; }

/* ========== COMMENTARIES ========== */
.verse-commentaries {
    margin-bottom: 32px;
}

.commentary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
    transition: all var(--t-fast);
}

.commentary-card:hover {
    border-color: var(--border-hover);
}

.commentary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-0);
}

.commentary-card__body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-2);
}

/* ========== RELATED VERSES ========== */
.verse-related {
    margin-bottom: 32px;
}

.verse-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.verse-related__item {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
}

.verse-related__item:hover {
    border-color: var(--saffron);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.verse-related__ref {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--saffron);
    margin-bottom: 6px;
}

.verse-related__text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-3);
}

/* ========== VERSE NAV (Prev/Next) ========== */
.verse-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.verse-nav__card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: inherit;
}

.verse-nav__card:hover {
    border-color: var(--saffron);
    transform: translateY(-3px);
}

.verse-nav__card--next {
    text-align: right;
}

.verse-nav__direction {
    display: block;
    font-size: 0.75rem;
    color: var(--text-3);
    margin-bottom: 4px;
}

.verse-nav__ref {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--saffron);
    margin-bottom: 4px;
}

.verse-nav__preview {
    font-size: 0.8rem;
    color: var(--text-3);
    line-height: 1.4;
}

/* ========== VERSE PAGE RESPONSIVE ========== */
@media (max-width: 768px) {
    .verse-page { padding: 24px 0 60px; }
    .verse-detail__header { flex-direction: column; align-items: flex-start; }
    .verse-detail__section { padding: 20px 16px; }
    .verse-detail__sanskrit-box { padding: 16px; }
    .verse-detail__sanskrit-text { font-size: 1.1rem; }
    .verse-detail__actions { padding: 12px 16px; }
    .verse-detail__words { grid-template-columns: 1fr; }
    .verse-related__grid { grid-template-columns: 1fr; }
    .verse-nav { grid-template-columns: 1fr; }
}
/* ========== 404 PAGE ========== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.error-page__content { text-align: center; }

.error-page__icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.error-page__code {
    font-family: var(--f-display);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.error-page__verse {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
}

.error-page__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.error-page__search {
    display: flex;
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
}

.error-page__input {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-family: var(--f-body);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    outline: none;
}

.error-page__input:focus { border-color: var(--saffron); }

/* ========== CONTACT PAGE ========== */
.contact-form {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.contact-field { margin-bottom: 20px; }

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
}

.contact-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--f-body);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    transition: border-color var(--t-fast);
}

.contact-input:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.contact-input::placeholder { color: var(--text-3); }

.contact-textarea { resize: vertical; min-height: 120px; }

select.contact-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5L6 8L9 5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.contact-alt { margin-bottom: 40px; }

.contact-channels {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-channel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-2);
    transition: all var(--t-fast);
}

.contact-channel:hover {
    color: var(--saffron);
    border-color: var(--saffron);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ========== SELECTION ========== */
::selection { background: var(--saffron); color: white; }

/* ========== FOCUS RING ========== */
:focus-visible {
    outline: 2px solid var(--saffron);
    outline-offset: 2px;
}

/* ========== SMOOTH IMAGE LOADING ========== */
img {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded, img[src] { opacity: 1; }

/* ========== PREVENT FOUC ========== */
[data-reveal] { will-change: opacity, transform; }

/* ========== LOADING STATE FOR BUTTONS ========== */
.btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

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

/* ========== RESPONSIVE UTILITIES ========== */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ========== PRINT ========== */
@media print {
    .nav, .footer, .fab, .btt, .cursor-glow,
    .mobile-menu, .mobile-menu__overlay,
    .verse-detail__actions, .verse-actions,
    .ch-nav, .verse-nav,
    .chat__input-area, .chat__sidebar,
    .hero__prompts, .hero__input-wrap,
    .cta-block, .error-page__search { 
        display: none !important; 
    }
    
    .main { padding-top: 0; }
    body { background: white !important; color: black !important; }
    
    .verse-detail,
    .verse-display,
    .v-card,
    .search-result {
        break-inside: avoid;
        border-color: #ccc !important;
        background: white !important;
    }
    
    .verse-detail__sanskrit-text,
    .verse-sanskrit,
    .v-card__sanskrit {
        color: #333 !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.7em;
        color: #666;
    }
}