:root {
    --primary: #FF6B00;
    --secondary: #FFB300;
    --gold: #D4AF37;
    --bg: #FFFDF8;
    --text: #1F2937;
    --success: #16A34A;
    --danger: #DC2626;
    --shadow: 0 18px 50px -18px rgba(31, 41, 55, 0.25);
    --shadow-sm: 0 8px 24px -18px rgba(31, 41, 55, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    font-family: "Poppins", "Noto Sans Devanagari", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -4rem;
    z-index: 10000;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid rgba(255, 107, 0, 0.35); outline-offset: 3px; }

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -14px rgba(255, 107, 0, 0.8); }
.btn-primary:hover { background: #E86000; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #1F2937; }
.btn-gold { background: var(--gold); color: #1F2937; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}
.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 24px -14px rgba(255, 107, 0, 0.9);
}
.nav-link {
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--primary); }

.hero-gradient {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 179, 0, 0.18), transparent 28rem),
        linear-gradient(165deg, #FFFDF8 0%, #FFF3E1 100%);
}
.section-title {
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}
.section-title span { color: var(--primary); }
.section-sub { color: #6B7280; max-width: 44rem; line-height: 1.65; }

.card,
.service-card,
.temple-card {
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.07);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.card { padding: 1.25rem; }
.service-card {
    min-height: 10.5rem;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(212, 175, 55, 0.13));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}
.temple-card { overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.temple-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.temple-card img { width: 100%; height: 11rem; object-fit: cover; }
.badge-gold,
.badge-primary {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
}
.badge-gold { background: var(--gold); color: #1F2937; }
.badge-primary { background: var(--primary); color: #fff; }

.form-control {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.form-control:focus { border-color: rgba(255, 107, 0, 0.55); box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12); outline: 0; }
.label { display: block; color: #374151; font-weight: 700; font-size: 0.82rem; margin-bottom: 0.4rem; }

.astro-tab {
    border: 1px solid rgba(31, 41, 55, 0.08);
    background: #fff;
    color: #4B5563;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}
.astro-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chart-wheel {
    width: min(100%, 23rem);
    aspect-ratio: 1;
    border-radius: 999px;
    margin: 0 auto;
    background:
        conic-gradient(from 0deg, #FFF4E8 0 30deg, #FFFDF8 30deg 60deg, #FFF4E8 60deg 90deg, #FFFDF8 90deg 120deg, #FFF4E8 120deg 150deg, #FFFDF8 150deg 180deg, #FFF4E8 180deg 210deg, #FFFDF8 210deg 240deg, #FFF4E8 240deg 270deg, #FFFDF8 270deg 300deg, #FFF4E8 300deg 330deg, #FFFDF8 330deg 360deg);
    border: 10px solid rgba(255, 107, 0, 0.18);
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.35), var(--shadow-sm);
}
.chart-wheel::after {
    content: "Darshn.in";
    position: absolute;
    inset: 36%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.86rem;
    font-weight: 800;
}
.planet-dot {
    position: absolute;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(31, 41, 55, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    transform: translate(-50%, -50%);
}
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: min(24rem, calc(100vw - 2rem));
    transform: translateX(120%);
    transition: transform 0.25s ease;
    background: #1F2937;
    color: #fff;
    border-left: 4px solid var(--success);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    box-shadow: var(--shadow);
}
.toast.show { transform: translateX(0); }

.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: 0 -8px 26px -22px rgba(31, 41, 55, 0.6);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    color: #9CA3AF;
    font-size: 0.68rem;
    padding: 0.45rem 0.2rem;
}
.bottom-nav a.active { color: var(--primary); }

@media (max-width: 768px) {
    body { padding-bottom: 3.75rem; }
    .bottom-nav { display: flex; }
    .site-menu { display: none; }
    .card { padding: 1rem; }
    .service-card { min-height: 9.25rem; padding: 1rem 0.75rem; }
    .temple-card img { height: 9rem; }
}

@media (max-width: 480px) {
    .mobile-stack { grid-template-columns: 1fr !important; }
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-gold { width: 100%; min-height: 2.65rem; }
}

@media print {
    body * { visibility: hidden; }
    #birthChartReport,
    #birthChartReport * { visibility: visible; }
    #birthChartReport {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: 0;
    }
    .no-print { display: none !important; }
}
