/* ============================================================
   Mahapuran Panchang – Frontend CSS
   NotebookLM-inspired: Soft, Light, Beautiful
   v1.6.0-notebooklm
   ============================================================ */

/* ── Root / CSS Variables ────────────────────────────────── */
:root {
    /* NotebookLM-style surface palette */
    --mp-bg-page:         #f8f7f4;
    --mp-bg-card:         #ffffff;
    --mp-bg-tinted:       #f3f0eb;
    --mp-bg-subtle:       #faf9f7;

    /* Warm saffron accent (softened) */
    --mp-accent:          #c94a00;
    --mp-accent-light:    #fff3ec;
    --mp-accent-mid:      #ffddc8;
    --mp-gold:            #b08d44;
    --mp-gold-light:      #fdf5e0;
    --mp-gold-border:     #e8d9a0;

    /* Semantic colours */
    --mp-shubh-bg:        #edf7f0;
    --mp-shubh-text:      #1b6b38;
    --mp-shubh-border:    #c3e6d0;
    --mp-ashubh-bg:       #fdf0f0;
    --mp-ashubh-text:     #b83232;
    --mp-ashubh-border:   #f5c6c6;

    /* Neutrals */
    --mp-border:          #e8e3db;
    --mp-border-strong:   #d4cdc2;
    --mp-text:            #1a1a18;
    --mp-text-mid:        #4a4640;
    --mp-text-light:      #7a7570;
    --mp-text-hint:       #a09b95;

    /* Shadows */
    --mp-shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --mp-shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
    --mp-shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
    --mp-shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);

    /* Radii */
    --mp-r-sm: 8px;
    --mp-r-md: 12px;
    --mp-r-lg: 16px;
    --mp-r-xl: 20px;

    /* Font stacks */
    --mp-font:       'Plus Jakarta Sans', 'Mukta', sans-serif;
    --mp-font-hindi: 'Tiro Devanagari Sanskrit', 'Mukta', serif;

    /* Easing */
    --mp-ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Legacy vars still referenced by some JS/PHP */
    --mp-saffron:    #c94a00;
    --mp-gold-var:   #b08d44;
    --mp-deep-red:   #8b0000;
    --mp-cream:      #faf9f7;
    --mp-light-gold: #fdf5e0;
    --mp-shadow:     rgba(0,0,0,0.08);
    --mp-radius:     var(--mp-r-md);
}

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Tiro+Devanagari+Sanskrit&display=swap');

/* ═══════════════════════════════════════════════════════════
   CALENDAR WIDGET
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────── */
.mp-panchang-wrap {
    font-family: var(--mp-font);
    max-width: 920px;
    margin: 0 auto;
    background: var(--mp-bg-page);
    border-radius: var(--mp-r-xl);
    border: 1px solid var(--mp-border);
    box-shadow: var(--mp-shadow-md);
    overflow: hidden;
    color: var(--mp-text);
}

/* ── Top Bar ─────────────────────────────────────────────── */
.mp-panchang-wrap .mp-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--mp-bg-card) !important;
    border-bottom: 1px solid var(--mp-border);
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 20;
    color: var(--mp-text) !important;
}

.mp-panchang-wrap .mp-location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.mp-location-icon { font-size: 15px; opacity: 0.55; }

.mp-panchang-wrap .mp-city-select {
    font-family: var(--mp-font) !important;
    padding: 7px 12px !important;
    border: 1px solid var(--mp-border-strong) !important;
    border-radius: var(--mp-r-sm) !important;
    background: var(--mp-bg-subtle) !important;
    color: var(--mp-text) !important;
    font-size: 13.5px !important;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 180px;
    max-width: 100%;
    height: auto !important;
    min-height: 36px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    line-height: 1.2 !important;
}
.mp-panchang-wrap .mp-city-select:hover,
.mp-panchang-wrap .mp-city-select:focus {
    border-color: var(--mp-accent) !important;
    box-shadow: 0 0 0 3px rgba(201,74,0,0.08);
    outline: none;
}
.mp-panchang-wrap .mp-city-select option {
    background: #fff !important;
    color: var(--mp-text) !important;
}

.mp-panchang-wrap .mp-detect-btn,
.mp-panchang-wrap .mp-today-btn {
    font-family: var(--mp-font) !important;
    font-size: 13px !important;
    font-weight: 600;
    padding: 7px 14px !important;
    border-radius: var(--mp-r-sm) !important;
    cursor: pointer !important;
    transition: all 0.18s var(--mp-ease);
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: none;
}
.mp-panchang-wrap .mp-detect-btn {
    background: var(--mp-bg-tinted) !important;
    color: var(--mp-text-mid) !important;
    border: 1px solid var(--mp-border) !important;
}
.mp-panchang-wrap .mp-detect-btn:hover {
    background: var(--mp-accent-light) !important;
    border-color: var(--mp-accent-mid) !important;
    color: var(--mp-accent) !important;
}
.mp-panchang-wrap .mp-today-btn {
    background: var(--mp-accent) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: var(--mp-shadow-xs);
}
.mp-panchang-wrap .mp-today-btn:hover {
    background: #a83c00 !important;
    box-shadow: var(--mp-shadow-sm);
    transform: translateY(-1px);
}

/* ── Calendar Header ─────────────────────────────────────── */
.mp-panchang-wrap .mp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--mp-bg-card);
    border-bottom: 2px solid var(--mp-border);
    position: relative;
    z-index: 20;
}

.mp-cal-title { text-align: center; }
.mp-cal-title h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: var(--mp-header-bg, var(--mp-accent));
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.mp-samvat {
    font-size: 11.5px;
    color: var(--mp-text-light);
    display: block;
    margin-top: 2px;
    font-weight: 600;
    opacity: 1;
    letter-spacing: 0.3px;
}

.mp-panchang-wrap .mp-nav-btn {
    background: var(--mp-bg-tinted) !important;
    border: 1px solid var(--mp-border) !important;
    color: var(--mp-text-mid) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    border-radius: 50% !important;
    font-size: 13px;
    cursor: pointer !important;
    transition: all 0.18s var(--mp-ease);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.mp-panchang-wrap .mp-nav-btn:hover,
.mp-panchang-wrap .mp-nav-btn:focus-visible {
    background: var(--mp-accent-light) !important;
    border-color: var(--mp-accent-mid) !important;
    color: var(--mp-accent) !important;
    transform: scale(1.05);
}

/* ── Day Headers ─────────────────────────────────────────── */
.mp-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--mp-bg-tinted);
    border-bottom: 1px solid var(--mp-border);
}
.mp-day-header {
    text-align: center;
    padding: 9px 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mp-text-light);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-right: 1px solid var(--mp-border);
    font-family: var(--mp-font-hindi);
}
.mp-day-header:last-child { border-right: none; }
.mp-day-headers .mp-day-header:first-child { color: var(--mp-accent); }

/* ── Calendar Grid ───────────────────────────────────────── */
.mp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--mp-border);
    gap: 1px;
}

.mp-cal-cell {
    background: var(--mp-bg-card);
    padding: 6px 6px 5px;
    min-height: 80px;
    cursor: pointer;
    transition: background 0.15s var(--mp-ease);
    position: relative;
    font-family: var(--mp-font);
}
.mp-cal-cell:hover { background: var(--mp-accent-light); z-index: 1; }
.mp-cal-cell:nth-child(7n) { /* no special border needed with gap approach */ }

.mp-cal-cell.mp-empty {
    background: var(--mp-bg-subtle);
    cursor: default;
}
.mp-cal-cell.mp-today {
    background: var(--mp-gold-light);
    box-shadow: inset 0 0 0 2px var(--mp-today, var(--mp-gold));
}

.mp-date-num {
    font-size: 17px;
    font-weight: 700;
    color: var(--mp-text);
    line-height: 1;
    margin-bottom: 3px;
}
.mp-cal-cell:nth-child(7n+1) .mp-date-num { color: var(--mp-accent); }

.mp-today-tag {
    font-size: 9px;
    background: var(--mp-today, var(--mp-gold));
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 3px;
}

.mp-sunrise-small {
    font-size: 10px;
    color: var(--mp-sunrise, #d97706);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-tithi-small {
    font-size: 11px;
    color: var(--mp-text-light);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-tithi-link { color: inherit; text-decoration: none; }
.mp-tithi-link:hover { color: var(--mp-accent); text-decoration: underline; }

.mp-festival-tag {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--mp-festival, var(--mp-accent));
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.mp-festival-tag:hover { text-decoration: underline; }

.mp-fest-dot {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    position: absolute;
    top: 5px; right: 5px;
}

.mp-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 48px;
    color: var(--mp-text-hint);
    font-size: 15px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   HINDU-STYLE CALENDAR CELLS  (v1.6.1 – Traditional Polish)
   ═══════════════════════════════════════════════════════════ */

/* ── Day Headers – bold colored strip ──────────────────────── */
.mp-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--mp-header-bg, var(--mp-accent));
    border-bottom: none;
}
.mp-day-header {
    text-align: center;
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--mp-header-text, #fff) !important;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.18);
    font-family: var(--mp-font-hindi);
    text-transform: uppercase;
}
.mp-day-header:last-child { border-right: none; }
/* Sunday stays accent in day-header row – already colored by header-bg */
.mp-day-headers .mp-day-header:first-child { color: var(--mp-header-text, #fff) !important; }

/* ── Cell Base ──────────────────────────────────────────────── */
.mp-cal-cell.mp-hindu-style.mp-reworked-cell {
    min-height: 152px;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--mp-bg-card);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--mp-border);
    border-right: 1px solid var(--mp-border);
}
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:hover {
    background: var(--mp-accent-light);
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.mp-reworked-cell .mp-cell-top,
.mp-reworked-cell .mp-cell-mid,
.mp-reworked-cell .mp-cell-bottom { display: none !important; }

/* ── Top band: Tithi + Nakshatra ─────────────────────────────── */
.mp-cell-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2px;
    row-gap: 1px;
    padding: 4px 6px 4px;
    border-bottom: 1px solid var(--mp-border);
    background: var(--mp-bg-tinted);
    min-height: 36px;
}
.mp-info-title {
    font-size: 6.5px;
    line-height: 1.1;
    color: var(--mp-accent);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mp-info-title.right,
.mp-info-value.right { text-align: right; }
.mp-info-value {
    font-size: 8px;
    line-height: 1.2;
    color: var(--mp-text);
    font-weight: 700;
    /* allow wrap so full tithi name shows — 2 lines max */
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
/* nakshatra (right column) stays single-line with ellipsis */
.mp-info-value.right {
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
}
.mp-info-value.important { color: var(--mp-accent) !important; }

/* ── Big Date Area ──────────────────────────────────────────── */
.mp-reworked-cell .mp-big-date-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 2px 4px 0;
    position: relative;
}
.mp-reworked-cell .mp-big-date {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--mp-text);
    letter-spacing: -1.5px;
}
.mp-reworked-cell .mp-big-date.holiday { color: var(--mp-accent) !important; }
/* Sunday date = accent color */
.mp-calendar-grid > .mp-reworked-cell:nth-child(7n+1) .mp-big-date { color: var(--mp-accent); }

/* Today badge below date */
.mp-hindu-today {
    display: inline-block;
    margin-top: 2px;
    background: var(--mp-today, var(--mp-gold));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ── Center tag (व्रत / त्योहार) ────────────────────────────── */
.mp-cell-center-tag {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--mp-accent);
    line-height: 1;
    letter-spacing: 0.3px;
    padding: 0 4px 2px;
}

/* ── Festival line ──────────────────────────────────────────── */
.mp-cell-festival-line {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 2px 6px 4px;
}

/* ── Footer: Vikram Samvat + Maas ───────────────────────────── */
.mp-cell-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 4px 7px 5px;
    border-top: 1px solid var(--mp-border);
    background: var(--mp-bg-tinted);
}
.mp-cell-footer-grid div { min-width: 0; }
.mp-cell-footer-grid div.right { text-align: right; }
.mp-cell-footer-grid span {
    display: block;
    font-size: 7px;
    line-height: 1.1;
    color: var(--mp-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.mp-cell-footer-grid strong {
    display: block;
    font-size: 9px;
    line-height: 1.2;
    color: var(--mp-text);
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Special Day Highlights ─────────────────────────────────── */

/* Today */
.mp-cal-cell.mp-hindu-style.mp-reworked-cell.mp-today {
    background: var(--mp-gold-light) !important;
    box-shadow: inset 0 0 0 2px var(--mp-today, var(--mp-gold));
}
.mp-today .mp-cell-info-grid { background: rgba(176,141,68,0.12); }
.mp-today .mp-cell-footer-grid { background: rgba(176,141,68,0.10); }

/* Ekadashi */
.mp-cal-cell.mp-hindu-style.mp-ekadashi-day {
    border-left: 3px solid var(--mp-accent) !important;
}
.mp-ekadashi-day .mp-big-date { color: #1a73e8 !important; }
.mp-ekadashi-day .mp-info-value { color: var(--mp-accent) !important; }
.mp-ekadashi-day .mp-cell-footer-grid strong { color: var(--mp-accent) !important; }
.mp-ekadashi-day .mp-cell-center-tag { color: var(--mp-accent) !important; }

/* Festival day */
.mp-cal-cell.mp-hindu-style.mp-festival-day .mp-cell-info-grid {
    background: rgba(201,74,0,0.06);
}

/* Empty cells */
.mp-cal-cell.mp-empty {
    background: var(--mp-bg-subtle);
    cursor: default;
    min-height: 152px;
    border-bottom: 1px solid var(--mp-border);
    border-right: 1px solid var(--mp-border);
}

/* Remove double-borders on grid edges */
.mp-calendar-grid {
    background: var(--mp-border);
    gap: 0 !important;
    border-top: 1px solid var(--mp-border);
    border-left: 1px solid var(--mp-border);
}
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:nth-child(7n) { border-right: none; }
.mp-cal-cell.mp-empty:nth-child(7n) { border-right: none; }

/* Classical calendar: subtle every-other-row tint for print feel */
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+8),
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+9),
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+10),
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+11),
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+12),
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+13),
.mp-cal-cell.mp-hindu-style.mp-reworked-cell:not(.mp-today):not(.mp-festival-day):not(.mp-ekadashi-day):nth-child(14n+14) {
    background: #fdfcfa;
}

/* ── Modal ───────────────────────────────────────────────── */
.mp-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(26,26,24,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center; justify-content: center; padding: 16px;
}
.mp-modal-overlay.active { display: flex; }

.mp-modal {
    background: var(--mp-bg-card);
    border-radius: var(--mp-r-xl);
    width: 100%; max-width: 560px;
    max-height: 92vh; overflow-y: auto;
    padding: 0; position: relative;
    border: 1px solid var(--mp-border);
    box-shadow: var(--mp-shadow-lg);
    font-family: var(--mp-font);
}

.mp-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: var(--mp-bg-tinted);
    border: 1px solid var(--mp-border);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; color: var(--mp-text-mid);
    line-height: 1; transition: all 0.15s; z-index: 10;
}
.mp-modal-close:hover {
    background: var(--mp-ashubh-bg);
    color: var(--mp-ashubh-text);
    border-color: var(--mp-ashubh-border);
}

.mp-modal-date {
    font-size: 16px; font-weight: 700;
    color: var(--mp-header-bg, var(--mp-accent));
    border-bottom: 1px solid var(--mp-border);
    padding: 20px 24px 16px; margin: 0;
}
#mp-modal-content { padding: 16px 24px 24px; max-height: none; }

.mp-popup-quick-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; border-bottom: 1px solid var(--mp-border);
    background: var(--mp-bg-subtle);
}
.mp-popup-quick-grid > div { padding: 14px 18px; border-right: 1px solid var(--mp-border); }
.mp-popup-quick-grid > div:last-child { border-right: none; }
.mp-popup-quick-grid span {
    display: block; font-size: 11px;
    color: var(--mp-header-bg, var(--mp-accent));
    font-weight: 700; margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.mp-popup-quick-grid strong {
    display: block; font-size: 15px;
    color: var(--mp-text); line-height: 1.25; font-weight: 600;
}
.mp-popup-quick-grid small {
    display: block; color: var(--mp-text-light); margin-top: 3px; font-size: 12px;
}

/* Detail grid in modal */
.mp-panchang-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
}
@media (max-width: 480px) { .mp-panchang-detail-grid { grid-template-columns: 1fr; } }

.mp-detail-row {
    display: flex; flex-direction: column;
    background: var(--mp-bg-subtle);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-sm);
    padding: 10px 14px; transition: background 0.15s;
}
.mp-detail-row:hover { background: var(--mp-accent-light); }
.mp-detail-label {
    font-size: 10.5px; color: var(--mp-text-hint);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.mp-detail-value { font-size: 14.5px; font-weight: 600; color: var(--mp-text); margin-top: 3px; }
.mp-detail-value a { color: var(--mp-accent); text-decoration: none; }
.mp-detail-value a:hover { text-decoration: underline; }
.mp-sun { font-weight: 700; }
.mp-sun.sunrise { color: #d97706; }
.mp-sun.sunset  { color: #e85d8a; }

/* Timings in modal */
.mp-timings-section { margin-bottom: 14px; }
.mp-timings-section h4 {
    font-size: 13px; margin: 0 0 8px; color: var(--mp-text-mid);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.mp-timing {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-radius: var(--mp-r-sm);
    font-size: 13px; font-weight: 500; margin-bottom: 5px;
    border: 1px solid transparent;
}
.mp-timing.shubh  { background: var(--mp-shubh-bg);  color: var(--mp-shubh-text);  border-color: var(--mp-shubh-border); }
.mp-timing.ashubh { background: var(--mp-ashubh-bg); color: var(--mp-ashubh-text); border-color: var(--mp-ashubh-border); }

/* Festival banner in modal */
.mp-modal-festival {
    background: var(--mp-gold-light);
    border: 1px solid var(--mp-gold-border);
    border-radius: var(--mp-r-md);
    padding: 14px 16px; margin-bottom: 14px;
}
.mp-modal-festival h3 { margin: 0 0 5px; font-size: 16px; color: var(--mp-header-bg, var(--mp-accent)); }
.mp-modal-festival h3 a { color: inherit; text-decoration: none; }
.mp-modal-festival h3 a:hover { text-decoration: underline; }
.mp-modal-festival p { margin: 4px 0 10px; font-size: 13px; color: var(--mp-text-mid); }

.mp-gcal-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: #1a73e8; color: white !important;
    padding: 7px 14px; border-radius: var(--mp-r-sm);
    font-size: 13px; font-weight: 600; text-decoration: none;
    margin-right: 8px; transition: background 0.18s;
}
.mp-gcal-btn:hover { background: #1558b0; }

.mp-reminder-btn {
    background: var(--mp-accent-light); color: var(--mp-accent);
    border: 1px solid var(--mp-accent-mid);
    padding: 7px 14px; border-radius: var(--mp-r-sm);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.18s;
}
.mp-reminder-btn:hover { background: var(--mp-accent); color: white; }

/* Reminder form */
.mp-reminder-form {
    background: var(--mp-bg-subtle); border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-md); padding: 16px; margin-top: 10px;
}
.mp-input {
    width: 100%; padding: 9px 12px; border: 1px solid var(--mp-border-strong);
    border-radius: var(--mp-r-sm); font-size: 14px; margin-bottom: 8px;
    box-sizing: border-box; font-family: var(--mp-font);
    color: var(--mp-text); background: white; transition: border-color 0.18s;
}
.mp-input:focus { border-color: var(--mp-accent); box-shadow: 0 0 0 3px rgba(201,74,0,0.08); outline: none; }
.mp-reminder-form select {
    width: 100%; padding: 9px 12px; border: 1px solid var(--mp-border-strong);
    border-radius: var(--mp-r-sm); font-size: 14px; margin-bottom: 10px;
    font-family: var(--mp-font); color: var(--mp-text); background: white;
}
.mp-btn-primary {
    background: var(--mp-accent); color: white; border: none;
    padding: 9px 20px; border-radius: var(--mp-r-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: var(--mp-font); transition: background 0.18s, transform 0.15s;
}
.mp-btn-primary:hover { background: #a83c00; transform: translateY(-1px); }

.mp-modal-seo-link { text-align: center; margin-top: 14px; font-size: 13px; }
.mp-modal-seo-link a { color: var(--mp-accent); font-weight: 600; }

/* Reminder toggle + inline form */
.mp-reminder-toggle {
    margin-top: 10px; display: inline-flex; align-items: center;
    justify-content: center; gap: 6px;
    border: 1px solid var(--mp-accent-mid); border-radius: 999px;
    padding: 8px 16px; background: var(--mp-accent-light);
    color: var(--mp-accent); font-weight: 700; font-size: 13px;
    cursor: pointer; transition: all 0.18s;
}
.mp-reminder-toggle:hover { background: var(--mp-accent); color: white; border-color: var(--mp-accent); }

.mp-reminder-form.inline {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 8px; align-items: center;
}
.mp-reminder-form[hidden] { display: none !important; }
.mp-reminder-form input, .mp-reminder-form select {
    min-height: 38px; border: 1px solid var(--mp-border-strong);
    border-radius: var(--mp-r-sm); padding: 7px 10px;
    font-size: 13px; background: white; color: var(--mp-text);
}
.mp-submit-reminder {
    min-height: 38px; border: none; border-radius: var(--mp-r-sm);
    padding: 7px 14px; background: var(--mp-accent); color: white;
    font-weight: 700; cursor: pointer; font-size: 13px; transition: background 0.18s;
}
.mp-submit-reminder:hover { background: #a83c00; }
.mp-reminder-msg { grid-column: 1/-1; font-size: 13px; font-weight: 600; min-height: 18px; }
.mp-reminder-msg.success { color: var(--mp-shubh-text); }
.mp-reminder-msg.error   { color: var(--mp-ashubh-text); }

/* Pro sections */
.mp-day-card-full { font-family: var(--mp-font); }
.mp-pro-section, .mp-full-section { padding: 18px 24px; border-bottom: 1px solid var(--mp-border); }
.mp-pro-section h3, .mp-full-section h3 {
    margin: 0 0 14px; font-size: 13px; font-weight: 700;
    color: var(--mp-header-bg, var(--mp-accent)) !important;
    opacity: 1 !important; text-transform: uppercase; letter-spacing: 0.6px;
}
.mp-pro-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid var(--mp-border);
    font-size: 14px; gap: 12px;
}
.mp-pro-row:last-child { border-bottom: none; }
.mp-pro-row span:first-child { color: var(--mp-text-light); font-weight: 500; flex-shrink: 0; min-width: 100px; }
.mp-pro-row span:last-child, .mp-pro-row strong { color: var(--mp-text); font-weight: 600; text-align: right; }
.mp-pro-row a { color: var(--mp-header-bg, var(--mp-accent)) !important; font-weight: 700; text-decoration: none; }
.mp-pro-row a:hover { text-decoration: underline; }

.mp-full-today-grid { display: grid; grid-template-columns: 1fr 1fr; }
.mp-full-today-grid .mp-pro-section:first-child { border-right: 1px solid var(--mp-border); }

.mp-timing-grid { display: grid; gap: 6px; }
.mp-timing-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 12px; border-radius: var(--mp-r-sm); font-size: 13.5px;
    font-weight: 500; border: 1px solid transparent;
}
.mp-timing-row.shubh  { background: var(--mp-shubh-bg);  color: var(--mp-shubh-text);  border-color: var(--mp-shubh-border); }
.mp-timing-row.ashubh { background: var(--mp-ashubh-bg); color: var(--mp-ashubh-text); border-color: var(--mp-ashubh-border); }

.mp-festival-card-full {
    background: var(--mp-bg-subtle); border: 1px solid var(--mp-border);
    border-left: 4px solid var(--mp-festival, var(--mp-accent));
    border-radius: var(--mp-r-md); padding: 14px 16px; margin-bottom: 10px;
}
.mp-festival-card-full strong { display: block; font-size: 16px; line-height: 1.3; color: var(--mp-header-bg, var(--mp-accent)); font-weight: 700; }
.mp-festival-card-full small  { display: block; margin-top: 4px; color: var(--mp-text-light); font-weight: 500; }
.mp-festival-card-full p      { margin: 8px 0 0; font-size: 13px; color: var(--mp-text-mid); }
.mp-festival-card-full.empty  { border-left-color: var(--mp-border-strong); }
.mp-festival-card-full.auto   { border-left-color: var(--mp-ekadashi, #6941c6); }
.mp-festival-card-full.auto .mp-fest-cat { background: var(--mp-ekadashi, #6941c6); }

.mp-fest-cat {
    display: inline-flex; align-items: center; margin-top: 8px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--mp-festival, var(--mp-accent)); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: capitalize; letter-spacing: 0.3px;
}
.mp-samvat-list { display: grid; gap: 8px; }
.mp-samvat-list div {
    display: grid; grid-template-columns: 120px 1fr; gap: 8px;
    align-items: baseline; font-size: 14px; padding: 6px 0;
    border-bottom: 1px solid var(--mp-border);
}
.mp-samvat-list div:last-child { border-bottom: none; }
.mp-samvat-list strong { color: var(--mp-header-bg, var(--mp-accent)); font-weight: 700; }
.mp-samvat-list span   { color: var(--mp-text); font-weight: 600; }
.mp-accuracy-note { background: var(--mp-bg-subtle); }
.mp-accuracy-note p { margin: 0; font-size: 13px; color: var(--mp-text-mid); }

/* auto vrat note hidden */
.mp-auto-vrat-note { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   TODAY WIDGET
   ═══════════════════════════════════════════════════════════ */
.mp-today-widget {
    background: var(--mp-bg-card);
    border-radius: var(--mp-r-xl);
    border: 1px solid var(--mp-border);
    overflow: hidden; font-family: var(--mp-font);
    box-shadow: var(--mp-shadow-sm);
}
.mp-today-header {
    padding: 20px 24px; text-align: center;
    background: var(--mp-header-bg, var(--mp-accent));
    color: var(--mp-header-text, #fff8ee);
}
.mp-today-header h3 {
    margin: 0 0 4px; font-size: 18px; font-weight: 700;
    font-family: var(--mp-font-hindi); letter-spacing: 0.5px;
}
.mp-today-header p { margin: 0; font-size: 13.5px; opacity: 0.85; font-weight: 500; }

.mp-today-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--mp-border); gap: 1px;
    border-top: 1px solid var(--mp-border);
}
@media (max-width: 600px) { .mp-today-grid { grid-template-columns: repeat(2,1fr); } }

.mp-info-card { background: var(--mp-bg-card); padding: 16px 12px; text-align: center; transition: background 0.15s var(--mp-ease); }
.mp-info-card:hover { background: var(--mp-accent-light); }
.mp-info-icon { font-size: 20px; line-height: 1; }
.mp-info-label {
    font-size: 10.5px; color: var(--mp-text-hint);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin: 6px 0 3px; font-weight: 700;
}
.mp-info-value { font-size: 14px; font-weight: 600; color: var(--mp-text); line-height: 1.3; }
.mp-info-value a { color: var(--mp-accent); text-decoration: none; }
.mp-info-value a:hover { text-decoration: underline; }

.mp-timings-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 12px 16px; background: var(--mp-bg-subtle);
    border-top: 1px solid var(--mp-border);
}
.mp-timing-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; border: 1px solid transparent;
}
.mp-timing-item.shubh  { background: var(--mp-shubh-bg);  color: var(--mp-shubh-text);  border-color: var(--mp-shubh-border); }
.mp-timing-item.ashubh { background: var(--mp-ashubh-bg); color: var(--mp-ashubh-text); border-color: var(--mp-ashubh-border); }

.mp-festival-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; background: var(--mp-gold-light);
    border-top: 1px solid var(--mp-gold-border);
}
.mp-festival-icon { font-size: 22px; flex-shrink: 0; }
.mp-festival-banner strong a { color: var(--mp-header-bg, var(--mp-accent)); font-size: 15px; font-weight: 700; text-decoration: none; }
.mp-festival-banner p { margin: 3px 0 0; font-size: 12.5px; color: var(--mp-text-mid); }
.mp-gcal-small {
    margin-left: auto; background: #1a73e8; color: white !important;
    padding: 6px 12px; border-radius: var(--mp-r-sm); font-size: 12px;
    font-weight: 600; text-decoration: none; white-space: nowrap;
    flex-shrink: 0; transition: background 0.18s;
}
.mp-gcal-small:hover { background: #1558b0; }

/* ═══════════════════════════════════════════════════════════
   COMPACT WIDGET
   ═══════════════════════════════════════════════════════════ */
.mp-compact-widget {
    background: var(--mp-bg-card); border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-lg); overflow: hidden;
    font-family: var(--mp-font); box-shadow: var(--mp-shadow-xs);
}
.mp-compact-header {
    background: var(--mp-header-bg, var(--mp-accent));
    color: var(--mp-header-text, #fff8ee); padding: 12px 16px;
    font-size: 14px; font-weight: 700; text-align: center;
    font-family: var(--mp-font-hindi); letter-spacing: 0.5px;
}
.mp-compact-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 16px; border-bottom: 1px solid var(--mp-border);
    font-size: 13.5px; transition: background 0.12s;
}
.mp-compact-row:last-child { border-bottom: none; }
.mp-compact-row:hover { background: var(--mp-accent-light); }
.mp-compact-label { color: var(--mp-text-light); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.mp-compact-value { color: var(--mp-text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   FESTIVALS & EKADASHI LISTS
   ═══════════════════════════════════════════════════════════ */
.mp-festivals-list { font-family: var(--mp-font); }
.mp-festivals-list h2 { margin: 0 0 20px; font-size: 22px; font-weight: 700; color: var(--mp-header-bg, var(--mp-accent)); }

.mp-festival-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--mp-bg-card); border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-md); padding: 16px 18px; margin-bottom: 12px;
    transition: all 0.18s var(--mp-ease); box-shadow: var(--mp-shadow-xs);
}
.mp-festival-card:hover { box-shadow: var(--mp-shadow-sm); transform: translateY(-1px); border-color: var(--mp-accent-mid); }
.mp-festival-date { min-width: 52px; text-align: center; background: var(--mp-accent-light); border: 1px solid var(--mp-accent-mid); border-radius: var(--mp-r-sm); padding: 8px 6px; flex-shrink: 0; }
.mp-festival-date-day { font-size: 22px; font-weight: 800; color: var(--mp-accent); line-height: 1; display: block; }
.mp-festival-date-mon { font-size: 10.5px; font-weight: 700; color: var(--mp-text-light); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-top: 2px; }
.mp-festival-info { flex: 1; min-width: 0; }
.mp-festival-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--mp-text); }
.mp-festival-info small  { display: block; font-size: 12.5px; color: var(--mp-text-light); margin-top: 4px; }

.mp-ekadashi-list { font-family: var(--mp-font); }
.mp-ekadashi-list h2 { margin: 0 0 20px; font-size: 22px; font-weight: 700; color: var(--mp-ekadashi, #6941c6); }
.mp-ekadashi-card {
    background: var(--mp-bg-card); border: 1px solid var(--mp-border);
    border-left: 4px solid var(--mp-ekadashi, #6941c6);
    border-radius: var(--mp-r-md); padding: 14px 16px; margin-bottom: 10px;
    transition: all 0.15s var(--mp-ease); box-shadow: var(--mp-shadow-xs);
}
.mp-ekadashi-card:hover { box-shadow: var(--mp-shadow-sm); transform: translateY(-1px); }
.mp-ekadashi-name { font-size: 16px; font-weight: 700; color: var(--mp-text); }
.mp-ekadashi-date { font-size: 13px; color: var(--mp-text-light); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   SINGLE DAY PAGE
   ═══════════════════════════════════════════════════════════ */
.mp-single-day-wrap {
    background: var(--mp-bg-card); border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-xl); overflow: hidden;
    box-shadow: var(--mp-shadow-sm); color: #222 !important;
}
.mp-single-day-wrap, .mp-single-day-wrap * { text-shadow: none !important; }

.mp-single-hero {
    background: var(--mp-header-bg, var(--mp-accent));
    color: var(--mp-header-text, #fff8ee); text-align: center; padding: 30px 20px;
}
.mp-single-hero h1 { margin: 0; color: inherit; font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: -0.5px; }
.mp-single-hero p  { margin: 8px 0 0; color: inherit; opacity: 0.9; font-weight: 500; }

.mp-single-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--mp-bg-tinted); border-bottom: 1px solid var(--mp-border);
}
.mp-single-strip div { padding: 14px; text-align: center; border-right: 1px solid var(--mp-border); }
.mp-single-strip div:last-child { border-right: none; }
.mp-single-strip span { display: block; font-size: 11px; color: var(--mp-text-hint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.mp-single-strip strong { display: block; margin-top: 5px; font-size: 17px; color: var(--mp-text); font-weight: 700; }

.mp-single-card { padding: 20px 24px; border-bottom: 1px solid var(--mp-border); background: var(--mp-bg-card); color: #222 !important; }
.mp-single-card h2 { margin: 0 0 14px; color: var(--mp-header-bg, var(--mp-accent)) !important; font-size: 20px; font-weight: 700; opacity: 1 !important; visibility: visible !important; }
.mp-single-card h3 { color: var(--mp-header-bg, var(--mp-accent)) !important; opacity: 1 !important; visibility: visible !important; }
.mp-single-card p, .mp-single-card div, .mp-single-card span, .mp-single-card strong { color: #222 !important; opacity: 1 !important; }

.mp-single-festival { border-left: 4px solid var(--mp-festival, var(--mp-accent)); background: var(--mp-gold-light); border-radius: var(--mp-r-md); padding: 14px 16px; }
.mp-single-festival.auto { border-left-color: var(--mp-ekadashi, #6941c6); }
.mp-single-festival strong, .mp-single-festival p, .mp-single-festival small { color: #222 !important; }
.mp-single-festival strong { display: block; font-size: 18px; color: var(--mp-header-bg, var(--mp-accent)) !important; font-weight: 700; }
.mp-single-festival small { display: block; margin-top: 4px; color: var(--mp-text-mid) !important; }
.mp-single-festival p { margin: 8px 0 0; }

.mp-single-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 24px; background: var(--mp-bg-subtle); border-bottom: 1px solid var(--mp-border); color: #222 !important; }
.mp-single-grid h2, .mp-single-grid h3 { color: var(--mp-header-bg, var(--mp-accent)) !important; opacity: 1 !important; visibility: visible !important; }

.mp-single-row { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: var(--mp-r-md); padding: 14px 16px; transition: all 0.15s; }
.mp-single-row:hover { box-shadow: var(--mp-shadow-xs); border-color: var(--mp-accent-mid); }
.mp-single-row span  { display: block; color: var(--mp-text-hint) !important; font-size: 11px; margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 1 !important; }
.mp-single-row strong { display: block; color: var(--mp-text) !important; font-size: 15.5px; font-weight: 600; }
.mp-single-row strong a { color: var(--mp-header-bg, var(--mp-accent)) !important; text-decoration: none; }

.mp-single-timing { padding: 10px 14px; border-radius: var(--mp-r-sm); margin: 6px 0; background: var(--mp-bg-subtle) !important; border-left: 4px solid var(--mp-border); color: #222 !important; font-weight: 600; opacity: 1 !important; }
.mp-single-timing.shubh  { background: var(--mp-shubh-bg) !important;  border-left-color: var(--mp-shubh, #4caf50) !important;  color: var(--mp-shubh-text) !important; }
.mp-single-timing.ashubh { background: var(--mp-ashubh-bg) !important; border-left-color: var(--mp-ashubh, #f44336) !important; color: var(--mp-ashubh-text) !important; }

.mp-single-back { padding: 18px 24px 24px; background: var(--mp-bg-card); color: #222 !important; }
.mp-single-back a { font-weight: 700; color: var(--mp-header-bg, var(--mp-accent)) !important; opacity: 1 !important; }

/* ═══════════════════════════════════════════════════════════
   AAJ KA PANCHANG BUTTON WIDGET (v1.5.3+)
   ═══════════════════════════════════════════════════════════ */
.mp-aaj-widget {
    --mp-aaj-bg:      #faf9f7;
    --mp-aaj-border:  #e8e3db;
    --mp-aaj-text:    #1a1a18;
    --mp-aaj-muted:   #7a7570;
    --mp-aaj-red:     var(--mp-header-bg, #c94a00);
    --mp-aaj-gold:    var(--mp-header-text, #fff8ee);
    box-sizing: border-box; max-width: 100%;
    font-family: var(--mp-font, 'Plus Jakarta Sans', sans-serif);
}
.mp-aaj-widget *, .mp-aaj-widget *:before, .mp-aaj-widget *:after { box-sizing: border-box; }

.mp-aaj-link {
    position: relative; display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 14px; align-items: center;
    min-height: 90px; padding: 14px 16px;
    border: 1px solid var(--mp-aaj-border);
    border-radius: var(--mp-r-lg);
    background: var(--mp-bg-card);
    color: var(--mp-aaj-text) !important;
    text-decoration: none !important;
    box-shadow: var(--mp-shadow-sm);
    overflow: hidden;
    transition: all 0.2s var(--mp-ease);
}
.mp-aaj-link:before {
    content: "";
    position: absolute; inset: 0;
    border-top: 3px solid var(--mp-aaj-red);
    pointer-events: none;
    border-radius: var(--mp-r-lg);
}
.mp-aaj-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--mp-shadow-md);
    border-color: var(--mp-accent-mid);
}

.mp-aaj-mark {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--mp-aaj-red);
    box-shadow: 0 0 0 8px var(--mp-accent-light);
}
.mp-aaj-mark span {
    display: block; width: 26px; height: 26px;
    border-radius: 50%; background: var(--mp-aaj-gold);
    box-shadow: inset -7px -2px 0 rgba(255,255,255,0.55);
}

.mp-aaj-content { position: relative; z-index: 1; min-width: 0; display: grid; gap: 3px; }
.mp-aaj-kicker {
    color: var(--mp-aaj-muted); font-size: 11px; line-height: 1.2;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-aaj-content strong {
    color: var(--mp-aaj-red); font-size: 20px; line-height: 1.1; font-weight: 800;
}

.mp-aaj-meta {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 6px; margin-top: 6px;
}
.mp-aaj-meta span {
    min-width: 0; border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-sm); background: var(--mp-bg-subtle);
    padding: 5px 7px; color: var(--mp-aaj-text); font-size: 11px;
    line-height: 1.2; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-aaj-meta b {
    display: block; margin-bottom: 2px; color: var(--mp-aaj-muted);
    font-size: 9px; line-height: 1; font-weight: 700; text-transform: uppercase;
}
.mp-aaj-meta em { display: block; font-style: normal; overflow: hidden; text-overflow: ellipsis; }

.mp-aaj-cta {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; border-radius: var(--mp-r-sm);
    background: var(--mp-aaj-red); color: var(--mp-aaj-gold);
    padding: 9px 15px; font-size: 13.5px; line-height: 1.1;
    font-weight: 700; white-space: nowrap;
    transition: filter 0.15s;
}
.mp-aaj-cta:after { content: " →"; letter-spacing: -0.5px; }
.mp-aaj-link:hover .mp-aaj-cta { filter: brightness(1.08); }

/* Compact variant */
.mp-aaj-widget-compact .mp-aaj-link { min-height: 78px; gap: 10px; padding: 11px 14px; }
.mp-aaj-widget-compact .mp-aaj-mark { width: 44px; height: 44px; }
.mp-aaj-widget-compact .mp-aaj-mark span { width: 22px; height: 22px; }
.mp-aaj-widget-compact .mp-aaj-content strong { font-size: 18px; }
.mp-aaj-widget-compact .mp-aaj-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Button-only variant */
.mp-aaj-widget-button { display: inline-block; }
.mp-aaj-widget-button .mp-aaj-link { display: inline-flex; min-height: 46px; padding: 9px 12px; }
.mp-aaj-widget-button .mp-aaj-mark,
.mp-aaj-widget-button .mp-aaj-kicker,
.mp-aaj-widget-button .mp-aaj-meta { display: none; }
.mp-aaj-widget-button .mp-aaj-content strong { font-size: 15px; }
.mp-aaj-widget-button .mp-aaj-cta { min-height: 36px; padding: 7px 12px; }

/* Responsive sizing */
@media (min-width: 761px) {
    body .mp-aaj-widget { display: block; width: clamp(380px, 44vw, 680px); max-width: calc(100vw - 32px); }
    body .mp-aaj-widget-compact { width: clamp(360px, 36vw, 560px); }
    body .mp-aaj-widget-button { width: auto; }
}
@media (max-width: 760px) {
    body .mp-aaj-widget, body .mp-aaj-widget-compact { width: 100%; max-width: 100%; }
    .mp-aaj-link { grid-template-columns: auto minmax(0,1fr); gap: 10px; min-height: 0; padding: 12px; }
    .mp-aaj-cta { grid-column: 1/-1; width: 100%; }
    .mp-aaj-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 460px) {
    .mp-aaj-link { grid-template-columns: 1fr; text-align: center; }
    .mp-aaj-mark { margin: 0 auto; }
    .mp-aaj-content strong { font-size: 19px; }
    .mp-aaj-kicker { white-space: normal; }
    .mp-aaj-meta { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   NotebookLM-Inspired Theme Overrides
   Applied via data-mp-theme attribute on .mp-panchang-wrap
   ═══════════════════════════════════════════════════════════════ */

/* ── NLM Yellow (Warm Amber & Cream) ────────────────────────── */
.mp-panchang-wrap[data-mp-theme="nlm_yellow"] {
    --mp-bg-page:        #fffbeb;
    --mp-bg-card:        #ffffff;
    --mp-bg-tinted:      #fef3c7;
    --mp-bg-subtle:      #fffde7;
    --mp-accent:         #f59e0b;
    --mp-accent-light:   #fef3c7;
    --mp-accent-mid:     #fde68a;
    --mp-gold:           #b45309;
    --mp-gold-light:     #fef9c3;
    --mp-gold-border:    #fde68a;
    --mp-border:         #fde68a;
    --mp-border-strong:  #f59e0b;
    --mp-text:           #1c1400;
    --mp-text-mid:       #78350f;
    --mp-text-light:     #92400e;
    --mp-text-hint:      #b45309;
    --mp-shubh-bg:       #ecfdf5;
    --mp-shubh-text:     #065f46;
    --mp-shubh-border:   #a7f3d0;
    --mp-ashubh-bg:      #fef2f2;
    --mp-ashubh-text:    #991b1b;
    --mp-ashubh-border:  #fecaca;
    --mp-saffron:        #f59e0b;
    --mp-deep-red:       #92400e;
    --mp-cream:          #fffbeb;
    --mp-shadow:         rgba(245,158,11,0.10);
}

/* ── NLM Blue (Ink & Sky) ───────────────────────────────────── */
.mp-panchang-wrap[data-mp-theme="nlm_blue"] {
    --mp-bg-page:        #f8faff;
    --mp-bg-card:        #ffffff;
    --mp-bg-tinted:      #eff6ff;
    --mp-bg-subtle:      #f0f7ff;
    --mp-accent:         #3b82f6;
    --mp-accent-light:   #eff6ff;
    --mp-accent-mid:     #bfdbfe;
    --mp-gold:           #1d4ed8;
    --mp-gold-light:     #eff6ff;
    --mp-gold-border:    #bfdbfe;
    --mp-border:         #bfdbfe;
    --mp-border-strong:  #3b82f6;
    --mp-text:           #0a0f1e;
    --mp-text-mid:       #1e3a8a;
    --mp-text-light:     #1d4ed8;
    --mp-text-hint:      #2563eb;
    --mp-shubh-bg:       #ecfdf5;
    --mp-shubh-text:     #065f46;
    --mp-shubh-border:   #a7f3d0;
    --mp-ashubh-bg:      #fef2f2;
    --mp-ashubh-text:    #991b1b;
    --mp-ashubh-border:  #fecaca;
    --mp-saffron:        #3b82f6;
    --mp-deep-red:       #1e3a8a;
    --mp-cream:          #f8faff;
    --mp-shadow:         rgba(59,130,246,0.09);
}

/* ── NLM Green (Forest & Mint) ──────────────────────────────── */
.mp-panchang-wrap[data-mp-theme="nlm_green"] {
    --mp-bg-page:        #f8fffe;
    --mp-bg-card:        #ffffff;
    --mp-bg-tinted:      #f0fdf4;
    --mp-bg-subtle:      #f2fdf6;
    --mp-accent:         #22c55e;
    --mp-accent-light:   #f0fdf4;
    --mp-accent-mid:     #bbf7d0;
    --mp-gold:           #15803d;
    --mp-gold-light:     #f0fdf4;
    --mp-gold-border:    #bbf7d0;
    --mp-border:         #bbf7d0;
    --mp-border-strong:  #22c55e;
    --mp-text:           #021409;
    --mp-text-mid:       #14532d;
    --mp-text-light:     #15803d;
    --mp-text-hint:      #16a34a;
    --mp-shubh-bg:       #ecfdf5;
    --mp-shubh-text:     #065f46;
    --mp-shubh-border:   #6ee7b7;
    --mp-ashubh-bg:      #fef2f2;
    --mp-ashubh-text:    #991b1b;
    --mp-ashubh-border:  #fecaca;
    --mp-saffron:        #22c55e;
    --mp-deep-red:       #14532d;
    --mp-cream:          #f8fffe;
    --mp-shadow:         rgba(34,197,94,0.09);
}

/* ── NLM Red (Rose & Blush) ─────────────────────────────────── */
.mp-panchang-wrap[data-mp-theme="nlm_red"] {
    --mp-bg-page:        #fff8f8;
    --mp-bg-card:        #ffffff;
    --mp-bg-tinted:      #fff1f2;
    --mp-bg-subtle:      #fff5f5;
    --mp-accent:         #f43f5e;
    --mp-accent-light:   #fff1f2;
    --mp-accent-mid:     #fecdd3;
    --mp-gold:           #be123c;
    --mp-gold-light:     #fff1f2;
    --mp-gold-border:    #fecdd3;
    --mp-border:         #fecdd3;
    --mp-border-strong:  #f43f5e;
    --mp-text:           #1a040a;
    --mp-text-mid:       #881337;
    --mp-text-light:     #9f1239;
    --mp-text-hint:      #be123c;
    --mp-shubh-bg:       #ecfdf5;
    --mp-shubh-text:     #065f46;
    --mp-shubh-border:   #a7f3d0;
    --mp-ashubh-bg:      #fff1f2;
    --mp-ashubh-text:    #881337;
    --mp-ashubh-border:  #fecdd3;
    --mp-saffron:        #f43f5e;
    --mp-deep-red:       #881337;
    --mp-cream:          #fff8f8;
    --mp-shadow:         rgba(244,63,94,0.09);
}

/* ── Today Widget – View More Footer ────────────────────────── */
.mp-widget-footer {
    text-align: right;
    padding: 12px 16px 4px;
    border-top: 1px solid var(--mp-border);
    margin-top: 12px;
}
.mp-view-more-link {
    display: inline-block;
    padding: 8px 22px;
    background: var(--mp-accent-light);
    color: var(--mp-accent) !important;
    border: 1px solid var(--mp-accent-mid);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s;
}
.mp-view-more-link:hover {
    background: var(--mp-accent-mid);
    box-shadow: 0 2px 8px var(--mp-shadow-sm);
    color: var(--mp-accent) !important;
}

/* ═══════════════════════════════════════════════════════════
   POPUP v2 — Redesigned Day Modal
   ═══════════════════════════════════════════════════════════ */

.mp-popup-v2 {
    font-family: var(--mp-font);
    color: var(--mp-text);
}

/* ── Header ─────────────────────────────────────────────── */
.mp-pv2-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 16px;
    background: linear-gradient(135deg, var(--mp-header-bg, var(--mp-accent)) 0%, color-mix(in srgb, var(--mp-header-bg, var(--mp-accent)) 80%, #000) 100%);
    color: #fff;
    position: relative;
}
.mp-pv2-header.is-today {
    background: linear-gradient(135deg, #b08d44 0%, #7a5f20 100%);
}

.mp-pv2-date-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.mp-pv2-day-num {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
    opacity: 0.95;
}
.mp-pv2-date-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mp-pv2-month {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.3px;
}
.mp-pv2-dow {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mp-pv2-today-badge {
    display: inline-block;
    margin-top: 4px;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.4);
}

.mp-pv2-header-right {
    flex: 1;
    min-width: 0;
}
.mp-pv2-hi-date {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    font-family: var(--mp-font-hindi);
    line-height: 1.4;
    margin-bottom: 5px;
}
.mp-pv2-city {
    font-size: 11.5px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-bottom: 4px;
}
.mp-pv2-samvat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

/* ── Festival Banner ─────────────────────────────────────── */
.mp-pv2-fest {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    background: var(--mp-gold-light);
    border-bottom: 1px solid var(--mp-gold-border);
    border-left: 4px solid var(--mp-gold, #b08d44);
}
.mp-pv2-fest.auto {
    border-left-color: #6941c6;
    background: #f5f0ff;
}
.mp-pv2-fest-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.mp-pv2-fest-body {
    flex: 1;
    min-width: 0;
}
.mp-pv2-fest-body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--mp-text);
    line-height: 1.3;
}
.mp-pv2-fest-body span {
    display: block;
    font-size: 11.5px;
    color: var(--mp-text-light);
    margin-top: 2px;
    font-weight: 500;
}
.mp-pv2-fest-body em {
    display: inline-block;
    margin-top: 5px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--mp-accent);
    color: #fff;
    padding: 1px 7px;
    border-radius: 999px;
}
.mp-pv2-fest.auto .mp-pv2-fest-body em { background: #6941c6; }
.mp-pv2-fest-body p {
    margin: 7px 0 0;
    font-size: 12px;
    color: var(--mp-text-mid);
    line-height: 1.5;
}

.mp-pv2-reminder-btn {
    flex-shrink: 0;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    margin-top: 2px;
}
.mp-pv2-reminder-btn:hover {
    background: var(--mp-accent);
    border-color: var(--mp-accent);
}

.mp-pv2-reminder-form {
    padding: 12px 20px;
    background: var(--mp-bg-tinted);
    border-bottom: 1px solid var(--mp-border);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}
.mp-pv2-reminder-form[hidden] { display: none !important; }
.mp-pv2-reminder-form input,
.mp-pv2-reminder-form select {
    min-height: 36px;
    border: 1px solid var(--mp-border-strong);
    border-radius: var(--mp-r-sm);
    padding: 6px 10px;
    font-size: 12.5px;
    background: #fff;
    color: var(--mp-text);
    font-family: var(--mp-font);
}
.mp-pv2-reminder-form .mp-submit-reminder {
    min-height: 36px;
    border: none;
    border-radius: var(--mp-r-sm);
    padding: 6px 14px;
    background: var(--mp-accent);
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    font-family: var(--mp-font);
    white-space: nowrap;
    transition: background 0.18s;
}
.mp-pv2-reminder-form .mp-submit-reminder:hover { background: #a83c00; }
.mp-pv2-reminder-form .mp-reminder-msg {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
}
.mp-pv2-reminder-form .mp-reminder-msg.success { color: var(--mp-shubh-text); }
.mp-pv2-reminder-form .mp-reminder-msg.error   { color: var(--mp-ashubh-text); }

/* ── Sunrise/Moon Strip ──────────────────────────────────── */
.mp-pv2-strip {
    display: grid;
    grid-template-columns: repeat(var(--strip-cols, 6), 1fr);
    background: var(--mp-border);
    gap: 1px;
    border-bottom: 1px solid var(--mp-border);
}
@media (max-width: 480px) { .mp-pv2-strip { grid-template-columns: repeat(3, 1fr); } }

.mp-pv2-strip-item {
    background: var(--mp-bg-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px 9px;
    text-align: center;
    gap: 2px;
}
.mp-pv2-strip-icon { font-size: 16px; line-height: 1; }
.mp-pv2-strip-label {
    font-size: 8.5px;
    color: var(--mp-text-hint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}
.mp-pv2-strip-item strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--mp-text);
    line-height: 1;
}

/* ── Section wrapper ─────────────────────────────────────── */
.mp-pv2-section {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mp-border);
}
.mp-pv2-sec-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--mp-accent);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--mp-border);
}

/* ── Panchaang 5 elements grid ───────────────────────────── */
.mp-pv2-p5-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
@media (max-width: 480px) { .mp-pv2-p5-grid { grid-template-columns: repeat(3, 1fr); } }

.mp-pv2-p5-cell {
    background: var(--mp-bg-subtle);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-r-sm);
    padding: 9px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    transition: background 0.15s, border-color 0.15s;
}
.mp-pv2-p5-cell:hover {
    background: var(--mp-accent-light);
    border-color: var(--mp-accent-mid);
}
.mp-pv2-p5-icon {
    font-size: 18px;
    line-height: 1;
}
.mp-pv2-p5-label {
    font-size: 8.5px;
    color: var(--mp-text-hint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.mp-pv2-p5-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--mp-text);
    line-height: 1.25;
    word-break: break-word;
}
.mp-pv2-p5-val a {
    color: var(--mp-accent) !important;
    text-decoration: none;
}
.mp-pv2-p5-val a:hover { text-decoration: underline; }
.mp-pv2-p5-sub {
    font-size: 9px;
    color: var(--mp-text-light);
    font-weight: 500;
    line-height: 1.2;
}

/* ── Detail info rows ────────────────────────────────────── */
.mp-pv2-info-list {
    display: grid;
    gap: 0;
}
.mp-pi-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--mp-border);
    font-size: 13px;
    transition: background 0.12s;
}
.mp-pi-row:last-child { border-bottom: none; }
.mp-pi-row:hover { background: var(--mp-accent-light); margin: 0 -4px; padding-left: 6px; padding-right: 6px; border-radius: 4px; }
.mp-pi-icon {
    font-size: 15px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.mp-pi-label {
    flex: 1;
    color: var(--mp-text-light);
    font-weight: 600;
    font-size: 12.5px;
    min-width: 0;
}
.mp-pi-val {
    color: var(--mp-text);
    font-weight: 700;
    font-size: 13px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.mp-pi-sub {
    display: block;
    font-size: 10.5px;
    color: var(--mp-text-light);
    font-weight: 500;
    margin-top: 1px;
}

/* ── Timings (shubh/ashubh) ──────────────────────────────── */
.mp-pv2-timings {
    display: grid;
    gap: 6px;
}
.mp-pv2-timing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--mp-r-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
}
.mp-pv2-timing.shubh {
    background: var(--mp-shubh-bg);
    color: var(--mp-shubh-text);
    border-color: var(--mp-shubh-border);
}
.mp-pv2-timing.ashubh {
    background: var(--mp-ashubh-bg);
    color: var(--mp-ashubh-text);
    border-color: var(--mp-ashubh-border);
}
.mp-pv2-t-icon { font-size: 14px; flex-shrink: 0; }
.mp-pv2-t-name { flex: 1; font-weight: 600; }
.mp-pv2-t-time { font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ── Footer actions ──────────────────────────────────────── */
.mp-pv2-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    background: var(--mp-bg-subtle);
    justify-content: flex-end;
    flex-wrap: wrap;
}
.mp-pv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--mp-r-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--mp-font);
    text-decoration: none !important;
    transition: all 0.18s var(--mp-ease);
    white-space: nowrap;
    border: none;
}
.mp-pv2-btn.primary {
    background: var(--mp-accent);
    color: #fff !important;
}
.mp-pv2-btn.primary:hover {
    background: #a83c00;
    transform: translateY(-1px);
    box-shadow: var(--mp-shadow-sm);
}
.mp-pv2-btn.secondary {
    background: var(--mp-bg-card);
    color: var(--mp-text) !important;
    border: 1px solid var(--mp-border-strong);
}
.mp-pv2-btn.secondary:hover {
    border-color: var(--mp-accent-mid);
    background: var(--mp-accent-light);
    color: var(--mp-accent) !important;
}

/* ═══════════════════════════════════════════════════════════
   SUNDAY COLUMN — Holiday styling
   ═══════════════════════════════════════════════════════════ */

/* Subtle warm rose tint on entire Sunday cell */
.mp-cal-cell.mp-sunday:not(.mp-today):not(.mp-festival-day) {
    background: #fff5f5;
}
.mp-cal-cell.mp-sunday:not(.mp-today):not(.mp-festival-day) .mp-cell-info-grid {
    background: #ffeaea;
}

/* Sunday date number — bold red */
.mp-reworked-cell .mp-big-date.sunday {
    color: #c0392b;
}

/* Weekday header row — रवि (Sunday, first column) distinct highlight */
.mp-day-headers .mp-day-header:first-child {
    color: #fff !important;
    font-weight: 800 !important;
    background: rgba(192, 57, 43, 0.35) !important;
}

/* Empty Sunday cells (1st, 8th, 15th, 22nd, 29th child — every 7n+1) */
.mp-calendar-grid > .mp-cal-cell.mp-empty:nth-child(7n+1) {
    background: #fff5f5;
}
