/* ============================================================
   VEDIC JYOTISH — PREMIUM DARK THEME
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
    --purple-900: #0f0720;
    --purple-800: #1a1040;
    --purple-700: #2d1b69;
    --purple-600: #4c1d95;
    --purple-500: #7c3aed;
    --purple-400: #a78bfa;
    --purple-300: #c4b5fd;
    --gold-500:   #f59e0b;
    --gold-400:   #fbbf24;
    --gold-300:   #fcd34d;
    --pink-500:   #ec4899;
    --pink-400:   #f472b6;

    --bg-primary:   #07061a;
    --bg-secondary: #0d0b28;
    --bg-card:      rgba(255,255,255,0.04);
    --bg-card-hover:rgba(255,255,255,0.07);

    --text-primary:   #ffffff;
    --text-secondary: rgba(255,255,255,0.72);
    --text-muted:     rgba(255,255,255,0.42);
    --border-color:   rgba(255,255,255,0.08);
    --border-hover:   rgba(139,92,246,0.45);

    --gradient-primary: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    --gradient-gold:    linear-gradient(135deg, #f59e0b, #fbbf24, #fde68a);
    --gradient-glow:    linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);

    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(139,92,246,0.2);
    --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);

    --navbar-height: 68px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
}

/* ---- LIGHT THEME VARIABLES ---- */
[data-theme="light"] {
    --bg-primary:    #f0eeff;
    --bg-secondary:  #e5e0ff;
    --bg-card:       rgba(255,255,255,0.75);
    --bg-card-hover: rgba(255,255,255,0.9);
    --text-primary:   #1e1b4b;
    --text-secondary: rgba(30,27,75,0.76);
    --text-muted:     rgba(30,27,75,0.5);
    --border-color:   rgba(124,58,237,0.14);
    --border-hover:   rgba(124,58,237,0.4);
    --shadow-card:    0 8px 32px rgba(124,58,237,0.1);
    --shadow-glow:    0 0 40px rgba(124,58,237,0.12);
}

/* Navbar + body */
[data-theme="light"] body {
    background: linear-gradient(135deg, #f0eeff 0%, #e5e0ff 100%) !important;
    color: #1e1b4b !important;
}
[data-theme="light"] .navbar {
    background: rgba(248,246,255,0.92) !important;
    border-bottom-color: rgba(124,58,237,0.18) !important;
    box-shadow: 0 2px 20px rgba(124,58,237,0.12);
}
[data-theme="light"] .nav-link {
    color: #4c1d95 !important;
}
[data-theme="light"] .nav-link:hover {
    background: rgba(124,58,237,0.1) !important;
    color: #7c3aed !important;
}
[data-theme="light"] .nav-logo { color: #1e1b4b !important; }
[data-theme="light"] .mobile-menu {
    background: rgba(248,246,255,0.98) !important;
    border-top: 1px solid rgba(124,58,237,0.15);
}
[data-theme="light"] .mobile-menu-btn span { background: #4c1d95 !important; }

/* Aurora + stars */
[data-theme="light"] .aurora-bg { opacity: 0.25; }
[data-theme="light"] .stars-bg { display: none; }

/* Glass cards */
[data-theme="light"] .glass-card {
    background: rgba(255,255,255,0.75) !important;
    border-color: rgba(124,58,237,0.14) !important;
    box-shadow: 0 8px 32px rgba(124,58,237,0.08) !important;
    color: #1e1b4b !important;
}
[data-theme="light"] .glass-card p,
[data-theme="light"] .glass-card span,
[data-theme="light"] .glass-card h3,
[data-theme="light"] .glass-card h2 { color: #1e1b4b; }

/* Hero */
[data-theme="light"] .hero-title { color: #1e1b4b !important; }
[data-theme="light"] .hero-subtitle { color: rgba(30,27,75,0.72) !important; }
[data-theme="light"] .stat-label { color: rgba(30,27,75,0.55) !important; }
[data-theme="light"] .hero-badge { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); color:#7c3aed; }

/* Section headings */
[data-theme="light"] .section-title { color: #1e1b4b !important; }
[data-theme="light"] .section-subtitle { color: rgba(30,27,75,0.65) !important; }
[data-theme="light"] .section-label { color: #7c3aed !important; background: rgba(124,58,237,0.1) !important; }
[data-theme="light"] .section-dark { background: rgba(124,58,237,0.04) !important; }

/* Service / Step / Feature / Testimonial cards */
[data-theme="light"] .service-card .service-card-inner,
[data-theme="light"] .step-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .testimonial-card {
    background: rgba(255,255,255,0.82) !important;
    border-color: rgba(124,58,237,0.12) !important;
    color: #1e1b4b !important;
    box-shadow: 0 4px 20px rgba(124,58,237,0.08) !important;
}
[data-theme="light"] .service-card h3,
[data-theme="light"] .step-card h3,
[data-theme="light"] .feature-card h3,
[data-theme="light"] .testimonial-card h3,
[data-theme="light"] .testimonial-card p,
[data-theme="light"] .service-card p,
[data-theme="light"] .step-card p,
[data-theme="light"] .feature-card p { color: rgba(30,27,75,0.78) !important; }
[data-theme="light"] .service-tag { background: rgba(124,58,237,0.08) !important; color: #6d28d9 !important; border-color: rgba(124,58,237,0.2) !important; }
[data-theme="light"] .step-number { color: #a78bfa !important; }
[data-theme="light"] .testimonial-stars { color: #d97706 !important; }
[data-theme="light"] .author-avatar { background: linear-gradient(135deg,#7c3aed,#ec4899) !important; color:#fff !important; }

/* Auth pages */
[data-theme="light"] .auth-card {
    background: rgba(255,255,255,0.88) !important;
    border-color: rgba(124,58,237,0.15) !important;
    box-shadow: 0 20px 50px rgba(124,58,237,0.12) !important;
    color: #1e1b4b !important;
}
[data-theme="light"] .auth-title,
[data-theme="light"] .auth-desc { color: #1e1b4b !important; }
[data-theme="light"] .form-label { color: #4c1d95 !important; }
[data-theme="light"] .form-input {
    background: rgba(255,255,255,0.85) !important;
    color: #1e1b4b !important;
    border-color: rgba(124,58,237,0.2) !important;
}
[data-theme="light"] .form-input::placeholder { color: rgba(30,27,75,0.35) !important; }
[data-theme="light"] .form-input:focus { border-color: #7c3aed !important; background: #fff !important; }
[data-theme="light"] .form-forgot { color: #7c3aed !important; }
[data-theme="light"] .auth-footer { color: rgba(30,27,75,0.6) !important; }
[data-theme="light"] .auth-footer a { color: #7c3aed !important; }

/* Input pages */
[data-theme="light"] .dark-input {
    background: rgba(255,255,255,0.8) !important;
    color: #1e1b4b !important;
    border-color: rgba(124,58,237,0.18) !important;
}
[data-theme="light"] .dark-input::placeholder { color: rgba(30,27,75,0.35) !important; }
[data-theme="light"] .dark-label { color: #374151 !important; }
[data-theme="light"] .dark-input:focus { border-color: #7c3aed !important; background: #fff !important; }
[data-theme="light"] .input-card {
    background: rgba(255,255,255,0.65) !important;
    border-color: rgba(124,58,237,0.16) !important;
}
[data-theme="light"] .page-header h1 { color: #1e1b4b !important; }
[data-theme="light"] .page-badge { background: rgba(124,58,237,0.1) !important; border-color: rgba(124,58,237,0.25) !important; color: #7c3aed !important; }
[data-theme="light"] .form-section-title { color: #4c1d95 !important; }
[data-theme="light"] .upload-zone {
    background: rgba(124,58,237,0.04) !important;
    border-color: rgba(124,58,237,0.28) !important;
    color: #4c1d95 !important;
}

/* Palm report cards */
[data-theme="light"] .palm-line-card {
    background: rgba(255,255,255,0.82) !important;
    border-color: rgba(124,58,237,0.12) !important;
    color: #1e1b4b !important;
}
[data-theme="light"] .palm-line-reading { color: rgba(30,27,75,0.78) !important; }
[data-theme="light"] .palm-line-prediction { background: rgba(124,58,237,0.06) !important; color: rgba(30,27,75,0.72) !important; }
[data-theme="light"] .report-card-title { color: #7c3aed !important; }
[data-theme="light"] .summary-content, [data-theme="light"] .report-card-content { color: rgba(30,27,75,0.78) !important; }
[data-theme="light"] .report-badge { background: rgba(124,58,237,0.1) !important; color: #7c3aed !important; }
[data-theme="light"] .report-meta span { color: rgba(30,27,75,0.5) !important; }

/* CTA section */
[data-theme="light"] .cta-card { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(217,70,239,0.08)) !important; border-color: rgba(124,58,237,0.25) !important; }
[data-theme="light"] .cta-card h2, [data-theme="light"] .cta-card p { color: #1e1b4b !important; }

/* Footer */
[data-theme="light"] .footer { background: rgba(230,225,255,0.9) !important; border-top-color: rgba(124,58,237,0.15) !important; }
[data-theme="light"] .footer a, [data-theme="light"] .footer p, [data-theme="light"] .footer h4 { color: rgba(30,27,75,0.75) !important; }
[data-theme="light"] .footer-logo { color: #1e1b4b !important; }
[data-theme="light"] .footer-desc { color: rgba(30,27,75,0.6) !important; }
[data-theme="light"] .footer-bottom { border-top-color: rgba(124,58,237,0.12) !important; }
[data-theme="light"] .footer-bottom p { color: rgba(30,27,75,0.45) !important; }

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Animated Background ---- */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.28;
    animation: drift 22s ease-in-out infinite;
}

.blob-1 { width: 800px; height: 800px; background: radial-gradient(circle, #7c3aed, #4c1d95); top: -300px; left: -200px; animation-delay: 0s; }
.blob-2 { width: 700px; height: 700px; background: radial-gradient(circle, #ec4899, #a855f7); bottom: -200px; right: -200px; animation-delay: -8s; }
.blob-3 { width: 600px; height: 600px; background: radial-gradient(circle, #f59e0b, #7c3aed); top: 40%; left: 50%; transform: translate(-50%,-50%); animation-delay: -15s; }

@keyframes drift {
    0%,100% { transform: translate(0,0) scale(1); }
    25%      { transform: translate(30px,-50px) scale(1.04); }
    50%      { transform: translate(-40px,30px) scale(0.96); }
    75%      { transform: translate(20px,40px) scale(1.02); }
}

/* ---- Stars ---- */
.stars-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s, 2px);
    height: var(--s, 2px);
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
    opacity: 0.5;
}

@keyframes twinkle {
    0%,100% { opacity: 0.15; transform: scale(1); }
    50%      { opacity: 0.9;  transform: scale(1.6); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    background: rgba(7,6,26,0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon { font-size: 1.6rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 0.42rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }

.nav-btn {
    background: var(--gradient-primary);
    color: #fff !important;
    font-weight: 700;
    padding: 0.48rem 1.3rem;
    box-shadow: 0 4px 15px rgba(139,92,246,0.35);
}

.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(139,92,246,0.5); background: rgba(255,255,255,0.07) !important; }

/* Fix: when nav-btn is hovered, keep gradient */
a.nav-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #ec4899) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(139,92,246,0.5);
}

.nav-link-outline {
    border: 1px solid rgba(255,255,255,0.18);
}

/* Theme toggle button */
.theme-toggle-btn {
    font-size: 1.1rem;
    padding: 0.42rem 0.75rem;
    border-radius: 50%;
    line-height: 1;
    transition: var(--transition), transform 0.3s;
}
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.15); background: rgba(255,255,255,0.1); }
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(124,58,237,0.1); }

/* ---- Report Page Styles ---- */
.report-section { padding: calc(var(--navbar-height) + 3rem) 1.5rem 4rem; }
.report-wrapper { max-width: 900px; margin: 0 auto; }

.report-header { text-align: center; margin-bottom: 2.5rem; }
.report-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 0.8rem; }
.report-badge {
    display: inline-block; padding: 0.35rem 1.2rem; border-radius: 50px;
    background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
    color: var(--purple-300); font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem;
    letter-spacing: 0.04em; text-transform: uppercase;
}

.report-meta { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.report-meta span { color: var(--text-muted); font-size: 0.87rem; }

.report-summary {
    padding: 2rem 2.2rem !important;
    margin-bottom: 2rem;
    border-color: rgba(124,58,237,0.25) !important;
    background: rgba(124,58,237,0.06) !important;
}
.report-card-title {
    font-size: 1rem; font-weight: 800; color: var(--purple-300);
    margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.summary-content, .report-card-content {
    color: var(--text-secondary); line-height: 1.8; font-size: 0.97rem; white-space: pre-wrap;
}

.report-sections { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.report-card { padding: 1.8rem 2rem !important; }
.report-actions {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
    margin: 2.5rem 0;
}

/* Kundali planet table */
.kundali-chart-card { padding: 1.8rem !important; margin-bottom: 2rem; overflow: hidden; }
.planet-table-wrapper { overflow-x: auto; }
.planet-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.planet-table th { background: rgba(124,58,237,0.15); color: var(--purple-300); font-weight: 700; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(124,58,237,0.2); }
.planet-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.planet-table tr:last-child td { border-bottom: none; }
.planet-table tr:hover td { background: rgba(124,58,237,0.04); }
.planet-name { font-weight: 700; color: var(--text-primary); }
.retrograde { color: #f87171; font-size: 0.8rem; font-weight: 700; }


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(10,8,30,0.98);
    border-top: 1px solid var(--border-color);
    position: absolute;
    top: var(--navbar-height);
    left: 0; right: 0;
    backdrop-filter: blur(20px);
}

.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { width: 100%; padding: 0.7rem 1rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}

.theme-toggle-btn { font-size: 1.1rem; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { position: relative; z-index: 1; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
    border-radius: inherit;
}

.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 28px rgba(124,58,237,0.45);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124,58,237,0.55); }

.btn-gold {
    background: var(--gradient-gold);
    color: #1a0a00;
    font-weight: 800;
    box-shadow: 0 8px 28px rgba(245,158,11,0.35);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(245,158,11,0.45); }

.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.22);
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.btn-ghost { color: var(--text-secondary); background: none; }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }

.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO SECTION (index.html)
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--navbar-height) + 40px) 24px 80px;
    position: relative;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.9s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.35);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--purple-300);
    margin-bottom: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-text { color: var(--gold-400); }

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 1.2rem auto 2.8rem;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--gold-400); display: block; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   SECTION / GENERIC
   ============================================================ */
.section {
    padding: 90px 24px;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%);
}

.section-container { max-width: 1140px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple-400);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   FEATURE CARDS (Services)
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 48px rgba(124,58,237,0.2), var(--shadow-glow);
}

.service-card:hover::before { opacity: 0.05; }

.service-card-inner { position: relative; z-index: 1; }

.service-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.25);
    color: var(--purple-300);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin: 0.25rem;
}

/* ============================================================
   STEPS (How It Works)
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }

.step-number {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple-400);
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    display: block;
}

.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: var(--transition);
}

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

.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.8rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: var(--transition);
}

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

.testimonial-stars { font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.4rem;
    font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 0.9rem; }

.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.92rem; font-weight: 700; }
.testimonial-author span   { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 80px 24px; text-align: center; }

.cta-card {
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(217,70,239,0.1));
    border: 1.5px solid rgba(124,58,237,0.35);
    border-radius: var(--radius-xl);
    padding: 4rem 2.5rem;
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-card > p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.7; }

.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 40px) 24px 80px;
}

.auth-container { width: 100%; max-width: 460px; }

.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 2.8rem;
    border: 1.5px solid rgba(139,92,246,0.2);
    box-shadow: 0 28px 64px rgba(0,0,0,0.25);
    color: #1e1b4b;
}

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-icon { font-size: 3.5rem; margin-bottom: 0.5rem; display: block; }
.auth-title { font-size: 1.9rem; font-weight: 800; color: #1e1b4b; margin: 0 0 0.5rem; }
.auth-desc { color: #6b7280; font-size: 0.95rem; }

.form-group { margin-bottom: 1.4rem; }

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    color: #111827;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.form-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #6b7280; }
.form-forgot { font-size: 0.9rem; color: #7c3aed; font-weight: 700; text-decoration: none; }
.form-forgot:hover { text-decoration: underline; }

.auth-btn {
    width: 100%;
    padding: 1.05rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124,58,237,0.4);
    transition: var(--transition);
    font-family: inherit;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(124,58,237,0.5); }

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #9ca3af;
    font-size: 0.9rem;
    position: relative;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-footer {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-footer a { color: #7c3aed; font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

.auth-error {
    background: rgba(239,68,68,0.08);
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.92rem;
    border: 1px solid rgba(239,68,68,0.2);
    font-weight: 600;
}

.auth-success {
    background: rgba(34,197,94,0.08);
    color: #15803d;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.92rem;
    border: 1px solid rgba(34,197,94,0.2);
    font-weight: 600;
}

.otp-input {
    letter-spacing: 10px;
    text-align: center;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    color: #7c3aed !important;
}

/* ============================================================
   INPUT PAGES (Kundali, Palm)
   ============================================================ */
.input-section {
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 40px) 24px 80px;
    position: relative;
    z-index: 1;
}

.input-container { max-width: 720px; margin: 0 auto; }

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.7s ease-out;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.3);
    padding: 0.38rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--purple-300);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.input-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.form-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--purple-400);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.dark-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.dark-input:focus {
    border-color: #7c3aed;
    background: rgba(124,58,237,0.07);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

.dark-input::placeholder { color: var(--text-muted); }

.dark-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 540px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

select.dark-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-area { margin-top: 2.5rem; text-align: center; }

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.05rem 3rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
    transition: var(--transition);
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124,58,237,0.55); }
.submit-btn:active { transform: translateY(0); }

/* ============================================================
   UPLOAD / PALM READING
   ============================================================ */
.upload-zone {
    border: 2px dashed rgba(139,92,246,0.35);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(124,58,237,0.03);
}

.upload-zone:hover {
    border-color: rgba(139,92,246,0.65);
    background: rgba(124,58,237,0.07);
}

.upload-zone.dragover {
    border-color: #7c3aed;
    background: rgba(124,58,237,0.12);
}

.upload-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.upload-zone h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.upload-zone p  { color: var(--text-muted); font-size: 0.9rem; }

.upload-thumb {
    max-width: 240px;
    max-height: 240px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid rgba(139,92,246,0.4);
    display: none;
    margin: 1rem auto 0;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

/* ============================================================
   REPORTS
   ============================================================ */
.report-section { padding: calc(var(--navbar-height) + 30px) 24px 80px; min-height: 100vh; }
.report-container { max-width: 960px; margin: 0 auto; }
.report-wrapper   { max-width: 900px; margin: 0 auto; }

.report-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.report-badge {
    display: inline-block;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.3);
    color: var(--purple-300);
    padding: 0.38rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.report-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.8rem; }
.report-meta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; color: var(--text-muted); }
.report-meta span { display: flex; align-items: center; gap: 0.3rem; }

.report-summary { padding: 2rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.summary-content { color: var(--text-secondary); line-height: 1.85; font-size: 1rem; }

.report-sections { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }

.report-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.report-card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,0.3); }
.report-card-title { font-size: 1.15rem; font-weight: 700; color: var(--gold-400); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.report-card-content { color: var(--text-secondary); line-height: 1.85; font-size: 0.97rem; }

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Kundali Chart */
.kundali-chart-card { padding: 2rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; }

.planet-table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }
.planet-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.planet-table th { padding: 11px 14px; text-align: left; background: rgba(124,58,237,0.15); color: var(--purple-300); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); }
.planet-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.planet-table tr:hover td { background: rgba(255,255,255,0.02); }
.planet-name { font-weight: 600; }
.retrograde { color: #f87171; font-weight: 700; }
.lagna-info { margin-top: 1rem; padding: 0.8rem 1rem; background: rgba(124,58,237,0.1); border-radius: var(--radius-sm); font-size: 0.95rem; border-left: 3px solid var(--purple-500); }

/* ============================================================
   CHAT
   ============================================================ */
.chat-section { padding: calc(var(--navbar-height) + 30px) 24px 80px; min-height: 100vh; }
.chat-container { max-width: 860px; margin: 0 auto; }
.chat-header-area { text-align: center; margin-bottom: 2rem; }

.chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.chat-bubble {
    max-width: 80%;
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.65;
    animation: fadeInUp 0.3s ease-out;
}

.astro-bubble {
    align-self: flex-start;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.2);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.user-bubble {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-bottom-right-radius: 4px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.8rem;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus { border-color: #7c3aed; }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.chat-send-btn:hover { transform: scale(1.05); }

/* ============================================================
   PAYMENT / PLANS
   ============================================================ */
.payment-section { padding: calc(var(--navbar-height) + 30px) 24px 80px; }
.payment-container { max-width: 1100px; margin: 0 auto; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.plan-card.popular { border-color: rgba(124,58,237,0.5); box-shadow: 0 0 40px rgba(124,58,237,0.18); }

.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient-primary); color: #fff; padding: 4px 20px; border-radius: 50px; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }

.plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.8rem; font-weight: 900; color: var(--gold-400); margin-bottom: 0.3rem; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.plan-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }

.plan-features { margin-bottom: 2rem; text-align: left; }
.plan-features li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.plan-features li::before { content: '✅'; flex-shrink: 0; }

/* Paywall */
.paywall-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,20,0.9);
    backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.paywall-card {
    background: linear-gradient(145deg, #100e28, #1c1840);
    border: 1.5px solid rgba(124,58,237,0.4);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.paywall-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.paywall-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.paywall-desc { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.65; font-size: 0.97rem; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-section { padding: calc(var(--navbar-height) + 30px) 24px 80px; }
.settings-container { max-width: 720px; margin: 0 auto; }

.settings-card { padding: 2rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.settings-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.5rem; }

/* ============================================================
   GENERAL DARK FORM INPUT
   ============================================================ */
.input-dark {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.input-dark:focus { border-color: #7c3aed; background: rgba(124,58,237,0.07); }
.input-dark::placeholder { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(7,6,26,0.9);
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 0 1.5rem;
}

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

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

.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.9rem; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; max-width: 280px; }

.footer-col h4 { font-weight: 700; margin-bottom: 1.2rem; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes pulse-glow {
    0%,100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
    50%      { box-shadow: 0 0 40px rgba(124,58,237,0.6); }
}

.animate-fadein    { animation: fadeInUp 0.7s ease-out; }
.animate-fadein-d  { animation: fadeInUp 0.7s ease-out 0.15s both; }
.animate-fadein-d2 { animation: fadeInUp 0.7s ease-out 0.3s both; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.65); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-gold    { color: var(--gold-400); }
.text-purple  { color: var(--purple-400); }
.text-pink    { color: var(--pink-400); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.88rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }

.divider { border: none; border-top: 1px solid var(--border-color); margin: 1.5rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-stats  { gap: 2rem; }
    .input-card  { padding: 1.8rem 1.4rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta    { flex-direction: column; align-items: center; }
    .report-actions { flex-direction: column; }
    .auth-card   { padding: 2rem 1.5rem; }
    section.section { padding: 60px 20px; }
    .cta-card    { padding: 2.5rem 1.5rem; }
}

/* ============================================================
   PDF DOWNLOAD BUTTON — Premium
   ============================================================ */
.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.6rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 200%;
    animation: gold-shimmer 3s ease infinite;
    border: none;
    border-radius: 50px;
    color: #1a0a00;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(245,158,11,0.45), 0 0 0 0 rgba(245,158,11,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-pdf-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 60%);
    border-radius: 50px;
}

@keyframes gold-shimmer {
    0%   { background-position: 0% 50%; box-shadow: 0 4px 20px rgba(245,158,11,0.45), 0 0 0 0 rgba(245,158,11,0.4); }
    50%  { background-position: 100% 50%; box-shadow: 0 4px 28px rgba(245,158,11,0.65), 0 0 0 8px rgba(245,158,11,0); }
    100% { background-position: 0% 50%; box-shadow: 0 4px 20px rgba(245,158,11,0.45), 0 0 0 0 rgba(245,158,11,0); }
}

.btn-pdf-download:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(245,158,11,0.6);
}

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

.pdf-icon { font-size: 1.1rem; }
.pdf-text { font-size: 0.93rem; font-weight: 700; }
.pdf-badge {
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Light theme override */
[data-theme="light"] .btn-pdf-download { color: #4a1a00; }
