/* ==========================================================
   KENDARAYA.COM — International Vedic Astrology Portal
   Theme: Celestial Elegance · Warm Midnight & Star Gold
   Locally Hosted WOFF2 Fonts (Zero External Calls · CSP-Ready)
   ========================================================== */

/* Inter (UI, Body, Nav, Buttons, Form Controls) - Weights 400..700 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/Inter.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair Display (Headings h1, h2, h3) - Weights 500..700 */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/fonts/PlayfairDisplay.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------
   1. DESIGN TOKENS (VIBRANT EDUCATIONAL TEXTBOOK PALETTE)
   ---------------------------------------------------------- */
:root {
    /* Cosmic Night Base (Masthead, Footer & Banners) */
    --night-deep:        #0A1128;

    /* Warm Temple Gold & Saffron Amber (Anchored to --gold-warm) */
    --gold:              #EB860A;
    --gold-bright:       #F7A22B;
    --gold-light:        #F9C16C;
    --gold-warm:         #D97706;
    --gold-dark:         #92400E;
    --gold-btn:          #B45309;
    --gold-btn-hover:    #92400E;
    --gold-subtle:       #FDEFD9;

    /* Warm Educational Canvas & Tactile Surfaces */
    --bg-page:           #FAF9F6;
    --bg-card:           #FFFFFF;
    --bg-warm:           #F4EFEB;

    /* Razor-Sharp High-Contrast Ink Typography */
    --ink:               #1E293B;
    --ink-dark:          #0F172A;
    --ink-body:          #1E293B;
    --ink-muted:         #64748B;
    --ink-light:         #94A3B8;
    --ink-gold:          #B45309;

    /* Crisp Clean Slate & Warm Gold Lines */
    --line:              #E5E0D8;
    --line-subtle:       #EFECE6;
    --line-gold:         #F9D49A;

    /* Status Element Badges (Used in Panchang & Calculators) */
    --fire:              #EF4444;
    --fire-bg:           #FEE2E2;
    --fire-border:       #FCA5A5;
    --earth:             #047857;
    --earth-bg:          #D1FAE5;
    --earth-border:      #6EE7B7;

    /* Shadows with Subtle Color Glows */
    --shadow-sm:         0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md:         0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-lg:         0 10px 25px -3px rgba(15, 23, 42, 0.10), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-gold:       0 6px 20px rgba(245, 158, 11, 0.28);
    --shadow-card-hover: 0 14px 28px rgba(15, 23, 42, 0.12);

    /* Typography Hierarchy */
    --font-heading:      'Playfair Display', Georgia, serif;
    --font-body:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ui:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-cinzel:       'Playfair Display', Georgia, serif;

    /* Dimensions */
    --max-w:             1200px;
    --radius:            10px;
    --radius-sm:         6px;
    --radius-md:         8px;
    --radius-lg:         12px;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--ink-body);
    line-height: 1.65;
    font-size: 0.96rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

img {
    max-width: 100%;
    display: block;
}

button, nav, input, select, textarea {
    font-family: 'Inter', sans-serif;
    border: none;
    outline: none;
    background: transparent;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink-dark);
    line-height: 1.25;
}

h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--ink-dark);
    line-height: 1.3;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----------------------------------------------------------
   3. CELESTIAL HEADER
   ---------------------------------------------------------- */
/* Top astrological bar */
.astro-topbar {
    font-family: var(--font-ui);
    background: var(--night-deep);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.astro-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.panchang-ticker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panchang-badge {
    color: var(--gold-bright);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.topbar-actions {
    display: flex;
    gap: 1.25rem;
}

.topbar-actions a {
    color: rgba(255, 255, 255, 0.65);
}

.topbar-actions a:hover {
    color: var(--gold-bright);
}

/* Main Navigation Header */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-emblem {
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-warm);
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.brand-wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-box: view-box;
    transform-origin: center center;
    animation: none;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-logo:hover .brand-wheel-svg {
    transform: rotate(90deg);
}

.portal-footer .brand-emblem {
    background: transparent;
    border: none;
    color: var(--gold-bright);
    box-shadow: none;
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-title strong {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0F172A;
    line-height: 1;
}

.brand-title small {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-gold);
    margin-top: 0.25rem;
}

/* Main Nav & Multi-Layer Calculators Mega-Dropdown */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.primary-nav > a:not(.btn-kundli-cta),
.nav-dropdown-trigger {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-body);
    position: relative;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.nav-dropdown-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
}

.primary-nav > a:not(.btn-kundli-cta):hover,
.primary-nav > a:not(.btn-kundli-cta).is-nav-active,
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger,
.nav-dropdown-trigger.is-nav-active {
    color: var(--ink-gold);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Invisible hover bridge so pointer stays active moving down into panel */
.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    display: none;
}

.nav-dropdown:hover::after,
.nav-dropdown.is-open::after {
    display: block;
}

.nav-dropdown-chevron {
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: -40px;
    width: 540px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1200;
}

.nav-dropdown:hover .nav-mega-panel,
.nav-dropdown:focus-within .nav-mega-panel,
.nav-dropdown.is-open .nav-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nav-mega-group-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    padding: 0 0.55rem 0.45rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--line-subtle);
}

.nav-mega-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    transition: background-color 0.16s ease;
}

.nav-mega-item:hover,
.nav-mega-item.is-nav-active {
    background: var(--bg-page);
}

.nav-mega-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gold-subtle);
    color: var(--ink-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.nav-mega-item.is-nav-active .nav-mega-icon,
.nav-mega-item:hover .nav-mega-icon {
    background: var(--gold-warm);
    color: #FFFFFF;
}

.nav-mega-meta strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--night-deep);
    line-height: 1.25;
}

.nav-mega-meta small {
    display: block;
    font-size: 0.74rem;
    color: var(--ink-muted);
    line-height: 1.35;
    margin-top: 2px;
}

.nav-mega-footer {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.nav-mega-footer a {
    font-weight: 700;
    color: var(--ink-gold);
}

.primary-nav .btn-kundli-cta,
.btn-kundli-cta {
    background: var(--gold-btn);
    color: #FFFFFF !important;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.primary-nav .btn-kundli-cta:hover,
.btn-kundli-cta:hover {
    background: var(--gold-btn-hover);
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.35);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.35rem;
    color: var(--night-deep);
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile Drawer & Nested Submenu */
.mobile-drawer {
    display: none;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1.5rem 2rem;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.mobile-drawer.open {
    display: block;
}

/* Prevent background page from moving/scrolling while mobile drawer is open */
body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
}

/* Subtle scrollbar for mobile drawer */
.mobile-drawer::-webkit-scrollbar {
    width: 4px;
}
.mobile-drawer::-webkit-scrollbar-track {
    background: #F8FAFC;
}
.mobile-drawer::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.mobile-drawer > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--line-subtle);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-dark);
}

.mobile-drawer > a:hover,
.mobile-drawer > a.is-nav-active {
    color: var(--ink-gold);
}

.mobile-drawer > a i {
    width: 20px;
    color: var(--gold-warm);
}

.mobile-submenu {
    border-bottom: 1px solid var(--line-subtle);
}

.mobile-submenu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-dark);
    cursor: pointer;
    list-style: none;
}

.mobile-submenu summary::-webkit-details-marker {
    display: none;
}

.mobile-submenu-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-submenu-title i {
    width: 20px;
    color: var(--gold-warm);
}

.mobile-submenu-chevron {
    font-size: 0.75rem;
    color: var(--ink-muted);
    transition: transform 0.2s ease;
}

.mobile-submenu[open] .mobile-submenu-chevron {
    transform: rotate(180deg);
}

.mobile-submenu-links {
    padding: 0.15rem 0 0.75rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-submenu-group {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin: 0.45rem 0 0.15rem 0.35rem;
}

.mobile-submenu-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ink-body);
}

.mobile-submenu-links a:hover,
.mobile-submenu-links a.is-nav-active {
    background: var(--bg-page);
    color: var(--ink-gold);
}

.mobile-submenu-links a i {
    width: 18px;
    color: var(--gold-warm);
}

/* ----------------------------------------------------------
   4. CELESTIAL HERO WITH EMBEDDED KUNDLI CALCULATOR
   ---------------------------------------------------------- */
.celestial-hero {
    background-color: #FAF8F5;
    color: #1E293B;
    height: auto;
    min-height: 380px;
    max-height: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(217, 119, 6, 0.2);
    text-align: center;
    padding: 4rem 0;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.celestial-hero .container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.celestial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0) 80%);
    pointer-events: none;
    z-index: 1;
}

.hero-center-box {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.celestial-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.celestial-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.celestial-breadcrumb a:hover {
    color: #D97706;
}

.celestial-breadcrumb span {
    color: #94A3B8;
}

.celestial-breadcrumb .active {
    color: #92400E;
    font-weight: 600;
}

.hero-aura-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #92400E;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0.65rem;
}

.hero-aura-label i {
    color: #D97706;
    font-size: 0.72rem;
}

.hero-aura-label::before,
.hero-aura-label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D97706);
    vertical-align: middle;
}

.hero-aura-label::after {
    background: linear-gradient(90deg, #D97706, transparent);
}

.compatibility-banner .hero-aura-label {
    color: var(--gold-bright);
}

.compatibility-banner .hero-aura-label::before {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.7));
}

.compatibility-banner .hero-aura-label::after {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.7), transparent);
}

.hero-main-heading {
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0F172A;
    margin-bottom: 0.55rem;
    letter-spacing: -0.015em;
    max-width: 620px;
}

.hero-main-heading span {
    color: var(--gold-warm);
    font-style: normal;
}

.hero-lead-text {
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    max-width: 580px;
    font-weight: 450;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--gold-btn);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3);
    font-size: 0.88rem;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-primary:hover {
    background: var(--gold-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(146, 64, 14, 0.42);
    color: #FFFFFF;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #FFFFFF;
    color: #1E293B;
    font-weight: 600;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid #CBD5E1;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.btn-hero-secondary i {
    color: #D97706;
}

.btn-hero-secondary:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #0F172A;
}

/* Homepage Dedicated Kundli Calculator Section */
.home-calc-section {
    padding: 3rem 0 3.5rem;
    background: #FAF9F6;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.home-calc-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    padding: 2rem 2.25rem;
    position: relative;
    z-index: 10;
}

.home-calc-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-subtle);
    text-align: left;
}

.home-calc-head h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--night-deep);
    margin: 0.35rem 0 0.25rem;
}

.home-calc-head p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

.hero-quick-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: flex-end;
    gap: 1rem 1.15rem;
}

.quick-field {
    text-align: left;
    position: relative;
}

.quick-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
}

.quick-field label i {
    color: var(--gold-warm);
    font-size: 0.74rem;
}

.quick-input,
.quick-select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-dark);
    font-family: var(--font-ui);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quick-input:focus,
.quick-select:focus {
    background: #FFFFFF;
    border-color: var(--gold-warm);
    outline: none;
}

.quick-time-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1.35fr;
    align-items: center;
    gap: 0.3rem;
    height: 42px;
}

.quick-time-group .quick-input {
    text-align: center;
    padding: 0.55rem 0.25rem;
}

.quick-time-group span {
    font-weight: 700;
    color: var(--ink-muted);
}

.btn-hero-quick-calc {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    background: var(--night-deep);
    color: #FFFFFF;
    border: 1px solid rgba(249, 193, 108, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-hero-quick-calc:hover {
    background: var(--ink-gold);
    border-color: var(--gold-warm);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

@media (max-width: 820px) {
    .home-calc-card {
        padding: 1.5rem 1.25rem;
    }
    .hero-quick-form {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }
    .quick-field-city {
        grid-column: 1 / -1;
    }
    .quick-field-btn {
        grid-column: 1 / -1;
    }
}

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

/* Hero Horizontal Trust Indicators */
.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.trust-item i {
    color: #059669;
    font-size: 0.85rem;
}

.kundli-calc-card {
    background: #FFFFFF;
    color: var(--ink-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 2.2rem 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    position: relative;
}

.calc-card-head {
    margin-bottom: 1.35rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.9rem;
}

.calc-card-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--night-deep);
}

.calc-card-head p {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 0.2rem;
}

/* Saved Profiles Bar (localStorage Profile Switcher) */
.saved-profiles-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    background: #FAF7EE;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
}

.saved-profiles-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    flex: 1 1 260px;
    min-width: 0;
}

.saved-profiles-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--night-deep);
    white-space: nowrap;
}

.saved-select-input {
    flex: 1 1 180px;
    min-width: 0;
    max-width: 100%;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    background: #FFFFFF;
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    font-weight: 600;
    color: var(--night-deep);
}

.saved-profiles-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-profile-action.btn-profile-delete {
    color: #991B1B;
    background: #FEF2F2;
    border-color: #FCA5A5;
}

.btn-profile-action.btn-profile-delete:hover {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #DC2626;
}

/* Custom Saved Profiles Dropdown with Per-Item Delete (x) */
.saved-dropdown-wrap {
    position: relative;
    flex: 1 1 200px;
    min-width: 0;
    max-width: 100%;
}

.saved-dropdown-trigger {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    font-family: inherit;
    background: #FFFFFF;
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    font-weight: 600;
    color: var(--night-deep);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.saved-dropdown-trigger:hover,
.saved-dropdown-wrap.open .saved-dropdown-trigger {
    border-color: var(--gold-warm);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.12);
}

.saved-dropdown-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    z-index: 95;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    padding: 0.25rem;
}

.saved-dropdown-wrap.open .saved-dropdown-menu {
    display: block;
}

.saved-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.42rem 0.6rem;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--ink-dark);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.saved-dropdown-item:hover,
.saved-dropdown-item.is-selected {
    background: #FAF7EE;
    color: var(--night-deep);
}

.saved-dropdown-item.is-selected .saved-dropdown-item-text {
    font-weight: 700;
}

.saved-dropdown-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.saved-dropdown-del {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.saved-dropdown-del:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #DC2626;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-field label i {
    color: var(--gold-warm);
    font-size: 0.82rem;
}

.calc-text-input,
.calc-select-input {
    width: 100%;
    background: var(--bg-page);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    color: var(--ink-dark);
    transition: all 0.2s ease;
}

.calc-text-input:focus,
.calc-select-input:focus {
    background: #FFFFFF;
    border-color: var(--gold-warm);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12);
}

.time-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr;
    align-items: center;
    gap: 0.45rem;
}

.time-row span {
    font-weight: 700;
    color: var(--ink-muted);
    text-align: center;
}

/* Location Dropdown */
.location-field-box {
    position: relative;
}

.location-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1.5px solid var(--line-gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.location-dropdown-menu.active {
    display: block;
}

.loc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--line-subtle);
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.loc-option:last-child {
    border-bottom: none;
}

.loc-option:hover {
    background: var(--gold-subtle);
}

.loc-flag-img {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.loc-info-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.loc-option strong {
    color: var(--ink-dark);
    display: block;
    font-size: 0.9rem;
    line-height: 1.25;
}

.loc-option small {
    color: var(--ink-muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.btn-generate-chart {
    width: 100%;
    background: var(--gold-btn);
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-generate-chart:hover {
    background: var(--gold-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(146, 64, 14, 0.32);
}

.calc-privacy-note {
    font-size: 0.72rem;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* ----------------------------------------------------------
   6. DAILY HOROSCOPE SECTION (12 ZODIAC SIGNS)
   ---------------------------------------------------------- */
.astrology-section {
    padding: 4rem 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.section-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-subtle);
    color: var(--gold-dark);
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line-gold);
    margin-bottom: 0.65rem;
}

.section-title-wrap h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--night-deep);
    letter-spacing: -0.01em;
}

.section-title-wrap p {
    font-size: 0.95rem;
    color: #475569;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.zodiac-sign-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.15rem;
}

.zodiac-sign-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.45rem 0.9rem 1.3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.32rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.zodiac-sign-card:hover {
    transform: none;
    border-color: #C7B9A5;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.zodiac-img-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1.5px solid var(--line-gold);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 0.45rem;
}

.zodiac-sign-card:hover .zodiac-img-wrapper {
    background: var(--gold-subtle);
    transform: scale(1.06);
    border-color: var(--gold-warm);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.16);
}

.zodiac-sign-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: saturate(1.12) contrast(1.06) drop-shadow(0 1px 2px rgba(180, 83, 9, 0.22));
}

.zodiac-name-en {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-dark);
    line-height: 1.25;
}

.zodiac-rashi-sanskrit {
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-gold);
}

.zodiac-date-range {
    font-family: var(--font-ui);
    font-size: 0.73rem;
    color: var(--ink-muted);
    font-weight: 500;
}

.element-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    background: var(--bg-page);
    color: var(--ink-body);
    border: 1px solid var(--line);
    font-family: var(--font-ui);
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.68rem;
    border-radius: 999px;
    margin-top: 0.42rem;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.element-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.zodiac-sign-card:hover .element-pill {
    background: var(--gold-subtle);
    border-color: var(--line-gold);
}

.element-fire::before  { background: #EA580C; }
.element-earth::before { background: #059669; }
.element-air::before   { background: #0284C7; }
.element-water::before { background: #7C3AED; }

/* ----------------------------------------------------------
   7. ASTROLOGY TOOLBOX GRID (COLOR-CODED TEXTBOOK TILES)
   ---------------------------------------------------------- */
.tools-showcase-section {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    padding: 4.5rem 0;
}

.tools-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.astro-tool-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.astro-tool-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transform: none;
    border-color: #C7B9A5;
}

.astro-tool-card:hover h3 {
    color: var(--ink-gold);
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.tool-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--bg-warm);
    color: var(--ink-gold);
    border: 1px solid var(--line-gold);
    transition: background-color 0.2s ease;
}

.astro-tool-card:hover .tool-icon-circle {
    transform: none;
    background: var(--gold-subtle);
}

.tool-status-tag {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-page);
    color: var(--ink-muted);
    border: 1px solid var(--line);
}

.astro-tool-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.astro-tool-card p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

.tool-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.1rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #1E293B;
    transition: all 0.22s ease;
}

.astro-tool-card:hover .tool-card-cta {
    background: var(--night-deep);
    color: #FFFFFF;
    border-color: var(--night-deep);
}

.astro-tool-card:hover .tool-card-cta i {
    transform: translateX(4px);
}

.tool-card-cta i {
    transition: transform 0.2s ease;
}

/* ----------------------------------------------------------
   8. COMPATIBILITY (PORONDAM) CALLOUT STRIP
   ---------------------------------------------------------- */
.compatibility-banner {
    background: var(--night-deep);
    color: #FFFFFF;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(251, 191, 36, 0.25);
}

.compat-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.compat-text h2 {
    color: #FFFFFF;
    font-size: 2.35rem;
    font-weight: 700;
    margin: 0.85rem 0;
    line-height: 1.2;
}

.compat-text h2 span {
    color: #FBBF24;
}

.compat-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.btn-compat {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #E11D48;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.95rem 1.85rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-compat:hover {
    background: #BE123C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(190, 18, 60, 0.42);
}

.compat-preview-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(249, 193, 108, 0.25);
    border-radius: var(--radius);
    padding: 1.85rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.compat-preview-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.compat-preview-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.85rem;
    text-align: center;
}

.compat-koota-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.koota-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
}

.koota-item span:first-child {
    color: #F8FAFC;
    font-weight: 600;
}

.koota-item span:last-child {
    background: #FBBF24;
    color: #0F172A;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
}

/* ----------------------------------------------------------
   9. ADSENSE PLACEMENT CONTAINER
   ---------------------------------------------------------- */
.adsense-placement-wrapper {
    margin: 2rem auto;
    padding: 0.85rem 0;
    text-align: center;
    min-height: 100px;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-sponsor-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

/* ----------------------------------------------------------
   10. VEDIC WISDOM ESSAY / SIDEREAL EXPLANATION
   ---------------------------------------------------------- */
.vedic-wisdom-section {
    padding: 3.5rem 0;
    background: #FAF8F5;
}

@media (max-width: 768px) {
    .vedic-wisdom-section {
        padding: 2.25rem 0;
    }
}

.wisdom-article h2 {
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.wisdom-article p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 1.2rem;
}

.zodiac-system-comparison {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .zodiac-system-comparison {
        padding: 1.25rem 0.85rem;
    }
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.25rem;
}

.comparison-header {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 0.85rem;
}

.comparison-table {
    font-family: var(--font-ui);
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

@media (min-width: 641px) {
    .comparison-table {
        min-width: 520px;
    }
}

.comparison-table th {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
}

.comparison-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
}

.comparison-table tr:nth-child(even) td {
    background: #F8FAFC;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ----------------------------------------------------------
   11. FOOTER
   ---------------------------------------------------------- */
.portal-footer {
    font-family: var(--font-ui);
    background: linear-gradient(180deg, #0F172A 0%, #070B14 100%);
    color: rgba(255, 255, 255, 0.74);
    padding: 5rem 0 2.5rem;
    border-top: 3px solid #F59E0B;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-footer .brand-logo {
    margin-bottom: 0.5rem;
}

.footer-brand-bio .brand-title strong {
    color: #FFFFFF;
}

.footer-brand-bio .brand-title small {
    color: var(--gold-bright);
}

.footer-bio-text {
    font-size: 0.86rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-btn:hover {
    background: #F59E0B;
    border-color: #FBBF24;
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FBBF24;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-legal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: #FBBF24;
}

/* ----------------------------------------------------------
   12. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .kundli-calc-card {
        max-width: 580px;
        margin: 0 auto;
    }
    .zodiac-sign-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .tools-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compat-inner {
        grid-template-columns: 1fr;
    }
    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-bio {
        grid-column: 1 / -1;
    }
    .footer-bio-text {
        max-width: 560px;
    }
}

@media (min-width: 961px) {
    .mobile-drawer {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .primary-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .astro-topbar {
        display: none;
    }
    .celestial-hero {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 2.25rem 0 2rem;
    }
    .celestial-hero::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.54) 58%, rgba(255, 255, 255, 0.25) 100%);
    }
    .hero-bg-media img {
        object-position: left bottom;
    }
    .hero-center-box {
        background: transparent;
        backdrop-filter: none;
        padding: 0.5rem 0;
        border-radius: 0;
        border: none;
    }
    .hero-main-heading {
        font-size: 1.85rem;
    }
    .hero-lead-text {
        color: #0F172A;
        font-weight: 500;
        text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
    }
    .hero-aura-label {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
        gap: 0.45rem;
        text-align: center;
        flex-wrap: nowrap;
        max-width: 100%;
    }
    .hero-aura-label::before,
    .hero-aura-label::after {
        width: 14px;
        flex-shrink: 0;
    }
    .hero-trust-bar {
        gap: 0.65rem;
    }
    .trust-item {
        background: rgba(255, 255, 255, 0.88);
        padding: 0.28rem 0.75rem;
        border-radius: 999px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        color: #0F172A;
        font-weight: 600;
    }
    .zodiac-sign-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .tools-cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-columns-grid {
        grid-template-columns: 1fr;
    }
    .footer-legal-bar {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.45rem;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
        text-align: center;
    }
    .zodiac-sign-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .zodiac-sign-card {
        padding: 1.2rem 0.75rem;
    }
    .time-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.35rem;
    }
    .time-row span {
        display: none;
    }
    .kundli-calc-card {
        padding: 1.25rem 1rem;
    }
}

/* ----------------------------------------------------------
   13. TOOL WORKSPACE & FORM STYLING
   ---------------------------------------------------------- */
/* Tool Workspace Container */
.tool-workspace {
    padding: 2rem 0 4rem;
    scroll-margin-top: 80px;
}

/* Preset Buttons */
.preset-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.preset-chip-btn {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-body);
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-chip-btn:hover {
    border-color: var(--gold-warm);
    background: var(--gold-subtle);
    color: var(--gold-warm);
}

/* Form Grid on Tool Page */
.tool-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tool-form-full {
    grid-column: 1 / -1;
}

.advanced-options-toggle {
    margin-top: 1rem;
    border-top: 1px solid var(--line-subtle);
    padding-top: 0.85rem;
}

.advanced-options-summary {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.advanced-options-summary:hover {
    color: var(--gold-warm);
}

.advanced-options-body {
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

/* Loader */
.chart-loader {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.chart-loader.active {
    display: block;
}

.chart-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid var(--line);
    border-top-color: var(--gold-warm);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spinAround 0.8s linear infinite;
}

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

/* Results Subject Bar (Classical Janma Patrika Titleplate) */
.results-subject-bar {
    background: #F8F3E6;
    color: #1C1917;
    border: 1px solid #8E6E43;
    border-radius: 3px;
    padding: 1.25rem 1.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 0 3px #F8F3E6, inset 0 0 0 4px #CDB58D;
    position: relative;
}

.subject-info {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.subject-info strong {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1C1917;
    line-height: 1.2;
    text-transform: capitalize;
    border-bottom: 1px solid #D4C09B;
    padding-bottom: 0.35rem;
    display: inline-block;
}

.subject-info > div {
    font-size: 0.84rem;
    color: var(--ink-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    line-height: 1.5;
}

.subject-info span {
    font-size: 0.83rem;
    color: var(--ink-body);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.subject-info .dst-pill-active {
    background: var(--earth-bg);
    color: #065F46;
    border: 1px solid var(--earth-border);
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.subject-info .dst-pill-std {
    background: var(--bg-page);
    color: var(--ink-muted);
    border: 1px solid var(--line);
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}


/* Astrological Identity Ribbon (Classical Almanac / Copperplate Frames) */
.identity-ribbon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.identity-card {
    background: #FBF7EC;
    border: 1px solid #8E6E43;
    border-radius: 3px;
    padding: 1.35rem 1.2rem 1.15rem;
    position: relative;
    box-shadow: inset 0 0 0 3px #FBF7EC, inset 0 0 0 4px #D2BD96;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.identity-card:hover {
    transform: none;
    border-color: #6B4D27;
    background: #F8F2E2;
}

.identity-card-badge {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    position: absolute;
    top: 1.05rem;
    right: 1.05rem;
    background: #F1E7CF;
    color: #6B4718;
    border: 1px solid #B59867;
}

.identity-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6B4E2E;
    display: block;
    margin-bottom: 0.45rem;
    padding-right: 2.4rem;
}

.identity-value {
    font-family: var(--font-heading);
    font-size: 1.48rem;
    font-weight: 700;
    color: #1C1917;
    line-height: 1.2;
}

.identity-sub {
    font-size: 0.78rem;
    color: #4A3F32;
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid #D9C7A3;
    font-weight: 500;
}

/* Chart Viewer Panel */
.chart-viewer-panel {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1.5px solid #F1F5F9;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.chart-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--night-deep);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-panel-header h3 i {
    color: var(--gold-warm);
}

.chart-style-switcher {
    display: flex;
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
    flex-wrap: wrap;
}

.btn-toggle-rashi {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--line-gold, #E5C989);
    background: #FFFDF9;
    color: var(--night-deep, #0F172A);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-toggle-rashi:hover {
    border-color: var(--gold-warm, #C5A059);
    background: rgba(212, 175, 55, 0.12);
}
.btn-toggle-rashi.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold-warm, #C5A059);
    color: #8C6D38;
}

.chart-style-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748B;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chart-style-btn.active {
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

@media (max-width: 640px) {
    .chart-viewer-panel {
        padding: 0.9rem 0.7rem;
        border-radius: 14px;
    }
    .chart-svg-display {
        padding: 0.35rem 0;
        max-width: 100%;
    }
    .chart-style-switcher {
        border-radius: 12px;
        width: 100%;
        justify-content: center;
    }
    .chart-style-btn {
        flex: 1 1 45%;
        text-align: center;
        padding: 0.35rem 0.5rem;
        font-size: 0.76rem;
    }
}

.chart-svg-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    max-width: 480px;
    margin: 0 auto;
}

.vedic-svg-chart {
    filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.06));
    transition: transform 0.2s ease;
}

/* Chart Legend Strip */
.chart-legend-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line, #E2E8F0);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted, #64748B);
}

.legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink-muted, #64748B);
}

@media (max-width: 640px) {
    .chart-legend-strip {
        gap: 0.5rem 0.85rem;
        font-size: 0.74rem;
    }
}

/* Status pills for Planetary Table */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    vertical-align: middle;
    margin-left: 0.35rem;
    white-space: nowrap;
}
.pill-retro {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}
.pill-combust {
    background: #FFEDD5;
    color: #C2410C;
    border: 1px solid #FDBA74;
}
.pill-pushkara {
    background: #FCE7F3;
    color: #9D174D;
    border: 1px solid #FBCFE8;
}
.pill-pushkara-bhaga {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    font-weight: 800;
}

/* Planetary Positions Table */
.astro-data-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.astro-data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1.5px solid #F1F5F9;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.astro-data-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--night-deep);
}

.astro-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.astro-table {
    font-family: var(--font-ui);
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.astro-table th,
.astro-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #F1F5F9;
}

.astro-table th {
    background: #0F172A;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   15. LAGNA SPOTLIGHT & ASCENDANT RESULTS STYLES
   ---------------------------------------------------------- */
.lagna-spotlight-card {
    background: #FFFFFF;
    border: 1.5px solid var(--line-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.lagna-spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #F59E0B, #D97706, #B45309);
}

.lagna-medallion-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, #FFFBEB 0%, #FEF3C7 60%, #FDE68A 100%);
    border: 3px solid #F59E0B;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15), 0 10px 25px rgba(217, 119, 6, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentlePulse 4s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.15), 0 10px 25px rgba(217, 119, 6, 0.2); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 9px rgba(245, 158, 11, 0.25), 0 14px 30px rgba(217, 119, 6, 0.3); }
}

.lagna-medallion-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.lagna-title-main {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--night-deep);
    margin: 0.25rem 0 0.5rem;
}

.lagna-coords-sub {
    font-size: 0.95rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.lagna-archetype-card {
    background: #FAF9F6;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
    margin-top: 1.5rem;
}

.lagna-archetype-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 0.75rem;
}

.lagna-archetype-body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ink-body);
}

.lagna-traits-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line-gold);
}

.lagna-trait-item {
    font-size: 0.82rem;
    color: var(--ink-body);
}

.lagna-trait-item strong {
    color: var(--night-deep);
    display: block;
    margin-bottom: 0.15rem;
}

.astro-table tr:nth-child(even) td {
    background: #FAFAFA;
}

.astro-table tr:hover td {
    background: #FFFDF5;
}

.tag-dignity {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tag-exalted      { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.tag-moolatrikona { background: #F3E8FF; color: #7E22CE; border: 1px solid #D8B4FE; }
.tag-own          { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.tag-great-friend { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.tag-friend       { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.tag-neutral      { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.tag-enemy        { background: #FFF7ED; color: #C2410C; border: 1px solid #FFEDD5; }
.tag-great-enemy  { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.tag-debilitated  { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }

/* Life Readings Cards */
.life-readings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.life-reading-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.life-reading-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transform: none;
    border-color: #C7B9A5;
}

/* ZERO border-left! Distinct Icon Medallions */
.life-readings-grid .life-reading-card:nth-child(1) .reading-icon,
.life-reading-card.reading-card-persona .reading-icon {
    background: #EFF6FF;
    color: #2563EB;
    border: 1.5px solid #BFDBFE;
}

.life-readings-grid .life-reading-card:nth-child(2) .reading-icon,
.life-reading-card.reading-card-career .reading-icon {
    background: #FEF3C7;
    color: #D97706;
    border: 1.5px solid #FDE68A;
}

.life-readings-grid .life-reading-card:nth-child(3) .reading-icon,
.life-reading-card.reading-card-love .reading-icon {
    background: #FFE4E6;
    color: #E11D48;
    border: 1.5px solid #FECDD3;
}

.life-readings-grid .life-reading-card:nth-child(4) .reading-icon,
.life-reading-card.reading-card-dasha .reading-icon {
    background: #EDE9FE;
    color: #7C3AED;
    border: 1.5px solid #DDD6FE;
}

.life-reading-card.reading-card-mind .reading-icon {
    background: #EEF2FF;
    color: #4F46E5;
    border: 1.5px solid #C7D2FE;
}

.life-reading-card.reading-card-wealth .reading-icon {
    background: #ECFDF5;
    color: #059669;
    border: 1.5px solid #A7F3D0;
}

.life-reading-card.reading-card-health .reading-icon {
    background: #F0FDFA;
    color: #0D9488;
    border: 1.5px solid #99F6E4;
}

.life-reading-card.reading-card-lucky .reading-icon {
    background: #FFFBEB;
    color: #B45309;
    border: 1.5px solid #FDE68A;
}

.reading-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    background: #F8FAFC;
    color: #475569;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.reading-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
    min-width: 0;
    max-width: 100%;
}

.reading-head > div:not(.reading-icon) {
    min-width: 0;
    flex: 1 1 auto;
}

.reading-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.reading-head h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    overflow-wrap: break-word;
    word-break: break-word;
}

.reading-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Reading Highlight: Full Rounded Pill Banner — ZERO Left Border */
.reading-highlight {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    font-size: 0.85rem;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.reading-highlight .highlight-chip {
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reading-highlight .highlight-text {
    font-weight: 600;
    color: #0F172A;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Doshas Grid */
.doshas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dosha-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dosha-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transform: none;
    border-color: #C7B9A5;
}

.dosha-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.dosha-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
}

.dosha-clean {
    background: #DCFCE7;
    color: #15803D;
    border: 1.5px solid #86EFAC;
}

.dosha-alert {
    background: #FFE4E6;
    color: #B91C1C;
    border: 1.5px solid #FECDD3;
}

.dosha-neutralized {
    background: #FEF3C7;
    color: #B45309;
    border: 1.5px solid #FDE68A;
}

/* SEO Reference Guide Sections (No Cards, Editorial Layout) */
.seo-guide-section {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
    margin-top: 2.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (max-width: 640px) {
    .tool-workspace {
        padding: 1.25rem 0 2.5rem;
        scroll-margin-top: 68px;
    }
    .seo-guide-section {
        padding: 1.35rem 1.1rem;
        margin-top: 1.5rem;
    }
    .seo-guide-section h2 {
        font-size: 1.3rem;
    }
}

.seo-guide-section h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.seo-guide-lead {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.75rem;
}

.bhava-desc-list,
.varga-desc-list,
.koota-desc-list,
.guide-desc-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bhava-desc-item,
.varga-desc-item,
.koota-desc-item,
.guide-desc-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-subtle, #F1F5F9);
}

.bhava-desc-item:last-child,
.varga-desc-item:last-child,
.koota-desc-item:last-child,
.guide-desc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bhava-desc-header,
.varga-desc-header,
.koota-desc-header,
.guide-desc-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.bhava-num-pill,
.varga-num-pill,
.koota-num-pill,
.guide-num-pill {
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bhava-desc-title,
.varga-desc-title,
.koota-desc-title,
.guide-desc-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: #0F172A;
}

.bhava-sanskrit-tag,
.varga-division-tag,
.koota-pts-tag,
.guide-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark, #8C6D38);
    background: var(--gold-subtle, #FDF9EE);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--line-gold, #E5C989);
}

.bhava-desc-text,
.varga-desc-text,
.koota-desc-text,
.guide-desc-text {
    font-size: 0.92rem;
    line-height: 1.72;
    color: #334155;
    margin: 0;
}

/* Core Concepts Section */
.concept-desc-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-subtle, #F1F5F9);
}

.concept-desc-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.concept-desc-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.concept-desc-text {
    font-size: 0.92rem;
    line-height: 1.72;
    color: #334155;
    margin: 0;
}

/* FAQ Accordion */
.seo-faq-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2.5rem;
}

.seo-faq-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 1.25rem;
}

.faq-accordion-item {
    border-bottom: 1px solid var(--line-subtle);
    padding: 0.9rem 0;
}

.faq-accordion-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--night-deep);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--gold-warm);
    font-weight: 700;
}

details[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--ink-body);
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .identity-ribbon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .life-readings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .doshas-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .advanced-options-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-hero-h1 {
        font-size: 1.85rem;
    }
    .tool-form-grid {
        grid-template-columns: 1fr;
    }
    .identity-ribbon-grid {
        grid-template-columns: 1fr;
    }
    .life-readings-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: 100%;
    }
    .life-reading-card {
        padding: 1.15rem 1rem;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .reading-head {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.65rem 0.75rem;
    }
    .reading-head .reading-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .reading-head > div:not(.reading-icon) {
        flex: 1 1 calc(100% - 38px - 0.75rem);
        min-width: 0;
    }
    .reading-head > h4 {
        flex: 1 1 calc(100% - 38px - 0.75rem);
        min-width: 0;
    }
    .reading-head h4 {
        font-size: 1.05rem;
        line-height: 1.35;
    }
    .reading-badge {
        margin-left: 0;
        margin-top: 0.2rem;
        order: 3;
        width: fit-content;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.72rem;
        padding: 0.25rem 0.6rem;
        display: inline-block;
        line-height: 1.35;
        border-radius: 6px;
    }
    .reading-text {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .reading-highlight {
        padding: 0.75rem 0.85rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px;
    }
    .reading-highlight .highlight-chip {
        font-size: 0.68rem;
        padding: 0.25rem 0.55rem;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
        word-break: break-word;
        display: inline-flex;
    }
    .reading-highlight .highlight-text {
        font-size: 0.82rem;
        line-height: 1.45;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    .doshas-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        width: 100%;
    }
    .dosha-card {
        padding: 1.15rem 1rem;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .dosha-card-head {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .dosha-card-head strong,
    .dosha-card-head h4 {
        font-size: 0.95rem;
        line-height: 1.35;
        flex: 1 1 100%;
        word-break: break-word;
    }
    .dosha-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
        width: fit-content;
        max-width: 100%;
        white-space: normal;
        word-break: break-word;
    }
}

/* ----------------------------------------------------------
   14. TIMEZONE & DAYLIGHT SAVING TIME (DST) UI STYLES
   ---------------------------------------------------------- */
.tz-dst-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-warm);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--ink-body);
}

.tz-dst-indicator .tz-icon {
    color: var(--gold-warm);
    font-size: 0.85rem;
}

.dst-pill-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
}

.dst-pill-std {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-warm);
    color: var(--ink-muted);
    border: 1px solid var(--line);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.dasha-active-pill {
    background: #047857;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------
   16. TOGGLE FORM BUTTON (COLLAPSE/EXPAND FORM POST-CALCULATION)
   ---------------------------------------------------------- */
.toggle-form-btn {
    display: none;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-gold);
    background: #FFFFFF;
    color: var(--ink-gold);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toggle-form-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold-warm);
    color: var(--ink-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------------
   17. LAGNA RESULT CARD
   ---------------------------------------------------------- */
.result-card {
    background: #FFFDF9;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 680px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    box-sizing: border-box;
}

.main-lagna {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.35rem;
    font-weight: 800;
    color: #591722;
    margin: 10px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.info-box {
    background: #FFFFFF;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.info-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.info-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}

@keyframes mysticGlow {
    0% { filter: drop-shadow(0px 0px 5px rgba(212, 175, 55, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0px 0px 18px rgba(212, 175, 55, 0.9)); transform: scale(1.05); }
    100% { filter: drop-shadow(0px 0px 5px rgba(212, 175, 55, 0.4)); transform: scale(1); }
}

.animated-lagna {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 10px auto;
    display: block;
    animation: mysticGlow 3s infinite ease-in-out;
}

.btn-reset {
    padding: 12px 18px; 
    background: #FFFFFF; 
    color: #1E293B; 
    border: 1.5px solid rgba(212, 175, 55, 0.4); 
    border-radius: 8px; 
    font-size: 0.95rem; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-ui);
}

.btn-reset:hover {
    background: #FDFBF7;
    border-color: #D4AF37;
}

.btn-calculate {
    background-color: var(--night-deep);
    color: #FFFFFF;
    border: 1px solid rgba(249, 193, 108, 0.4);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    font-family: var(--font-ui);
    box-shadow: 0 2px 6px rgba(10, 17, 40, 0.15);
}

.btn-calculate:hover {
    background-color: var(--ink-gold);
    border-color: var(--gold-warm);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}

@media (max-width: 600px) {
    .result-card {
        padding: 18px 14px;
    }
    .main-lagna {
        font-size: 1.85rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .info-value {
        font-size: 1.1rem;
    }
}

/* ----------------------------------------------------------
   18. EDITORIAL & LEGAL CONTENT PAGES (/about, /privacy, /terms)
   ---------------------------------------------------------- */
.editorial-section {
    padding: 3.5rem 0 4.5rem;
    background: var(--bg-page);
}

.policy-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.25rem;
    align-items: start;
}

.policy-toc-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 88px;
}

.policy-toc-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-toc-title i {
    color: var(--gold-warm);
}

.policy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.policy-toc-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.18s ease;
}

.policy-toc-list a:hover {
    background: var(--bg-page);
    color: var(--gold-warm);
}

.policy-meta-box {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

.policy-doc-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.policy-doc-intro {
    background: var(--bg-page);
    border: 1px solid var(--line-gold);
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--ink-body);
}

.policy-article-block {
    padding-bottom: 1.85rem;
    margin-bottom: 1.85rem;
    border-bottom: 1px solid #F1F5F9;
    scroll-margin-top: 96px;
}

.policy-article-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.policy-article-block h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.policy-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gold-subtle);
    color: #92400E;
    border: 1px solid #FDE68A;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.policy-article-block h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: #1E293B;
    margin: 1.15rem 0 0.5rem;
}

.policy-article-block p {
    font-size: 0.94rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 0.9rem;
}

.policy-article-block p:last-child {
    margin-bottom: 0;
}

.policy-article-block ul {
    margin: 0.75rem 0 1rem 1.35rem;
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.75;
}

.policy-article-block li {
    margin-bottom: 0.55rem;
}

.policy-article-block strong {
    color: #0F172A;
}

.dasha-antar-btn {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #1E293B;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.dasha-antar-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--gold-warm);
    color: #92400E;
}

.dasha-antar-row td {
    background: #FAF9F6 !important;
    padding: 1rem 1.25rem !important;
}

.dasha-antar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 0.65rem;
}

.dasha-antar-chip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
}

.dasha-antar-chip.antar-active {
    background: #ECFDF5;
    border-color: #6EE7B7;
}

@media (max-width: 920px) {
    .policy-layout-grid {
        grid-template-columns: 1fr;
    }
    .policy-toc-card {
        position: static;
    }
    .policy-doc-card {
        padding: 1.5rem 1.25rem;
    }
}

/* ----------------------------------------------------------
   19. ABOUT PAGE MISSION, STANDARDS & CONTACT
   ---------------------------------------------------------- */
.about-mission-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.about-mission-wrap .wisdom-article {
    max-width: 100%;
}

.about-standards-card {
    margin: 2.25rem 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.about-standards-table {
    min-width: 0 !important;
    width: 100% !important;
}

.about-standards-table th {
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.15rem;
}

.about-standards-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    font-size: 0.9rem;
}

.about-standards-table th:first-child,
.about-standards-table td:first-child {
    width: 32%;
    color: var(--ink-dark);
}

.about-standards-table th:last-child,
.about-standards-table td:last-child {
    width: 68%;
}

.about-standards-table tr:nth-child(even) td {
    background: #F8FAFC;
}

.about-standards-table tr:last-child td {
    border-bottom: none;
}

/* 12 Vedic Moon Signs Table (/moon-sign) */
.moon-signs-table th:first-child,
.moon-signs-table td:first-child {
    width: 24%;
}
.moon-signs-table th:nth-child(2),
.moon-signs-table td:nth-child(2) {
    width: 15%;
}
.moon-signs-table th:nth-child(3),
.moon-signs-table td:nth-child(3) {
    width: 15%;
}
.moon-signs-table th:last-child,
.moon-signs-table td:last-child {
    width: 46%;
}

/* Lagna Reference Table (/lagnaya) */
.lagna-reference-table th:first-child,
.lagna-reference-table td:first-child { width: 15%; }
.lagna-reference-table th:nth-child(2),
.lagna-reference-table td:nth-child(2) { width: 14%; }
.lagna-reference-table th:nth-child(3),
.lagna-reference-table td:nth-child(3) { width: 18%; }
.lagna-reference-table th:nth-child(4),
.lagna-reference-table td:nth-child(4) { width: 13%; }
.lagna-reference-table th:nth-child(5),
.lagna-reference-table td:nth-child(5) { width: 22%; }
.lagna-reference-table th:last-child,
.lagna-reference-table td:last-child   { width: 18%; }

/* Dasha Reference Table (/dasha) */
.dasha-reference-table th:first-child,
.dasha-reference-table td:first-child { width: 18%; }
.dasha-reference-table th:nth-child(2),
.dasha-reference-table td:nth-child(2) { width: 12%; }
.dasha-reference-table th:nth-child(3),
.dasha-reference-table td:nth-child(3) { width: 26%; }
.dasha-reference-table th:last-child,
.dasha-reference-table td:last-child   { width: 44%; }

.about-mission-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* About Page: Contact Section (Light warm canvas cleanly separated from footer) */
.about-contact-section {
    background: #FAF8F5;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4.5rem 0;
}

.about-contact-card {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.about-contact-card .section-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    background: var(--gold-subtle);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.about-contact-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.about-contact-card h2 span {
    color: var(--gold-warm);
}

.about-contact-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.about-contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.about-contact-disclaimer {
    font-size: 0.8rem;
    color: var(--ink-muted);
    line-height: 1.5;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
    max-width: 580px;
    margin: 0 auto;
}

.table-scroll-hint {
    display: none;
}

@media (max-width: 640px) {
    .about-standards-card {
        padding: 1.15rem 0.85rem !important;
        border-radius: 8px;
    }
    .about-standards-card .comparison-header {
        font-size: 1.08rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .about-standards-table {
        font-size: 0.82rem;
    }
    .about-standards-table th,
    .about-standards-table td {
        padding: 0.65rem 0.5rem;
    }
    .about-standards-table th:first-child,
    .about-standards-table td:first-child {
        width: 36%;
        font-size: 0.8rem;
    }
    .about-standards-table th:last-child,
    .about-standards-table td:last-child {
        width: 64%;
        font-size: 0.8rem;
        line-height: 1.45;
    }
    .about-mission-actions {
        flex-direction: column;
    }
    .about-mission-actions a {
        width: 100%;
        justify-content: center;
    }

    /* ----------------------------------------------------------
       MOBILE REAL TABLE STYLING (INDEX, MOON SIGN, LAGNA, DASHA)
       Compact, elegant, high-legibility tabular layouts (no fake cards)
       ---------------------------------------------------------- */
    .table-scroll-hint {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.72rem;
        color: #64748B;
        margin-bottom: 0.45rem;
        font-weight: 500;
    }
    .table-scroll-hint i {
        color: var(--gold-warm);
    }

    /* 1. Sidereal vs Tropical Table (index.php) - 100% Mobile Viewport Fit */
    .sidereal-tropical-card {
        padding: 1.15rem 0.75rem !important;
        border-radius: 8px;
    }
    .sidereal-tropical-card .comparison-header {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .sidereal-tropical-table {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    .sidereal-tropical-table th,
    .sidereal-tropical-table td {
        padding: 0.5rem 0.35rem !important;
        vertical-align: top !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }
    .sidereal-tropical-table th {
        font-size: 0.70rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
    }
    .sidereal-tropical-table th:first-child,
    .sidereal-tropical-table td:first-child {
        width: 28% !important;
        font-weight: 700 !important;
        color: var(--night-deep) !important;
    }
    .sidereal-tropical-table th:nth-child(2),
    .sidereal-tropical-table td:nth-child(2) {
        width: 36% !important;
        color: var(--night-deep) !important;
    }
    .sidereal-tropical-table th:nth-child(3),
    .sidereal-tropical-table td:nth-child(3) {
        width: 36% !important;
        color: #475569 !important;
    }

    /* 2. 12 Vedic Moon Signs Table (moon-sign-calculator.php) - 100% Mobile Viewport Fit */
    .moon-signs-reference-card {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .moon-signs-reference-card .comparison-header {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .moon-signs-table {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    .moon-signs-table th,
    .moon-signs-table td {
        padding: 0.5rem 0.3rem !important;
        vertical-align: top !important;
        overflow-wrap: break-word !important;
    }
    .moon-signs-table th {
        font-size: 0.69rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
    }
    .moon-signs-table th:first-child,
    .moon-signs-table td:first-child {
        width: 28% !important;
        font-weight: 700 !important;
    }
    .moon-signs-table th:nth-child(2),
    .moon-signs-table td:nth-child(2) {
        width: 17% !important;
    }
    .moon-signs-table th:nth-child(3),
    .moon-signs-table td:nth-child(3) {
        width: 16% !important;
    }
    .moon-signs-table th:nth-child(4),
    .moon-signs-table td:nth-child(4) {
        width: 39% !important;
        color: #334155 !important;
    }

    /* 3. The 9 Mahadasha Periods Table (dasha-calculator.php) - Real Compact Table */
    .dasha-reference-wrap {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 1.5rem !important;
        border-radius: 8px !important;
        border: 1px solid #E2E8F0 !important;
    }
    .dasha-reference-table {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
    }
    .dasha-reference-table th,
    .dasha-reference-table td {
        padding: 0.5rem 0.35rem !important;
        vertical-align: top !important;
    }
    .dasha-reference-table th {
        font-size: 0.69rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
    }
    .dasha-reference-table th:first-child,
    .dasha-reference-table td:first-child {
        width: 22% !important;
        font-weight: 700 !important;
        color: var(--night-deep) !important;
    }
    .dasha-reference-table th:nth-child(2),
    .dasha-reference-table td:nth-child(2) {
        width: 12% !important;
        font-weight: 700 !important;
        color: var(--ink-gold) !important;
        white-space: nowrap !important;
    }
    .dasha-reference-table th:nth-child(3),
    .dasha-reference-table td:nth-child(3) {
        width: 28% !important;
        color: #475569 !important;
        font-size: 0.72rem !important;
    }
    .dasha-reference-table th:nth-child(4),
    .dasha-reference-table td:nth-child(4) {
        width: 38% !important;
        color: #334155 !important;
        font-size: 0.73rem !important;
    }

    /* 4. 12 Vedic Ascendants (Lagna) Table (lagnaya.php) - Smooth Scrollable Real Table */
    .lagna-reference-wrap {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 1.5rem !important;
        border-radius: 8px !important;
        border: 1px solid #E2E8F0 !important;
    }
    .lagna-reference-table {
        min-width: 500px !important;
        width: 100% !important;
        font-size: 0.76rem !important;
        line-height: 1.35 !important;
        border-collapse: collapse !important;
    }
    .lagna-reference-table th,
    .lagna-reference-table td {
        padding: 0.5rem 0.45rem !important;
        vertical-align: top !important;
    }
    .lagna-reference-table th {
        font-size: 0.70rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em !important;
    }
    .lagna-reference-table th:first-child,
    .lagna-reference-table td:first-child {
        font-weight: 700 !important;
        color: var(--night-deep) !important;
        white-space: nowrap !important;
    }
    .about-contact-section {
        padding: 3rem 0;
    }
    .about-contact-card {
        padding: 2rem 1.25rem;
    }
    .about-contact-actions {
        flex-direction: column;
    }
    .about-contact-actions a {
        width: 100%;
        justify-content: center;
    }

    /* Compatibility Milan Callout & Ashtakoot Preview Box Mobile Optimization */
    .compatibility-banner {
        padding: 3rem 0 !important;
    }
    .compat-inner {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .compat-text h2 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin: 0.65rem 0 !important;
    }
    .compat-text p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.35rem !important;
    }
    .btn-compat {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.92rem !important;
    }
    .compat-preview-box {
        padding: 1.25rem 0.85rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .compat-preview-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }
    .compat-preview-sub {
        font-size: 0.72rem !important;
        margin-top: 0.75rem !important;
    }
    .compat-koota-list {
        grid-template-columns: 1fr !important;
        gap: 0.45rem !important;
    }
    .koota-item {
        padding: 0.48rem 0.8rem !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .koota-item span:first-child {
        font-size: 0.82rem !important;
        color: #F8FAFC !important;
    }
    .koota-item span:last-child {
        font-size: 0.72rem !important;
        padding: 0.15rem 0.5rem !important;
        flex-shrink: 0 !important;
    }
}

/* ----------------------------------------------------------
   20. CONTACT PAGE (/contact)
   ---------------------------------------------------------- */
.contact-page-section {
    padding: 3.5rem 0 5rem;
    background: var(--bg-page);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.75rem;
    align-items: start;
}

/* Contact Form Card */
.contact-form-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.contact-card-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 1.25rem;
}

.contact-card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--night-deep);
    margin-bottom: 0.35rem;
}

.contact-card-header p {
    font-size: 0.95rem;
    color: var(--ink-muted);
}

/* Alerts */
.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-alert i {
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-alert strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-alert-success {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    color: #065F46;
}

.contact-alert-success i {
    color: #059669;
}

.contact-alert-error {
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    color: #991B1B;
}

.contact-alert-error i {
    color: #DC2626;
}

/* Form Fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-dark);
}

.required-star {
    color: #DC2626;
    margin-left: 2px;
}

.optional-tag {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .field-icon {
    position: absolute;
    left: 1rem;
    color: #94A3B8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-sm);
    color: #0F172A;
    font-family: inherit;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon .contact-input,
.input-with-icon .contact-select {
    padding: 0.75rem 1rem 0.75rem 2.6rem;
}

.contact-textarea {
    padding: 0.85rem 1rem;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    background: #FFFFFF;
    border-color: var(--gold-warm);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
    outline: none;
}

.contact-input:focus + .field-icon,
.input-with-icon:focus-within .field-icon {
    color: var(--gold-warm);
}

.field-hint {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.contact-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Captcha Box */
.contact-captcha-box {
    background: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-dark);
}

.captcha-label i {
    color: var(--gold-warm);
}

.captcha-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.captcha-image-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #FFFFFF;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #E2E8F0;
}

.captcha-image-wrap img {
    border-radius: 4px;
    display: block;
}

.btn-refresh-captcha {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #475569;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-refresh-captcha:hover {
    background: var(--gold-subtle);
    border-color: var(--gold-warm);
    color: var(--ink-gold);
}

.captcha-input-wrap {
    flex: 1;
    min-width: 140px;
}

.captcha-input {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 1.05rem;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}

/* Submit Button */
.contact-submit-wrap {
    margin-top: 0.5rem;
}

.btn-submit-contact {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    border: none;
}

/* Sidebar Cards */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-info-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-subtle);
    color: var(--gold-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--night-deep);
}

.info-card-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1.15rem;
}

.info-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    margin-bottom: 0.65rem;
}

.info-highlight-item:last-child {
    margin-bottom: 0;
}

.info-highlight-item i {
    color: var(--gold-warm);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-highlight-item strong {
    display: block;
    font-size: 0.84rem;
    color: var(--ink-dark);
}

.info-highlight-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* FAQ in Sidebar */
.contact-faq-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F1F5F9;
}

.contact-faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-faq-item h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-dark);
    margin-bottom: 0.35rem;
}

.contact-faq-item p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* Responsive adjustments for Contact Page */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .contact-page-section {
        padding: 2.25rem 0 3.5rem;
    }
    .contact-form-card {
        padding: 1.75rem 1.25rem;
    }
    .contact-row-2col {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
    .captcha-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-image-wrap {
        justify-content: space-between;
    }
    .captcha-input-wrap {
        width: 100%;
    }
    .captcha-input {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   21. SHARED BUTTON VARIANTS & ACCESSIBILITY POLISH
   ---------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--gold-btn);
    color: #FFFFFF !important;
    border: 1px solid var(--gold-btn);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.22);
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
    background: var(--gold-btn-hover);
    border-color: var(--gold-btn-hover);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.3);
}

.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #FFFFFF;
    color: var(--ink-dark);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--gold-subtle);
    border-color: var(--line-gold);
    color: var(--gold-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--ink-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Birth Chart Results Tabs & Mobile-First Prediction Cards
   ========================================================= */
.results-tabs-shell {
    margin: 2rem 0 1.25rem;
    position: sticky;
    top: 68px;
    z-index: 25;
    background: rgba(250, 249, 246, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

.results-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
}

.results-tabs-bar::-webkit-scrollbar {
    display: none;
}

.results-tab-btn {
    flex: 1 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--ink-body);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.results-tab-btn i {
    font-size: 0.85rem;
    color: var(--ink-gold);
}

.results-tab-btn:hover {
    border-color: var(--line-gold);
    background: var(--gold-subtle);
    color: var(--night-deep);
}

.results-tab-btn.is-active {
    background: var(--night-deep);
    border-color: var(--night-deep);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(10, 17, 40, 0.16);
}

.results-tab-btn.is-active i {
    color: #FCD34D;
}

.results-tab-panel {
    display: none;
    padding-top: 0.5rem;
}

.results-tab-panel.is-active {
    display: block;
}

.prediction-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.prediction-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.prediction-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.prediction-card-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--night-deep);
    line-height: 1.3;
}

.prediction-card-sub {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.prediction-card-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.68;
    color: var(--ink-body);
}

.prediction-badge-special {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--gold-subtle);
    color: var(--gold-dark);
    border: 1px solid var(--line-gold);
}

.mobile-cards-list {
    display: none;
}

.mobile-data-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.mobile-data-card.is-highlight {
    background: var(--gold-subtle);
    border-color: var(--line-gold);
}

.mobile-data-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.mobile-data-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--ink-body);
}

.mobile-data-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}

@media (max-width: 900px) {
    .prediction-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .results-tabs-shell {
        top: 56px;
        margin: 1.5rem 0 1rem;
    }

    .results-tab-btn {
        flex: 0 0 auto;
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
    }

    .astro-table-wrapper.desktop-only-table {
        display: none;
    }

    .mobile-cards-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .prediction-card {
        padding: 1rem;
    }
}
