/* --- US Daily Calendar COMPLETE CSS Version 4.5 --- */
/* 
   - TimeAndDate Style Grid (Small, Center Aligned)
   - Medium Grey Headers & Moon Areas
   - Lite White Day Backgrounds
   - Custom Scrollers (Underlined links, Lite Blue Active Box)
   - Square Daily Sheet Design
*/

/* 1. GLOBAL RESETS & FOUNDATION */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background-color: #f2f2f2; 
    font-family: Arial, Helvetica, sans-serif; 
    color: #333;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* 2. LAYOUT WRAPPER */
.main-wrapper { 
    max-width: 1000px; 
    margin: 0 auto; 
    background: #ffffff; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* 3. Unified Header (Compact 42px Height) */
header {
    background: #eeeeee;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    height: 42px; /* Reduced from 50px */
    position: relative; 
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    color: #000000; 
    text-decoration: none;
    white-space: nowrap;
}

/* 4. Menu Toggle Button */
.menu-toggle {
    background: none;
    color: #000000;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 22px; /* Compact & clean */
    display: flex; 
    align-items: center;
    line-height: 1;
}

/* 5. Primary Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -290px;
    width: 290px;
    height: 100%;
    background: #f9fafb;
    box-shadow: -4px 0 18px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
}

.sidebar.active { 
    right: 0; 
}

/* Compact Menu Header Bar */
.sidebar-header {
    padding: 0 14px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    height: 42px; /* Reduced to 42px */
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #0f172a;
}

.close-btn { 
    background: none; 
    border: none; 
    color: #ffffff; 
    font-size: 24px; 
    cursor: pointer; 
    line-height: 1;
    padding: 2px 6px;
    transition: opacity 0.2s ease;
}
.close-btn:hover {
    opacity: 0.8;
}

/* 6. Main Menu Items */
.close-btn { 
    background: none; 
    border: none; 
    color: #ffffff; 
    font-size: 28px; 
    cursor: pointer; 
    line-height: 1;
    padding: 2px 6px;
    transition: opacity 0.2s ease;
}
.close-btn:hover {
    opacity: 0.8;
}

.sidebar ul { 
    list-style: none; 
    margin: 0;
    padding: 0;
}

.sidebar li { 
    border-bottom: 1px solid #e5e7eb;
}

.sidebar li a { 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px; 
    color: #374151;
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14.5px;
    background: #f9fafb;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar li a:hover {
    background: #f3f4f6;
    color: #111827;
}

/* 7. Accordion & Submenu */
/* Open parent item */
.sidebar li.has-sub.open > a {
    background: #e5e7eb !important;
    color: #111827 !important;
    font-weight: 700;
    border-bottom: 1px solid #d1d5db;
}

/* Dropdown arrow icon */
.drop-icon {
    width: 11px;
    height: 11px;
    transition: transform 0.25s ease;
    color: #4b5563;
}

.has-sub.open > a .drop-icon {
    transform: rotate(180deg);
    color: #111827;
}

/* Submenu container */
.submenu {
    background: #ffffff !important;
    display: none; 
    border-bottom: 1px solid #e5e7eb;
}

.has-sub.open .submenu {
    display: block;
}

/* Submenu links */
.submenu li {
    border-bottom: 1px solid #f3f4f6;
}
.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    padding: 11px 18px 11px 32px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: #ffffff !important;
}

.submenu a:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* 8. OVERLAY (BACKDROP) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1500;
}

.overlay.active { 
    display: block; 
}

/* --- 9. TYPOGRAPHY (TRIMMED COMPACT TOP SPACES) --- */
h1 { 
    font-size: 18px; 
    text-align: center; 
    margin: 6px 10px 2px 10px; /* Reduced from 15px to 6px */
    color: #000; 
    font-weight: 700; 
}
h2 { font-size: 17px; color: #111; font-weight: 700; margin: 15px 0 8px 0; text-align: left; }
h3 { font-size: 16px; color: #222; font-weight: 600; margin: 12px 0 6px 0; text-align: left; }
h4 { font-size: 15px; color: #333; font-weight: 600; margin: 8px 0; text-align: left; }

/* --- 10. LIVE CLOCK (COMPACT US ET CLOCK) --- */
.live-clock-box { 
    font-size: 12.5px; 
    color: #b71c1c; 
    font-weight: bold; 
    text-align: center; 
    padding: 2px;             /* Reduced padding */
    margin-bottom: 2px;       /* Reduced gap */
}

/* --- 11. NAVIGATION SPACING (TIGHTER QUICK LINKS) --- */
.nav-center { 
    text-align: center; 
    margin: 2px 0;            /* Tight 2px margin */
}
.nav-center a { 
    color: #0066cc; 
    text-decoration: underline; 
    font-weight: bold; 
    font-size: 13px; 
    padding: 1px 4px; 
}
.nav-center span { 
    color: #ccc; 
    font-weight: normal; 
}

/* 12. SCROLLER LOGIC (MONTH/YEAR NAVIGATION) */
/* Logic: < Prev Active Next > where Active is Lite Blue Box */
.scroller {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    user-select: none;
    font-size: 14px;
}

.scroller a { 
    text-decoration: underline; /* Links are underlined */
    color: #0066cc; 
    font-weight: 500; 
    padding: 3px 8px;
}

.scroller span {
    color: #333;
    font-weight: bold;
    text-decoration: none !important; /* Arrows and Active text not underlined */
    padding: 0 5px;
    cursor: pointer;
}

.scroller .active-item { 
    background: #e3f2fd; /* Lite Blue Box */
    color: #01579b;
    text-decoration: none !important; 
    font-weight: bold;
    border: 1px solid #bbdefb;
    border-radius: 3px;
    padding: 3px 10px;
}

/* 13. FEDERAL HOLIDAY LIST (3-COLUMN GRID) */
.holiday-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px 20px;
    padding: 20px 0;
}

.holiday-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.h-date {
    color: #b71c1c; 
    font-weight: 400; 
    white-space: nowrap;
    min-width: 45px;
    text-align: right;
}

/* 14. PROFESSIONAL GRID (Small & Center Aligned) */
/* Specific colors: Medium Grey headers, Lite White day areas */
.calendar-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* Center aligned for mobile and desktop */
    gap: 15px; 
    padding: 10px; 
}

.month-box { 
    width: 210px; /* Small width */
    border: 1px solid #999; 
    background: #fafafa; /* Lite White background for day area */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.month-title { 
    background: #e2e8f0; /* Soft Blue/Grey title background */
    color: #1e293b; 
    padding: 6px; 
    font-weight: 400; /* No bold month names */
    font-size: 18px; 
    text-align: center; 
    border-bottom: 1px solid #999; 
}

.grid-table { width: 100%; border-collapse: collapse; text-align: center; table-layout: fixed; }

.grid-table th { 
    font-size: 11px; 
    color: #333; 
    font-weight: normal; 
    padding: 5px 0;
    background: #d1d5db; /* Medium Grey header background */
    border-bottom: 1px solid #999;
}

.grid-table td { padding: 4px 0; font-size: 14px; color: #000; }

.grid-sunday, .grid-holiday { color: #b71c1c !important; } 
.grid-saturday { color: #555 !important; } 
.grid-today { background: #fff59d !important; outline: 1px solid #fbc02d; }

/* Moon phases area - horizontal at bottom with medium grey background */
.moon-row { 
    background: #d1d5db; /* Medium Grey Area */
    padding: 5px 2px; 
    font-size: 11px; 
    display: flex; 
    justify-content: center; 
    gap: 6px;
    border-top: 1px solid #999;
    margin-top: auto; /* Push to bottom */
}

.moon-svg { width: 11px; height: 11px; vertical-align: middle; }
.moon-svg circle { fill: #000; } 
.moon-svg path { fill: #f9d71c; } 


/* 15. Authentic Daily Tear-Off Sheet (Vibrant & Attractive US Palette) */
.daily-sheet { 
    border: 2px solid #000000; 
    border-radius: 0px;
    margin: 8px auto 14px auto; 
    max-width: 375px;
    width: 95%;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #000000;
    box-sizing: border-box;
}

/* Top Huge Date Header */
.sheet-top-date-row {
    text-align: center;
    padding: 2px 1px 0px 1px;
    font-size: clamp(58px, 18vw, 76px);
    font-family: "Times New Roman", Times, "Playfair Display", Georgia, serif;
    font-weight: 900;
    line-height: 0.84;
    letter-spacing: -2.5px;
    border-bottom: 1.5px solid #000000;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
}

/* Exact Site Date Colors */
.sheet-top-date-row.weekday-theme { color: #012b55; }  /* Dark Navy */
.sheet-top-date-row.saturday-theme { color: #616161; } /* Grey */
.sheet-top-date-row.holiday-theme { color: #b71c1c; }  /* Red for Sundays & Holidays */

.date-dash {
    color: #0288d1;
    font-weight: 900;
    margin: 0 1px;
}

/* US Federal Holiday Stamp */
.sheet-gov-holiday-badge {
    background: #fff0f0;
    border-bottom: 1px solid #b71c1c;
    padding: 1.5px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: bold;
    color: #b71c1c;
    text-transform: uppercase;
}
.sheet-gov-holiday-badge svg {
    width: 11px;
    height: 11px;
    fill: #b71c1c;
}

/* Sub-Header Narrative */
.sheet-meta-narrative {
    padding: 2.5px 4px;
    font-size: 7.8px;
    line-height: 1.22;
    color: #111111;
    background: #ffffff;
    border-bottom: 1.5px solid #000000;
    text-align: left;
}

/* Main Split: Left Area vs Right Horoscope Column */
.sheet-core-split {
    display: grid;
    grid-template-columns: 1fr 92px;
    border-bottom: 1.5px solid #000000;
    background: #ffffff;
}

.sheet-left-block {
    display: flex;
    flex-direction: column;
}

/* Left Top: Colorful 3-Box Strip */
.sheet-sub-strip-3 {
    display: grid;
    grid-template-columns: 1.1fr 1.15fr 1fr;
    border-bottom: 1px solid #000000;
    background: #ffffff;
}

.sub-col {
    padding: 1.5px 2px;
    border-right: 1px solid #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}
.sub-col:last-child {
    border-right: none;
}

/* Box 1: Warm Peach Tint */
.sheet-sub-strip-3 .sub-col:first-child {
    background: #fff7ed;
}
.saka-label { font-size: 7.5px; font-weight: bold; color: #9a3412; line-height: 1.1; }
.solar-day-num { font-size: 21px; font-weight: 900; color: #c2410c; line-height: 0.9; margin-top: 1px; }

/* Box 2: Cheerful Sun Yellow Box */
.strip-col-yellow {
    background: #fef08a !important; /* Vibrant Happy Yellow */
}
.yellow-top-text {
    font-size: 9.5px;
    font-weight: 900;
    color: #15803d; /* Fresh Grass Green */
    text-transform: uppercase;
    line-height: 1.1;
}
.yellow-btm-text {
    font-size: 8.5px;
    font-weight: 900;
    color: #0c4a6e; /* Deep Navy */
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 1px;
}

/* Box 3: Fresh Spring Mint Green */
.sheet-sub-strip-3 .sub-col:last-child {
    background: #f0fdf4;
}
.hijri-title-text { font-size: 7.5px; font-weight: bold; color: #15803d; }
.hijri-large-num { font-size: 14px; font-weight: 900; color: #047857; line-height: 1; }
.strip-split-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #86efac;
    margin-top: 1px;
    padding-top: 1px;
    font-size: 6.5px;
    font-weight: bold;
}

/* Activity Detail Strip */
.sheet-activity-detail {
    padding: 2.5px 4px;
    font-size: 7.8px;
    line-height: 1.25;
    background: #f8fafc;
    border-bottom: 1px solid #000000;
}

/* Lower Timings & Chart Row */
.sheet-timings-chart-row {
    display: grid;
    grid-template-columns: 1fr 78px;
    flex: 1;
}

.timings-col {
    border-right: 1px solid #000000;
    display: flex;
    flex-direction: column;
}

.panchang-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 6.8px;
}

.panchang-table th, 
.panchang-table td {
    border-right: 1px solid #888888 !important;
    text-align: center;
    vertical-align: middle;
    padding: 1px 1px;
    font-size: 6.8px;
    color: #111111;
    line-height: 1.12;
}

/* Soft Lilac / Lavender Table Headers */
.panchang-table th {
    background: #ede9fe; /* Attractive Lavender */
    font-weight: bold;
    color: #4c1d95;      /* Deep Royal Violet */
    border-bottom: 1px solid #888888;
    line-height: 1.1;
}

.panchang-table th.col-last,
.panchang-table td.col-last {
    border-right: none !important;
}

.split-timing-row td {
    border-bottom: 1px solid #888888;
}

.panchang-table td.unified-timing-cell {
    border-bottom: none !important;
    background: #ffffff;
    font-weight: bold;
    color: #012b55;
    padding: 2px 1px;
    vertical-align: middle;
    line-height: 1.2;
}

/* 3-Part Meta Subgrid */
.timings-sub-grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr 1fr;
    border-top: 1px solid #888888;
    font-size: 6.8px;
    line-height: 1.15;
    background: #ffffff;
    margin-top: auto;
}
.sub-cell {
    padding: 1.5px 2px;
    border-right: 1px solid #888888;
}
.sub-cell:last-child { border-right: none; }
.caution-star-title { color: #b71c1c; font-weight: bold; }

/* Middle 4x4 Rasi Chart */
.chart-col {
    padding: 1.5px 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.rasi-chart-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 15.5px);
    width: 100%;
    max-width: 76px;
    border: 1px solid #000000;
    background: #fffdf5; /* Warm Honey Ivory Tint */
}

.rasi-box {
    border: 0.5px solid #666666;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    line-height: 1;
    overflow: hidden;
}

.rasi-box-center {
    grid-column: 2 / span 2;
    grid-row: 2 / span 2;
    background: #ffffff;
    border: 0.5px solid #666666;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6px;
    font-weight: 900;
    color: #b71c1c;
}

.chart-footer-strip {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    width: 100%;
    max-width: 76px;
    margin-top: 1px;
    border: 0.5px solid #000000;
    font-size: 5.5px;
    text-align: center;
    background: #f1f5f9;
}
.chart-footer-strip div { padding: 1px 0; border-right: 0.5px solid #000000; font-weight: bold; }
.chart-footer-strip div:last-child { border-right: none; }

/* Right Daily Horoscope (Connected Column with Candy Pink Header) */
.sheet-horoscope-column {
    border-left: 1px solid #000000;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.horoscope-col-header {
    background: #fbcfe8 !important; /* Charming Candy Rose Pink */
    color: #9d174d;                 /* Deep Wine/Berry */
    font-size: 8.5px;
    font-weight: 900;
    text-align: center;
    padding: 3px 1px;
    border-bottom: 1px solid #000000;
    line-height: 1.1;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.horoscope-col-body {
    padding: 1px 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.horoscope-row {
    display: flex;
    justify-content: space-between;
    font-size: 6.8px;
    line-height: 1.05;
    padding: 0.1px 0;
}
.z-name { font-weight: 700; color: #9d174d; } /* Deep Rose */
.z-val  { font-weight: 600; color: #0369a1; } /* Deep Ocean Blue */

/* Cheerful Golden Proverb Ribbon */
.sheet-proverb-ribbon {
    background: #fef9c3; /* Soft Warm Sunburst Ribbon */
    color: #854d0e;      /* Warm Amber-Brown Text */
    font-weight: bold;
    font-style: italic;
    font-size: 7.8px;
    text-align: center;
    padding: 2px 3px;
    border-bottom: 1.5px solid #000000;
    letter-spacing: 0.1px;
    line-height: 1.15;
}

/* Bottom Metadata Strip */
.sheet-bottom-strip-2 {
    display: flex;
    justify-content: space-between;
    padding: 2px 4px;
    background: #ffffff;
    font-size: 7px;
    font-weight: bold;
    color: #012b55;
}
.sheet-bottom-strip-2 a {
    color: #012b55;
    text-decoration: none;
}

/* --- 16. SETTINGS WELL (COMPACT DATE SELECTORS) --- */
.selector-well { 
    padding: 4px 6px;         /* Reduced from 10px to 4px */
    background: #fdfdfd; 
    border-bottom: 1px solid #eee; 
    text-align: center; 
}
select { 
    padding: 4px 6px; 
    font-size: 12.5px; 
    margin: 1px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    background: #fff; 
    color: #333;
}
.btn-primary { 
    background: #dddddd; 
    color: #000000; 
    cursor: pointer; 
    font-weight: normal;
    border: none;
    padding: 4px 10px; 
    font-size: 12.5px;
    margin: 1px;
    border-radius: 4px;
}

/* 17. SEO SECTION & FOOTER */
.seo-section { 
    padding: 20px 25px; 
    text-align: left; 
    border-top: 1px solid #eee; 
    background: #fff; 
    font-size: 14px;
}

footer { 
    padding: 25px; 
    text-align: center; 
    background: #f9f9f9; 
    border-top: 1px solid #eee; 
    font-size: 13px; 
    color: #777; 
    margin-top: auto;
}

/* 18. AUSPICIOUS WEDDING DATES STYLES */
.wedding-month-section { 
    margin: 20px 15px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #ffffff; 
}

.wedding-month-title { 
    background: #fdf2f2; 
    color: #b71c1c; 
    padding: 12px 15px; 
    font-size: 17px; 
    font-weight: 500; 
    border-bottom: 1px solid #ddd; 
}

.wedding-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.wedding-table td { 
    padding: 10px 15px; 
    border-bottom: 1px solid #eeeeee; 
    font-size: 14px; 
    color: #333333; 
}

/* 19. LUNAR LIST VIEW STYLES (US STYLE) */
.lunar-month-container { 
    margin: 20px 10px; 
}

.lunar-month-header { 
    background: #e1f5fe; 
    color: #01579b; 
    padding: 10px 15px; 
    font-size: 18px; 
    font-weight: 700; 
    border: 1px solid #b3e5fc; 
    border-radius: 4px 4px 0 0; 
}

.lunar-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border: 1px solid #ddd; 
    margin-bottom: 20px; 
}

.lunar-table td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #eee; 
    vertical-align: top; 
    font-size: 14px; 
    color: #222; 
}

.col-type { 
    width: 45%; 
    font-weight: 600; 
    color: #444; 
}

.col-dates { 
    width: 55%; 
    line-height: 1.6; 
}

.lunar-h2-title {
    font-size: 18px; 
    color: #333333; 
    margin: 20px 10px 10px 10px; 
    line-height: 1.4; 
    text-align: left; 
    font-weight: 700;
}

/* 20. EXTENDED DETAILS & SUMMARY WRAPPER */
.details-wrapper {
    max-width: 650px;
    margin: 20px auto;
    padding: 0 10px;
}

/* 21. Extended Table (Zebra Style & Unified Visible Borders) */
.extended-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d1d5db; /* Clean outer border, fixes L-shape bug */
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.extended-table .header-row {
    background-color: #C6EFFB; /* Original light blue header preserved */
    color: #000000;
    padding: 9px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid #b3e5fc;
}

.extended-table td {
    padding: 7px 10px;
    border: 1px solid #e5e7eb; /* All grid lines are clearly visible */
    font-size: 13px;
    color: #222222;
    line-height: 1.35;
    vertical-align: middle; /* Fixes height mismatch between columns */
}

/* Zebra Striping */
.extended-table tr:nth-child(even) td { background-color: #f9fafb; }
.extended-table tr:nth-child(odd) td { background-color: #ffffff; }

.label-bold {
    font-weight: 700;
    color: #000000;
    width: 42%;
}

.value-text {
    width: 58%;
    color: #374151;
    vertical-align: middle;
}

/* 22. Monthly Summary Table Cells (Fixes Extra Lines/Gaps) */
.summary-icon-cell {
    vertical-align: middle !important;
    font-weight: 600;
    color: #111827;
    white-space: normal;
}

.summary-icon-cell img {
    width: 17px; 
    height: 17px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block; /* Replaces broken display:flex on <td> */
}

.summary-icon-cell span {
    vertical-align: middle;
    display: inline-block;
}

.summary-link-header {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
}

/* 23. LARGE MONTHLY GRID VIEW (Single Month Center Aligned) */
/* Following task: Center alignment for both mobile and desktop Devices */
.month-box-large {
    width: 260px !important; /* Fixed width to keep it small and centered */
    margin: 20px auto; /* Auto margin centers the single box horizontally */
    border: 1px solid #01579b;
}

.month-box-large .month-title { 
    font-size: 20px; 
    padding: 8px; 
    background: #e2e8f0; 
    color: #01579b; 
    font-weight: 400; /* No bold month names */
}

/* 24. MEDIA QUERIES (RESPONSIVE CENTERING & GRID LOCK) */

@media (min-width: 701px) {
    /* TASK: Yearly Page - Force 3 Columns */
    #calendar-grid-container.calendar-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 210px); /* Exactly 3 columns */
        justify-content: center; /* Center the whole 3-column block */
        gap: 15px;
    }

    /* TASK: Monthly Page - Keep single box centered */
    #monthly-grid-view.calendar-grid {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 950px) {
    .big-date { font-size: 55px; }
}

@media (max-width: 700px) {
    /* TASK: Mobile - Single Column Centered for everything */
    .calendar-grid { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important; 
        gap: 15px;
    }
    
    .month-box, .month-box-large { 
        width: 210px !important; /* Keep it small as per task */
        margin: 10px auto !important; /* Center alignment */
    }
    
    .holiday-list-grid { 
        grid-template-columns: 1fr; 
        padding: 10px 20px;
    }
    
    .extended-table td { padding: 8px; font-size: 13px; }
    .label-bold { width: 48%; }
}

/* 25. 12-RASI TWO-COLUMN SELECTION GRID */
.rasi-grid-container {
    max-width: 720px;
    margin: 18px auto;
    padding: 0 10px;
}

.rasi-grid-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    text-align: center;
}

.rasi-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rasi-grid-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rasi-grid-item:hover {
    background: #f8fafc;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.rasi-grid-item.active-sign {
    background: #eff6ff;
    border-color: #3b82f6;
    font-weight: 700;
}

.rasi-thumb-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

.rasi-item-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rasi-name-en {
    font-size: 14.5px;
    font-weight: 700;
    color: #012b55;
    line-height: 1.2;
}

.rasi-sub-sanskrit {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 1px;
}

/* 26. HOROSCOPE CONTENT CARDS & SECTIONS */
.horo-detail-container {
    max-width: 720px;
    margin: 15px auto 25px auto;
    padding: 0 10px;
}

.horo-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.horo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.horo-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.horo-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.horo-date-badge {
    background: #fee2e2;
    color: #b71c1c;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.horo-body-para {
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 14px;
    text-align: justify;
}

/* 27. LUCKY METRICS PILLS & REMEDIAL BOX */
.lucky-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    margin: 14px 0;
}

.lucky-pill {
    font-size: 12px;
    color: #1e293b;
    line-height: 1.35;
}

.lucky-pill strong {
    color: #0369a1;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.remedy-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 12px;
    border-radius: 0 4px 4px 0;
    margin-top: 12px;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.45;
}

.remedy-box strong {
    color: #78350f;
}

/* 28. NAKSHATRA SPECIFIC PREDICTIONS TABLE */
.star-prediction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 12.5px;
}

.star-prediction-table th {
    background: #f1f5f9;
    color: #334155;
    text-align: left;
    padding: 6px 10px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    font-size: 12px;
}

.star-prediction-table td {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    vertical-align: top;
    line-height: 1.4;
}

.star-name-cell {
    font-weight: 700;
    color: #0284c7;
    width: 32%;
    white-space: nowrap;
}

/* 29. CHANDRASHTAMA / CAUTIONARY ALERT BOX */
.caution-alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 12.5px;
    color: #991b1b;
    line-height: 1.45;
}

.caution-alert-box strong {
    color: #7f1d1d;
}

/* 30. TRANSIT BADGES & SUMMARY CARDS */
.transit-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.transit-aspect-pill {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* 31. MARRIAGE COMPATIBILITY / PORUTHAM STYLES */
.porutham-calc-box {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 18px;
    margin: 15px auto;
    max-width: 650px;
}

.porutham-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 16px;
}

.porutham-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.porutham-col h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    text-align: center;
}

.porutham-field {
    margin-bottom: 10px;
}

.porutham-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
}

.porutham-field select {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
}

.btn-calc-porutham {
    display: block;
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    padding: 9px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-calc-porutham:hover {
    background: #0369a1;
}

.porutham-score-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1.5px solid #22c55e;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
}

.porutham-score-num {
    font-size: 24px;
    font-weight: 900;
    color: #15803d;
}

.porutham-status-tag {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.status-excellent { background: #dcfce7; color: #15803d; }
.status-moderate { background: #fef9c3; color: #854d0e; }
.status-low { background: #fee2e2; color: #991b1b; }

.porutham-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 12.5px;
}

.porutham-table th {
    background: #ede9fe;
    color: #4c1d95;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.porutham-table td {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.match-pass {
    color: #16a34a;
    font-weight: 700;
}

.match-fail {
    color: #dc2626;
    font-weight: 700;
}

/* 32. AUTH MODAL & MEMBERSHIP TIERS */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 14px;
}

.auth-overlay.active {
    display: flex;
}

.auth-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.auth-modal-header {
    background: #1e293b;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
}

.auth-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.auth-modal-body {
    padding: 18px 20px;
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background 0.15s ease;
}

.btn-google-login:hover {
    background: #f8fafc;
}

.auth-divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 8px;
    font-size: 11.5px;
    color: #94a3b8;
    text-transform: uppercase;
}

.auth-input-group {
    margin-bottom: 11px;
}

.auth-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
}

.auth-input-group input {
    width: 100%;
    padding: 7px 9px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.btn-auth-submit {
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    padding: 9px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
}

.btn-auth-submit:hover {
    background: #0369a1;
}

.auth-modal-links {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    color: #64748b;
}

.auth-modal-links a {
    color: #0284c7;
    text-decoration: underline;
    cursor: pointer;
}

/* Premium Pricing Tier Cards */
.pricing-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.pricing-card {
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.pricing-card.popular {
    border-color: #0284c7;
    background: #f0f9ff;
}

.pricing-plan-name {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
}

.pricing-price-num {
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    margin: 5px 0;
}

.pricing-cadence {
    font-size: 11px;
    color: #64748b;
}

/* 33. MOBILE RESPONSIVENESS OVERRIDES */
@media (max-width: 600px) {
    .rasi-two-col-grid {
        grid-template-columns: 1fr;
    }
    
    .lucky-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .porutham-form-grid {
        grid-template-columns: 1fr;
    }

    .pricing-tier-grid {
        grid-template-columns: 1fr;
    }
}