:root {
    --saffron-main: #e65100;
    --saffron-bright: #ff7a00;
    --saffron-deep: #9c2b00;
    --saffron-soft: #fff8f0;
    --saffron-border: #f3d2b3;
}

/* =========================================================
    1. DESKTOP STICKY LEFT SIDEBAR FORM
========================================================== */
@media (min-width: 992px) {
    .panchang-sticky-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 88px;
        z-index: 90;
    }
}

.panchang-form-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid var(--saffron-border);
    box-shadow: 0 8px 24px rgba(180, 62, 0, 0.06);
    overflow: hidden;
}

.panchang-form-header {
    background: linear-gradient(135deg, #ff6b00 0%, #FF9800 100%);
    color: #ffffff;
    padding: 14px 16px;
}

.panchang-label {
    font-size: 13px;
    font-weight: 700;
    color: #7c2d12;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panchang-input {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    height: 40px !important;
    border: 1.5px solid #e7c6a9 !important;
    border-radius: 10px !important;
    background-color: #fffdfb !important;
}

.panchang-input:focus {
    border-color: var(--saffron-main) !important;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.14) !important;
    background-color: #ffffff !important;
}

.gj-datepicker-bootstrap [role=right-icon] button {
    height: 40px !important;
    border-color: #e7c6a9 !important;
    border-radius: 0 10px 10px 0 !important;
    color: var(--saffron-main) !important;
    background: #fff7ed !important;
}

.pac-container { z-index: 10000 !important; }

/* =========================================================
    2. DESKTOP QUICK NAV TABS & MOBILE BOTTOM APP MENU BAR
========================================================== */
.desktop-quick-tabs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
}
.desktop-nav-pill {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #ffffff;
    border: 1.5px solid var(--saffron-border);
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.desktop-nav-pill i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fff3e0;
    color: var(--saffron-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
    transition: all 0.2s;
}
.desktop-nav-pill:hover,
.desktop-nav-pill.active {
    background: linear-gradient(135deg, #ff6b00 0%, #FF9800 100%);
    border-color: #b83200;
    color: #ffffff;
    transform: translateX(3px);
}
.desktop-nav-pill:hover i,
.desktop-nav-pill.active i {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Mobile Bottom Fixed Navigation Bar (Auto-Hides at Footer) */
.mobile-bottom-astro-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1.5px solid #fbd3ad;
    box-shadow: 0 -6px 22px rgba(156, 43, 0, 0.14);
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.mobile-bottom-astro-nav.nav-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 2px;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.mobile-nav-tab i {
    font-size: 16px;
    margin-bottom: 3px;
    width: 32px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.mobile-nav-tab.active,
.mobile-nav-tab:hover {
    color: var(--saffron-main);
}
.mobile-nav-tab.active i {
    background: linear-gradient(135deg, #ff6b00 0%, #FF9800 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(230, 81, 0, 0.28);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 66px;
    }
}

/* =========================================================
    3. DEVOTIONAL PANCHANG CARDS & SUMMARY BANNER
========================================================== */
.panchang-banner {
    background: linear-gradient(135deg, #9c2b00 0%, #e65100 55%, #f59e0b 100%);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 10px 26px rgba(180, 62, 0, 0.18);
}
.panchang-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid var(--saffron-border);
    box-shadow: 0 4px 16px rgba(180, 62, 0, 0.04);
}
.panchang-samvat-box {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
}
.sun-moon-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.shubh-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #6ee7b7;
    border-radius: 14px;
}
.ashubh-box {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1.5px solid #fda4af;
    border-radius: 14px;
}
.transition-badge {
    display: inline-block;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 7px;
    margin: 4px 5px 0 0;
}

/* =========================================================
    4. UNIQUE CHOGHADIYA & HORA VISUAL CARDS
========================================================== */
.astro-segment-pills {
    background: #ffffff;
    padding: 4px;
    border-radius: 12px;
    border: 1.5px solid #f3d2b3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(180, 62, 0, 0.06);
}
.astro-segment-pills .nav-item {
    margin: 0;
}
/* Normal (Inactive) Button State */
.astro-segment-pills .nav-link {
    border-radius: 9px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    color: #7c2d12 !important;
    background-color: #fff8f0 !important;
    border: 1px solid transparent !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease !important;
    cursor: pointer;
}
.astro-segment-pills .nav-link:not(.active):hover,
.astro-segment-pills .nav-link:not(.active):focus {
    color: #FF9800 !important;
    background-color: #ffedd5 !important;
    border-color: #fdba74 !important;
    transform: translateY(-1px);
}
/* Active Button State & Hover on Active Button */
.astro-segment-pills .nav-link.active,
.astro-segment-pills .nav-link.active:hover,
.astro-segment-pills .nav-link.active:focus {
    background: linear-gradient(135deg, #ff6b00 0%, #FF9800 100%) !important;
    color: #ffffff !important;
    border-color: #b83200 !important;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.28) !important;
    transform: none;
}
.astro-segment-pills .nav-link i {
    color: inherit !important;
}
@media (max-width: 575.98px) {
    .astro-segment-pills {
        width: 100%;
        margin-top: 10px !important;
    }
    .astro-segment-pills .nav-item {
        flex: 1;
    }
    .astro-segment-pills .nav-link {
        width: 100%;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

.muhurat-slot-card {
    border-radius: 14px;
    padding: 13px 15px;
    height: 100%;
    border: 1.5px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.muhurat-slot-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Good / Shubh Slot */
.slot-shubh {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #064e3b;
}
.slot-shubh .slot-status-badge {
    background: #059669;
    color: #ffffff;
}
.slot-shubh .slot-icon-circle {
    background: #bbf7d0;
    color: #047857;
}

/* Neutral / Char / Sun Slot */
.slot-neutral {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
    color: #1e3a8a;
}
.slot-neutral .slot-status-badge {
    background: #2563eb;
    color: #ffffff;
}
.slot-neutral .slot-icon-circle {
    background: #bfdbfe;
    color: #1d4ed8;
}

/* Avoid / Ashubh Slot */
.slot-ashubh {
    background: linear-gradient(145deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fda4af;
    color: #881337;
}
.slot-ashubh .slot-status-badge {
    background: #e11d48;
    color: #ffffff;
}
.slot-ashubh .slot-icon-circle {
    background: #fecdd3;
    color: #be123c;
}

.slot-icon-circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.slot-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}
.slot-name-title {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.2;
}
.slot-meaning-text {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 600;
}
.slot-time-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
    5. FAQ SECTION
========================================================== */
.faq-card .card-header {
    background: #fffaf5;
    border-bottom: 1px solid var(--saffron-border);
    padding: 0;
}
.faq-btn {
    width: 100%;
    text-align: left;
    font-weight: 700;
    font-size: 14.5px;
    color: #1e293b;
    padding: 14px 18px;
    text-decoration: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-btn:hover { color: var(--saffron-main); }

@media (max-width: 767.98px) {
    .panchang-banner h2 { font-size: 1.35rem; }
    .slot-name-title { font-size: 14.5px; }
    .slot-time-footer { font-size: 12px; }
}