/* ═══════════════════════════════════════════════════════
   AbhiAstro — Dark Mystical Astrology Theme
   Pure CSS • No frameworks • Mobile-first
   ═══════════════════════════════════════════════════════ */

/* ───── Variables ───── */
:root {
    --bg-deep: #0a0a1f;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --bg-surface: #12122e;
    --gold: #d4af37;
    --gold-dim: #b8962e;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --teal: #00bcd4;
    --teal-dim: #009aaf;
    --text-primary: #eee;
    --text-secondary: #aab;
    --text-muted: #778;
    --border-subtle: rgba(212, 175, 55, 0.15);
    --glass-bg: rgba(26, 26, 62, 0.6);
    --glass-border: rgba(212, 175, 55, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; }

/* ───── Scrollbar ───── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ═══════════════════ NAVIGATION ═══════════════════ */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--nav-height);
    transition: background var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep) !important;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════ HERO SECTION ═══════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 24px 60px;
    background: radial-gradient(ellipse at 50% 30%, #1a1a4a 0%, var(--bg-deep) 70%);
}

/* Stars */
.stars-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--max-opacity, 0.8); transform: scale(1); }
}

/* Floating Zodiac */
.zodiac-float {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.zodiac-symbol {
    position: absolute;
    font-size: 1.8rem;
    color: rgba(212, 175, 55, 0.08);
    animation: floatZodiac 20s ease-in-out infinite;
}

.z1  { top: 10%; left: 5%;  animation-delay: 0s;   animation-duration: 22s; }
.z2  { top: 15%; left: 85%; animation-delay: 2s;   animation-duration: 18s; }
.z3  { top: 30%; left: 10%; animation-delay: 4s;   animation-duration: 25s; }
.z4  { top: 25%; left: 75%; animation-delay: 1s;   animation-duration: 20s; }
.z5  { top: 50%; left: 3%;  animation-delay: 3s;   animation-duration: 23s; }
.z6  { top: 45%; left: 90%; animation-delay: 5s;   animation-duration: 19s; }
.z7  { top: 65%; left: 8%;  animation-delay: 2.5s; animation-duration: 21s; }
.z8  { top: 60%; left: 82%; animation-delay: 1.5s; animation-duration: 24s; }
.z9  { top: 75%; left: 15%; animation-delay: 4.5s; animation-duration: 17s; }
.z10 { top: 80%; left: 78%; animation-delay: 0.5s; animation-duration: 22s; }
.z11 { top: 85%; left: 50%; animation-delay: 3.5s; animation-duration: 20s; }
.z12 { top: 20%; left: 50%; animation-delay: 2s;   animation-duration: 26s; }

@keyframes floatZodiac {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
    25% { transform: translateY(-20px) rotate(10deg); opacity: 0.12; }
    50% { transform: translateY(-10px) rotate(-5deg); opacity: 0.08; }
    75% { transform: translateY(-25px) rotate(8deg); opacity: 0.1; }
}

/* Hero Content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    position: relative;
    z-index: 1;
    animation: logoPulse 4s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-title {
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.hero-title-hindi {
    display: block;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), #ffd700, var(--gold-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-title-en {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 6px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero-subtitle strong { color: var(--teal); }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--gold-glow);
    color: var(--bg-deep);
}

.cta-icon { font-size: 1.2em; }

.hero-hint {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    display: inline-block;
    color: var(--gold);
    font-size: 1.4rem;
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.5;
}

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

/* ═══════════════════ SECTION COMMON ═══════════════════ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 4px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.05);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ═══════════════════ FEATURES GRID ═══════════════════ */
.features-section {
    padding: 100px 0;
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, var(--gold-glow) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
}

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

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════ HOW IT WORKS ═══════════════════ */
.how-section {
    padding: 100px 0;
    background: var(--bg-deep);
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    flex: 0 1 260px;
    position: relative;
    backdrop-filter: blur(10px);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.step-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.step-card a { color: var(--teal); }

.step-connector {
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* ═══════════════════ STATS ═══════════════════ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stat-card {
    text-align: center;
    min-width: 160px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-icon {
    font-size: 1.6rem;
    margin-top: 8px;
    opacity: 0.5;
}

.stats-cta {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-cta strong { color: var(--gold); }

/* ═══════════════════ ASTROBOOK SECTION ═══════════════════ */
.astrobook-section {
    padding: 100px 0;
    background: var(--bg-deep);
}

.astrobook-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.astrobook-text .section-tag { display: inline-block; margin-bottom: 16px; }
.astrobook-text .section-title { text-align: left; margin-bottom: 16px; }

.astrobook-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.astrobook-desc strong { color: var(--gold); }

.astrobook-features {
    list-style: none;
    margin-bottom: 28px;
}

.astrobook-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-subtle);
}

.secondary-cta {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.secondary-cta:hover {
    background: var(--gold);
    color: var(--bg-deep);
}

/* Book Mockup */
.astrobook-preview {
    display: flex;
    justify-content: center;
}

.book-mockup {
    position: relative;
    perspective: 800px;
}

.book-page {
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px;
    transform: rotateY(-5deg);
    transition: transform var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.book-mockup:hover .book-page {
    transform: rotateY(0deg);
}

.book-header-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.book-mock-icon { font-size: 1.5rem; }
.book-mock-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 700;
}

.mock-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.mock-label { color: var(--text-muted); }
.mock-value { color: var(--text-primary); font-weight: 500; }

.mock-chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.mock-bar {
    flex: 1;
    background: linear-gradient(0deg, var(--gold-dim), var(--gold));
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
    animation: mockBarGrow 2s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

@keyframes mockBarGrow {
    to { transform: scaleY(1); }
}

.book-shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
}

/* ═══════════════════ TECHNOLOGY ═══════════════════ */
.tech-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tech-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.tech-badge:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.tech-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.tech-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: block;
}
.tech-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.03);
}

/* ═══════════════════ FINAL CTA ═══════════════════ */
.final-cta-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 80%, #1a1a4a 0%, var(--bg-deep) 70%);
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.final-cta-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

.final-cta-btn { font-size: 1.1rem; padding: 16px 40px; }

/* ═══════════════════ FOOTER ═══════════════════ */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.footer-tagline {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 4px;
}

.footer-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--gold); }

.footer-copy { margin-top: 6px; font-size: 0.75rem !important; }

/* ═══════════════════ ERROR PAGE ═══════════════════ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px;
}

.error-icon { font-size: 4rem; display: block; margin-bottom: 16px; }
.error-code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-message { font-size: 1.2rem; color: var(--text-primary); margin: 12px 0 8px; }
.error-hint { color: var(--text-muted); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════════════
   ASTROBOOK VIEWER (book.html)
   ═══════════════════════════════════════════════════════ */

.book-hero {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
    padding: calc(var(--nav-height) + 40px) 24px 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.book-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.book-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.book-rashi-symbol {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--gold), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-user-name {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
}

.book-user-rashi {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.book-actions {
    display: flex;
    gap: 10px;
}

.book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-body);
    text-decoration: none;
}

.pdf-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--bg-deep);
}

.pdf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--gold-glow);
    color: var(--bg-deep);
}

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

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

/* Book Layout */
.book-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.book-sidebar {
    position: sticky;
    top: var(--nav-height);
    height: fit-content;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: 24px 0;
    border-right: 1px solid var(--border-subtle);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
}

.sidebar-link {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}

.sidebar-link:hover {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold);
}

.sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

/* Book Content */
.book-content {
    padding: 24px 32px;
}

.book-section {
    margin-bottom: 60px;
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

.book-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.profile-main-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-glow), rgba(0, 188, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.profile-avatar-symbol { font-size: 2rem; }

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-rashi {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Personality */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.personality-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
}

.category-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 14px;
}

.trait-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

.trait-key {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.trait-value {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.trait-confidence {
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 4px;
    opacity: 0.4;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
}

.chart-card h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.chart-wide {
    grid-column: 1 / -1;
}

.chart-container {
    position: relative;
    height: 250px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg-deep);
}

.timeline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-type {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.timeline-question {
    color: var(--teal);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 6px;
}

.timeline-response {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Predictions */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.prediction-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 3px solid var(--text-muted);
}

.prediction-card.sentiment-positive { border-left-color: #4caf50; }
.prediction-card.sentiment-negative { border-left-color: #f44336; }
.prediction-card.sentiment-neutral  { border-left-color: var(--gold); }

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prediction-type {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.85rem;
}

.prediction-sentiment {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.sent-positive { color: #4caf50; }
.sent-negative { color: #f44336; }
.sent-neutral  { color: var(--gold); }

.prediction-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.prediction-keys {
    color: var(--teal);
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 8px;
}

.prediction-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Cosmic Guidance */
.cosmic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cosmic-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
}

.cosmic-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.cosmic-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.cosmic-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}
.cosmic-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    display: block;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius);
}

.empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.5; }

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(10, 10, 31, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero { padding: 80px 20px 50px; }
    .hero-logo { width: 90px; height: 90px; }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-row { flex-direction: column; gap: 16px; }
    .step-connector { display: none; }
    .step-card { flex: 1 1 100%; max-width: 100%; }

    .stats-grid { gap: 24px; }

    .astrobook-layout { grid-template-columns: 1fr; gap: 40px; }
    .astrobook-preview { order: -1; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Book viewer */
    .book-layout { grid-template-columns: 1fr; }
    .book-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 0;
    }
    .sidebar-inner {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 0;
    }
    .sidebar-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .sidebar-link.active { border-left: none; border-bottom: 2px solid var(--gold); }

    .book-content { padding: 20px 16px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-details { grid-template-columns: 1fr; }
    .charts-grid { grid-template-columns: 1fr; }
    .predictions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-row { flex-direction: column; align-items: center; gap: 10px; }
    .tech-grid { gap: 12px; }
    .tech-badge { min-width: 120px; padding: 14px 16px; }
    .book-hero-content { flex-direction: column; text-align: center; }
    .book-user-info { flex-direction: column; text-align: center; }
    .book-actions { width: 100%; justify-content: center; }
    .cosmic-grid { grid-template-columns: 1fr 1fr; }
}
