/* ==========================================================================
   HolidaysLK - Clean Modern Editorial & Apple-Grade Utility Theme
   Crafted with human-first design: crisp typography, soft shadows, warm contrast.
   ========================================================================== */

:root {
  /* Warm Archival Linen & Editorial Paper Theme */
  --bg-app: #faf9f6;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f2efe9;
  --bg-surface-elevated: #ffffff;
  --border-subtle: #e7e4dc;
  --border-strong: #d2cdc2;
  --border-focus: #1e3a8a;

  --text-main: #181715;
  --text-body: #3d3a35;
  --text-muted: #736f66;
  --text-light: #9e9a91;

  --ceylon-blue: #1e3a8a;
  --ceylon-blue-light: #f0f5fc;
  --ceylon-blue-border: #cbdcf4;

  --gold-amber: #b45309;
  --gold-amber-light: #fef8eb;
  --gold-amber-border: #fde68a;

  --emerald-green: #15803d;
  --emerald-green-light: #f0fdf4;
  --emerald-green-border: #bbf7d0;

  --terracotta: #c2410c;
  --terracotta-light: #fff7ed;
  --terracotta-border: #fed7aa;

  --purple-indigo: #4338ca;
  --purple-indigo-light: #f5f3ff;
  --purple-indigo-border: #e0e7ff;

  --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(28, 25, 23, 0.05), 0 2px 4px -2px rgba(28, 25, 23, 0.03);
  --shadow-lg: 0 12px 24px -4px rgba(28, 25, 23, 0.07), 0 4px 8px -2px rgba(28, 25, 23, 0.03);
  --shadow-hover: 0 16px 32px -4px rgba(28, 25, 23, 0.09), 0 6px 12px -3px rgba(28, 25, 23, 0.04);

  --font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme (Warm Obsidian & Espresso Slate - High Legibility, Non-Neon) */
[data-theme="dark"] {
  --bg-app: #121316;
  --bg-surface: #181a21;
  --bg-surface-subtle: #21242d;
  --bg-surface-elevated: #282c37;
  --border-subtle: #2b2f3b;
  --border-strong: #3b4152;
  --border-focus: #60a5fa;

  --text-main: #f5f4f0;
  --text-body: #d1cfc7;
  --text-muted: #96938a;
  --text-light: #6a6861;

  --ceylon-blue: #60a5fa;
  --ceylon-blue-light: rgba(59, 130, 246, 0.12);
  --ceylon-blue-border: rgba(96, 165, 250, 0.25);

  --gold-amber: #fbbf24;
  --gold-amber-light: rgba(245, 158, 11, 0.12);
  --gold-amber-border: rgba(251, 191, 36, 0.25);

  --emerald-green: #34d399;
  --emerald-green-light: rgba(16, 185, 129, 0.12);
  --emerald-green-border: rgba(52, 211, 153, 0.25);

  --terracotta: #fb923c;
  --terracotta-light: rgba(234, 88, 12, 0.14);
  --terracotta-border: rgba(249, 115, 22, 0.28);

  --purple-indigo: #a5b4fc;
  --purple-indigo-light: rgba(99, 102, 241, 0.12);
  --purple-indigo-border: rgba(165, 180, 252, 0.25);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 16px 32px -4px rgba(0, 0, 0, 0.65);
}

/* Reset & Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navigation Header */
header.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand-nav-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-logo-img {
  height: 56px;
  width: auto;
  max-width: 290px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .site-logo-img {
  transform: scale(1.04);
}

.footer-brand .site-logo-img {
  height: 48px;
  max-width: 250px;
}

.brand-logo .lion-icon {
  font-size: 1.4rem;
}

.brand-logo .brand-highlight {
  color: var(--ceylon-blue);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pill Selectors */
.year-selector, .lang-selector {
  display: flex;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.segmented-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

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

.segmented-btn.active {
  background: var(--bg-surface);
  color: var(--ceylon-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.theme-toggle-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

/* Hero Section */
.hero-section {
  padding: 1.5rem 0 1.5rem;
  text-align: center;
}

/* Hero Banner */
.hero-glass-banner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem 0.5rem;
  text-align: center;
  margin: 0.25rem auto 1rem;
  max-width: 900px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
}

[data-theme="light"] .hero-glass-banner {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .live-pulse-badge {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px #10b981;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.7;
    box-shadow: 0 0 14px #10b981;
  }
}

.hero-title-glass {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.65rem 0;
  color: var(--text-main);
}

.hero-accent-text,
.hero-gradient-text {
  color: inherit;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
  display: inline;
}

[data-theme="dark"] .hero-accent-text,
[data-theme="dark"] .hero-gradient-text {
  color: inherit;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: currentColor !important;
  display: inline;
}

.hero-pills-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.mini-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  cursor: default;
}

.mini-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .mini-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mini-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  background: var(--ceylon-blue-light);
  border: 1px solid var(--ceylon-blue-border);
  border-radius: var(--radius-pill);
  color: var(--ceylon-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* Countdown Card */
.countdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  position: relative;
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.holiday-target-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.holiday-target-date {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Countdown Timer (Days-Only Focus) */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.countdown-box {
  min-width: 140px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.8rem;
  text-align: center;
}

.countdown-digit {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ceylon-blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.countdown-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-action:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.btn-action.btn-whatsapp {
  background: #ffffff;
  border: 1.5px solid #16a34a;
  color: #15803d;
  font-weight: 750;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.08);
}

.btn-action.btn-whatsapp:hover {
  background: #f0fdf4;
  border-color: #15803d;
  color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.16);
}

[data-theme="dark"] .btn-action.btn-whatsapp {
  background: rgba(22, 163, 74, 0.12);
  border-color: #22c55e;
  color: #4ade80;
}

[data-theme="dark"] .btn-action.btn-whatsapp:hover {
  background: rgba(22, 163, 74, 0.22);
  border-color: #4ade80;
  color: #86efac;
}

.whatsapp-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon-btn.icon-whatsapp {
  color: #25d366;
}

.icon-btn.icon-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  color: #20bd5a;
}

.btn-action.btn-primary {
  background: var(--ceylon-blue);
  border-color: var(--ceylon-blue);
  color: #ffffff;
}

.btn-action.btn-primary:hover {
  background: #1e40af;
}

/* Statistics Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ceylon-blue);
}

.stat-card.gold .stat-number { color: var(--gold-amber); }
.stat-card.emerald .stat-number { color: var(--emerald-green); }
.stat-card.purple .stat-number { color: var(--purple-indigo); }

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Long Weekend Alert Banner */
.long-weekend-banner {
  background: var(--emerald-green-light);
  border: 1px solid var(--emerald-green-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.long-weekend-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-green);
  margin-bottom: 0.2rem;
}

.long-weekend-text p {
  color: var(--text-body);
  font-size: 0.9rem;
}

.long-weekend-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.long-weekend-banner .btn-action.btn-whatsapp {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  gap: 0.35rem;
  box-shadow: none;
}

.long-weekend-banner .btn-action.btn-whatsapp .whatsapp-icon {
  width: 1rem;
  height: 1rem;
}

/* Toolbar & Filters (Clean Seamless Control Bar) */
.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.toolbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.toolbar-top-row .search-box {
  flex: 1;
  position: relative;
  margin-bottom: 0;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.1rem 0.75rem 2.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-input:focus {
  border-color: #2563eb;
  background: var(--bg-surface);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), var(--shadow-sm);
}

.search-icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-box:focus-within .search-icon {
  color: #2563eb;
}

.filter-chips-rail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 3px 1px;
}

.filter-chips-rail::-webkit-scrollbar {
  display: none;
}

.filter-separator {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 0.15rem;
  flex-shrink: 0;
  opacity: 0.45;
}

.chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}

.chip-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.chip-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  font-weight: 700;
}

.chip-btn.chip-leave-hack.active {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(124, 58, 237, 0.4);
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  gap: 3px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

.view-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.view-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
}

/* Holiday Cards Grid (View 2 - Grouped by Month) */
.holidays-grid-container {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.grid-month-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.65rem;
  margin-bottom: 0.25rem;
}

.grid-month-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.grid-month-icon {
  font-size: 1.15rem;
}

.grid-month-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.grid-month-year {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.grid-month-count-pill {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.grid-month-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem;
}

.holiday-tile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.holiday-tile-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.holiday-tile-card.is-poya {
  border-top: 3.5px solid var(--gold-amber);
}

.holiday-tile-card.is-long-weekend {
  border-top: 3.5px solid var(--emerald-green);
}

.holiday-tile-card.is-leave-hack {
  border-top: 3.5px solid #8b5cf6;
}

.tile-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.tile-date-badge {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.65rem;
  text-align: center;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tile-date-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.tile-date-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tile-day-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-day-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.tile-year-val {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tile-actions {
  display: flex;
  gap: 0.35rem;
}

.tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.tile-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

/* Holiday List Card View */
.holidays-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.holiday-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.holiday-row-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.holiday-row-card.is-poya {
  border-left: 4px solid var(--gold-amber);
}

.holiday-row-card.is-long-weekend {
  border-left: 4px solid var(--emerald-green);
}

.holiday-date-col {
  display: flex;
  flex-direction: column;
}

.holiday-day-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.holiday-date-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.holiday-info-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.holiday-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.badge-poya { background: var(--gold-amber-light); color: var(--gold-amber); border: 1px solid var(--gold-amber-border); }
.badge-public { background: var(--ceylon-blue-light); color: var(--ceylon-blue); border: 1px solid var(--ceylon-blue-border); }
.badge-bank { background: var(--purple-indigo-light); color: var(--purple-indigo); border: 1px solid var(--purple-indigo-border); }
.badge-mercantile { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-long-weekend { background: var(--emerald-green-light); color: var(--emerald-green); border: 1px solid var(--emerald-green-border); font-weight: 800; }

.holiday-actions-col {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.icon-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

/* Calendar Grid View */
.calendar-view-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.month-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.month-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.85rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekday {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.25rem 0;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-body);
}

.cal-day.is-holiday {
  background: var(--ceylon-blue-light);
  color: var(--ceylon-blue);
  font-weight: 800;
  border: 1px solid var(--ceylon-blue-border);
  cursor: pointer;
}

.cal-day.is-holiday.is-poya {
  background: var(--gold-amber-light);
  color: var(--gold-amber);
  border-color: var(--gold-amber-border);
}

.cal-day.is-holiday.is-long-weekend {
  box-shadow: inset 0 0 0 2px var(--emerald-green);
}

.cal-day.is-today {
  border: 2px solid #ef4444 !important;
}

.cal-day.empty {
  opacity: 0.2;
}

/* Optimizer Calendar Leave & Vacation Days */
.cal-day.is-optimizer-leave {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  font-weight: 900 !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35) !important;
  transform: scale(1.05);
  z-index: 2;
  cursor: pointer;
}

.cal-day.is-optimizer-vacation {
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-weight: 800 !important;
  border: 1.5px solid #6ee7b7 !important;
  cursor: pointer;
}

.legend-dot.dot-opt-leave {
  background: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.legend-dot.dot-opt-vacation {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Footer Clean Modern Design */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2.5rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  text-align: left;
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand .brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links-col ul,
.footer-col ul,
footer ul {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-col ul li,
.footer-col ul li,
footer ul li {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-col ul li a:hover {
  color: #2563eb;
}

.footer-badge {
  display: inline-block;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.footer-disclaimer {
  max-width: 680px;
  margin: 0 auto 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.85rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .holiday-row-card { grid-template-columns: 1fr; gap: 0.75rem; }
}


/* Holiday Detail Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 580px;
  width: 100%;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease-in-out;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-holiday-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.modal-holiday-subtitles {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.modal-date-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-date-icon {
  font-size: 1.5rem;
}

.modal-date-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.modal-description-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Long Weekend Visual Timeline Breakdown */
.modal-timeline-box {
  background: var(--emerald-green-light);
  border: 1px solid var(--emerald-green-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-timeline-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-green);
  margin-bottom: 0.75rem;
}

.timeline-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-pill {
  background: var(--bg-surface);
  border: 1px solid var(--emerald-green-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.timeline-pill.current-holiday {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
}

.timeline-pill.current-holiday .timeline-pill-day,
.timeline-pill.current-holiday .timeline-pill-date,
.timeline-pill.current-holiday .timeline-pill-label {
  color: #ffffff !important;
}

.timeline-pill-day {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-pill-date {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.15rem 0;
}

.timeline-pill-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--emerald-green);
}

.timeline-summary-text {
  font-size: 0.85rem;
  color: var(--text-body);
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-actions .btn-action {
  flex: 1;
  justify-content: center;
}



/* --- INLINE EXPANDABLE ACCORDION CARD STYLES --- */
.holiday-row-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.holiday-card-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.holiday-row-card:hover {
  border-color: var(--ceylon-blue-border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface-subtle);
}

.holiday-row-card.is-expanded {
  border-color: var(--ceylon-blue);
  box-shadow: var(--shadow-hover);
  background: var(--bg-surface);
}

.holiday-chevron {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.holiday-row-card.is-expanded .holiday-chevron {
  transform: rotate(180deg);
  background: var(--ceylon-blue);
  color: #ffffff;
  border-color: var(--ceylon-blue);
}

/* Expandable Drawer */
.holiday-expand-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
  background: var(--bg-surface-subtle);
  border-top: 1px solid transparent;
  padding: 0 1.5rem;
}

.holiday-row-card.is-expanded .holiday-expand-drawer {
  max-height: 800px;
  opacity: 1;
  border-top-color: var(--border-subtle);
  padding: 1.5rem;
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-multilingual-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.drawer-name-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: var(--text-body);
}

.drawer-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.drawer-desc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* Inline Long Weekend Sequence Visualizer */
.drawer-timeline-box {
  background: var(--emerald-green-light);
  border: 1px solid var(--emerald-green-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.drawer-timeline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald-green);
  margin-bottom: 0.85rem;
}

.drawer-timeline-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.drawer-timeline-pill {
  background: var(--bg-surface);
  border: 1px solid var(--emerald-green-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.drawer-timeline-pill.is-active-holiday {
  background: #047857;
  border-color: #047857;
}

.drawer-timeline-pill.is-active-holiday .pill-day,
.drawer-timeline-pill.is-active-holiday .pill-date,
.drawer-timeline-pill.is-active-holiday .pill-label {
  color: #ffffff !important;
}

.drawer-timeline-pill .pill-day {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.drawer-timeline-pill .pill-date {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.2rem 0;
}

.drawer-timeline-pill .pill-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald-green);
}

.drawer-timeline-note {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.drawer-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.drawer-actions-bar .btn-action {
  flex: 1;
  min-width: 200px;
  justify-content: center;
}



/* --- SMART LEAVE HACK / VACATION PLANNER STYLES --- */
:root {
  --leave-amber: #d97706;
  --leave-amber-bg: #fffbeb;
  --leave-amber-border: #fde68a;
  --leave-amber-pill: #b45309;
}

[data-theme="dark"] {
  --leave-amber: #f59e0b;
  --leave-amber-bg: rgba(245, 158, 11, 0.12);
  --leave-amber-border: rgba(245, 158, 11, 0.28);
  --leave-amber-pill: #f59e0b;
}

.badge-leave-hack {
  background: var(--leave-amber-bg);
  color: var(--leave-amber);
  border: 1px solid var(--leave-amber-border);
}

.drawer-leave-hack-box {
  background: var(--leave-amber-bg);
  border: 1px solid var(--leave-amber-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.drawer-leave-hack-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--leave-amber);
  margin-bottom: 0.85rem;
}

.drawer-leave-hack-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.leave-hack-pill {
  background: var(--bg-surface);
  border: 1px solid var(--leave-amber-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.leave-hack-pill.is-bridge-day {
  background: #d97706;
  border-color: #d97706;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
}

.leave-hack-pill.is-bridge-day .pill-day,
.leave-hack-pill.is-bridge-day .pill-date,
.leave-hack-pill.is-bridge-day .pill-label {
  color: #ffffff !important;
}

.leave-hack-pill.is-holiday-day {
  background: var(--ceylon-blue-light);
  border-color: var(--ceylon-blue-border);
}

.leave-hack-pill.is-holiday-day .pill-label {
  color: var(--ceylon-blue);
}

.drawer-leave-hack-note {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.banner-leave-hack-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
}



/* --- ANNUAL LEAVE OPTIMIZER STYLES --- */
.optimizer-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.optimizer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.optimizer-title-group h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.optimizer-title-group p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Compact Optimizer Control Hub */
.optimizer-hub-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.hub-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hub-leave-control {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  padding: 0.25rem 0;
}

.hub-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.leave-stepper-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 6px;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
}

.stepper-btn {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 750;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.stepper-btn:hover {
  background: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
  transform: scale(1.06);
}

.stepper-btn:active {
  transform: scale(0.94);
}

.stepper-value {
  font-weight: 850;
  font-size: 1.2rem;
  color: var(--text-main);
  padding: 0 1rem;
  min-width: 96px;
  text-align: center;
  user-select: none;
  letter-spacing: -0.02em;
}

.hub-slider-wrap {
  flex: 1 1 140px;
  min-width: 110px;
  display: flex;
  align-items: center;
}

.leave-slider-compact {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.leave-slider-compact::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

.leave-slider-compact::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.hub-quick-presets {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-preset-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.quick-preset-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* Real-Time Live HUD Stats */
.hub-metrics-hud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hud-pill.hud-leave {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.hud-leave .hud-val {
  color: #d97706;
}

[data-theme="dark"] .hud-leave .hud-val {
  color: #fbbf24;
}

.hud-pill.hud-days,
.hud-pill.hud-multiplier,
.hud-pill.hud-trips {
  border-color: var(--border-subtle);
  background: var(--bg-surface-subtle);
}

.itinerary-budget-callout {
  background: var(--bg-surface);
  border: 1.5px solid var(--ceylon-blue-border);
  border-left: 5px solid var(--ceylon-blue);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hud-icon {
  font-size: 1.05rem;
}

.hud-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hud-val {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.hud-days .hud-val,
.hud-multiplier .hud-val,
.hud-trips .hud-val {
  color: var(--text-main);
}

.hud-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hub-share-btn {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

/* Toolbar Row */
.hub-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.hub-scope-chips, .hub-strategy-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hub-scope-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.2rem;
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.optimizer-metric-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.metric-number-val {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-leave-spent { color: #d97706; }
.metric-days-unlocked { color: #059669; }
.metric-multiplier { color: #2563eb; }
.metric-ultra-holidays { color: #7c3aed; }

.metric-label-val {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* Generated Itinerary Packages */
.optimizer-itinerary-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.itinerary-packages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.package-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.package-title-row {
  flex: 1 1 auto;
}

.package-title-row h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.package-dates-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.package-stats-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
}

.badge-vacation-days {
  background: var(--emerald-green-light);
  color: var(--emerald-green);
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  border: 1px solid var(--emerald-green-border);
}

[data-theme="dark"] .badge-vacation-days {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.25);
  color: #34d399;
}

.badge-leave-cost {
  background: var(--gold-amber-light);
  color: var(--gold-amber);
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  border: 1px solid var(--gold-amber-border);
}

[data-theme="dark"] .badge-leave-cost {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

.package-timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.package-day-pill {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.4rem;
  text-align: center;
  transition: transform 0.15s ease;
}

.package-day-pill:hover {
  transform: translateY(-2px);
}

.package-day-pill.is-leave {
  background: #ffedd5;
  border: 1.5px solid #ea580c;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.15);
}

.package-day-pill.is-leave .p-day {
  color: #c2410c !important;
  font-weight: 800;
}

.package-day-pill.is-leave .p-date {
  color: #9a3412 !important;
  font-weight: 850;
}

.package-day-pill.is-leave .p-label {
  color: #c2410c !important;
  font-weight: 800;
}

.package-day-pill.is-poya {
  background: #fefce8;
  border: 1.5px solid #facc15;
  box-shadow: 0 1px 2px rgba(234, 179, 8, 0.12);
}

.package-day-pill.is-poya .p-day {
  color: #854d0e !important;
  font-weight: 800;
}

.package-day-pill.is-poya .p-date {
  color: #713f12 !important;
  font-weight: 850;
}

.package-day-pill.is-poya .p-label {
  color: #854d0e !important;
  font-weight: 750;
}

[data-theme="dark"] .package-day-pill.is-leave {
  background: rgba(234, 88, 12, 0.28);
  border-color: #ea580c;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.3);
}

[data-theme="dark"] .package-day-pill.is-leave .p-day {
  color: #fdba74 !important;
}

[data-theme="dark"] .package-day-pill.is-leave .p-date {
  color: #ffedd5 !important;
}

[data-theme="dark"] .package-day-pill.is-leave .p-label {
  color: #fed7aa !important;
}

[data-theme="dark"] .package-day-pill.is-poya {
  background: rgba(234, 179, 8, 0.2);
  border-color: #eab308;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.25);
}

[data-theme="dark"] .package-day-pill.is-poya .p-day {
  color: #fde047 !important;
}

[data-theme="dark"] .package-day-pill.is-poya .p-date {
  color: #fef9c3 !important;
}

[data-theme="dark"] .package-day-pill.is-poya .p-label {
  color: #fef08a !important;
}

.package-day-pill.is-holiday {
  background: #eff6ff;
  border: 1.5px solid #60a5fa;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

.package-day-pill.is-holiday .p-day {
  color: #1d4ed8 !important;
  font-weight: 800;
}

.package-day-pill.is-holiday .p-date {
  color: #1e3a8a !important;
  font-weight: 850;
}

.package-day-pill.is-holiday .p-label {
  color: #1e40af !important;
  font-weight: 750;
}

[data-theme="dark"] .package-day-pill.is-holiday {
  background: rgba(59, 130, 246, 0.22);
  border-color: #60a5fa;
}

[data-theme="dark"] .package-day-pill.is-holiday .p-day {
  color: #93c5fd !important;
}

[data-theme="dark"] .package-day-pill.is-holiday .p-date {
  color: #dbeafe !important;
}

[data-theme="dark"] .package-day-pill.is-holiday .p-label {
  color: #bfdbfe !important;
}

.package-day-pill .p-day {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.package-day-pill .p-date {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-main);
  margin: 0.15rem 0;
  line-height: 1.1;
}

.package-day-pill .p-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.package-action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
}

.package-hr-tip {
  font-size: 0.86rem;
  color: var(--text-body);
  flex: 1 1 280px;
  line-height: 1.5;
}

.package-hr-tip strong {
  color: var(--terracotta);
}



/* Top Navigation Links */
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-link-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
  border-color: var(--border-subtle);
}

.nav-link-btn.active {
  color: #2563eb;
  background: var(--ceylon-blue-light);
  border-color: var(--ceylon-blue-border);
}

.nav-link-btn.highlight {
  color: #ffffff;
}

.banner-optimizer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--text-main);
  color: var(--bg-surface) !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.banner-optimizer-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}



/* Optimizer Strategy & Sort Toolbar */
.optimizer-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.optimizer-strategies {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.strategy-chip {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.strategy-chip:hover {
  border-color: var(--ceylon-blue-border);
  color: var(--text-main);
}

.strategy-chip.active {
  background: var(--ceylon-blue-light);
  border-color: var(--ceylon-blue);
  color: var(--ceylon-blue);
}

.optimizer-sort-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* "I'm Feeling Lucky" Button */
.btn-shuffle.btn-lucky {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(139, 92, 246, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-shuffle.btn-lucky:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.5);
  background-position: right center;
}

.btn-shuffle.btn-lucky:active {
  transform: translateY(0) scale(0.98);
}

.lucky-sparkle {
  font-size: 1rem;
  display: inline-block;
  animation: luckySparkle 2s ease-in-out infinite;
}

@keyframes luckySparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(15deg); }
}

/* Month & ROI Segmented Control Redesign */
.segmented-control.sort-segmented {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.seg-btn.sort-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.36rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.seg-btn.sort-btn .sort-icon {
  font-size: 0.9rem;
}

.seg-btn.sort-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .seg-btn.sort-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}

.seg-btn.sort-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.month-group-container {
  margin-bottom: 2rem;
}

.month-group-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid #2563eb;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}

.month-group-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.month-group-stat {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid #a7f3d0;
}

[data-theme="dark"] .month-group-stat {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.3);
  color: #34d399;
}



/* Rich Calendar Floating Tooltip */
.cal-tooltip-overlay {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 0.85rem 1.1rem;
  max-width: 280px;
  width: max-content;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cal-tooltip-overlay.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.tooltip-icon {
  font-size: 1.1rem;
  line-height: 1.2;
}

.tooltip-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.tooltip-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tooltip-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.tooltip-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.tooltip-desc {
  font-size: 0.75rem;
  color: var(--text-body);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.tooltip-click-hint {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Hover glow for calendar days */
.cal-day {
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cal-day:hover {
  transform: scale(1.12);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cal-day.is-holiday:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cal-day.is-poya:hover {
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}


.badge-month-tag {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}



/* Month Scope & Multi-Month Selector */
.month-scope-panel {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.month-scope-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.month-scope-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scope-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.scope-preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scope-preset-btn:hover {
  border-color: var(--ceylon-blue-border);
  color: var(--text-main);
}

.scope-preset-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.month-chips-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.month-filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  user-select: none;
  min-width: 44px;
}

.month-filter-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.month-filter-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

.month-scope-summary-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.month-scope-summary-text strong {
  color: #2563eb;
}


/* Clean, Sleek Modern Home Layout */
.hero-section-clean {
  text-align: center;
  padding: 1.75rem 0 1.25rem;
}

.hero-section-clean .hero-badge {
  margin-bottom: 0.5rem;
}

.hero-section-clean .hero-title {
  font-size: 2.2rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.hero-section-clean .hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

/* Compact Next Holiday Live Bar */
.compact-next-holiday-bar {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.compact-next-holiday-bar:hover {
  border-color: var(--ceylon-blue-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.next-h-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.next-h-icon {
  font-size: 1.75rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.next-h-tag-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.next-h-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.04em;
}

.next-h-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.next-h-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Compact Digital Countdown Box */
.compact-countdown-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
}

.cd-digit-clean {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  color: var(--text-main);
  line-height: 1;
}

.cd-unit-clean {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cd-colon {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.next-h-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-clean-mini {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-clean-mini:hover {
  background: var(--bg-surface-subtle);
  border-color: #2563eb;
  color: #2563eb;
}

.btn-clean-mini.btn-primary-mini {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-clean-mini.btn-primary-mini:hover {
  background: #1d4ed8;
}

/* Inline Compact Stats Strip */
.stats-strip-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item-clean {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-item-clean .stat-count {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 850;
  color: #2563eb;
}

.stat-divider-dot {
  width: 4px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 50%;
}

/* Clean Leave Optimizer Banner Strip */
.optimizer-strip-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.optimizer-strip-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.optimizer-strip-cta {
  background: #2563eb;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.optimizer-strip-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}



.nav-links {
  display: flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

.nav-link {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text-muted);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

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

.nav-link.active {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05), 0 1px 2px rgba(28, 25, 23, 0.03);
  font-weight: 750;
}

[data-theme="dark"] .nav-link.active {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: #ffffff;
}

.nav-link.nav-link-special {
  color: var(--text-body);
}

.nav-link.nav-link-special:hover {
  color: var(--terracotta);
}

.nav-link.nav-link-special.active {
  background: var(--bg-surface);
  color: var(--terracotta);
  border-color: var(--border-subtle);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
}

[data-theme="dark"] .nav-link.nav-link-special.active {
  background: var(--bg-surface-elevated);
  color: var(--terracotta);
}

.nav-special-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.nav-special-badge {
  background: var(--terracotta-light);
  color: var(--terracotta);
  border: 1px solid var(--terracotta-border);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-group {
  display: inline-flex;
  background: var(--bg-surface-subtle);
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.year-btn, .lang-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.year-btn:hover, .lang-btn:hover {
  color: var(--text-main);
}

.year-btn.active, .lang-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.theme-toggle-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.18s ease;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-focus);
}


/* Compact NEXT UPCOMING HOLIDAY Section */
.countdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.4rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  text-align: center;
  position: relative;
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.holiday-target-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.holiday-target-date {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* Countdown Timer Override */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.countdown-box {
  min-width: 140px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  text-align: center;
}

.countdown-digit {
  font-size: 2.2rem;
  font-weight: 850;
  color: var(--ceylon-blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.2rem;
}

.countdown-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-actions {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.countdown-actions .btn-action {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}

.hero-section {
  padding: 1.5rem 0 1rem;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}


/* Compact Single-Line Countdown Action Buttons */
.countdown-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  flex-wrap: nowrap !important;
  margin-top: 0.5rem !important;
}

.countdown-actions .btn-action {
  font-size: 0.74rem !important;
  font-weight: 750 !important;
  padding: 0.35rem 0.65rem !important;
  white-space: nowrap !important;
  border-radius: var(--radius-pill) !important;
  gap: 0.25rem !important;
  line-height: 1.2 !important;
  flex: 0 1 auto !important;
}

.countdown-actions .btn-action span {
  font-size: 0.85rem;
}


/* Enhanced & Well-Balanced NEXT UPCOMING HOLIDAY Section */
.countdown-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  padding: 1.4rem 1.85rem !important;
  max-width: 720px !important;
  margin: 0 auto 2rem !important;
  text-align: center !important;
  position: relative !important;
}

.countdown-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0.65rem !important;
}

.countdown-label {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: var(--gold-amber) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.holiday-target-name {
  font-size: 1.7rem !important;
  font-weight: 850 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.25 !important;
}

.holiday-target-date {
  color: var(--text-muted) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.15rem !important;
}

/* Prominent Digital Timer (Days Only) */
.countdown-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1.15rem !important;
}

.countdown-box {
  min-width: 140px !important;
  background: var(--bg-surface-subtle) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.85rem 1.8rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  text-align: center !important;
}

.countdown-digit {
  font-size: 2.2rem !important;
  font-weight: 850 !important;
  color: var(--ceylon-blue) !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  margin-bottom: 0.2rem !important;
}

.countdown-unit {
  font-size: 0.75rem !important;
  font-weight: 750 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.countdown-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  flex-wrap: nowrap !important;
  margin-top: 0.5rem !important;
}

.countdown-actions .btn-action {
  font-size: 0.82rem !important;
  font-weight: 750 !important;
  padding: 0.45rem 0.9rem !important;
  white-space: nowrap !important;
  border-radius: var(--radius-pill) !important;
  gap: 0.35rem !important;
}


/* ==========================================================================
   PERFECT ACCORDION DRAWER & MULTILINGUAL / ACTION BUTTON STYLES
   ========================================================================== */

.holiday-expand-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  background: var(--bg-surface-subtle) !important;
  border-top: 1px solid transparent;
  padding: 0 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.holiday-row-card.is-expanded .holiday-expand-drawer {
  max-height: 1200px !important;
  opacity: 1 !important;
  border-top-color: var(--border-subtle) !important;
  padding: 1.5rem !important;
}

.drawer-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.2rem !important;
  width: 100% !important;
}

/* Multilingual Name Pills */
.drawer-multilingual-names {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px dashed var(--border-subtle) !important;
}

.drawer-name-pill {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Significance & Cultural Context Section */
.drawer-section-title {
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--gold-amber) !important;
  margin-bottom: 0.4rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.drawer-desc-box {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Drawer Action Buttons Bar */
.drawer-actions-bar {
  display: flex !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
  padding-top: 0.5rem !important;
}

.drawer-actions-bar .btn-action {
  flex: 1 1 220px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  border-radius: var(--radius-pill) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  box-shadow: var(--shadow-sm) !important;
}

.drawer-actions-bar .btn-whatsapp {
  background: #ffffff !important;
  color: #15803d !important;
  border: 1.5px solid #16a34a !important;
  font-weight: 750 !important;
}

.drawer-actions-bar .btn-whatsapp:hover {
  background: #f0fdf4 !important;
  border-color: #15803d !important;
  color: #166534 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.18) !important;
}

[data-theme="dark"] .drawer-actions-bar .btn-whatsapp {
  background: rgba(22, 163, 74, 0.12) !important;
  border-color: #22c55e !important;
  color: #4ade80 !important;
}

.drawer-actions-bar .btn-action:not(.btn-whatsapp) {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-subtle) !important;
}

.drawer-actions-bar .btn-action:not(.btn-whatsapp):hover {
  background: var(--bg-surface-subtle) !important;
  border-color: var(--ceylon-blue) !important;
  transform: translateY(-2px) !important;
}

/* Timeline & Leave Hack Boxes in Drawer */
.drawer-timeline-box, .drawer-leave-hack-box {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.15rem !important;
  box-shadow: var(--shadow-sm) !important;
}

.drawer-timeline-header, .drawer-leave-hack-header {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  margin-bottom: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.drawer-timeline-sequence, .drawer-leave-hack-sequence {
  display: flex !important;
  gap: 0.55rem !important;
  overflow-x: auto !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 0.65rem !important;
}

.drawer-timeline-pill, .leave-hack-pill {
  flex: 0 0 95px !important;
  background: var(--bg-surface-subtle) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 0.4rem !important;
  text-align: center !important;
}

.drawer-timeline-pill.is-active-holiday {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
}

.leave-hack-pill.is-bridge-day {
  background: #fff7ed !important;
  border-color: #f97316 !important;
}

.drawer-timeline-note, .drawer-leave-hack-note {
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
}


/* ==========================================================================
   SMART LEAVE HACK & LONG WEEKEND TIMELINE BOX STYLES (EXPANDED DRAWER)
   ========================================================================== */

/* 1. Smart Leave Hack Box */
.drawer-leave-hack-box {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-radius: var(--radius-md) !important;
  padding: 1.15rem 1.25rem !important;
  margin-top: 0.75rem !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08) !important;
}

[data-theme="dark"] .drawer-leave-hack-box {
  background: rgba(69, 26, 3, 0.35) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.drawer-leave-hack-header {
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  color: #b45309 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

[data-theme="dark"] .drawer-leave-hack-header {
  color: #fbbf24 !important;
}

/* Horizontal Timeline Sequence */
.drawer-leave-hack-sequence {
  display: flex !important;
  gap: 0.65rem !important;
  overflow-x: auto !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.85rem !important;
  scrollbar-width: thin !important;
}

.leave-hack-pill {
  flex: 1 1 110px !important;
  min-width: 100px !important;
  background: var(--bg-surface) !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.65rem 0.5rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.2s ease !important;
}

.leave-hack-pill:hover {
  transform: translateY(-2px) !important;
}

/* Bridge Leave Day Highlight */
.leave-hack-pill.is-bridge-day {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
}

.leave-hack-pill.is-bridge-day .pill-day,
.leave-hack-pill.is-bridge-day .pill-date,
.leave-hack-pill.is-bridge-day .pill-label {
  color: #ffffff !important;
  font-weight: 850 !important;
}

/* Holiday Day Highlight */
.leave-hack-pill.is-holiday-day {
  background: var(--ceylon-blue-light) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

.leave-hack-pill.is-holiday-day .pill-day {
  color: var(--ceylon-blue) !important;
}

.leave-hack-pill.is-holiday-day .pill-date {
  color: var(--text-main) !important;
  font-weight: 850 !important;
}

.leave-hack-pill.is-holiday-day .pill-label {
  color: var(--ceylon-blue) !important;
  font-weight: 750 !important;
}

/* Poya Day Highlight */
.leave-hack-pill.is-poya-day {
  background: #fefce8 !important;
  border-color: #facc15 !important;
}

.leave-hack-pill.is-poya-day .pill-day {
  color: #854d0e !important;
}

.leave-hack-pill.is-poya-day .pill-date {
  color: #713f12 !important;
  font-weight: 850 !important;
}

.leave-hack-pill.is-poya-day .pill-label {
  color: #854d0e !important;
  font-weight: 750 !important;
}

[data-theme="dark"] .leave-hack-pill.is-poya-day {
  background: rgba(234, 179, 8, 0.18) !important;
  border-color: rgba(250, 204, 21, 0.45) !important;
}

[data-theme="dark"] .leave-hack-pill.is-poya-day .pill-day,
[data-theme="dark"] .leave-hack-pill.is-poya-day .pill-date,
[data-theme="dark"] .leave-hack-pill.is-poya-day .pill-label {
  color: #fef08a !important;
}

/* Pill Inner Typography */
.leave-hack-pill .pill-day {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.leave-hack-pill .pill-date {
  font-size: 0.95rem !important;
  font-weight: 850 !important;
  color: var(--text-main) !important;
  margin: 0.15rem 0 !important;
  line-height: 1.2 !important;
}

.leave-hack-pill .pill-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  line-height: 1.2 !important;
}

/* Vacation Hack Note */
.drawer-leave-hack-note {
  font-size: 0.86rem !important;
  color: var(--text-main) !important;
  line-height: 1.5 !important;
  background: var(--bg-surface) !important;
  border: 1px solid rgba(217, 119, 6, 0.2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.65rem 0.85rem !important;
}

[data-theme="dark"] .drawer-leave-hack-note {
  background: rgba(19, 27, 46, 0.6) !important;
}

/* 2. Long Weekend Timeline Box */
.drawer-timeline-box {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: var(--radius-md) !important;
  padding: 1.15rem 1.25rem !important;
  margin-top: 0.75rem !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08) !important;
}

[data-theme="dark"] .drawer-timeline-box {
  background: rgba(6, 78, 59, 0.35) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.drawer-timeline-header {
  font-size: 0.88rem !important;
  font-weight: 850 !important;
  color: #047857 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

[data-theme="dark"] .drawer-timeline-header {
  color: #34d399 !important;
}

.drawer-timeline-sequence {
  display: flex !important;
  gap: 0.65rem !important;
  overflow-x: auto !important;
  padding-bottom: 0.65rem !important;
  margin-bottom: 0.85rem !important;
}

.drawer-timeline-pill {
  flex: 1 1 110px !important;
  min-width: 100px !important;
  background: var(--bg-surface) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.65rem 0.5rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.2s ease !important;
}

.drawer-timeline-pill.is-active-holiday {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.drawer-timeline-pill.is-active-holiday .pill-day,
.drawer-timeline-pill.is-active-holiday .pill-date,
.drawer-timeline-pill.is-active-holiday .pill-label {
  color: #ffffff !important;
  font-weight: 850 !important;
}

.drawer-timeline-pill .pill-day {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
}

.drawer-timeline-pill .pill-date {
  font-size: 0.95rem !important;
  font-weight: 850 !important;
  color: var(--text-main) !important;
  margin: 0.15rem 0 !important;
}

.drawer-timeline-pill .pill-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
}

.drawer-timeline-note {
  font-size: 0.86rem !important;
  color: var(--text-main) !important;
  line-height: 1.5 !important;
  background: var(--bg-surface) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.65rem 0.85rem !important;
}

[data-theme="dark"] .drawer-timeline-note {
  background: rgba(19, 27, 46, 0.6) !important;
}


/* Calendar Grid Smart Leave Hack Bridge Dates */
.cal-day.is-leave-bridge {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1.5px dashed #f59e0b !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  position: relative !important;
}

[data-theme="dark"] .cal-day.is-leave-bridge {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border-color: #f59e0b !important;
}

.cal-day.is-leave-bridge::after {
  content: '💡';
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.55rem;
  line-height: 1;
}

.cal-day.is-leave-bridge:hover {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  border-style: solid !important;
  border-color: #ea580c !important;
  transform: scale(1.15) !important;
  z-index: 5 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
}


/* ==========================================================================
   DISTINCT CALENDAR GRID COLOR IDENTITIES (POYA VS LEAVE HACK VS LONG WEEKEND)
   ========================================================================== */

/* 1. Full Moon Poya Day - Luminous Sacred Canary Yellow */
.cal-day.is-poya {
  background: #fef9c3 !important;
  color: #713f12 !important;
  border: 1.5px solid #eab308 !important;
  font-weight: 850 !important;
  position: relative !important;
}

[data-theme="dark"] .cal-day.is-poya {
  background: rgba(234, 179, 8, 0.22) !important;
  color: #fef08a !important;
  border-color: #eab308 !important;
}

.cal-day.is-poya::before {
  content: '🌕';
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 0.52rem;
  line-height: 1;
}

/* 2. Smart Leave Hack Bridge Day - Electric Sunset Orange / Flame Tangerine */
.cal-day.is-leave-bridge {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 2px dashed #ea580c !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  position: relative !important;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.15) !important;
}

[data-theme="dark"] .cal-day.is-leave-bridge {
  background: rgba(234, 88, 12, 0.28) !important;
  color: #fdba74 !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.25) !important;
}

.cal-day.is-leave-bridge::after {
  content: '⚡';
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 0.58rem;
  line-height: 1;
  color: #ea580c;
  filter: drop-shadow(0 1px 2px rgba(234, 88, 12, 0.4));
}

.cal-day.is-leave-bridge:hover {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%) !important;
  color: #ffffff !important;
  border-style: solid !important;
  border-color: #c2410c !important;
  transform: scale(1.18) !important;
  z-index: 10 !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45) !important;
}

/* 3. Long Weekend Day - Emerald Green */
.cal-day.is-long-weekend:not(.is-poya) {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border: 1.5px solid #10b981 !important;
  font-weight: 850 !important;
}

[data-theme="dark"] .cal-day.is-long-weekend:not(.is-poya) {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6ee7b7 !important;
  border-color: #10b981 !important;
}

/* 4. Regular Public Holiday - Sapphire Blue */
.cal-day.is-holiday:not(.is-poya):not(.is-long-weekend) {
  background: #dbeafe !important;
  color: #1e40af !important;
  border: 1.5px solid #3b82f6 !important;
  font-weight: 850 !important;
}

[data-theme="dark"] .cal-day.is-holiday:not(.is-poya):not(.is-long-weekend) {
  background: rgba(59, 130, 246, 0.22) !important;
  color: #93c5fd !important;
  border-color: #3b82f6 !important;
}

/* Calendar Legend Bar */
.calendar-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--text-secondary);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.legend-dot.dot-poya { background: #fef3c7; border: 1.5px solid #f59e0b; }
.legend-dot.dot-leave-hack { background: #ffedd5; border: 2px dashed #ea580c; }
.legend-dot.dot-long-weekend { background: #d1fae5; border: 1.5px solid #10b981; }
.legend-dot.dot-public { background: #dbeafe; border: 1.5px solid #3b82f6; }

.calendar-legend-bar {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Optimizations (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Header & Navigation */
  .site-header {
    padding: 0.5rem 0;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 0.5rem;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .nav-controls {
    gap: 0.3rem;
  }

  .year-selector, .lang-selector {
    padding: 1px;
  }

  .segmented-btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.45rem;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  /* 2. Container & Hero */
  .container {
    padding: 0 0.85rem;
  }

  .hero-title {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  /* 3. Countdown Card & KPIs */
  .countdown-card {
    padding: 1.25rem 1rem;
  }

  .holiday-target-name {
    font-size: 1.35rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
  }

  .countdown-box {
    padding: 0.5rem 0.2rem;
  }

  .countdown-digit {
    font-size: 1.4rem;
  }

  .countdown-unit {
    font-size: 0.65rem;
  }

  .countdown-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .countdown-actions .btn-action {
    width: 100%;
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.85rem 0.65rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* 4. Filter Chips Rail & Search */
  .filter-chips-rail {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-chips-rail::-webkit-scrollbar {
    display: none;
  }

  .chip-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
  }

  /* 5. Leave Planner Optimizer Control Hub */
  .optimizer-hub-card {
    padding: 1rem 0.85rem;
  }

  .hub-main-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hub-leave-control {
    justify-content: space-between;
    width: 100%;
  }

  .hub-metrics-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    width: 100%;
  }

  .hud-pill {
    padding: 0.4rem 0.25rem;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.1rem;
  }

  .hud-pill strong {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .hud-pill span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .hub-share-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hub-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hub-scope-selector {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .hub-scope-selector::-webkit-scrollbar {
    display: none;
  }

  .hub-actions {
    width: 100%;
    justify-content: space-between;
  }

  .month-chips-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .month-chips-grid::-webkit-scrollbar {
    display: none;
  }

  .month-filter-chip {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }

  /* 6. Package Cards & Timeline */
  .package-card {
    padding: 1rem 0.85rem;
  }

  .package-card-top {
    flex-direction: column;
    gap: 0.6rem;
  }

  .package-stats-badges {
    width: 100%;
    gap: 0.35rem;
  }

  .package-timeline-strip {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .package-timeline-strip::-webkit-scrollbar {
    display: none;
  }

  .package-day-pill {
    flex: 0 0 68px;
    min-width: 68px;
    padding: 0.4rem 0.25rem;
  }

  .package-action-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .package-action-footer .btn-action {
    width: 100%;
    justify-content: center;
  }

  /* 7. Calendar View on Mobile */
  .calendar-view-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calendar-legend-bar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .legend-item {
    font-size: 0.72rem;
  }

  /* 8. Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   9. SEO Holiday & Leave Guide FAQ Section
   ========================================================================== */
.seo-guide-section {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.seo-guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.seo-guide-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.seo-guide-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.seo-faq-item {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
}

.seo-faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.seo-faq-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .seo-guide-card {
    padding: 1.5rem;
  }
  .seo-faq-grid {
    grid-template-columns: 1fr;
  }
}

