:root {
    --primary: #1A237E;
    --primary-light: #283593;
    --primary-dark: #0D1559;
    --accent: #F9A825;
    --accent-light: #FFD54F;
    --bg-cream: #F3F4FF;
    --bg-section: #E8EAF6;
    --text-dark: #12174A;
    --text-body: #2C3373;
    --text-muted: #606DAA;
    --border-light: #C5CAE9;
    --card-shadow: 0 2px 12px rgba(26,35,126,0.10);
    --gradient-hero: linear-gradient(135deg, #0D1559 0%, #1A237E 55%, #3949AB 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', 'Noto Sans Malayalam', sans-serif;
    color: var(--text-body);
    background: var(--bg-cream);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Noto Sans Malayalam', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.top-bar-v2 {
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 0;
    font-size: 0.82rem;
}
.top-vedic { opacity: 0.85; }

.language-toggle .lang-btn {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 12px;
    font-size: 0.78rem;
    border-radius: 4px;
    margin-left: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.language-toggle .lang-btn.active,
.language-toggle .lang-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.header-v2 {
    background: #fff;
    border-bottom: 3px solid var(--accent);
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-v2 {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand-text {
    font-family: 'Noto Sans Malayalam', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-list-v2 {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.nav-link-v2 {
    padding: 6px 14px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link-v2:hover, .nav-link-v2.active {
    background: var(--bg-section);
    color: var(--primary);
}

.generate-btn-header {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.generate-btn-header:hover {
    background: var(--primary-dark);
}

.hero-v2 {
    background: var(--gradient-hero);
    color: #fff;
    padding: 50px 0 40px;
    text-align: center;
}
.hero-title-v2 { font-size: 2.2rem; margin-bottom: 8px; color: #fff; }
.hero-subtitle-v2 { font-size: 1.1rem; opacity: 0.9; margin-bottom: 12px; color: #fff; font-weight: 400; }
.hero-desc-v2 { font-size: 0.95rem; opacity: 0.85; max-width: 700px; margin: 0 auto; color: #fff; }
.hero-for-line { font-size: 0.85rem; opacity: 0.7; font-style: italic; }

.trust-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.trust-chip {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
}

.main-content-v2 { padding: 30px 0; }

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}
.sidebar-title {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
}
.tools-list { list-style: none; padding: 0; margin: 0; }
.tools-list li { margin-bottom: 6px; }
.tools-list li a {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--text-body);
    transition: background 0.2s;
}
.tools-list li a:hover { background: var(--bg-section); color: var(--primary); }

.form-card-v2 {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(26,35,126,0.10);
    border: 1px solid var(--border-light);
}
.form-title-v2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.form-control, .form-select {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.get-kundli-btn {
    background: var(--primary) !important;
    border: none;
    color: #fff !important;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 10px;
    transition: all 0.3s;
}
.get-kundli-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.cta-trust-strip { font-size: 0.78rem; color: var(--text-muted); }
.trust-text span { white-space: nowrap; }

.location-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.location-dropdown.show { display: block; }
.location-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.location-item:hover { background: var(--bg-section); }

.feature-cards-v2 { padding: 40px 0; background: #fff; }
.feature-card {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 8px; }
.feature-card h5 { font-size: 0.95rem; color: var(--primary); }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.btn-feature {
    background: var(--primary);
    color: #fff !important;
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
}
.btn-feature:hover { background: var(--primary-dark); }

.section-title { color: var(--primary); font-size: 1.1rem; margin-bottom: 16px; }

.faq-section { padding: 40px 0; }
.accordion-button { font-family: 'Noto Sans Malayalam', sans-serif; font-weight: 500; color: var(--text-dark); }
.accordion-button:not(.collapsed) { background: var(--bg-section); color: var(--primary); }

.footer-v2 {
    background: var(--primary-dark);
    color: #fff;
    padding: 40px 0 20px;
}
.footer-brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: 'Noto Sans Malayalam', sans-serif;
}
.footer-tagline { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 6px; }
.footer-heading { color: var(--accent-light); font-size: 0.95rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.gochar-list { list-style: none; padding: 0; margin: 8px 0; }
.gochar-list li { padding: 4px 0; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.transit-rashi { font-weight: 600; color: var(--accent); margin-left: auto; }

.trending-list { list-style: none; padding: 0; margin: 0; }
.trending-list li { padding: 5px 0; font-size: 0.85rem; display: flex; gap: 6px; }
.trend-icon { color: var(--accent); }

.homepage-v2 .quick-tools-section { background: var(--bg-section); padding: 30px 0; }

@media (max-width: 768px) {
    .hero-title-v2 { font-size: 1.6rem; }
    .hero-subtitle-v2 { font-size: 0.95rem; }
    .header-nav { display: none; }
    .generate-btn-header { display: none; }
    .form-card-v2 { padding: 20px 16px; }
    .nav-list-v2 { display: none; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
}

@media (max-width: 576px) {
    .trust-chips { flex-direction: column; align-items: center; }
}
