/**
 * FECHAS.SITE - Modern Editorial CSS
 * Minimalist, High-Impact Visuals, Core Web Vitals 100 Optimized
 */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-page: #fafafb;
  --bg-card: #ffffff;
  --bg-subtle: #f4f6f9;
  --text-main: #0f172a;
  --text-muted: #526177;
  --text-light: #8e9db2;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --festive-red: #ef4444;
  --festive-red-dark: #dc2626;
  --festive-red-bg: #fee2e2;
  --festive-red-border: #f87171;

  --festive-orange: #ea580c;
  --festive-orange-bg: #ffedd5;
  --festive-orange-border: #fb923c;

  --festive-purple: #7c3aed;
  --festive-purple-bg: #f5f3ff;
  --festive-purple-border: #c4b5fd;

  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  --rose: #e11d48;
  --rose-light: #fff1f2;
  --rose-border: #fecdd3;

  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --purple-border: #ddd6fe;

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.09), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
  --max-width: 1200px;
  --header-height: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.035) 0px, transparent 40%),
    radial-gradient(at 100% 0%, rgba(239, 68, 68, 0.03) 0px, transparent 40%),
    radial-gradient(at 50% 100%, rgba(245, 158, 11, 0.025) 0px, transparent 50%);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-logo .logo-dot {
  color: var(--primary);
}

.site-logo .logo-tld {
  font-weight: 500;
  color: var(--primary);
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  font-size: 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  background: var(--bg-subtle);
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-light);
  pointer-events: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 99;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel .mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.mobile-nav-panel .nav-link {
  font-size: 1.15rem;
  padding: 0.6rem 0.5rem;
}

/* Main Content Area */
main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .separator {
  color: var(--text-light);
}

.breadcrumbs .current {
  color: var(--text-main);
  font-weight: 600;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.55;
}

/* Big Search Box with interactive tags */
.big-search-box {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.big-search-box input {
  width: 100%;
  padding: 1.1rem 1.4rem 1.1rem 3.4rem;
  font-size: 1.15rem;
  border: 2px solid var(--border);
  border-radius: 9999px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all 0.2s ease;
}

.big-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-light), var(--shadow-md);
}

.big-search-box .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--text-light);
  pointer-events: none;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.trending-label {
  color: var(--text-light);
  font-weight: 600;
  margin-right: 0.25rem;
}

.tag-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Live Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 110;
  display: none;
  text-align: left;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  display: block;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  transition: background 0.15s ease;
}

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

.suggestion-item:hover {
  background: var(--bg-subtle);
}

.suggestion-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-category {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 9999px;
}

.suggestion-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Search Modes Switcher */
.search-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tab:hover {
  color: var(--text-main);
}

.search-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Date Picker Panel in Hero */
.date-picker-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.date-picker-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.date-select-wrapper {
  flex: 1;
  min-width: 140px;
}

.date-select-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.date-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.date-select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.btn-search-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-search-day:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.date-picker-shortcuts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.date-shortcut-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.date-shortcut-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.date-shortcut-links a:hover {
  color: var(--primary-dark);
}

/* Live Capsule / Today Status Dashboard */
.live-capsule {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-dot 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-dot {
  to {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.live-date-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0.35rem 0;
}

.year-progress-wrapper {
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #059669);
  border-radius: 9999px;
}

/* Upcoming Milestone Countdown Chips */
.countdown-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.countdown-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

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

.countdown-chip .chip-days {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.countdown-chip .chip-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.countdown-chip .chip-date {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sections */
.section {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.85rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.925rem;
  font-weight: 700;
}

/* Visual Calendar Grid Component */
.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.calendar-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
}

.calendar-nav-btn,
a.calendar-nav-btn,
button.calendar-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main) !important;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
}

.calendar-nav-btn:hover,
a.calendar-nav-btn:hover,
button.calendar-nav-btn:hover {
  background: #eff6ff !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.calendar-nav-btn.active,
.calendar-nav-btn[style*="background:var(--primary)"],
.calendar-nav-btn[style*="background: var(--primary)"] {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.calendar-nav-btn.active:hover,
.calendar-nav-btn[style*="background:var(--primary)"]:hover,
.calendar-nav-btn[style*="background: var(--primary)"]:hover {
  background-color: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

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

.cal-day-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.cal-day-cell {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 84px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
  position: relative;
}

.cal-day-cell:hover {
  border-color: var(--primary);
  background-color: #f0f7ff;
  transform: translateY(-1px);
}

.cal-day-cell.other-month {
  background: #fafafa;
  color: var(--text-light);
  border-color: transparent;
}

.cal-day-cell.is-today {
  border: 2px solid var(--primary);
  background-color: var(--primary-light);
}

.cal-day-cell.is-today .cal-num {
  color: var(--primary);
  font-weight: 900;
}

.cal-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-holiday { background-color: #ef4444; }
.dot-celebration { background-color: #1d4ed8; }
.dot-saint { background-color: #059669; }
.dot-ephemeris { background-color: #7c3aed; }

/* Visual Festive Calendar Highlights (Semana Santa, Festivos, etc.) */
.cal-day-cell.festive-highlight {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* 1. Festivo Nacional Oficial (e.g. Viernes Santo): Vivid Bold Red */
.cal-day-cell.festive-highlight.festive-national {
  background: linear-gradient(145deg, #fee2e2 0%, #fff1f2 100%) !important;
  border: 2px solid #ef4444 !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.16) !important;
}

.cal-day-cell.festive-highlight.festive-national .cal-num {
  color: #b91c1c !important;
  font-weight: 900 !important;
  font-size: 1.15rem;
}

.cal-day-cell.festive-highlight.festive-national:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24) !important;
}

/* 2. Festivo Autonómico (e.g. Jueves Santo, Lunes de Pascua): Warm Orange / Coral */
.cal-day-cell.festive-highlight.festive-regional {
  background: linear-gradient(145deg, #ffedd5 0%, #fff7ed 100%) !important;
  border: 2px solid #ea580c !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.14) !important;
}

.cal-day-cell.festive-highlight.festive-regional .cal-num {
  color: #c2410c !important;
  font-weight: 900 !important;
  font-size: 1.15rem;
}

.cal-day-cell.festive-highlight.festive-regional:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 16px rgba(234, 88, 12, 0.22) !important;
}

/* 3. Litúrgico / Pascua / Ramos: Royal Purple */
.cal-day-cell.festive-highlight.festive-liturgical {
  background: linear-gradient(145deg, #f5f3ff 0%, #faf5ff 100%) !important;
  border: 2px solid #8b5cf6 !important;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.12) !important;
}

.cal-day-cell.festive-highlight.festive-liturgical .cal-num {
  color: #6d28d9 !important;
  font-weight: 900 !important;
  font-size: 1.15rem;
}

/* 4. Vigilia / Sábado Santo */
.cal-day-cell.festive-highlight.festive-vigil {
  background: #f8fafc !important;
  border: 1.5px dashed #94a3b8 !important;
}

.cal-day-cell.festive-highlight.festive-vigil .cal-num {
  color: #475569 !important;
  font-weight: 800;
}

/* Badges inside festive cells */
.festive-cell-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.25;
  text-align: center;
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.festive-badge-red {
  background: #ef4444;
  color: #ffffff;
}

.festive-badge-orange {
  background: #ea580c;
  color: #ffffff;
}

.festive-badge-purple {
  background: #7c3aed;
  color: #ffffff;
}

.festive-badge-gray {
  background: #64748b;
  color: #ffffff;
}

.cal-event-text {
  font-size: 0.725rem;
  line-height: 1.25;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

/* Badges & Status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  line-height: 1.3;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-confirmed {
  background-color: var(--emerald-light);
  color: #065f46;
  border: 1px solid var(--emerald-border);
}
.status-confirmed .badge-dot { background-color: var(--emerald); }

.status-pending {
  background-color: var(--amber-light);
  color: #92400e;
  border: 1px solid var(--amber-border);
}
.status-pending .badge-dot { background-color: var(--amber); }

.status-draft {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Day Detail View */
.day-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.day-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.meta-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
}

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

.meta-box-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 3px;
}

/* Day Navigation */
.day-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.day-nav-btn,
a.day-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.day-nav-btn:hover,
a.day-nav-btn:hover {
  border-color: var(--primary) !important;
  background: #eff6ff !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.day-nav-btn.btn-today,
.day-nav-btn[style*="background:var(--primary-light)"],
.day-nav-btn[style*="background: var(--primary-light)"] {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-border) !important;
  color: var(--primary) !important;
}

.day-nav-btn.btn-today:hover,
.day-nav-btn[style*="background:var(--primary-light)"]:hover,
.day-nav-btn[style*="background: var(--primary-light)"]:hover {
  background-color: #dbeafe !important;
  border-color: var(--primary) !important;
  color: #1e40af !important;
  transform: translateY(-1px);
}

/* Related Links Cloud */
.related-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill-link,
a.pill-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main) !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.pill-link:hover,
a.pill-link:hover {
  background: #eff6ff !important;
  border-color: var(--primary-border) !important;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

/* Source Box */
.source-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.source-box a {
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Buttons & Interactive Elements (High-Contrast & Accessible Hover States)
   ========================================================================== */
.btn,
.btn-primary,
.btn-outline,
.btn-emerald,
.btn-search-day,
.btn-sm,
.calendar-nav-btn,
.day-nav-btn,
.tag-pill,
.pill-link,
.search-tab,
.hero-cta-btn {
  font-family: inherit;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Primary Solid Blue Buttons */
.btn-primary,
a.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--primary) !important;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible,
a.btn-primary:hover,
a.btn-primary:focus-visible,
button.btn-primary:hover,
button.btn-primary:focus-visible,
input[type="submit"].btn-primary:hover {
  background-color: #1e40af !important; /* Deep Navy Blue */
  border-color: #1e40af !important;
  color: #ffffff !important;           /* Crisp Pure White Text */
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28) !important;
}

.btn-primary:active,
a.btn-primary:active,
button.btn-primary:active {
  transform: translateY(0);
  background-color: #1e3a8a !important;
  color: #ffffff !important;
}

/* 2. Emerald Solid Buttons (Santoral etc) */
.btn-emerald,
a.btn-emerald,
button.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--emerald) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--emerald) !important;
  font-weight: 700;
  cursor: pointer;
}

.btn-emerald:hover,
a.btn-emerald:hover,
button.btn-emerald:hover {
  background-color: #047857 !important; /* Deep Forest Emerald */
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
}

/* 3. Outline / Secondary Buttons */
.btn-outline,
a.btn-outline,
button.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #ffffff !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-main) !important;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline:hover,
.btn-outline:focus-visible,
a.btn-outline:hover,
a.btn-outline:focus-visible,
button.btn-outline:hover,
button.btn-outline:focus-visible {
  background-color: #eff6ff !important; /* Soft Light Blue */
  border-color: var(--primary) !important;
  color: var(--primary) !important;    /* Crisp Vibrant Blue Text */
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12) !important;
}

.btn-outline:active,
a.btn-outline:active,
button.btn-outline:active {
  transform: translateY(0);
  background-color: #dbeafe !important;
  color: #1e40af !important;
}

/* 4. Small Buttons Modifier */
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

/* 5. Cookie Consent Modal / Floating Card */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  width: calc(100% - 3rem);
  background: #ffffff;
  color: var(--text-main);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
  z-index: 99999;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-text-wrapper {
  flex: 1;
}

.cookie-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.cookie-desc {
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.cookie-desc a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner .btn-primary {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.cookie-banner .btn-outline {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
    padding: 1.25rem;
  }
  .cookie-actions {
    flex-direction: column-reverse;
    width: 100%;
  }
  .cookie-actions button {
    width: 100%;
  }
}

/* Calendar Tear-Off Badge Component (Taco de Calendario Editorial) */
.calendar-tearoff {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 66px;
  min-width: 66px;
  height: 74px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.09);
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  user-select: none;
}

.calendar-tearoff:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.calendar-tearoff .tearoff-month {
  width: 100%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 0;
  line-height: 1.2;
}

.calendar-tearoff.tearoff-emerald .tearoff-month {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.calendar-tearoff.tearoff-indigo .tearoff-month {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.calendar-tearoff.tearoff-purple .tearoff-month {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.calendar-tearoff.tearoff-amber .tearoff-month {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.calendar-tearoff .tearoff-day {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
  margin: auto 0;
  letter-spacing: -0.04em;
}

.calendar-tearoff .tearoff-weekday {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 3px;
  width: 100%;
  border-top: 1px dashed #f1f5f9;
}

/* Large Calendar Tear-off for Hero / Capsule */
.calendar-tearoff.tearoff-lg {
  width: 86px;
  min-width: 86px;
  height: 98px;
  border-radius: 14px;
}
.calendar-tearoff.tearoff-lg .tearoff-month {
  font-size: 0.75rem;
  padding: 5px 0;
}
.calendar-tearoff.tearoff-lg .tearoff-day {
  font-size: 2.2rem;
}
.calendar-tearoff.tearoff-lg .tearoff-weekday {
  font-size: 0.65rem;
  padding-bottom: 5px;
}

/* Holiday Day Card with Tear-off */
.holiday-day-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.holiday-card-content {
  flex: 1;
  min-width: 0;
}

.holiday-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.holiday-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Puente de Semana Santa / Holiday Timeline Banner */
.puente-banner {
  background: linear-gradient(135deg, #090e17 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.puente-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.puente-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.puente-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.puente-icon {
  font-size: 2.4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 12px;
}

.puente-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.puente-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 2px;
}

.puente-badge-highlight {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.puente-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}

.puente-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.puente-step:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.puente-step.is-national {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.puente-step.is-regional {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.5);
}

.puente-step.is-liturgical {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.5);
}

.puente-step .step-day {
  font-size: 0.725rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.puente-step.is-national .step-day {
  color: #fca5a5;
}

.puente-step.is-regional .step-day {
  color: #fed7aa;
}

.puente-step.is-liturgical .step-day {
  color: #ddd6fe;
}

.puente-step .step-date {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0;
  letter-spacing: -0.02em;
}

.puente-step .step-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-red { background: #ef4444; color: #fff; }
.tag-orange { background: #ea580c; color: #fff; }
.tag-purple { background: #7c3aed; color: #fff; }
.tag-gray { background: rgba(255, 255, 255, 0.2); color: #e2e8f0; }

.puente-step .step-note {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.35;
}

/* Dual Calendar Grid (when Easter spans 2 months) */
.dual-calendar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

/* Festive Visual Section */
.festive-calendar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.festive-calendar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
}

/* Sunday column headers in red */
.cal-day-header.is-sunday {
  color: #ef4444;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .grid-cols-4, .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .live-capsule { flex-direction: column; align-items: stretch; }
  .year-progress-wrapper { max-width: 100%; }
  .dual-calendar-container { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-nav, .header-search { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.lead { font-size: 1.05rem; }
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cal-day-cell { min-height: 56px; padding: 4px; }
  .cal-event-text { display: none; }
}

/* ==========================================================================
   ADMIN PANEL STYLES (Modern Dashboard, Tables, Forms & Sidebar)
   ========================================================================== */
.admin-body {
  background-color: #f8fafc;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #0f172a;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  min-width: 270px;
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  border-right: 1px solid #1e293b;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.admin-logo {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #1e293b;
}

.admin-logo a {
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.admin-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: #94a3b8 !important;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-menu li a:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
  transform: translateX(3px);
}

.admin-menu li a.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.admin-user-box {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.admin-logout-btn {
  color: #ef4444 !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  transition: all 0.15s ease;
}

.admin-logout-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Main Content Area */
.admin-content {
  flex: 1;
  background-color: #f8fafc;
  padding: 2.25rem 2.75rem;
  overflow-y: auto;
  min-width: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Stat Metrics Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.stat-val {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Admin Tables */
.admin-table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* Admin Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-primary {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Admin Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* Modal Overlay */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

@media (max-width: 900px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
  }
  .admin-content {
    padding: 1.5rem;
  }
}
