/* ==========================================================================
   CALENDERTAMIL.COM - Master Design System
   PageSpeed 100 Optimized | Native Mobile App Feel | Desktop Pro View
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font-tamil: 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color Tokens - Mercury (புதன்) Primary Structural Theme */
  --primary-950: #022C22;
  --primary-900: #064E3B; /* Imperial Deep Emerald */
  --primary-800: #065F46; /* Royal Emerald */
  --primary-700: #047857; /* Vibrant Emerald */
  --primary-600: #059669; /* Rich Jade */
  --primary-500: #10B981; /* Mint Jade */
  --primary-50: #ECFDF5;  /* Soft Mint Surface */

  /* Venus (சுக்கிரன்) Action & CTA Tokens */
  --venus-800: #075985;
  --venus-700: #0369A1;
  --venus-600: #0284C7; /* Luminous Sky Blue */
  --venus-500: #0EA5E9; /* Electric Cyan */
  --venus-400: #38BDF8; /* Cyan Glow */
  --venus-100: #E0F2FE;
  --venus-50: #F0F9FF;  /* Ice Cyan */
  
  --cta-gradient: linear-gradient(135deg, #0284C7 0%, #06B6D4 100%);
  --cta-hover-gradient: linear-gradient(135deg, #0369A1 0%, #0891B2 100%);
  --cta-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);

  /* Jupiter (குரு) Auspicious Highlights */
  --gold-600: #B45309;
  --gold-500: #D97706;
  --gold-400: #F59E0B;
  --gold-100: #FEF3C7;
  --gold-50: #FFFBEB;

  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-surface: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;

  --status-good-bg: #DCFCE7;
  --status-good-text: #15803D;
  --status-bad-bg: #FEE2E2;
  --status-bad-text: #B91C1C;
  --status-warn-bg: #FEF3C7;
  --status-warn-text: #B45309;
  --status-info-bg: #E0F2FE;
  --status-info-text: #0369A1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-gold: 0 4px 20px -2px rgba(217, 119, 6, 0.25);
  --shadow-emerald: 0 4px 20px -2px rgba(4, 120, 87, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --bottom-nav-height: 64px;
}

[data-theme="dark"] {
  --bg-main: #061A14;
  --bg-card: #0D2821;
  --bg-surface: #13382F;
  --text-main: #ECFDF5;
  --text-muted: #94A3B8;
  --border-color: #1A4D40;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
  --primary-50: #06281E;
  --venus-50: #082F49;
  --gold-50: #2D1A04;
}

/* ==========================================================================
   CSS Reset & Performance Basics
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  font-family: var(--font-tamil);
  background-color: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Top Header & Navigation Bar (Professional 2-Tier Master Layout)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .site-header {
  background: #151D2E;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Tier 1: Brand & Utility Top Bar */
.header-top-bar {
  background: var(--bg-card);
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .header-top-bar {
  background: #151D2E;
}

.header-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.site-logo-svg {
  height: 42px;
  width: auto;
  display: block;
}

.logo-text-title {
  fill: var(--primary-900);
  transition: fill 0.25s ease;
}

.logo-text-sub {
  fill: var(--text-muted);
  transition: fill 0.25s ease;
}

[data-theme="dark"] .logo-text-title {
  fill: #34D399;
}

[data-theme="dark"] .logo-text-sub {
  fill: #94A3B8;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s ease;
}

.header-date-badge:hover {
  border-color: var(--gold-500);
  background: var(--gold-50);
}

.theme-btn, .action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.theme-btn:hover, .action-btn:hover {
  background: var(--venus-50);
  color: var(--venus-600);
  border-color: var(--venus-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-btn-label {
  font-size: 0.82rem;
  font-weight: 700;
}

[data-theme="dark"] .theme-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #38BDF8;
  border-color: #38BDF8;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}
[data-theme="dark"] .theme-icon-dark {
  display: inline-block;
}
:root:not([data-theme="dark"]) .theme-icon-light {
  display: inline-block;
}
:root:not([data-theme="dark"]) .theme-icon-dark {
  display: none;
}

/* Tier 2: Dedicated Main Navigation Menu Bar */
.header-nav-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .header-nav-bar {
  background: #0D2821;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.header-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.48rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  min-width: max-content;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  margin-right: 0.05rem;
}

.nav-text {
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--primary-700);
  background: var(--primary-50);
  border-color: rgba(5, 150, 105, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.nav-link:hover .nav-icon {
  transform: scale(1.18);
}

.nav-link.active {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(6, 95, 70, 0.35);
  font-weight: 700;
}

.nav-link.active .nav-icon {
  transform: scale(1.1);
}

[data-theme="dark"] .nav-link {
  background: #13382F;
  border-color: rgba(255, 255, 255, 0.08);
  color: #ECFDF5;
}

[data-theme="dark"] .nav-link:hover {
  background: rgba(5, 150, 105, 0.25);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link.active {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   Live Astrological Ticker & Countdown Bar
   ========================================================================== */
.live-ticker-bar {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #FFFFFF;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  width: 100%;
}

.ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.live-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-status-pill {
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.status-success { background: #16A34A; color: #FFFFFF; }
.status-danger { background: #DC2626; color: #FFFFFF; }
.status-info { background: #0284C7; color: #FFFFFF; }
.status-normal { background: rgba(255, 255, 255, 0.2); color: #FEF3C7; }

.live-clock-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--gold-400);
  font-size: 0.95rem;
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
.main-wrapper {
  max-width: 1280px;
  margin: 1.25rem auto;
  padding: 0 1rem;
  width: 100%;
  flex: 1;
}

.page-grid-2col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 992px) {
  .page-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Daily Sheet Card (இன்றைய பஞ்சாங்கம் கார்டு)
   ========================================================================== */
.daily-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.daily-card-header {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  color: #FFFFFF;
  padding: 1.25rem;
  position: relative;
}

.tamil-date-badge {
  display: inline-block;
  background: var(--gold-500);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
}

.tamil-main-title {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.english-sub-title {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: var(--gold-100);
  font-weight: 600;
}

/* Daily 2x2 Quick Stats Grid */
.daily-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .daily-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.6rem;
  }
}

.stat-box {
  background: var(--bg-card);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-box:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-val-primary {
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  font-weight: 900;
  color: var(--primary-800);
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stat-val-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Detailed Timing Grid */
.timing-section {
  padding: 1.25rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-800);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

.timing-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .timing-grid-2x2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

.timing-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0.5rem;
}

.timing-row-card.highlight-good {
  background: var(--status-good-bg);
  border-color: #86EFAC;
}
.timing-row-card.highlight-bad {
  background: var(--status-bad-bg);
  border-color: #FCA5A5;
}

.t-name {
  font-weight: 700;
  font-size: 0.92rem;
  word-break: break-word;
}
.t-time {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* WhatsApp Share Button */
.share-action-box {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.whatsapp-share-btn {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.2s;
  max-width: 100%;
}

.whatsapp-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Interactive Monthly Calendar Grid
   ========================================================================== */
.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calendar-header-ctrls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.month-year-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-800);
}

.ctrl-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-nav-btn:hover {
  background: var(--primary-600);
  color: #FFFFFF;
}

/* Calendar Day Headers & Cells */
.calendar-matrix {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.cal-day-name {
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.cal-day-name.sun { color: #DC2626; }

.cal-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 80px;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.cal-cell:hover {
  transform: translateY(-2px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.cal-cell.is-today {
  border: 2px solid var(--primary-600);
  background: var(--primary-50);
}

.cal-cell.is-sunday .date-en {
  color: #DC2626;
}

.date-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.date-en {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.date-tamil {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-600);
}

.cell-badges {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-align: center;
}

.badge-muhurtham { background: #FEF08A; color: #854D0E; }
.badge-amavasai { background: #0F172A; color: #FEF08A; }
.badge-pournami { background: #FDE047; color: #713F12; }
.badge-pradosham { background: #E0E7FF; color: #3730A3; }
.badge-holiday { background: #FEE2E2; color: #991B1B; }

/* ==========================================================================
   Sidebar Widgets & Fast Tool Cards
   ========================================================================== */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-800);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-50);
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.tool-link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.tool-link-card:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  transform: translateX(4px);
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-800);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tool-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}
.tool-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Tool Pages: Form & Interactive Cards (Manaiyadi, Porutham, Converter)
   ========================================================================== */
.tool-hero-box {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.tool-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--gold-400);
}

.tool-desc {
  font-size: 1.05rem;
  color: #F1F5F9;
  max-width: 800px;
}

.interactive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-600);
}

.btn-primary {
  background: linear-gradient(135deg, var(--venus-600) 0%, #0891B2 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--venus-700) 0%, #0E7490 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

/* Result Callout Box */
.result-callout {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  border: 2px solid transparent;
}
.result-callout.good { background: var(--status-good-bg); border-color: #86EFAC; color: #14532D; }
.result-callout.bad { background: var(--status-bad-bg); border-color: #FCA5A5; color: #7F1D1D; }
.result-callout.medium { background: var(--status-warn-bg); border-color: #FDE047; color: #713F12; }

.result-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

/* Content SEO Article Section */
.seo-article-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.seo-article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-800);
  margin: 1.5rem 0 0.75rem 0;
}

.seo-article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.25rem 0 0.5rem 0;
}

.seo-article-body p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

.seo-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.seo-article-body th, .seo-article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.seo-article-body th {
  background: var(--bg-surface);
  font-weight: 800;
  color: var(--primary-800);
}

/* ==========================================================================
   Mobile Bottom Navigation Dock (Native App Experience)
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

[data-theme="dark"] .mobile-bottom-dock {
  background: rgba(13, 40, 33, 0.96);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  height: 100%;
  padding: 6px 2px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  transition: transform 0.2s ease;
}

.bottom-tab svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.bottom-tab-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  display: block;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.bottom-tab:hover {
  color: var(--venus-600);
}

.bottom-tab.active {
  color: var(--primary-700);
}

.bottom-tab.active svg {
  transform: translateY(-2px) scale(1.15);
  color: var(--primary-700);
}

.bottom-tab.active .bottom-tab-label {
  color: var(--primary-800);
  font-weight: 800;
}

.bottom-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--venus-500), var(--gold-500));
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.4);
}

[data-theme="dark"] .bottom-tab.active svg {
  color: #38BDF8;
}

[data-theme="dark"] .bottom-tab.active .bottom-tab-label {
  color: #38BDF8;
}

/* Medium Devices (769px to 1180px - Tablets, iPad Pro, Small Laptop Windows) */
@media (max-width: 1180px) and (min-width: 769px) {
  .header-top-inner {
    padding: 0.55rem 1rem;
  }
  .header-nav-inner {
    padding: 0.4rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .header-nav-inner::-webkit-scrollbar {
    display: none;
  }
  .desktop-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: auto;
  }
  .nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.86rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .header-top-inner {
    padding: 0.5rem 0.85rem;
  }
  .header-date-badge {
    display: none;
  }
  .theme-btn-label {
    display: none;
  }
  .theme-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }
  .site-logo-svg {
    height: 36px;
    width: auto;
  }
  .header-nav-bar {
    display: none;
  }
  .mobile-bottom-dock {
    display: grid;
  }
  body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
  }
  .cal-cell {
    min-height: 70px;
    padding: 0.25rem;
  }
  .date-en {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.25rem 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links-row a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-links-row a:hover {
  color: var(--venus-600);
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Horai Master Table & Inline Ubha Button */
.horai-master-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.horai-master-table th, .horai-master-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.ubha-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--venus-50);
  border: 1px solid var(--venus-400);
  color: var(--venus-700);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  margin-top: 0.35rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.ubha-btn-inline:hover {
  background: var(--venus-500);
  border-color: var(--venus-500);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

[data-theme="dark"] .ubha-btn-inline {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38BDF8;
}

[data-theme="dark"] .ubha-btn-inline:hover {
  background: rgba(14, 165, 233, 0.35);
  border-color: #38BDF8;
  color: #FFFFFF;
}

/* ==========================================================================
   Weekly Horai Master Table Responsive Styles
   ========================================================================== */
.weekly-horai-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.weekly-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.weekly-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weekly-tab-btn.active {
  background: var(--primary-800);
  color: #FFFFFF;
  border-color: var(--primary-800);
}

.weekly-day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.weekly-day-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.weekly-day-pill.active {
  background: var(--primary-700);
  color: #FFFFFF;
  border-color: var(--primary-700);
}

.weekly-fixed-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(0.72rem, 1.3vw, 0.85rem);
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.weekly-fixed-table th {
  padding: 0.6rem 0.1rem;
  background: var(--primary-50);
  color: var(--primary-900);
  font-weight: 800;
  font-size: clamp(0.68rem, 1.05vw, 0.82rem);
  border: 1px solid var(--border-color);
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
}

.weekly-fixed-table td {
  padding: 0.5rem 0.1rem;
  border: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: clamp(0.68rem, 1.05vw, 0.82rem);
  line-height: 1.25;
  word-break: normal;
  overflow: visible;
}

.weekly-fixed-table tr:nth-child(even) {
  background: var(--bg-surface);
}

.weekly-badge-subha {
  color: #15803d;
  font-weight: 800;
  background: rgba(220, 252, 231, 0.6);
  border-radius: 4px;
  padding: 2px 4px;
  display: inline-block;
}

.weekly-badge-neutral {
  color: #1d4ed8;
  font-weight: 700;
  background: rgba(239, 246, 255, 0.6);
  border-radius: 4px;
  padding: 2px 4px;
  display: inline-block;
}

.weekly-badge-asubha {
  color: #b91c1c;
  font-weight: 700;
  background: rgba(254, 242, 242, 0.6);
  border-radius: 4px;
  padding: 2px 4px;
  display: inline-block;
}

[data-theme="dark"] .weekly-tab-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

[data-theme="dark"] .weekly-fixed-table th {
  background: rgba(190, 18, 60, 0.2);
  color: #FDA4AF;
}

[data-theme="dark"] .weekly-badge-subha {
  color: #86EFAC;
  background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .weekly-badge-neutral {
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .weekly-badge-asubha {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 600px) {
  .weekly-horai-container {
    padding: 0.75rem 0.5rem;
  }
  .weekly-tab-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    flex: 1 1 auto;
    text-align: center;
  }
  .weekly-fixed-table {
    font-size: 0.72rem;
  }
  .weekly-fixed-table th, .weekly-fixed-table td {
    padding: 0.45rem 0.15rem;
  }
}

/* ==========================================================================
   Side Menu Navigation Widgets (Important Dates & Festivals / Holidays)
   ========================================================================== */
.side-nav-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.15rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.side-nav-widget:hover {
  border-color: var(--primary-400);
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.08);
}

[data-theme="dark"] .side-nav-widget:hover {
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.side-nav-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid var(--primary-100);
}

[data-theme="dark"] .side-nav-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.side-nav-header-icon {
  color: var(--gold-500);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-nav-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  margin: 0;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .side-nav-header-title {
  color: #F1F5F9;
}

.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.side-nav-item {
  border-bottom: 1px solid var(--border-color);
}

.side-nav-item:last-child {
  border-bottom: none;
}

.side-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.35rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav-link-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.side-nav-arrow {
  color: #94A3B8;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.side-nav-text-en {
  font-weight: 700;
  color: #2563EB;
  transition: color 0.2s ease;
}

[data-theme="dark"] .side-nav-text-en {
  color: #60A5FA;
}

.side-nav-text-ta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.side-nav-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--status-good-bg);
  color: #16A34A;
  white-space: nowrap;
}

.side-nav-link:hover {
  background: rgba(6, 95, 70, 0.05);
  padding-left: 0.65rem;
}

[data-theme="dark"] .side-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.side-nav-link:hover .side-nav-arrow {
  transform: translateX(3px);
  color: var(--primary-600);
}

.side-nav-link:hover .side-nav-text-en {
  color: var(--primary-700);
}

[data-theme="dark"] .side-nav-link:hover .side-nav-text-en {
  color: var(--accent-venus-light);
}

/* ==========================================================================
   Font Size Scaling System
   ========================================================================== */
html[data-font-scale="sm"] { font-size: 14px; }
html[data-font-scale="md"] { font-size: 16px; }
html[data-font-scale="lg"] { font-size: 18px; }

.font-scaler-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
  height: 36px;
}

.font-scale-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0 0.55rem;
  height: 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-scale-btn:hover {
  color: var(--text-main);
}

.font-scale-btn.active {
  background: var(--primary-800);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .font-scale-btn.active {
  background: var(--primary-600);
  color: #FFFFFF;
}

/* ==========================================================================
   City / District Location Selector & Modal Styles
   ========================================================================== */
.loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-900);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

[data-theme="dark"] .loc-btn {
  color: #34D399;
}

.loc-btn:hover {
  border-color: var(--gold-500);
  background: var(--gold-50);
  transform: translateY(-1px);
}

.loc-modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.2s ease;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.loc-modal-header {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: #FFFFFF;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loc-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loc-header-icon {
  font-size: 1.6rem;
}

.loc-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.loc-modal-sub {
  font-size: 0.82rem;
  color: var(--gold-100);
  margin: 0;
}

.loc-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.loc-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.loc-search-box {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.loc-search-icon {
  position: absolute;
  left: 1.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.loc-search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loc-search-box input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.loc-list-container {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 60vh;
}

.loc-section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .loc-section-title {
  color: var(--accent-venus-light);
}

.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.loc-item-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.loc-item-btn:hover {
  background: var(--venus-50);
  border-color: var(--venus-400);
  transform: translateY(-1px);
}

.loc-item-btn.is-selected {
  background: var(--primary-50);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 1.5px var(--primary-600);
}

.loc-item-name-ta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.loc-item-name-en {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.loc-check {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-700);
  font-weight: 900;
  font-size: 1rem;
}

/* ==========================================================================
   Solar Timings Bar & Date Jump Bar Styles
   ========================================================================== */
.solar-timings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

[data-theme="dark"] .solar-timings-grid {
  background: rgba(45, 26, 4, 0.4);
  border-color: rgba(217, 119, 6, 0.35);
}

.solar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.solar-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.solar-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.solar-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-900);
}

[data-theme="dark"] .solar-val {
  color: #FDE68A;
}

.loc-change-item {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.loc-change-item:hover {
  transform: translateY(-1px);
}

.loc-link-text {
  color: var(--venus-600) !important;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .solar-timings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 0.5rem;
  }
}

/* Quick Date Jump Toolbar */
.quick-date-jump-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.jump-info-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jump-badge-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.jump-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-900);
  margin: 0;
}

[data-theme="dark"] .jump-heading {
  color: #34D399;
}

.jump-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.jump-form-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.quick-date-input {
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--primary-600);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
}

.quick-date-btn {
  background: var(--cta-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--cta-shadow);
  white-space: nowrap;
}

.quick-date-btn:hover {
  background: var(--cta-hover-gradient);
  transform: translateY(-1px);
}

.quick-date-reset-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 820px) {
  .quick-date-jump-card {
    flex-direction: column;
    align-items: stretch;
  }
  .jump-form-inline {
    justify-content: space-between;
  }
  .quick-date-input {
    flex: 1;
  }
}

/* ==========================================================================
   Print / PDF CSS Rules
   ========================================================================== */
.print-cal-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.print-cal-btn:hover {
  background: var(--gold-50);
  border-color: var(--gold-500);
  color: var(--gold-600);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  /* Hide navigation, widgets, toolbars, ads, footers during print */
  .site-header,
  .live-ticker-bar,
  .quick-date-jump-card,
  .share-action-box,
  .cal-filter-btn,
  .ctrl-btn-group,
  .sidebar-col,
  .mobile-bottom-dock,
  .site-footer,
  .modal-backdrop,
  .theme-btn,
  .font-scaler-group,
  .loc-btn,
  button {
    display: none !important;
  }

  .main-wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .page-grid-2col {
    display: block !important;
  }

  .main-content-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .daily-hero-card,
  .calendar-card {
    border: 1px solid #CCCCCC !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 15px !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .calendar-matrix {
    border: 1px solid #333333 !important;
  }

  .cal-cell {
    border: 1px solid #DDDDDD !important;
    min-height: 65px !important;
    color: #000000 !important;
    background: #FFFFFF !important;
  }

  .cal-day-name {
    background: #F1F5F9 !important;
    color: #000000 !important;
    font-weight: bold;
    border-bottom: 1px solid #000000 !important;
  }

  .badge-tag {
    border: 1px solid #999999 !important;
    background: #FAFAFA !important;
    color: #000000 !important;
    font-size: 7pt !important;
  }

  .solar-timings-grid {
    border: 1px solid #DDDDDD !important;
    background: #F9FAFB !important;
  }
}

/* ==========================================================================
   SEO FAQ Accordion Component & Rich Schema UI
   ========================================================================== */
.faq-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.faq-header-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-100);
}

[data-theme="dark"] .faq-header-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.faq-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-900);
  margin: 0;
}

[data-theme="dark"] .faq-header-title {
  color: #34D399;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary-400);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.faq-icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(6, 95, 70, 0.1);
  color: var(--primary-700);
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

[data-theme="dark"] .faq-icon-toggle {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(180deg);
  background: var(--primary-700);
  color: #FFFFFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0.25rem 1.15rem 1.15rem 1.15rem;
}

/* ==========================================================================
   Contextual Related Tools & Internal Linking Grid
   ========================================================================== */
.related-tools-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.related-tools-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .related-tools-title {
  color: #F1F5F9;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.related-tool-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.related-tool-item:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .related-tool-item:hover {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
}

.related-tool-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.related-tool-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-900);
  line-height: 1.25;
}

[data-theme="dark"] .related-tool-name {
  color: #34D399;
}

.related-tool-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WhatsApp One-Click Viral Share Bar
   ========================================================================== */
.whatsapp-share-box {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  flex-wrap: wrap;
}

.whatsapp-share-text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.whatsapp-share-btn {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-share-btn:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* ==========================================================================
   4-Column Pre-Footer SEO Directory Link Hub
   ========================================================================== */
.pre-footer-directory {
  background: var(--bg-card);
  border-top: 2px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2.5rem 1.5rem;
  margin-top: 3.5rem;
}

[data-theme="dark"] .pre-footer-directory {
  background: #0B1720;
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.pre-footer-inner {
  max-width: var(--max-w-main);
  margin: 0 auto;
}

.pre-footer-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--primary-100);
  flex-wrap: wrap;
  gap: 0.75rem;
}

[data-theme="dark"] .pre-footer-main-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.pre-footer-main-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

[data-theme="dark"] .pre-footer-main-title {
  color: #34D399;
}

.pre-footer-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-600);
  background: var(--gold-50);
  border: 1px solid var(--gold-400);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .pre-footer-badge {
  background: rgba(217, 119, 6, 0.15);
  color: #FDE68A;
  border-color: rgba(217, 119, 6, 0.35);
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

.pre-footer-col {
  display: flex;
  flex-direction: column;
}

.pre-footer-col-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold-500);
}

[data-theme="dark"] .pre-footer-col-header {
  color: #F1F5F9;
  border-bottom-color: #059669;
}

.pre-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pre-footer-link-item {
  display: flex;
  align-items: flex-start;
}

.pre-footer-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pre-footer-link:before {
  content: "›";
  color: var(--gold-500);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
}

.pre-footer-link:hover {
  color: var(--primary-600);
  transform: translateX(3px);
}

[data-theme="dark"] .pre-footer-link:hover {
  color: #34D399;
}

@media (max-width: 1024px) {
  .pre-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .pre-footer-directory {
    padding: 2rem 1rem 1.5rem 1rem;
    margin-top: 2rem;
  }
  .pre-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}


