:root {
    --mw-base-bg: #fcfbfa;
    --mw-surface: #ffffff;
    --mw-border: #e2e8f0;
    --mw-border-slate: #cbd5e1;
    --mw-text-main: #1e293b;
    --mw-text-muted: #64748b;
    --mw-text-sub: #475569;
    --mw-saffron: #ea580c;
    --mw-saffron-hover: #c2410c;
    --mw-amber: #f59e0b;
    --mw-amber-hover: #d97706;
    --mw-slate-light: #f8fafc;
    
    /* शुभ मुहूर्त (Mint Green - Harinav Match) */
    --mw-shubh-bg: #dcfce7;
    --mw-shubh-border: #bbf7d0;
    --mw-shubh-text: #15803d;
    --mw-shubh-val: #14532d;
    
    /* अशुभ काल (Peach / Soft Red - Harinav Match) */
    --mw-ashubh-bg: #fee2e2;
    --mw-ashubh-border: #fecaca;
    --mw-ashubh-text: #991b1b;
    --mw-ashubh-val: #7f1d1d;
    
    /* सामान्य / चर / लाभ (Warm Amber - Harinav Match) */
    --mw-samanya-bg: #fef3c7;
    --mw-samanya-border: #fde68a;
    --mw-samanya-text: #b45309;
    --mw-samanya-val: #78350f;
}

/* ========================================================
   मुख्य पंचांग कंटेनर (Warm Off-White Base #fcfbfa)
   ======================================================== */
.mw-panchang-wrapper, .mw-rashifal-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    background: var(--mw-base-bg);
    border-radius: 16px;
    border: 1px solid var(--mw-border);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    color: var(--mw-text-main);
    box-sizing: border-box;
}

.mw-panchang-wrapper.mw-compact-wrapper {
    max-width: 720px;
}

/* ========================================================
   लाइट हेडर (Soft Off-White, Dark Charcoal Text #1e293b)
   ======================================================== */
.mw-header {
    background: transparent;
    color: var(--mw-text-main);
    padding: 24px 22px 14px;
    text-align: center;
}
.mw-header h3 {
    margin: 0 0 16px 0;
    color: var(--mw-text-main);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========================================================
   समान बटन कोडिंग: कंट्रोल कार्ड (Search + My Location + Date)
   ======================================================== */
.mw-control-card {
    background: var(--mw-surface);
    border: 1px solid var(--mw-border);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
    text-align: left;
}

.mw-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.mw-loc-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 320px;
    position: relative;
}

.mw-loc-icon-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mw-text-muted);
    font-size: 15px;
    pointer-events: none;
    z-index: 5;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-live-search-input {
    flex: 1;
    padding: 10px 14px 10px 40px !important;
    border-radius: 8px;
    border: 1px solid var(--mw-border-slate);
    background: #ffffff;
    color: var(--mw-text-main);
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mw-live-search-input:focus {
    border-color: var(--mw-saffron);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.mw-btn-gps {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: var(--mw-amber);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.25);
}

.mw-btn-gps:hover {
    background: var(--mw-amber-hover);
}

.mw-date-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--mw-border-slate);
    background: #ffffff;
    color: var(--mw-text-main);
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    flex: 0 0 auto;
}

.mw-date-input:focus {
    border-color: var(--mw-saffron);
}

.mw-instant-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    text-align: left;
    border: 1px solid var(--mw-border);
}

.mw-suggest-item {
    padding: 9px 14px;
    font-size: 13px;
    color: var(--mw-text-main);
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-suggest-item:hover {
    background: #fff7ed;
    color: var(--mw-saffron);
    font-weight: 600;
}

/* ========================================================
   समान बटन कोडिंग (50-50% & CTA Pattern: पिछला, आज, अगला)
   ======================================================== */
.mw-nav-btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.mw-btn-nav {
    flex: 1;
    background: #ffffff;
    color: var(--mw-text-main);
    border: 1px solid var(--mw-border-slate);
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.mw-btn-nav:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.mw-btn-nav-today {
    background: var(--mw-saffron) !important;
    color: #ffffff !important;
    border-color: var(--mw-saffron) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28);
}

.mw-btn-nav-today:hover {
    background: var(--mw-saffron-hover) !important;
    border-color: var(--mw-saffron-hover) !important;
}

/* ========================================================
   अहोरात्र दिन/रात प्रोग्रेस बार (Ahoratra Day/Night Slider)
   ======================================================== */
.mw-ahoratra-wrap {
    margin-bottom: 18px;
    background: var(--mw-surface);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--mw-border);
}

.mw-ahoratra-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.mw-aho-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.mw-aho-tag-day { color: #d97706; }
.mw-aho-tag-night { color: #334155; }

.mw-timeline-bar {
    flex: 1;
    position: relative;
    height: 14px;
    border-radius: 9999px;
    background: #e2e8f0;
    overflow: hidden;
    display: flex;
}

.mw-tl-seg { height: 100%; transition: width 0.3s ease; }
.mw-tl-seg.day { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.mw-tl-seg.night { background: linear-gradient(90deg, #334155, #0f172a); }

.mw-timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--mw-text-muted);
    margin-top: 6px;
    font-weight: 600;
}

/* ========================================================
   सेक्शन एवं बेंटो ग्रिड (Bento Grid 3-Column / 4-Column)
   ======================================================== */
.mw-section {
    padding: 12px 22px 20px;
}

.mw-section-title {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.2px;
    margin: 32px 0 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.mw-section-title:first-of-type {
    margin-top: 20px;
}

.mw-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mw-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mw-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .mw-grid-3, .mw-grid-4, .mw-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .mw-grid-3, .mw-grid-4, .mw-grid-2 {
        grid-template-columns: 1fr;
    }
    .mw-section {
        padding: 8px 14px 16px;
    }
    .mw-header {
        padding: 18px 14px 10px;
    }
    .mw-control-row {
        flex-direction: column;
        align-items: stretch;
    }
    .mw-loc-group {
        flex: 1 1 100%;
    }
    .mw-date-input {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ========================================================
   बेंटो कार्ड स्टाइलिंग (Clean Modern Bento Cards)
   ======================================================== */
.mw-card {
    background: var(--mw-surface);
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mw-card .mw-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--mw-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.mw-card .mw-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--mw-text-main);
    line-height: 1.35;
}

.mw-card .mw-subtext {
    font-size: 12px;
    color: var(--mw-text-muted);
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* ========================================================
   शुभ मुहूर्त (Clean White BG, चारों तरफ हरा बॉर्डर)
   ======================================================== */
.mw-card-shubh {
    background: #ffffff !important;
    border: 1.5px solid #16a34a !important;
}
.mw-card-shubh .mw-label {
    color: #15803d !important;
}
.mw-card-shubh .mw-value {
    color: var(--mw-text-main) !important;
}

/* ========================================================
   अशुभ एवं त्याज्य काल (Clean White BG, चारों तरफ लाल बॉर्डर)
   ======================================================== */
.mw-card-ashubh {
    background: #ffffff !important;
    border: 1.5px solid #dc2626 !important;
}
.mw-card-ashubh .mw-label {
    color: #991b1b !important;
}
.mw-card-ashubh .mw-value {
    color: var(--mw-text-main) !important;
}

/* ========================================================
   विशेष शुभ योग (सर्वार्थ सिद्धि / अमृत सिद्धि कार्ड्स)
   ======================================================== */
.mw-yoga-card {
    background: #ffffff;
    border: 1.5px solid #16a34a;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mw-yoga-title {
    font-weight: 700;
    font-size: 13.5px;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mw-yoga-time {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mw-text-main);
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}
.mw-yoga-none {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: var(--mw-text-muted);
    font-style: italic;
    border: 1px dashed var(--mw-border-slate);
    margin-bottom: 12px;
}

/* ========================================================
   अलर्ट बैज (Bhadra, Panchak, Gandmool)
   ======================================================== */
.mw-alert-badge {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: none;
}
.mw-alert-red {
    background: var(--mw-ashubh-bg);
    border: 1px solid var(--mw-ashubh-border);
    color: var(--mw-ashubh-text);
}
.mw-alert-orange {
    background: var(--mw-samanya-bg);
    border: 1px solid var(--mw-samanya-border);
    color: var(--mw-samanya-text);
}

/* ========================================================
   चौघड़िया (4-कॉलम डेस्कटॉप, 2-कॉलम मोबाइल)
   ======================================================== */
.mw-chog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 680px) {
    .mw-chog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.mw-chog-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 9999px; /* गोल कोनों वाले कॉम्पैक्ट पिल्स */
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.mw-chog-pill.shubh {
    background: var(--mw-shubh-bg);
    border-color: var(--mw-shubh-border);
    color: var(--mw-shubh-text);
}

.mw-chog-pill.ashubh {
    background: var(--mw-ashubh-bg);
    border-color: var(--mw-ashubh-border);
    color: var(--mw-ashubh-text);
}

.mw-chog-pill.samanya {
    background: var(--mw-samanya-bg);
    border-color: var(--mw-samanya-border);
    color: var(--mw-samanya-text);
}

.mw-chog-pill .mw-cname {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.mw-chog-pill .mw-ctime {
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
    opacity: 0.9;
}

/* ========================================================
   शेयर बार एवं प्रिंट / PDF बटन (Deep Saffron #ea580c CTA)
   ======================================================== */
.mw-action-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    background: transparent;
    border-top: 1px solid var(--mw-border);
}

.mw-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.mw-share-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mw-text-muted);
}

.mw-btn-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.mw-btn-pill:hover { opacity: 0.9; }
.mw-btn-whatsapp { background: #25d366; }
.mw-btn-fb { background: #1877f2; }
.mw-btn-copy { background: #64748b; }

.mw-btn-print-cta {
    background: var(--mw-saffron) !important;
    color: #ffffff !important;
    padding: 10px 28px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28) !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mw-btn-print-cta:hover {
    background: var(--mw-saffron-hover) !important;
    transform: translateY(-1px);
}

/* ========================================================
   स्वचालित राशिफल स्टाइलिंग (Horizontal Scrollable Tabs)
   ======================================================== */
.mw-rashi-header {
    background: transparent;
    color: var(--mw-text-main);
    padding: 24px 22px 14px;
    text-align: center;
}
.mw-rashi-header h3 { margin: 0 0 6px 0; color: var(--mw-text-main); font-size: 22px; font-weight: 800; }
.mw-rashi-header p { margin: 0; font-size: 13px; color: var(--mw-text-muted); }

.mw-period-tabs {
    display: flex;
    justify-content: center;
    background: #f8fafc;
    padding: 10px;
    gap: 8px;
    border-bottom: 1px solid var(--mw-border);
    flex-wrap: wrap;
}

.mw-period-btn {
    background: #ffffff;
    border: 1px solid var(--mw-border-slate);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mw-text-main);
    cursor: pointer;
    transition: 0.2s;
}

.mw-period-btn.active {
    background: var(--mw-saffron);
    color: #ffffff;
    border-color: var(--mw-saffron);
}

/* ========================================================
   12 राशियाँ सेलेक्टर (Desktop Compact Grid + Mobile Swipe Strip)
   ======================================================== */
.mw-rashi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--mw-border);
}

/* मोबाइल स्क्रीन: सिंगल रो हॉरिजॉन्टल स्वाइप स्ट्रिप (0% Screen Waste) */
@media (max-width: 680px) {
    .mw-rashi-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 10px 14px;
        scrollbar-width: none; /* Firefox */
    }
    .mw-rashi-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .mw-rashi-pill {
        flex: 0 0 auto;
        min-width: 84px;
    }
}

/* इन-लाइन कॉम्पैक्ट पिल (Icon Left + Name Right) */
.mw-rashi-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid var(--mw-border);
    background: #ffffff;
    cursor: pointer;
    min-height: 42px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.18s ease;
}

.mw-rashi-pill:hover {
    border-color: var(--mw-saffron);
    background: #fffaf5;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.1);
}

.mw-rashi-pill.active {
    border-color: var(--mw-saffron);
    background: #fff7ed;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.16);
}

.mw-rashi-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
    transition: background 0.18s;
}

.mw-rashi-pill:hover .mw-rashi-icon {
    background: #ffedd5;
    border-color: #fed7aa;
}

.mw-rashi-pill.active .mw-rashi-icon {
    background: #ffedd5;
    border-color: #fdba74;
}

.mw-rashi-icon .mw-ic {
    width: 17px;
    height: 17px;
    margin: 0;
    stroke-width: 3.2;
}

.mw-rashi-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--mw-text-main);
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.mw-rashi-pill.active .mw-rashi-name {
    color: var(--mw-saffron);
    font-weight: 800;
}
.mw-rashi-detail { padding: 20px; }
.mw-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.mw-cur-rashi-title { font-size: 18px; font-weight: 800; color: var(--mw-text-main); display: flex; align-items: center; gap: 6px; }
.mw-score-badge { background: var(--mw-shubh-bg); color: var(--mw-shubh-text); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.mw-rashi-meta-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mw-meta-box { background: #ffffff; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--mw-border); font-size: 12px; color: var(--mw-text-muted); }
.mw-meta-box span { display: block; font-weight: 700; color: var(--mw-text-main); font-size: 13px; margin-top: 3px; }
.mw-pred-text { font-size: 14.5px; line-height: 1.6; color: var(--mw-text-main); background: transparent; padding: 0; border: none; }

/* गोचर संदर्भ हेडर */
.mw-rashi-subhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: #f8fafc; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--mw-border); margin-bottom: 16px; font-size: 13px; }
.mw-transit-pill { color: #1e293b; font-weight: 600; }
.mw-transit-pill strong { color: var(--mw-saffron); }
.mw-transit-date { color: #64748b; font-weight: 600; }

/* दैनिक भास्कर स्टाइल 5 श्रेणियां - पंचांग जैसा क्लीन 1px कार्ड लुक */
.mw-rashi-sections { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mw-rashi-sec-card { background: #ffffff; border: 1px solid var(--mw-border); border-radius: 10px; padding: 15px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.mw-rashi-sec-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.05); }

.mw-rashi-sec-title { font-size: 14.5px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.title-green { color: #15803d; }
.title-amber { color: #c2410c; }
.title-blue  { color: #1d4ed8; }
.title-rose  { color: #be123c; }
.title-teal  { color: #0f766e; }
.title-purple{ color: #6d28d9; }

.mw-rashi-sec-body { font-size: 13.5px; line-height: 1.65; color: #334155; }

/* दैनिक वैदिक उपाय कार्ड */
.mw-remedy-card { background: #fffdf5; border: 1px solid #fed7aa; border-radius: 10px; padding: 15px 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.mw-remedy-title { font-size: 14.5px; font-weight: 800; color: #9a3412; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mw-remedy-text { font-size: 13.5px; color: #78350f; line-height: 1.6; }

/* एस्ट्रोसेज स्टाइल 5-स्टार रेटिंग्स बार (नीचे स्वच्छ ग्रिड) */
.mw-stars-box { background: #ffffff; border: 1px solid var(--mw-border); border-radius: 10px; padding: 14px 16px; margin-top: 14px; margin-bottom: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.mw-stars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.mw-star-row { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; padding: 7px 12px; border-radius: 6px; border: 1px solid #f1f5f9; font-size: 13px; }
.mw-star-label { color: #475569; font-weight: 600; }
.mw-star-icons { letter-spacing: 2px; font-size: 15px; }
.mw-star-filled { color: #eab308; }
.mw-star-empty { color: #cbd5e1; }

/* ========================================================
   प्रिंट मीडिया क्वेरी
   ======================================================== */
@media print {
    body * { visibility: hidden; }
    .mw-panchang-wrapper, .mw-panchang-wrapper *, .mw-rashifal-wrap, .mw-rashifal-wrap * { visibility: visible; }
    .mw-header .mw-control-card, .mw-action-bar, .mw-period-tabs { display: none !important; }
}

/* ========================================================
   Cosmic 3-Layer Vedic Loader Overlay
   ======================================================== */
.vce-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(252, 251, 250, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.vce-loading-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.vce-loader-ring {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vce-loader-ring .vce-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3.2px solid rgba(234, 88, 12, 0.15);
    border-top-color: #ea580c;
    border-right-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
    animation: vceSpinOuter 1.4s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.vce-loader-ring .vce-ring-inner {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2.8px solid rgba(225, 29, 72, 0.12);
    border-bottom-color: #e11d48;
    border-left-color: #b45309;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.25);
    animation: vceSpinInner 1.1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite reverse;
}

.vce-loader-ring .vce-ring-core {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, #f59e0b 20%, #ea580c 70%, transparent 100%);
    box-shadow: 0 0 12px #f59e0b;
    animation: vcePulseCore 1.5s ease-in-out infinite;
}

.vce-loader-text {
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mw-text-main);
    letter-spacing: 0.5px;
}

@keyframes vceSpinOuter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes vceSpinInner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes vcePulseCore {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* ========================================================
   MithilaWorld Custom SVG Vector Icon System (.mw-ic)
   ======================================================== */
.mw-ic {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.16em;
    margin-right: 0.28em;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.mw-ic.mw-ic-solid {
    fill: currentColor;
    stroke: none;
}

/* ग्रह रंग (Graha Colors) */
.mw-ic-surya    { color: #E8590C; }
.mw-ic-chandra  { color: #64748B; }
.mw-ic-mangal   { color: #DC2626; }
.mw-ic-budh     { color: #16A34A; }
.mw-ic-guru     { color: #D97706; }
.mw-ic-shukra   { color: #DB2777; }
.mw-ic-shani    { color: #1E3A8A; }
.mw-ic-rahu     { color: #475569; }
.mw-ic-ketu     { color: #7C2D12; }

/* राशियाँ: तत्व के अनुसार रंग */
.mw-ic-mesh, .mw-ic-simha, .mw-ic-dhanu       { color: #E8590C; } /* अग्नि */
.mw-ic-vrishabh, .mw-ic-kanya, .mw-ic-makar   { color: #16A34A; } /* पृथ्वी */
.mw-ic-mithun, .mw-ic-tula, .mw-ic-kumbh      { color: #0891B2; } /* वायु */
.mw-ic-kark, .mw-ic-vrishchik, .mw-ic-meen    { color: #2563EB; } /* जल */

/* पंचांग व काल */
.mw-ic-fa { vertical-align: -0.15em; fill: currentColor; stroke: none; }
.mw-ic-suryoday     { color: #F59E0B; }
.mw-ic-suryast      { color: #E8590C; }
.mw-ic-chandroday   { color: #64748B; }
.mw-ic-chandrast    { color: #475569; }
.mw-ic-tithi        { color: #DB2777; }
.mw-ic-nakshatra    { color: #D97706; }
.mw-ic-yog          { color: #7C3AED; }
.mw-ic-karan        { color: #F59E0B; }
.mw-ic-vaar         { color: #2563EB; }
.mw-ic-paksh        { color: #475569; }
.mw-ic-maas         { color: #E8590C; }
.mw-ic-ritu         { color: #16A34A; }
.mw-ic-ayan         { color: #0891B2; }
.mw-ic-rahukaal     { color: #DC2626; }
.mw-ic-yamganda     { color: #B91C1C; }
.mw-ic-gulik        { color: #7C2D12; }
.mw-ic-abhijit      { color: #16A34A; }
.mw-ic-brahma       { color: #E8590C; }
.mw-ic-choghadiya   { color: #D97706; }
.mw-ic-vrat         { color: #E8590C; }
.mw-ic-shubh        { color: #16A34A; }
.mw-ic-ashubh       { color: #DC2626; }

/* ========================================================
   कॉम्पैक्ट साइडबार पंचांग कार्ड विजेट (.mw-sidebar-widget)
   ======================================================== */
.mw-sidebar-widget {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 24px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
    box-sizing: border-box;
}

.mw-sb-header {
    background: linear-gradient(135deg, #fff8f3 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde0c8;
    padding: 12px 14px;
    position: relative;
}

.mw-sb-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mw-sb-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mw-sb-loc-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 2.5px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ea580c;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mw-sb-loc-badge:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
}

.mw-sb-date-row {
    margin-top: 4px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.mw-sb-loc-pop {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    padding: 8px;
    z-index: 100;
}

.mw-sb-search-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12.5px;
    outline: none;
    box-sizing: border-box;
}

.mw-sb-search-input:focus {
    border-color: #ea580c;
}

.mw-sb-city-results {
    max-height: 160px;
    overflow-y: auto;
    margin-top: 6px;
}

.mw-sb-city-item {
    padding: 6px 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.mw-sb-city-item:hover {
    background: #f8fafc;
    color: #ea580c;
    font-weight: 700;
}

.mw-sb-body {
    padding: 4px 0;
}

.mw-sb-row {
    padding: 8.5px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}

.mw-sb-row:last-child {
    border-bottom: none;
}

.mw-sb-label {
    color: #475569;
    font-weight: 600;
}

.mw-sb-val {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.mw-sb-sub {
    display: block;
    font-size: 10.5px;
    color: #64748b;
    font-weight: 500;
}

.mw-sb-row.mw-sb-shubh {
    background: #f0fdf4;
}

.mw-sb-row.mw-sb-shubh .mw-sb-label {
    color: #15803d;
}

.mw-shubh-badge {
    color: #15803d !important;
    font-weight: 700;
}

.mw-sb-row.mw-sb-ashubh {
    background: #fef2f2;
}

.mw-sb-row.mw-sb-ashubh .mw-sb-label {
    color: #b91c1c;
}

.mw-ashubh-badge {
    color: #b91c1c !important;
    font-weight: 700;
}

.mw-sb-footer {
    padding: 10px 14px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}

.mw-sb-cta-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ea580c;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.22);
}

.mw-sb-cta-btn:hover {
    background: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.32);
}

.mw-sb-arrow {
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
}

/* ========================================================
   वार्षिक शुभ योग एवं मुहूर्त कैलेंडर (Yearly Yoga & Muhurat Table)
   ======================================================== */
.mw-yearly-wrap {
    max-width: 980px;
    margin: 0 auto 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
    color: #1e293b;
}

.mw-yearly-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-bottom: 2px solid #fdba74;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}

.mw-yearly-title {
    font-size: 24px;
    font-weight: 800;
    color: #9a3412;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mw-yearly-subtitle {
    font-size: 14px;
    color: #7c2d12;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.mw-yearly-next-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #ea580c;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: #c2410c;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.15);
}

.mw-yearly-next-badge .pulse-dot {
    width: 9px;
    height: 9px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
    display: inline-block;
}

.mw-yearly-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mw-y-tab {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mw-y-tab:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.mw-y-tab.active {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.mw-yearly-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.mw-yearly-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.mw-y-select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    background: #ffffff;
    cursor: pointer;
}

.mw-y-select:focus {
    border-color: #ea580c;
}

.mw-yearly-loc-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ea580c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mw-yearly-table-wrap {
    overflow-x: auto;
    padding: 16px 20px;
}

.mw-yearly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.mw-yearly-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.mw-yearly-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.mw-yearly-table tr:hover {
    background: #fffbf7;
}

.mw-y-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.mw-y-badge-shubh {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.mw-y-badge-special {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.mw-y-badge-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.mw-yearly-seo-content {
    padding: 24px 20px;
    background: #fafafa;
    border-top: 1px solid #e2e8f0;
    line-height: 1.7;
    font-size: 14.5px;
    color: #334155;
}

.mw-yearly-seo-content h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    margin: 20px 0 10px 0;
}

.mw-yearly-seo-content h3:first-child {
    margin-top: 0;
}

.mw-yearly-seo-content p {
    margin: 0 0 12px 0;
}

.mw-yearly-seo-content ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.mw-yearly-seo-content li {
    margin-bottom: 6px;
}

.mw-yearly-faq {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.mw-yearly-faq-q {
    padding: 12px 16px;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-yearly-faq-a {
    padding: 12px 16px;
    color: #475569;
    font-size: 13.5px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

/* ========================================================
   प्रमुख शहरों का पंचांग लिंक्स स्ट्रिप (City Pills Strip)
   ======================================================== */
.mw-city-strip-wrap {
    max-width: 880px;
    width: 100%;
    margin: 28px auto 20px auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.mw-city-strip-card {
    background: #ffffff;
    border: 1px solid var(--mw-border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.04);
}

.mw-city-strip-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--mw-text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.mw-city-strip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.mw-city-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mw-city-pill:hover {
    background: var(--mw-saffron);
    color: #ffffff;
    border-color: var(--mw-saffron);
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.25);
    transform: translateY(-1px);
}

.mw-city-pill.active {
    background: var(--mw-saffron);
    color: #ffffff;
    border-color: var(--mw-saffron);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}