/**
 * AstroLeaf Enterprise - D9 Navamsha Chart Calculator CSS
 * Mystical Indigo & Soul Destiny Palette with Responsive Layouts
 */

:root {
    --d9-indigo: #FFBA5F;
    --d9-indigo-dark: #65250C;
    --d9-indigo-light: #FFEFD6;
    --d9-indigo-border: #65250C;
    --d9-gold: #FFBA5F;
    --d9-gold-border: #65250C;
    --d9-dark: #65250C;
    --d9-card-bg: #FFEFD6;
    --d9-surface: #FFF7E8;
    --d9-text-dark: #65250C;
    --d9-text-muted: #555555;
}

/* Hero Section */
.d9-hero {
    position: relative;
    background: linear-gradient(135deg, #05070E 0%, #121033 35%, #240C38 70%, #080614 100%),
                radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.45) 0%, rgba(129, 140, 248, 0.1) 50%, transparent 80%);
    padding: 68px 20px 52px;
    text-align: center;
    overflow: hidden;
    color: #FFFFFF;
}

/* Floating Air Bubbles */
.d9-hero-bubble {
    position: absolute;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(165, 180, 252, 0.35) 0%, rgba(99, 102, 241, 0.08) 60%, transparent 100%);
    border: 1px solid rgba(165, 180, 252, 0.25);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
    animation: floatBubble 8s ease-in-out infinite alternate;
}

.d9-hero-bubble.bubble-1 { width: 90px; height: 90px; top: 12%; left: 7%; animation-duration: 9s; }
.d9-hero-bubble.bubble-2 { width: 140px; height: 140px; bottom: 8%; right: 6%; animation-duration: 11s; animation-delay: -3s; }
.d9-hero-bubble.bubble-3 { width: 60px; height: 60px; top: 58%; left: 16%; animation-duration: 7s; animation-delay: -5s; }
.d9-hero-bubble.bubble-4 { width: 110px; height: 110px; top: 18%; right: 14%; animation-duration: 10s; animation-delay: -2s; }

@keyframes floatBubble {
    0% { transform: translateY(0px) scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-18px) scale(1.08) rotate(180deg); opacity: 0.85; }
    100% { transform: translateY(-35px) scale(0.95) rotate(360deg); opacity: 0.5; }
}

.d9-hero-watermark-left,
.d9-hero-watermark-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 170px;
    height: 170px;
    pointer-events: none;
    opacity: 0.8;
}

.d9-hero-watermark-left { left: -40px; }
.d9-hero-watermark-right { right: -40px; }

.d9-hero-container {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
}

.d9-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50px;
    color: #818CF8;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.d9-hero-title {
    font-family: var(--font-heading, serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 14px;
    line-height: 1.2;
}

.d9-hero-title span {
    background: linear-gradient(135deg, #A5B4FC 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.d9-hero-desc {
    font-size: 1.05rem;
    color: #94A3B8;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Breadcrumbs Bar */
.d9-breadcrumbs-bar {
    background: #1E293B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    font-size: 0.85rem;
}

.d9-breadcrumbs-container {
    max-width: 1080px;
    margin: 0 auto;
    color: #94A3B8;
}

.d9-breadcrumbs-container a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.d9-breadcrumbs-container a:hover {
    color: #818CF8;
}

/* Form Card */
.d9-form-card {
    background: linear-gradient(145deg, #FDFDFE 0%, #F1F3FF 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 4px 15px rgba(99, 102, 241, 0.12);
    padding: 42px 44px;
    margin: 36px auto 0;
    max-width: 960px;
    position: relative;
    z-index: 10;
}

.form-card-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-card-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--d9-indigo-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.form-card-title {
    font-family: var(--font-heading, serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--d9-text-dark);
    margin: 0;
}

.form-grid-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

@media (max-width: 768px) {
    .form-grid-columns {
        grid-template-columns: 1fr;
    }
    .d9-form-card {
        padding: 24px 18px;
    }
    .d9-hero-title {
        font-size: 1.8rem;
    }
}

.form-input-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--d9-text-dark);
    margin-bottom: 6px;
}

html body .d9-form-card .input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .d9-form-card .input-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: #65250C !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .d9-form-card .input-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    stroke-width: 2px !important;
    display: block !important;
}

html body .d9-form-card input.ale-input,
html body .d9-form-card select.ale-input {
    width: 100% !important;
    height: 50px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 14px !important;
    padding-right: 38px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 8px;
    background: #FFF7E8 !important;
    color: #1C130D !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

html body .d9-form-card input.ale-input:focus,
html body .d9-form-card select.ale-input:focus {
    background: #FFFDF9 !important;
    border-color: #65250C !important;
    box-shadow: 0 0 0 3px rgba(101, 37, 12, 0.18) !important;
}

html body .btn-submit-calc-d9 {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 54px !important;
    width: 100% !important;
    padding: 0 28px !important;
    background: linear-gradient(135deg, #6366F1 0%, #4338CA 50%, #312E81 100%) !important;
    color: #FFFFFF !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 8px;
    cursor: pointer !important;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.38), 0 2px 6px rgba(67, 56, 202, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
    gap: 10px !important;
}

html body .btn-submit-calc-d9::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
    transform: skewX(-20deg) !important;
    transition: left 0.75s ease !important;
    animation: shiny-sweep 4s ease-in-out infinite !important;
}

html body .btn-submit-calc-d9:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 14px 32px -4px rgba(99, 102, 241, 0.5), 0 4px 12px rgba(67, 56, 202, 0.25) !important;
    background: linear-gradient(135deg, #818CF8 0%, #4F46E5 55%, #3730A3 100%) !important;
}

html body .btn-submit-calc-d9:hover::before {
    left: 140% !important;
}

html body .btn-submit-calc-d9 svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5px !important;
    transition: transform 0.25s ease !important;
}

html body .btn-submit-calc-d9:hover svg {
    transform: translateX(4px) !important;
}

/* Loading state */
.calc-loading-container {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.spinner-indigo {
    width: 48px;
    height: 48px;
    border: 4px solid var(--d9-indigo-border);
    border-top: 4px solid var(--d9-indigo);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Results section */
.calc-results-wrapper {
    display: none;
    margin-top: 40px;
}

/* Spotlight Hero Banner */
.d9-spotlight-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    border: 1px solid var(--d9-indigo-border);
    border-radius: 12px;
    padding: 30px;
    color: #FFFFFF;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.spotlight-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px 20px;
}

.spotlight-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A5B4FC;
    font-weight: 600;
    margin-bottom: 6px;
}

.spotlight-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
}

.spotlight-sub {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-top: 4px;
}

/* Section Box Styles */
.d9-section-card {
    background: #FFEFD6 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 0px !important;
    padding: 32px 36px !important;
    margin-bottom: 30px !important;
    box-shadow: none !important;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #F1F5F9;
}

.section-title {
    font-family: var(--font-heading, serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--d9-text-dark);
    margin: 0;
}

/* High-End Segmented Chart Toggler */
html body .chart-toggle-bar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    padding: 4px !important;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
}

html body .chart-toggle-btn {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px;
    background: transparent !important;
    color: #64748B !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

html body .chart-toggle-btn:hover {
    color: #1E293B !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

html body .chart-toggle-btn.active {
    background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

/* Dual Chart View */
.dual-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.chart-card-single {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    width: 100% !important;
    box-sizing: border-box !important;
}

.chart-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    margin-bottom: 14px;
}

.chart-container-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    min-height: 440px !important;
    padding: 16px !important;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-sizing: border-box !important;
}

.chart-container-box svg {
    width: 100% !important;
    min-width: 340px !important;
    max-width: 480px !important;
    height: auto !important;
    min-height: 340px !important;
    flex-shrink: 0 !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Tables */
.d9-table-wrapper {
    overflow-x: auto;
}

.d9-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.d9-table th {
    background: #F8FAFC;
    color: var(--d9-text-dark);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
}

.d9-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
}

.d9-table tbody tr:hover {
    background: #EEF2FF;
}

/* Golden Vargottama Badge */
.badge-vargottama {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    color: #92400E;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.badge-pushkara {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #E0E7FF;
    border: 1px solid #818CF8;
    color: #3730A3;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* Insight Cards Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.insight-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 22px;
    transition: all 0.2s ease;
}

.insight-card:hover {
    border-color: var(--d9-indigo);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.insight-icon {
    width: 38px;
    height: 38px;
    background: var(--d9-indigo-light);
    border: 1px solid var(--d9-indigo-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--d9-indigo-dark);
    margin-bottom: 12px;
}

.insight-title {
    font-family: var(--font-heading, serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--d9-text-dark);
    margin: 0 0 8px 0;
}

.insight-desc {
    font-size: 0.9rem;
    color: var(--d9-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* Article Sections & Circular Badge Number Styling */
html body .wy-article-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    border: 1.5px solid #C7D2FE !important;
    background: #EEF2FF !important;
    color: #4338CA !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.1) !important;
}

html body .wy-article-section {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 32px 36px !important;
    margin-bottom: 28px !important;
    box-shadow: 0 8px 30px rgba(67, 56, 202, 0.04) !important;
}

html body .wy-article-h2 {
    font-family: 'Cinzel', serif !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #1E293B !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

html body .wy-article-body {
    font-size: 0.96rem !important;
    color: #475569 !important;
    line-height: 1.7 !important;
}

/* Interactive FAQ Accordion Styling */
html body .wy-faq-accordion {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 16px !important;
}

html body .wy-faq-item {
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

html body .wy-faq-item.active {
    border-color: #4338CA !important;
    box-shadow: 0 6px 20px rgba(67, 56, 202, 0.1) !important;
    background: #FFFFFF !important;
}

html body .wy-faq-trigger {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}

html body .wy-faq-trigger:hover {
    color: #4338CA !important;
}

html body .wy-faq-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #EEF2FF !important;
    color: #4338CA !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
    flex-shrink: 0 !important;
}

html body .wy-faq-item.active .wy-faq-icon {
    transform: rotate(45deg) !important;
    background: #4338CA !important;
    color: #FFFFFF !important;
}

html body .wy-faq-content {
    display: none !important;
    padding: 0 20px 18px 20px !important;
    font-size: 0.92rem !important;
    color: #475569 !important;
    line-height: 1.65 !important;
    border-top: 1px solid #F1F5F9 !important;
    margin-top: 4px !important;
    padding-top: 14px !important;
}

html body .wy-faq-item.active .wy-faq-content {
    display: block !important;
}

/* Tables & Chips Styling */
html body .wy-table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    border-radius: 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    margin: 20px 0 !important;
}

html body .wy-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.92rem !important;
    text-align: left !important;
    background: #FFFFFF !important;
}

html body .wy-table th {
    background: #EEF2FF !important;
    color: #3730A3 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.06em !important;
    padding: 14px 18px !important;
    border-bottom: 1.5px solid #C7D2FE !important;
}

html body .wy-table td {
    padding: 14px 18px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    color: #475569 !important;
}

html body .wy-table tr:last-child td {
    border-bottom: none !important;
}

html body .wy-badge-chip {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

html body .wy-badge-chip.gold { background: #FFEFD6 !important; color: #65250C !important; border: 1px solid #65250C !important; }
html body .wy-badge-chip.benefic { background: #E8F5E9 !important; color: #2E7D32 !important; border: 1px solid #A5D6A7 !important; }
html body .wy-badge-chip.malefic { background: #FFF3E0 !important; color: #E65100 !important; border: 1px solid #FFCC80 !important; }

/* HIGH-SPECIFICITY UNIVERSAL DESIGN SYSTEM OVERRIDES FOR D9 NAVAMSHA */
html body .vng-strict-wrapper {
    background-color: #FFFBF4 !important;
}

html body .wy-article-section,
html body .cd-article-section,
html body .kl-article,
html body .ry-article,
html body .ud-article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 46px !important;
    text-align: left !important;
}

@media (max-width: 767px) {
    html body .wy-article-section,
    html body .cd-article-section,
    html body .kl-article,
    html body .ry-article,
    html body .ud-article {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

html body .wy-seo-articles .wy-article-h2,
html body .ud-article-title,
html body .wy-article-h2 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.75rem !important;
    color: #65250C !important;
    margin: 0 0 18px 0 !important;
    font-weight: 700 !important;
    text-align: left !important;
    border: none !important;
}

html body .wy-article-body p,
html body .ud-article-body p {
    color: #555555 !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 1.12rem !important;
    line-height: 1.85 !important;
    text-align: left !important;
    margin: 0 0 18px 0 !important;
}

html body .wy-article-body ul li {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 1.12rem !important;
    line-height: 1.85 !important;
    color: #555555 !important;
    margin-bottom: 14px !important;
}

html body .wy-article-badge {
    display: none !important;
}

/* INLINE LINKS */
html body a.vng-inline-link,
html body .wy-article-body a {
    color: #65250C !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

html body a.vng-inline-link:hover,
html body .wy-article-body a:hover {
    color: #C37A2E !important;
}

/* UNIVERSAL FORM CARD */
html body .d9-form-card {
    background: #FFEFD6 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 14px !important;
    padding: 32px 36px !important;
    box-shadow: none !important;
}

html body .d9-form-card .form-card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
}

html body .d9-form-card .form-card-eyebrow {
    color: #65250C !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

html body .d9-form-card .form-input-group label {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
}

html body .d9-form-card input.ale-input,
html body .d9-form-card select.ale-input {
    background: #FFF7E8 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 8px !important;
    height: 42px !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 0.92rem !important;
    color: #1C130D !important;
}

html body .btn-submit-calc-d9,
html body .btn-submit-calc {
    background: #F97316 !important;
    height: 52px !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    box-shadow: 0 4px 14px rgba(195, 122, 46, 0.25) !important;
    border: none !important;
}

html body .btn-submit-calc-d9:hover,
html body .btn-submit-calc:hover {
    background: linear-gradient(180deg, #FFB04C 0%, #D88936 100%) !important;
    transform: translateY(-1px) !important;
}

/* SPOTLIGHT SUMMARY CARD & RESULTS DESIGN SYSTEM OVERRIDES */
html body .d9-spotlight-card {
    background: #FFEFD6 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 14px !important;
    padding: 24px 28px !important;
    margin-bottom: 28px !important;
    box-shadow: none !important;
}

html body .spotlight-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px !important;
}

html body .spotlight-item {
    background: #FFF7E8 !important;
    border: 1.5px solid #E6DFD5 !important;
    border-radius: 10px !important;
    padding: 16px 20px !important;
}

html body .spotlight-label {
    color: #65250C !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 6px !important;
}

html body .spotlight-val {
    color: #65250C !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

html body .spotlight-sub {
    color: #555555 !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 0.88rem !important;
    margin-top: 4px !important;
}

html body .d9-section-card {
    background: #FFEFD6 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 14px !important;
    padding: 28px 32px !important;
    margin-bottom: 28px !important;
    box-shadow: none !important;
}

html body .section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
}

html body .insight-card {
    background: #FFF7E8 !important;
    border: 1.5px solid #E6DFD5 !important;
    border-radius: 10px !important;
}

html body .wy-table-responsive {
    border: 1.5px solid #65250C !important;
}

html body .wy-table th {
    background: #FFEFD6 !important;
    color: #65250C !important;
    border-bottom: 1.5px solid #65250C !important;
}

html body .wy-table td {
    color: #555555 !important;
    border-bottom: 1px solid #EAE3D9 !important;
}

/* CLEAR POB CROSS BUTTON & INPUT FOCUS STRICT OVERRIDES */
html body #clear-pob,
html body .d9-form-card #clear-pob,
html body .d10-form-card #clear-pob,
html body .input-wrapper #clear-pob {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    color: #65250C !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
}

html body #clear-pob:hover,
html body .input-wrapper #clear-pob:hover {
    color: #C37A2E !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html body input:focus,
html body select:focus,
html body input.ale-input:focus,
html body select.ale-input:focus,
html body .d9-form-card input.ale-input:focus,
html body .d9-form-card select.ale-input:focus,
html body .d10-form-card input.ale-input:focus,
html body .d10-form-card select.ale-input:focus {
    background: #FFFDF9 !important;
    border-color: #65250C !important;
    box-shadow: 0 0 0 3px rgba(101, 37, 12, 0.18) !important;
    outline: none !important;
}

/* CHART CARDS & DUAL CHARTS GRID NO-OVERFLOW FIX */
html body .dual-charts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .chart-card-single {
    background: #FFF7E8 !important;
    border: 1.5px solid #E6DFD5 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

html body .chart-header-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #65250C !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

html body .chart-container-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 10px !important;
    background: #FFFDF9 !important;
    border-radius: 10px !important;
    border: 1.5px solid #65250C !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

html body .chart-container-box svg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    max-height: 380px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* TOGGLE BUTTONS BRANDING */
html body .chart-toggle-bar {
    display: inline-flex !important;
    background: #FFF7E8 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 8px !important;
    padding: 3px !important;
    gap: 4px !important;
}

html body .chart-toggle-btn {
    padding: 6px 14px !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    color: #65250C !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

html body .chart-toggle-btn:hover {
    background: #FFEFD6 !important;
    color: #65250C !important;
}

html body .chart-toggle-btn.active {
    background: #F97316 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(195, 122, 46, 0.25) !important;
}

/* BADGES & HOVER STATES STRICT OVERRIDES */
html body .badge-pushkara {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    background: #FFEFD6 !important;
    border: 1px solid #65250C !important;
    color: #65250C !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

html body .badge-vargottama {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background: #FFEFD6 !important;
    border: 1.5px solid #65250C !important;
    color: #65250C !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

html body .insight-card {
    background: #FFF7E8 !important;
    border: 1.5px solid #E6DFD5 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

html body .insight-card:hover {
    border-color: #65250C !important;
    box-shadow: 0 4px 14px rgba(101, 37, 12, 0.12) !important;
}

html body .insight-icon {
    background: #FFEFD6 !important;
    border: 1px solid #65250C !important;
    color: #65250C !important;
}

html body .d9-table tbody tr:hover,
html body .wy-table tbody tr:hover {
    background: #FFEFD6 !important;
}

html body .spinner-indigo,
html body .spinner-golden {
    border: 4px solid #FFEFD6 !important;
    border-top: 4px solid #65250C !important;
}

/* STRICT SQUARE THEME MANDATE - ZERO ROUNDED SURFACES & ZERO BLUE HOVER EVER */
html body *,
html body *::before,
html body *::after,
html body .vng-strict-wrapper,
html body .d9-hero-container,
html body .d9-badge,
html body .d10-badge,
html body .pkr-pill-label {
    /* Normalized badges */
}

/* STRICT ZERO BLUE HOVER FORCE OVERRIDES */
html body button:hover,
html body input[type="submit"]:hover,
html body .btn-submit-calc-d9:hover,
html body .btn-submit-calc:hover {
    background: linear-gradient(180deg, #FFB04C 0%, #D88936 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
    border-color: transparent !important;
}

html body .chart-toggle-btn:hover {
    background: #FFEFD6 !important;
    color: #65250C !important;
}

html body .chart-toggle-btn.active {
    background: #F97316 !important;
    color: #FFFFFF !important;
    border-radius: 0 !important;
}

html body #clear-pob:hover,
html body .input-wrapper #clear-pob:hover {
    background: transparent !important;
    color: #C37A2E !important;
    box-shadow: none !important;
    border: none !important;
}

html body a:hover,
html body a.vng-inline-link:hover,
html body .wy-article-body a:hover {
    color: #C37A2E !important;
}

/* DEDICATED ASTROLEAF BULLET POINTS WIDGET STYLING */
html body .vng-bullet-list,
html body .ale-bullet-widget,
html body .wy-article-body ul,
html body .ud-article-body ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 24px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

html body .vng-bullet-list li,
html body .ale-bullet-widget li,
html body .wy-article-body ul li,
html body .ud-article-body ul li {
    position: relative !important;
    background: #FFF7E8 !important;
    border: 1.5px solid #65250C !important;
    border-radius: 0 !important;
    padding: 14px 18px 14px 44px !important;
    margin: 0 !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    color: #555555 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

html body .vng-bullet-list li::before,
html body .ale-bullet-widget li::before,
html body .wy-article-body ul li::before,
html body .ud-article-body ul li::before {
    content: '◈' !important;
    position: absolute !important;
    left: 16px !important;
    top: 15px !important;
    color: #65250C !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

html body .vng-bullet-list li:hover,
html body .ale-bullet-widget li:hover,
html body .wy-article-body ul li:hover,
html body .ud-article-body ul li:hover {
    background: #FFEFD6 !important;
    border-color: #65250C !important;
}

html body .vng-bullet-list li strong,
html body .ale-bullet-widget li strong,
html body .wy-article-body ul li strong,
html body .ud-article-body ul li strong {
    color: #65250C !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
}

/* INPUT ICON LOGOS STYLING */
html body .input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

html body .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    color: #65250C !important;
    pointer-events: none !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .input-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #65250C !important;
    stroke-width: 2px !important;
    display: block !important;
}

html body input.ale-input,
html body select.ale-input,
html body .d9-form-card input.ale-input,
html body .d9-form-card select.ale-input,
html body .d10-form-card input.ale-input,
html body .d10-form-card select.ale-input {
    padding-left: 14px !important;
    padding-right: 38px !important;
}

/* UNIVERSAL DESIGN HEADING UNDERLINES */
html body .wy-seo-articles .wy-article-h2,
html body .ud-article-title,
html body .wy-article-h2,
html body .section-title,
html body .form-card-title {
    font-family: 'Outfit', sans-serif !important;
    color: #65250C !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
    border-bottom: 2.5px solid #C37A2E !important;
    display: inline-block !important;
}

html body .pkr-section-title {
    font-family: 'Outfit', sans-serif !important;
    color: #65250C !important;
    font-weight: 700 !important;
    position: relative !important;
    padding-bottom: 8px !important;
    margin: 0 auto 16px auto !important;
    border-bottom: 2.5px solid #C37A2E !important;
    display: inline-block !important;
}

/* UNIVERSAL TABLE DESIGN */
html body .d10-table-wrapper,
html body .d9-table-wrapper,
html body .wy-table-responsive {
    overflow-x: auto !important;
    border-radius: 10px !important;
    border: 1.5px solid #E6DFD5 !important;
    box-shadow: 0 4px 15px rgba(101, 37, 12, 0.04) !important;
    margin: 20px 0 !important;
    background: #FFFFFF !important;
}

html body .d10-table,
html body .d9-table,
html body .wy-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.92rem !important;
    text-align: left !important;
    background: #FFFFFF !important;
}

html body .d10-table th,
html body .d9-table th,
html body .wy-table th {
    background: #FFEFD6 !important;
    color: #65250C !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-size: 0.8rem !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid #E6DFD5 !important;
    white-space: nowrap !important;
}

html body .d10-table td,
html body .d9-table td,
html body .wy-table td {
    padding: 13px 16px !important;
    border-bottom: 1px solid #F5EFE6 !important;
    color: #4A3E3D !important;
    font-size: 0.9rem !important;
    vertical-align: middle !important;
}

html body .d10-table tr:nth-child(even),
html body .d9-table tr:nth-child(even),
html body .wy-table tr:nth-child(even) {
    background-color: #FFFDF9 !important;
}

html body .d10-table tr:hover,
html body .d9-table tr:hover,
html body .wy-table tr:hover {
    background-color: #FFF7E8 !important;
}

html body .d10-table tr:last-child td,
html body .d9-table tr:last-child td,
html body .wy-table tr:last-child td {
    border-bottom: none !important;
}



/* 360px Mobile */
@media (max-width: 360px) {
  [class*="d9-form"], [class*="navamsha-form"] { padding: 14px !important; }
  [class*="d9-chart"], [class*="navamsha-chart"] { max-width: 100% !important; }
  [class*="d9-result"], [class*="navamsha-result"] { padding: 12px !important; }
  h1, [class*="calc-title"] { font-size: 1.35rem !important; }
  [class*="d9-btn"] { width: 100% !important; }
}


/* Shared editorial layout: flat surfaces, readable rhythm, and square controls. */
html body .vng-strict-wrapper { overflow-x: hidden !important; background: #FFFBF4 !important; }
html body .vng-strict-wrapper > .ale-container { width: min(100% - 32px, 1140px) !important; max-width: 1140px !important; padding-inline: 0 !important; box-sizing: border-box !important; }
html body .vng-strict-wrapper .d10-form-card,
html body .vng-strict-wrapper .d9-form-card { width: 100% !important; max-width: 840px !important; background: #FFEFD6 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 30px 34px !important; }
html body .vng-strict-wrapper .d10-section-card,
html body .vng-strict-wrapper .d9-section-card { background: #FFF7E8 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 28px 30px !important; }
html body .vng-strict-wrapper .d10-spotlight-card,
html body .vng-strict-wrapper .d9-spotlight-card,
html body .vng-strict-wrapper .chart-container-box,
html body .vng-strict-wrapper .chart-card-single,
html body .vng-strict-wrapper .chart-card { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body .vng-strict-wrapper .wy-seo-articles { max-width: 840px !important; margin: 34px auto 30px !important; padding-inline: 20px !important; background: transparent !important; }
html body .vng-strict-wrapper .wy-article-section { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 30px !important; background: transparent !important; }
html body .vng-strict-wrapper .wy-article-h2,
html body .vng-strict-wrapper .pkr-section-title { text-align: left !important; border-bottom: 1.5px solid #65250C !important; border-radius: 0 !important; padding-bottom: 8px !important; }
html body .vng-strict-wrapper .wy-article-body,
html body .vng-strict-wrapper .wy-article-body p,
html body .vng-strict-wrapper .wy-article-body li { line-height: 1.68 !important; }
html body .vng-strict-wrapper .pkr-faq-section { max-width: 840px !important; margin: 42px auto 56px !important; padding-inline: 20px !important; text-align: left !important; background: transparent !important; }
html body .vng-strict-wrapper .pkr-section-header { text-align: left !important; }
html body .vng-strict-wrapper .pkr-faq-container { display: block !important; max-width: 800px !important; margin: 0 !important; }
html body .vng-strict-wrapper .pkr-faq-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid #E6DFD5 !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden !important; }
html body .vng-strict-wrapper .pkr-faq-item.active { border-color: #C37A2E !important; box-shadow: none !important; }
html body .vng-strict-wrapper .pkr-faq-question { width: 100% !important; min-height: 52px !important; padding: 14px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; display: flex !important; align-items: center !important; gap: 14px !important; text-align: left !important; }
html body .vng-strict-wrapper .pkr-faq-question:focus-visible { outline: 2px solid #C37A2E !important; outline-offset: 3px !important; }
html body .vng-strict-wrapper .faq-icon { width: 28px !important; height: 28px !important; min-width: 28px !important; display: grid !important; place-items: center !important; margin-left: auto !important; border-radius: 0 !important; background: #FFE2C2 !important; transition: transform 0.28s ease !important; }
html body .vng-strict-wrapper .pkr-faq-item.active .faq-icon { transform: rotate(45deg) !important; background: #D97706 !important; color: #fff !important; }
html body .vng-strict-wrapper .pkr-faq-answer { height: 0 !important; overflow: hidden !important; transition: height 0.28s ease !important; padding: 0 42px 0 0 !important; border: 0 !important; background: transparent !important; line-height: 1.7 !important; box-sizing: border-box !important; }
html body .vng-strict-wrapper .pkr-faq-item.active .pkr-faq-answer { padding-bottom: 16px !important; }
html body .vng-strict-wrapper input.aap-input,
html body .vng-strict-wrapper select.aap-select,
html body .vng-strict-wrapper input.vnc-input,
html body .vng-strict-wrapper select.vnc-select { min-height: 48px !important; box-sizing: border-box !important; }
html body .vng-strict-wrapper .vnc-field-icon { left: 14px !important; top: 24px !important; transform: translateY(-50%) !important; width: 18px !important; height: 18px !important; }
html body .vng-strict-wrapper .vnc-field-icon svg { width: 18px !important; height: 18px !important; }
html body .vng-strict-wrapper .btn-submit-calc,
html body .vng-strict-wrapper .btn-submit-calc-d9 { border-radius: 0 !important; box-shadow: none !important; }
@media (max-width: 768px) {
  html body .vng-strict-wrapper > .ale-container { width: min(100% - 28px, 840px) !important; }
  html body .vng-strict-wrapper .d10-form-card,
  html body .vng-strict-wrapper .d9-form-card,
  html body .vng-strict-wrapper .d10-section-card,
  html body .vng-strict-wrapper .d9-section-card { padding: 22px 16px !important; }
  html body .vng-strict-wrapper .wy-seo-articles,
  html body .vng-strict-wrapper .pkr-faq-section { padding-inline: 0 !important; }
  html body .vng-strict-wrapper .pkr-faq-answer { padding-right: 0 !important; }
}
