@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  /* Modern Slate & Honeycomb Theme - Hamedavshim Cycling Club */
  /* Much softer, balanced, breathable dark theme (less dark than pure black) */
  --bg-base: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #27354a;
  --bg-surface-hover: #334155;
  
  --border-subtle: #334155;
  --border-highlight: rgba(255, 200, 0, 0.45);
  --border-active: #ffc800;

  --gold-primary: #ffc800;
  --gold-hover: #e5b400;
  --gold-dim: #cca000;
  --gold-soft: rgba(255, 200, 0, 0.14);
  --gold-glow: 0 0 25px rgba(255, 200, 0, 0.25);
  
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Status & Roles */
  --role-leader-bg: rgba(16, 185, 129, 0.2);
  --role-leader-border: #10b981;
  --role-leader-text: #34d399;
  
  --role-sweeper-bg: rgba(249, 115, 22, 0.2);
  --role-sweeper-border: #f97316;
  --role-sweeper-text: #fb923c;
  
  --role-escort-bg: rgba(56, 189, 248, 0.2);
  --role-escort-border: #38bdf8;
  --role-escort-text: #7dd3fc;
  
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 4px 20px rgba(255, 200, 0, 0.25);
}

/* Light / Sun Mode (מצב יום / שמש - לבהירות מרבית) */
html[data-theme="light"] {
  --bg-base: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-hover: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-highlight: rgba(217, 119, 6, 0.4);
  --border-active: #d97706;

  --gold-primary: #d97706;
  --gold-hover: #b45309;
  --gold-dim: #92400e;
  --gold-soft: rgba(245, 158, 11, 0.12);
  --gold-glow: 0 0 15px rgba(217, 119, 6, 0.2);
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --role-leader-bg: #ecfdf5;
  --role-leader-border: #10b981;
  --role-leader-text: #047857;
  
  --role-sweeper-bg: #fff7ed;
  --role-sweeper-border: #f97316;
  --role-sweeper-text: #c2410c;
  
  --role-escort-bg: #f0f9ff;
  --role-escort-border: #0284c7;
  --role-escort-text: #0369a1;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Subtle pattern for background */
body {
  background-image: 
    radial-gradient(rgba(255, 200, 0, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(51, 65, 85, 0.4) 1px, transparent 1px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 7px;
}

html[data-theme="light"] body {
  background-image: 
    radial-gradient(rgba(217, 119, 6, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px);
}

/* Container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

/* Navbar */
.navbar {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 16px;
}

html[data-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
}

.brand-logo-img {
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 90px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

html[data-theme="light"] .brand-title {
  color: #0f172a;
}

.brand-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-hover) 100%);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  margin-top: 2px;
  width: fit-content;
  letter-spacing: 0.2px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .nav-link {
  background: #f1f5f9;
  color: #475569;
}

.nav-link:hover {
  color: var(--gold-primary);
  background: var(--gold-soft);
}

.nav-link-logout {
  color: #f87171 !important;
}

.nav-link-logout:hover {
  background: rgba(248, 113, 113, 0.12) !important;
  color: #ef4444 !important;
}

/* Theme Toggle Button (מצב שמש / לילה) */
.btn-theme-toggle {
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid var(--border-highlight);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-theme-toggle:hover {
  background: var(--gold-primary);
  color: #0f172a;
}

/* Sync Indicator */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.sync-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.25s;
}

.card:hover {
  border-color: var(--border-highlight);
}

/* Hero Card (Main Ride) */
.card-hero {
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 200, 0, 0.08);
  overflow: hidden;
}

.card-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.hero-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.25;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.badge-open {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid #10b981;
}

.badge-closed {
  background-color: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Hero Details Grid */
.hero-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s;
}

.detail-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* Action Buttons (Waze + GPX) */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .actions-grid {
    grid-template-columns: 1fr;
  }
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.btn-action-waze {
  background: linear-gradient(135deg, #1e3a5f 0%, #0e2439 100%);
  color: #38bdf8;
  border-color: #0284c7;
}

html[data-theme="light"] .btn-action-waze {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

.btn-action-waze:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4);
}

.btn-action-route {
  background: linear-gradient(135deg, #3d3200 0%, #201a00 100%);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

html[data-theme="light"] .btn-action-route {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #b45309;
}

.btn-action-route:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

.btn-action-icon {
  font-size: 1.35rem;
}

.btn-action-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.btn-action-label {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-action-sub {
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 2px;
}

/* OPEN-METEO LIVE ROUTE WEATHER SECTION */
.weather-card {
  margin-top: 18px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.weather-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-cache-pill {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.weather-cache-pill:hover {
  border-color: var(--primary);
  color: var(--text-heading);
  background: rgba(245, 158, 11, 0.08);
}

.weather-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.weather-point-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.weather-point-box:hover {
  border-color: var(--gold-primary);
}

.weather-point-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.weather-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: center;
}

.weather-hours-table th {
  padding: 6px 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}

.weather-hours-table td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .weather-hours-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.weather-temp-badge {
  font-weight: 800;
  color: var(--text-main);
}

.weather-rain-badge {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.78rem;
}

.weather-wind-badge {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* Quick Search Card */
.search-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.search-icon {
  font-size: 1.25rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 16px 12px 42px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(255, 200, 0, 0.25);
}

.search-clear-btn {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  padding: 4px;
}

.search-stats {
  font-size: 0.8rem;
  color: var(--gold-primary);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* Pelotons Section */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.pelotons-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.peloton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s;
}

.peloton-card:hover {
  border-color: var(--border-highlight);
}

.peloton-header {
  background: var(--bg-surface-elevated);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.peloton-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.peloton-badge-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.peloton-briefing {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.peloton-count-pill {
  background: var(--gold-soft);
  color: var(--gold-primary);
  border: 1px solid var(--border-highlight);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.peloton-body {
  padding: 18px;
}

.peloton-route-info {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Roster Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.roster-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.roster-box-leader {
  background-color: var(--role-leader-bg);
  border-color: var(--role-leader-border);
}

.roster-box-sweeper {
  background-color: var(--role-sweeper-bg);
  border-color: var(--role-sweeper-border);
}

.roster-box-escort {
  background-color: var(--role-escort-bg);
  border-color: var(--role-escort-border);
}

.roster-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.roster-box-leader .roster-label { color: var(--role-leader-text); }
.roster-box-sweeper .roster-label { color: var(--role-sweeper-text); }
.roster-box-escort .roster-label { color: var(--role-escort-text); }

.roster-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-sm);
}

/* Riders List Tags */
.riders-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.rider-tag {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.2s;
}

.rider-tag.highlight-match {
  background-color: var(--gold-primary) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 200, 0, 0.6);
  transform: scale(1.06);
}

/* Registrations Table */
details summary {
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  padding: 12px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: right;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-muted);
}

tr.row-hidden {
  display: none !important;
}

tr.row-highlight td {
  background-color: var(--gold-soft) !important;
}

.status-attending {
  color: #10b981;
  font-weight: 700;
}

.status-absent {
  color: var(--text-muted);
}

/* LOGIN SCREEN */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-base);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.login-brand-img {
  max-width: 240px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.login-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.92rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
  text-align: right;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-base);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  direction: ltr;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(255, 200, 0, 0.25);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-hover) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.quick-creds-box {
  margin-top: 22px;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-highlight);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quick-creds-box strong {
  color: var(--gold-primary);
}

/* SITE FOOTER (All pages: index, login, archive) */
.site-footer {
  margin-top: 40px;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
}

html[data-theme="light"] .site-footer {
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
  display: block !important;
}

.footer-brand-capsule {
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-xl);
  max-width: 550px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
