/* =============================================
   VITALFLOW — Smart Blood Donation System
   Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* -------- CSS Variables -------- */
:root {
  --primary: #f20d20;
  --primary-dark: #c0000f;
  --primary-light: rgba(242, 13, 32, 0.1);
  --primary-glow: rgba(242, 13, 32, 0.25);
  --bg: #f8f5f6;
  --bg-dark: #1a0a0c;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --border: rgba(255, 255, 255, 0.45);
  --border-subtle: rgba(226, 232, 240, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(242,13,32,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 40px rgba(242,13,32,0.10), 0 2px 8px rgba(0,0,0,0.07);
  --shadow-xl: 0 16px 64px rgba(242,13,32,0.14), 0 4px 16px rgba(0,0,0,0.09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- Reset & Base -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-sans); border: none; outline: none; }
input, select, textarea { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* -------- Scrollbar -------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(242,13,32,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(242,13,32,0.4); }

/* -------- Glass Effect -------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}
.glass-dark {
  background: rgba(26, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(242, 13, 32, 0.18);
}
.card { box-shadow: var(--shadow-md); border-radius: var(--radius-lg); }
.card-sm { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.card-xl { box-shadow: var(--shadow-xl); border-radius: var(--radius-xl); }

/* -------- Typography -------- */
.font-serif { font-family: var(--font-serif); }
.text-primary-color { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(242,13,32,0.22);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(242,13,32,0.32);
}
.btn-primary:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(242,13,32,0.3);
}
.btn-ghost:hover { background: var(--primary-light); border-color: var(--primary); }
.btn-white {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-white:hover { background: rgba(255,255,255,0.22); }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon-round { border-radius: var(--radius-full); }

/* -------- Form Elements -------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.form-input {
  background: var(--white); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 11px 14px;
  font-size: 14px; color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(242,13,32,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
  background: var(--white); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 11px 36px 11px 14px;
  font-size: 14px; color: var(--text-primary);
  transition: border-color var(--transition);
  width: 100%; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,13,32,0.1); }
.form-textarea {
  background: var(--white); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 11px 14px;
  font-size: 14px; color: var(--text-primary);
  transition: border-color var(--transition);
  width: 100%; resize: vertical; min-height: 80px;
}
.form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,13,32,0.1); }
.form-error { font-size: 12px; color: var(--danger); font-weight: 500; }
.input-with-icon { position: relative; }
.input-with-icon .form-input { padding-left: 42px; }
.input-with-icon .input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none;
  transition: color var(--transition);
}
.input-with-icon:focus-within .input-icon { color: var(--primary); }

/* -------- Real-time Validation -------- */
.input-with-icon.login-field-valid .form-input {
  border-color: #22c55e;
}
.input-with-icon.login-field-valid .input-icon {
  color: #22c55e;
}
.input-with-icon.login-field-invalid .form-input {
  border-color: #ef4444;
}
.input-with-icon.login-field-invalid .input-icon {
  color: #ef4444;
}

.form-input.reg-field-valid {
  border-color: #22c55e;
  background-color: #f0fdf4;
}
.form-input.reg-field-valid::placeholder {
  color: #86efac;
}

.form-input.reg-field-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.form-input.reg-field-invalid::placeholder {
  color: #fca5a5;
}

/* -------- Loading Animation -------- */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -------- Form Helper Animations -------- */
#email-feedback {
  animation: fadeIn 0.3s ease both;
}

/* -------- Button Disabled State -------- */
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* -------- Grid Layout -------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

/* -------- Utility Classes -------- */
.hidden { display: none !important; }
.w-full { width: 100%; }
.mb-3 { margin-bottom: 12px; }

/* -------- Input Focus Enhancements -------- */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(242, 13, 32, 0.08);
}

/* -------- Input Icon Animation -------- */
.input-with-icon .input-icon {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-with-icon .form-input:focus ~ .input-icon,
.input-with-icon:focus-within .input-icon {
  transform: scale(1.1);
}

/* -------- Email Feedback Animation -------- */
#email-feedback {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

/* -------- Password Reveal Button -------- */
.input-with-icon button[type="button"] {
  transition: all 0.2s ease;
}

.input-with-icon button[type="button"]:hover {
  color: var(--primary);
}

/* -------- Form Success/Error Animation -------- */
.form-input.reg-field-valid:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-input.reg-field-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* -------- Badges -------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-urgent { background: #fee2e2; color: #b91c1c; }
.badge-high { background: #ffedd5; color: #c2410c; }
.badge-normal { background: #dcfce7; color: #15803d; }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-live {
  background: var(--primary-light); color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  animation: pulse 2s infinite;
}

/* -------- Blood Type Badge -------- */
.blood-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--primary-light); color: var(--primary);
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.blood-badge-lg {
  min-width: 60px; height: 60px; border-radius: var(--radius-lg);
  font-size: 20px;
}

/* -------- Distance Badge -------- */
.dist-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f1f5f9; padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: #475569;
}
.dist-badge .material-symbols-outlined { font-size: 13px; }

/* -------- Toast -------- */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--white); border-radius: var(--radius-lg); padding: 14px 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-primary);
  border-left: 4px solid var(--primary);
  max-width: 360px; min-width: 260px;
  transform: translateY(90px) scale(0.95); opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
#toast.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
#toast.success { border-left-color: var(--success); }
#toast.warning { border-left-color: var(--warning); }
#toast.info { border-left-color: var(--info); }
#toast.error { border-left-color: var(--danger); }
#toast .toast-close {
  margin-left: auto; background: none; border: none;
  color: var(--text-muted); cursor: pointer; padding: 2px;
  transition: color var(--transition);
}
#toast .toast-close:hover { color: var(--text-primary); }

/* -------- Modal -------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  border-radius: var(--radius-xl); background: var(--white);
  box-shadow: var(--shadow-xl);
  max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: all var(--transition);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-header {
  padding: 24px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-body { padding: 20px 28px; }
.modal-footer { padding: 0 28px 24px; display: flex; gap: 12px; }

/* -------- Dropdown -------- */
.dropdown-menu {
  position: absolute; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  min-width: 200px; z-index: 500;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition);
  overflow: hidden;
}
.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition); cursor: pointer;
}
.dropdown-item:hover { background: #f8fafc; color: var(--text-primary); }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger:hover { background: #fef2f2; }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 4px 0; }

/* -------- Layout: App Shell -------- */
#app { min-height: 100vh; }
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

.app-shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(242,13,32,0.08);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  transition: transform var(--transition-slow), width var(--transition-slow);
}
.sidebar-logo {
  padding: 22px 20px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(242,13,32,0.06);
}
.sidebar-logo-icon {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(242,13,32,0.3);
  flex-shrink: 0;
}
.sidebar-logo-text { font-family: var(--font-serif); font-size: 18px; color: var(--text-primary); }
.sidebar-nav { padding: 12px 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition); cursor: pointer; position: relative;
  user-select: none;
}
.nav-item:hover { background: rgba(242,13,32,0.06); color: var(--primary); }
.nav-item.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(242,13,32,0.28);
}
.nav-item.active:hover { background: var(--primary-dark); }
.nav-item .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: var(--radius-full); min-width: 20px; text-align: center;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); }
.sidebar-tip {
  margin: 0 10px 10px;
  background: rgba(242,13,32,0.05);
  border: 1px solid rgba(242,13,32,0.12);
  border-radius: var(--radius-md); padding: 14px;
}
.sidebar-tip-label { font-size: 11px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.sidebar-tip-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.sidebar-footer { padding: 10px; border-top: 1px solid rgba(242,13,32,0.06); }

/* -------- Dashboard Main -------- */
.dash-main { flex: 1; overflow-y: auto; overflow-x: hidden; background: var(--bg); }
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,245,246,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(242,13,32,0.06);
  padding: 0 28px;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.location-chip {
  display: flex; align-items: center; gap: 5px;
  background: #f1f5f9; padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.location-chip .material-symbols-outlined { font-size: 14px; color: var(--primary); }
.notif-btn {
  position: relative; width: 38px; height: 38px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition); cursor: pointer;
}
.notif-btn:hover { color: var(--primary); box-shadow: var(--shadow-md); }
.notif-dot {
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px; background: var(--primary);
  border-radius: 50%; border: 2px solid var(--bg); display: none;
}
.avatar-btn {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
  position: relative;
}
.avatar-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.avatar-wrapper { position: relative; }
.avatar-wrapper .dropdown-menu { right: 0; top: calc(100% + 8px); min-width: 220px; }

.dash-content { padding: 28px; max-width: 1200px; margin: 0 auto; }

/* -------- Dashboard Cards -------- */
.stat-card { border-radius: var(--radius-lg); padding: 22px; background: var(--white); box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.stat-value { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* -------- Request Card -------- */
.request-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px;
  border-left: 4px solid transparent;
  transition: all var(--transition);
}
.request-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.request-card.urgent { border-left-color: var(--primary); }
.request-card.high { border-left-color: #f97316; }
.request-card.normal { border-left-color: var(--success); }

/* -------- Progress Bar -------- */
.progress-bar {
  height: 6px; border-radius: 3px;
  background: #f1f5f9; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px; background: var(--primary);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.progress-fill.green { background: var(--success); }
.progress-fill.blue { background: var(--info); }

/* -------- Animations -------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,13,32,0.4); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(242,13,32,0); opacity: 0.8; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}
.animate-fade { animation: fadeIn 0.4s ease both; }
.animate-slide { animation: slideInLeft 0.35s ease both; }
.animate-scale { animation: scaleIn 0.3s ease both; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }

/* -------- Skeleton Loader -------- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* -------- Empty State -------- */
.empty-state {
  text-align: center; padding: 64px 20px;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.empty-state .empty-icon {
  font-size: 56px; color: #e2e8f0; margin-bottom: 16px;
}
.empty-state h4 { font-size: 17px; color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); max-width: 280px; margin: 0 auto 24px; line-height: 1.6; }

/* -------- Mobile Bottom Nav -------- */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(242,13,32,0.08);
  display: none; justify-content: space-around; padding: 8px 0 12px;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 16px; border-radius: var(--radius-md);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); transition: all var(--transition); cursor: pointer;
}
.mobile-nav-item .material-symbols-outlined { font-size: 22px; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item:active { transform: scale(0.9); }

/* -------- Mobile Sidebar Overlay -------- */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 299; display: none;
}
.sidebar-overlay.open { display: block; }

/* -------- Map Placeholder -------- */
.map-container {
  background: linear-gradient(135deg, #e8edf2 0%, #f1f5f9 100%);
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}
.map-pin {
  position: absolute;
  animation: pulse 2.5s infinite;
}
.map-pin .material-symbols-outlined {
  font-size: 28px; color: var(--primary);
  filter: drop-shadow(0 2px 6px rgba(242,13,32,0.4));
  font-variation-settings: 'FILL' 1;
}

/* -------- Testimonial Cards -------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-3px); }
.testimonial-quote {
  position: absolute; top: 16px; right: 20px;
  font-size: 64px; color: rgba(242,13,32,0.08);
  font-family: var(--font-serif); line-height: 1;
}

/* -------- Tag -------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
}

/* -------- Accordion -------- */
.accordion-item {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; background: none; border: none;
  font-family: var(--font-sans); text-align: left; gap: 16px;
}
.accordion-trigger h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.accordion-icon {
  flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.accordion-body-inner { padding: 0 22px 18px; }
.accordion-body-inner p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* -------- Landing Specific -------- */
.hero-bg {
  background: radial-gradient(ellipse at 70% 20%, rgba(242,13,32,0.06), transparent 50%),
              radial-gradient(ellipse at 15% 85%, rgba(242,13,32,0.04), transparent 45%),
              var(--bg);
}
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; padding: 16px 24px;
}
.nav-pill {
  max-width: 1100px; margin: 0 auto;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.landing-main { padding-top: 100px; }

/* -------- Divider -------- */
.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-subtle);
}

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .dash-content { padding: 20px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 300;
    transform: translateX(-100%); width: 260px;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .mobile-nav { display: flex; }
  .dash-content { padding: 16px 16px 80px; }
  .topbar { padding: 0 16px; }
  .topbar .location-chip { display: none; }
  .landing-main { padding-top: 88px; }
  .landing-nav { padding: 12px 16px; }
  .nav-pill { padding: 8px 16px; }
}

@media (max-width: 480px) {
  .dash-content { padding: 12px 12px 80px; }
}

/* -------- Section: "Voices" -------- */
.section-voices {
  padding: 80px 24px;
  background: linear-gradient(180deg, #fff5f5 0%, var(--bg) 100%);
}
.voices-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

/* -------- CTA Strip -------- */
.cta-strip {
  background: var(--text-primary); border-radius: var(--radius-xl);
  padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-strip-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(242,13,32,0.3), transparent 55%),
              radial-gradient(ellipse at 70% 50%, rgba(242,13,32,0.18), transparent 50%);
}

/* -------- Misc utilities -------- */
.divider-v { width: 1px; background: var(--border-subtle); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }
