:root {
  --bg: #eef6f8;
  --bg-deep: #063540;
  --bg-mid: #0b5a6b;
  --surface: #ffffff;
  --ink: #16333c;
  --muted: #6a8088;
  --line: #dce8ec;
  --accent: #f0a12a;
  --accent-ink: #3a2500;
  --danger: #d64545;
  --ok: #1f8a55;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(6, 53, 64, 0.08);
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Outfit", "DM Sans", sans-serif;
  --sidebar: 248px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 147, 26, 0.12), transparent 55%),
    linear-gradient(180deg, #e8f1f3 0%, var(--bg) 40%, #eef3f4 100%);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(11, 90, 107, 0.12);
}
a { color: var(--bg-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-size: 16px; }

.public-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: max(1.25rem, var(--safe-t)) max(1rem, var(--safe-r)) max(2.5rem, calc(var(--safe-b) + 1.5rem)) max(1rem, var(--safe-l));
}

.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bg-deep);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.brand-mark span { color: var(--accent); }

.hero-card {
  background: linear-gradient(145deg, var(--bg-deep), var(--bg-mid));
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(232,147,26,.35), transparent 65%);
  pointer-events: none;
}
.hero-card h1 {
  font-family: var(--display);
  font-size: 1.65rem;
  margin: 0 0 0.4rem;
  position: relative;
  z-index: 1;
}
.hero-card p {
  margin: 0;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.action-grid {
  display: grid;
  gap: 0.75rem;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-height: 56px;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
  text-decoration: none;
}
.action-btn:hover {
  transform: translateY(-2px);
  border-color: #9fbfc8;
  text-decoration: none;
}
.action-btn .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e7f3f5;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.action-btn.emergency .icon { background: #fde8e6; }
.action-btn.lost .icon { background: #fff3df; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  animation: rise .35s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.panel h2 {
  font-family: var(--display);
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.muted { color: var(--muted); font-size: 0.92rem; }
.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(11,61,74,.18);
  margin: 0 auto 1rem;
  background: #d9e8ec;
}
.profile-photo.placeholder {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--bg-mid);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e5f6ec;
  color: var(--ok);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.badge.warn { background: #fff3df; color: #8a5a00; }
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list .label { color: var(--muted); }
.meta-list .value { font-weight: 600; text-align: right; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  min-height: 44px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-deep);
  color: #fff;
  width: 100%;
  margin-top: 0.6rem;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--bg-mid); text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: #e8f1f3; color: var(--bg-deep); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger); }
.btn.inline { width: auto; margin-top: 0; padding: 0.5rem 0.9rem; font-size: 0.9rem; }

.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid rgba(18, 89, 104, 0.25);
  border-color: var(--bg-mid);
}
.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert.ok { background: #e5f6ec; color: var(--ok); }
.alert.error { background: #fde8e6; color: var(--danger); }
.alert.info { background: #e7f3f5; color: var(--bg-deep); }

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem max(2rem, calc(var(--safe-b) + 1rem));
  color: var(--muted);
  font-size: 0.85rem;
}
.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 600;
  min-height: 44px;
  align-items: center;
}

/* ========== Admin layout ========== */
.admin-body {
  background: #e9f4f7;
  min-height: 100vh;
  min-height: 100dvh;
}
.admin-body.nav-open { overflow: hidden; }

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar);
  height: 100dvh;
  background:
    linear-gradient(180deg, #042f3a 0%, #063d4a 42%, #052831 100%);
  color: #fff;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: calc(1.1rem + var(--safe-t)) 1rem calc(1.2rem + var(--safe-b));
  overflow: auto;
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.2rem;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-logo-wrap {
  background: transparent;
  border-radius: 0;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: none;
  transition: transform 0.2s ease;
}
.sidebar-logo-wrap:hover {
  transform: scale(1.02);
  box-shadow: none;
}
.sidebar-logo-img {
  width: 100%;
  max-width: 135px;
  height: auto;
  display: block;
  background: transparent;
  border-radius: 0;
  transition: opacity 0.2s;
}
.sidebar-logo-img:hover { opacity: 0.92; }
.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  padding: 0.72rem 0.9rem;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.nav-ico { display: grid; place-items: center; width: 22px; }
.nav-badge {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 3px rgba(255,77,79,.18);
  font-size: 0;
}
.sidebar-nav .nav-logout { margin-top: 0.4rem; color: #ffd9a8; }

.sidebar-art { display: none !important; }
.sidebar-tagline {
  margin: 0.6rem 0.4rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  position: relative;
}
.sidebar-tagline::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 0.45rem;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 26, 0.45);
  z-index: 70;
}

.admin-shell {
  margin-left: var(--sidebar);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.admin-mobilebar { display: none; }
.admin-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
}
.admin-footer {
  text-align: center;
  padding: 1rem 1rem max(1.5rem, var(--safe-b));
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-footer p { margin: 0.15rem 0; }
.admin-footer p.muted { color: #64748b; }
.admin-footer::before {
  content: "—  RIDESAFE QR Administration  —";
  display: block;
  color: #10b981;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}
.admin-footer p:first-child { display: none; }

.dash-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dash-head h1 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #12353e;
}
.dash-ico { color: #1a8fa3; display: grid; }
.dash-sub { margin: 0.25rem 0 0; color: var(--muted); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-add:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.4);
}
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
  color: #1d3c44;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.date-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 0.75rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  padding: 1rem 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 148px;
  display: flex;
  flex-direction: column;
}
.stat-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.stat-top { display: flex; align-items: center; gap: 0.55rem; }
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}
.stat-go { margin-left: auto; color: #b7c6cb; font-size: 1.4rem; }
.stat-lbl { margin-top: 0.55rem; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.stat-trend { margin-top: auto; font-size: 0.8rem; font-weight: 700; padding-top: 0.55rem; }
.stat-trend small { font-weight: 500; color: var(--muted); }
.stat-trend.up { color: var(--ok); }
.stat-trend.down { color: var(--danger); }
.stat-trend.flat { color: #8a9aa0; }
.stat-wave {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 120px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.tone-blue .stat-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #ffffff; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35); }
.tone-blue .stat-wave { background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15), transparent 70%); }
.tone-green .stat-icon { background: linear-gradient(135deg, #10b981, #059669); color: #ffffff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); }
.tone-green .stat-wave { background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.15), transparent 70%); }
.tone-purple .stat-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #ffffff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35); }
.tone-purple .stat-wave { background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.15), transparent 70%); }
.tone-orange .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35); }
.tone-orange .stat-wave { background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.15), transparent 70%); }
.tone-teal .stat-icon { background: linear-gradient(135deg, #14b8a6, #0d9488); color: #ffffff; box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35); }
.tone-teal .stat-wave { background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.15), transparent 70%); }
.tone-red .stat-icon { background: linear-gradient(135deg, #ef4444, #dc2626); color: #ffffff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
.tone-red .stat-wave { background: radial-gradient(circle at 30% 30%, rgba(239, 68, 68, 0.15), transparent 70%); }

.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dash-panel {
  background: #fff;
  border-radius: 22px;
  padding: 1.1rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.dash-panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-panel-head a { font-weight: 600; font-size: 0.88rem; color: #6a8088; }
.panel-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.panel-ico.teal { background: #12343f; color: #fff; }
.panel-ico.navy { background: #12343f; color: #fff; }
.empty-state { text-align: center; padding: 2.4rem 1rem 1.5rem; }
.empty-art { font-size: 2.4rem; margin-bottom: 0.6rem; filter: grayscale(.1); }
.empty-title { font-weight: 700; margin: 0 0 0.25rem; }
.activity-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.activity-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.activity-list .label { font-weight: 600; }
.activity-list .value { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 720px;
}
table.data th, table.data td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.data th {
  background: #f4f8f9;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
table.data tr:last-child td { border-bottom: 0; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.toolbar h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.form-grid .full { grid-column: 1 / -1; }
.check-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
  min-height: 44px;
}
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}
.pagination .active a {
  background: var(--bg-deep);
  color: #fff;
  border-color: var(--bg-deep);
}
.login-wrap {
  max-width: 420px;
  margin: 8vh auto;
  padding: 0 1rem;
}
.login-hero {
  text-align: center;
  margin-bottom: 1rem;
}
.login-hero h2 { font-family: var(--display); margin: 0.4rem 0 0.2rem; }
.qr-box,
.qr-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  max-width: 420px;
}

/* ── New QR Card Design ───────────────────────────── */
.qr-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.qr-card-visual {
  width: 240px;
  background: linear-gradient(160deg, #061c22 0%, #030f12 100%);
  border: 1.5px solid rgba(0, 230, 153, 0.35);
  border-radius: 22px;
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  box-shadow:
    0 0 0 1px rgba(0, 230, 153, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 230, 153, 0.08);
  position: relative;
  overflow: hidden;
}

.qr-card-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 230, 153, 0.12), transparent 70%);
  pointer-events: none;
}

/* Logo row */
.qr-card-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 1;
}

.qr-card-logo img {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 230, 153, 0.4));
}

.qr-card-brand {
  font-family: var(--display, 'Outfit', sans-serif);
  font-style: italic;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.qr-brand-green {
  color: #00e699;
  text-shadow: 0 0 12px rgba(0, 230, 153, 0.6);
}

.qr-brand-qr {
  color: #ffffff;
}

/* QR code frame */
.qr-card-code {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 230, 153, 0.15);
  z-index: 1;
}

.qr-card-code svg {
  display: block;
  width: 180px;
  height: auto;
}

/* Bottom label */
.qr-card-label {
  font-family: var(--display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #00e699;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0, 230, 153, 0.5);
  z-index: 1;
}

/* Action buttons */
.qr-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Print media */
@media print {
  body * { visibility: hidden; }
  #qr-print-area, #qr-print-area * { visibility: visible; }
  #qr-print-area {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #030f12;
    border: none;
    box-shadow: none;
    margin: auto;
    width: 260px;
    height: auto;
    border-radius: 22px;
    border: 2px solid rgba(0, 230, 153, 0.4);
  }
  .qr-card-code svg { width: 200px; }
}

/* Legacy print rule */
.qr-print-area { text-align: center; padding: 0.5rem 0 1rem; }
.qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem;
  margin: 0 auto;
}
.qr-frame svg {
  display: block;
  width: min(240px, 70vw);
  height: auto;
}
.qr-caption { margin-top: 0.65rem; }
.qr-caption strong { display: block; font-size: 1.1rem; }
.qr-caption span { color: var(--muted); font-size: 0.9rem; }
.qr-url { font-size: 0.85rem; word-break: break-all; }

/* Mobile / tablet */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .admin-sidebar {
    transform: translateX(-105%);
    transition: transform .22s ease;
    padding-left: calc(1rem + var(--safe-l));
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-shell { margin-left: 0; }
  .admin-mobilebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: calc(0.7rem + var(--safe-t)) 0.9rem 0.7rem;
    background: #063540;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
  }
  .mobile-brand {
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
  }
  .mobile-brand span { color: var(--accent); }
  .mobile-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #3a2500;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
  }
  .menu-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .dash-panels { grid-template-columns: 1fr; }
  .admin-main { padding: 1rem 0.9rem 1.25rem; }
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-head h1 { font-size: 1.4rem; }
  .date-chip { width: 100%; }
  .btn-add { width: 100%; }
  .dash-actions { width: 100%; }
  .meta-list li, .activity-list li { flex-direction: column; gap: 0.15rem; }
  .meta-list .value, .activity-list .value { text-align: left; }
  table.data td form { display: flex; flex-wrap: wrap; gap: 0.35rem; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.admin-body.is-login {
  background: #031218;
  min-height: 100vh;
  min-height: 100dvh;
}
.admin-body.is-login .admin-shell {
  margin-left: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.admin-body.is-login .admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  max-width: 100%;
}
.admin-body.is-login .admin-footer {
  padding: 0.5rem 1rem 1rem;
  z-index: 2;
  position: relative;
  margin-top: auto;
}
.admin-body.is-login .admin-footer::before {
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
}
.admin-body.is-login .admin-footer p.muted {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ========== Logo Badges & Brand Elements ========== */
.logo-badge {
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  overflow: visible;
}
.logo-badge img { display: block; width: 130px; height: auto; }
.logo-badge-lg img { width: min(280px, 80vw); }
.public-logo {
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* New centered logo hero for public pages */
.public-logo-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}
.pub-logo-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  width: 100%;
}
.pub-logo-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

/* ========== Brand Text & Tagline Styling ========== */
.brand-text-block {
  text-align: center;
  margin-top: 0.5rem;
  width: 100%;
}
.brand-title {
  font-family: var(--display, 'Outfit', 'DM Sans', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  color: #0d2938;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.brand-title .brand-green {
  color: #22c55e;
}
.brand-title .brand-qr {
  color: #0d2938;
}
.brand-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.brand-tagline .tagline-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  white-space: nowrap;
}
.brand-tagline .tagline-line {
  flex: 1;
  max-width: 36px;
  height: 2px;
  background-color: #22c55e;
  border-radius: 1px;
}

/* Sidebar variant for dark background */
.sidebar-brand .brand-text-block {
  margin-top: 0.3rem;
}
.sidebar-brand .brand-title {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.sidebar-brand .brand-title .brand-qr {
  color: #ffffff;
}
.sidebar-brand .brand-tagline .tagline-text {
  font-size: 0.52rem;
  color: #cbd5e1;
  letter-spacing: 0.05em;
}
.sidebar-brand .brand-tagline .tagline-line {
  max-width: 16px;
}

.public-logo-sm {
  margin: 0 auto 0.85rem;
  display: flex;
  background: transparent;
}
.public-logo-sm img { width: min(180px, 55vw); }
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.footer-logo img {
  width: 130px;
  height: auto;
  background: transparent;
  border-radius: 0;
}
.mobile-brand img {
  height: 44px;
  width: auto;
  display: block;
  background: transparent;
}
.sidebar-logo-wrap-new {
  background: transparent;
  border-radius: 0;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
/* Override old sidebar-logo-img if still referenced elsewhere */
.sidebar-logo-img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  background: transparent;
}

/* ========== Professional Rider Edit Page ========== */
.edit-page {
  max-width: 1040px;
  margin: 0 auto;
}
.edit-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.edit-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.edit-breadcrumb a {
  color: var(--bg-mid);
  text-decoration: none;
}
.edit-breadcrumb a:hover { text-decoration: underline; }
.edit-breadcrumb .sep { opacity: 0.5; }
.edit-breadcrumb .current { color: var(--ink); }

.edit-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.edit-top h1 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: #062a35;
  letter-spacing: -0.01em;
}
.edit-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

/* Badges */
.badge-verified {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.badge-unverified {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.badge-status-active {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.badge-status-inactive {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.3);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* Edit Cards */
.edit-card {
  background: #ffffff;
  border: 1px solid rgba(11, 74, 90, 0.12);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(6, 42, 53, 0.05);
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.edit-card:hover {
  box-shadow: 0 14px 36px rgba(6, 42, 53, 0.08);
  border-color: rgba(11, 74, 90, 0.2);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.card-header h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 0.2rem;
  color: #062a35;
  font-weight: 700;
}
.card-header .section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.card-icon.cyan { background: #e0f2fe; color: #0284c7; }
.card-icon.emerald { background: #d1fae5; color: #059669; }
.card-icon.red { background: #fee2e2; color: #dc2626; }
.card-icon.amber { background: #fef3c7; color: #d97706; }

/* Edit Hero Section */
.edit-hero-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcfe 100%);
}
.photo-drop {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.avatar-preview-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar-preview-wrap img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  object-fit: cover;
  background: linear-gradient(135deg, #093c4a, #04242d);
  border: 3px solid #ffffff;
  box-shadow: 0 10px 24px rgba(6, 53, 64, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avatar-preview-wrap img.is-placeholder {
  object-fit: contain;
  padding: 10px;
}
.avatar-preview-wrap:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(6, 53, 64, 0.22);
}
.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #0ea5e9;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.photo-drop-meta strong {
  display: block;
  font-size: 1.05rem;
  color: #062a35;
}
.photo-drop-meta p {
  margin: 0.2rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.edit-hero-id {
  background: linear-gradient(135deg, #062a35, #0a4354);
  color: #fff;
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(6, 42, 53, 0.18);
  position: relative;
  overflow: hidden;
}
.edit-hero-id::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
  pointer-events: none;
}
.id-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.id-chip {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px dashed rgba(16, 185, 129, 0.5);
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 12px;
  letter-spacing: 0.04em;
}
.id-chip-soon {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.edit-hero-id p.muted {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
}

/* Custom Toggle Switches */
.switch-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  margin-top: 0.55rem;
  user-select: none;
}
.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.switch-input:checked + .switch-slider {
  background-color: #10b981;
}
.switch-input:focus + .switch-slider {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
}
.switch-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

/* Form Privacy Cards */
.privacy-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.privacy-card:focus-within {
  background: #ffffff;
  border-color: #0ea5e9;
}

.tag-private {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.req { color: #dc2626; font-weight: 700; }

/* Form Field Styling */
.form-group label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0ea5e9;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* Sticky Save Actions Bar */
.edit-save-bar {
  position: sticky;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11, 74, 90, 0.15);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 12px 35px rgba(6, 42, 53, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 50;
  margin-top: 1.5rem;
}
.edit-save-bar .btn.primary-save {
  background: linear-gradient(135deg, #062a35, #0b4a5a);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 14px;
  width: auto;
  box-shadow: 0 6px 18px rgba(6, 42, 53, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.edit-save-bar .btn.primary-save:hover {
  background: linear-gradient(135deg, #093c4a, #0e5b6e);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(6, 42, 53, 0.32);
}
.edit-save-bar .btn.secondary {
  width: auto;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: #e2e8f0;
  color: #334155;
}

@media (max-width: 840px) {
  .edit-hero-card { grid-template-columns: 1fr; }
  .photo-drop { flex-direction: column; align-items: flex-start; }
  .edit-save-bar { flex-direction: column; }
  .edit-save-bar .btn { width: 100%; max-width: none; }
}

/* ========== Page Header (Professional layout for all list pages) ========== */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.page-head-main h1 {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  color: #062a35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #062a35, #0b4a5a);
  color: #fff;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(6, 42, 53, 0.22);
}
.page-sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.page-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ========== Filter Panel ========== */
.filter-panel {
  background: #ffffff;
  border: 1px solid rgba(11, 74, 90, 0.12);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 22px rgba(6, 42, 53, 0.04);
  margin-bottom: 1.25rem;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}
.filter-field label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.filter-field input,
.filter-field select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-field input:focus,
.filter-field select:focus {
  outline: 0;
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* ========== Table Enhancements ========== */
.table-wrap {
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(6, 42, 53, 0.06);
}
table.data th {
  background: linear-gradient(to right, #f4f8f9, #f0f6f8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5b7c85;
  padding: 0.9rem 1rem;
}
table.data td { padding: 0.9rem 1rem; }
.rider-row { transition: background 0.12s ease; }
.rider-row:hover { background: #f6fbfc; }
.row-new { background: #f0fdf4 !important; border-left: 3px solid #10b981; }

.qr-id-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #062a35, #0b4a5a);
  color: #10b981;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
}
.rider-name {
  font-weight: 600;
  color: #0f172a;
}
.plate-badge {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 7px;
  font-family: monospace;
}

/* Status tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.25rem;
}
.status-tag.verified { background: #d1fae5; color: #059669; }
.status-tag.unverified { background: #fef3c7; color: #d97706; }
.status-tag.active { background: #dbeafe; color: #1d4ed8; }
.status-tag.inactive { background: #f1f5f9; color: #64748b; }
.status-tag.archived { background: #fce7f3; color: #be185d; }

/* Action buttons in table */
.status-cell, .actions-cell { white-space: nowrap; }
.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: #f1f5f9;
  color: #334155;
  font-family: inherit;
  transition: background 0.15s, transform 0.12s;
  margin-right: 2px;
}
.act-btn:hover { background: #e2e8f0; text-decoration: none; transform: translateY(-1px); }
.act-btn.act-green { background: #d1fae5; color: #059669; border-color: rgba(5, 150, 105, 0.2); }
.act-btn.act-green:hover { background: #a7f3d0; }
.act-btn.act-warn { background: #fef3c7; color: #d97706; border-color: rgba(217, 119, 6, 0.2); }
.act-btn.act-warn:hover { background: #fde68a; }
.act-btn.act-danger { background: #fee2e2; color: #dc2626; border-color: rgba(220, 38, 38, 0.2); }
.act-btn.act-danger:hover { background: #fecaca; }

/* Table empty state */
.table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
  gap: 0.75rem;
}
.table-empty p { margin: 0; font-size: 0.95rem; }

/* Alert with icon */
.alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.alert svg { flex-shrink: 0; }

/* ========== Professional Login Page Styling ========== */
.login-page-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem 0.25rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.login-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(4, 30, 38, 0.85) 0%, #031218 100%);
  z-index: 0;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  animation: loginFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-hero {
  text-align: center;
  margin-bottom: 0.75rem;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.login-logo-img {
  width: min(115px, 32vw);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.login-hero .brand-title {
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1.25;
}

.login-hero .brand-title .brand-qr {
  color: #ffffff;
}

.login-hero .brand-tagline {
  margin-top: 0.15rem;
}

.login-hero .brand-tagline .tagline-text {
  color: #94a3b8;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.admin-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  margin-top: 0.45rem;
}

.admin-portal-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.login-card {
  background: rgba(13, 31, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-card-header {
  margin-bottom: 0.85rem;
  text-align: center;
}

.login-card-header h2 {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem;
}

.login-subtitle {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
}

.login-alert {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.login-form .form-group {
  margin-bottom: 0.8rem;
}

.login-form label {
  display: block;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-with-icon input,
.form-group .input-with-icon input,
.form-group .input-with-icon input[type="text"],
.form-group .input-with-icon input[type="password"],
.form-group .input-with-icon input[type="email"] {
  width: 100%;
  background: rgba(4, 18, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.8rem 2.85rem 0.8rem 2.85rem !important;
  color: #ffffff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-with-icon input:focus,
.form-group .input-with-icon input:focus {
  outline: none;
  background: rgba(4, 18, 24, 0.95);
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.input-with-icon input:focus ~ .input-icon,
.input-with-icon input:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
  color: #34d399;
}

.input-with-icon input::placeholder {
  color: #475569;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: transparent;
  border: none;
  color: #64748b;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: #34d399;
}

.login-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.login-btn:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.4) !important;
}

.login-btn:active {
  transform: translateY(0) !important;
}

.login-footer-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 0.78rem;
  text-align: center;
}

/* ========== Settings Grid ========== */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.settings-save {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
}
.btn.primary-save {
  background: linear-gradient(135deg, #062a35, #0b4a5a);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(6, 42, 53, 0.22);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn.primary-save:hover {
  background: linear-gradient(135deg, #093c4a, #0e5b6e);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 42, 53, 0.3);
}

@media (max-width: 720px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head-main h1 { font-size: 1.5rem; }
  .filter-form { flex-direction: column; }
  .filter-field { max-width: 100%; }
  .login-card { padding: 1.25rem 1rem; }
  .settings-save { flex-direction: column; }
}

/* ==========================================================================
   RIDESAFE QR — High Tech Emerald Landing Page Theme (Matches Design Photo)
   ========================================================================== */

body.landing-page {
  background-color: #030f12 !important;
  color: #f8fafc;
  font-family: var(--font);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body.landing-page a {
  text-decoration: none;
}

.lp-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Navbar */
.lp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 230, 153, 0.12);
  transition: all 0.3s ease;
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lp-brand-icon {
  display: grid;
  place-items: center;
}

.lp-brand-text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.lp-green {
  color: #00e699;
}

.lp-qr {
  font-weight: 800;
  color: #ffffff;
}

.lp-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.lp-nav-link {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.lp-nav-link:hover,
.lp-nav-link.active {
  color: #00e699;
}

.lp-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #00e699;
  box-shadow: 0 0 8px #00e699;
  border-radius: 2px;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lp-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00C896 0%, #009973 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.35);
  transition: all 0.25s ease;
}

.lp-btn-login:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 230, 153, 0.5);
  color: #ffffff;
}

.lp-user-icon {
  display: grid;
  place-items: center;
}

.lp-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.lp-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #00e699;
  border-radius: 2px;
}

/* Hero Section */
.lp-hero {
  position: relative;
  min-height: 90vh;
  background: #030f12;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 3.5rem;
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0.25;
  filter: brightness(0.7) contrast(1.2);
}

.lp-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(0, 230, 153, 0.14), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(0, 200, 150, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(3,15,18,0.88) 0%, rgba(3,15,18,0.7) 50%, rgba(3,15,18,0.98) 100%);
}

.lp-hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 230, 153, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.lp-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.lp-hero-content {
  max-width: 630px;
}

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #00e699;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.lp-badge-dash {
  display: inline-block;
  width: 30px;
  height: 3px;
  background: #00e699;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 230, 153, 0.6);
}

.lp-hero-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}

.lp-hero-title .lp-green {
  text-shadow: 0 0 25px rgba(0, 230, 153, 0.5);
}

.lp-hero-headline {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 0.85rem;
}

.lp-hero-subtext {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: #8eaab0;
  line-height: 1.6;
  margin: 0 0 2.2rem;
}

.lp-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #00C896 0%, #009973 100%);
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.4);
  transition: all 0.25s ease;
}

.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 230, 153, 0.55);
}

.lp-btn-arrow {
  transition: transform 0.2s ease;
}

.lp-btn-primary:hover .lp-btn-arrow {
  transform: translateX(4px);
}

.lp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 230, 153, 0.04);
  border: 1.5px solid rgba(0, 230, 153, 0.4);
  color: #ffffff !important;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: 32px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.lp-btn-secondary:hover {
  background: rgba(0, 230, 153, 0.15);
  border-color: #00e699;
}

/* 3D Visual Stage (Phone + Stand + Glass Cards) */
.lp-hero-visual {
  position: relative;
}

.lp-visual-stage {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone Mockup */
.lp-phone-wrapper {
  position: relative;
  z-index: 3;
}

.lp-phone-frame {
  width: 240px;
  height: 480px;
  background: #041519;
  border: 3px solid rgba(0, 230, 153, 0.4);
  border-radius: 38px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 230, 153, 0.2);
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.lp-phone-speaker {
  width: 50px;
  height: 4px;
  background: #0b323c;
  border-radius: 4px;
  margin: 0 auto 6px;
}

.lp-phone-screen {
  width: 100%;
  height: calc(100% - 10px);
  background: linear-gradient(180deg, #061c22 0%, #030e11 100%);
  border-radius: 28px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.lp-screen-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lp-screen-brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.lp-screen-slogan {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: #00e699;
  margin-top: 3px;
  font-weight: 600;
}

.lp-screen-body {
  flex: 1;
  display: grid;
  place-items: center;
}

.lp-scan-box {
  width: 145px;
  height: 145px;
  position: relative;
  border: 1px dashed rgba(0, 230, 153, 0.25);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 230, 153, 0.04);
}

.lp-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #00e699;
  border-style: solid;
}

.lp-corner.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.lp-corner.tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.lp-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.lp-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }

.lp-scan-laser {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #00e699;
  box-shadow: 0 0 10px #00e699;
  animation: scanLaser 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes scanLaser {
  0%, 100% { top: 10px; }
  50% { top: 125px; }
}

.lp-qr-render svg {
  border-radius: 6px;
  background: #ffffff;
  padding: 4px;
}

.lp-screen-badge {
  background: rgba(0, 200, 150, 0.2);
  border: 1px solid rgba(0, 230, 153, 0.5);
  border-radius: 24px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 230, 153, 0.25);
  margin-bottom: 4px;
}

.lp-badge-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e699;
  color: #030f12;
  display: grid;
  place-items: center;
}

.lp-badge-info {
  text-align: left;
}

.lp-badge-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.lp-badge-sub {
  display: block;
  font-size: 0.6rem;
  color: #00e699;
}

/* Easel Display Badge Stand */
.lp-stand-wrapper {
  position: absolute;
  left: -20px;
  bottom: 25px;
  z-index: 2;
}

.lp-stand-card {
  width: 110px;
  background: linear-gradient(145deg, #082830, #041418);
  border: 1.5px solid rgba(0, 230, 153, 0.3);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lp-stand-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ffffff;
}

.lp-stand-qr-box svg {
  border-radius: 4px;
  background: #fff;
  padding: 2px;
  margin: 4px 0;
}

.lp-stand-tag {
  font-size: 0.58rem;
  font-weight: 700;
  color: #00e699;
}

.lp-stand-base {
  width: 90px;
  height: 8px;
  background: #020a0d;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
  border-top: 1px solid rgba(0, 230, 153, 0.2);
}

/* 3 Stacked Glassmorphism Feature Cards */
.lp-glass-stack {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 250px;
}

.lp-glass-card {
  background: rgba(6, 28, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 230, 153, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 230, 153, 0.08);
  transition: all 0.3s ease;
}

.lp-glass-card:hover {
  transform: translateX(6px);
  border-color: #00e699;
  box-shadow: 0 12px 35px rgba(0, 230, 153, 0.25);
}

.lp-glass-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 230, 153, 0.12);
  border: 1px solid rgba(0, 230, 153, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 230, 153, 0.2);
}

.lp-glass-text h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.lp-glass-text p {
  font-size: 0.78rem;
  color: #8eaab0;
  margin: 2px 0 0;
  line-height: 1.3;
}

/* Bottom 4-Column Feature Bar */
.lp-bottom-bar {
  width: 100%;
  background: linear-gradient(90deg, #031216 0%, #06232b 50%, #031216 100%);
  border-top: 1px solid rgba(0, 230, 153, 0.2);
  border-bottom: 1px solid rgba(0, 230, 153, 0.15);
  padding: 1.75rem 0;
  position: relative;
  z-index: 10;
}

.lp-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.lp-bottom-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lp-bottom-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 230, 153, 0.1);
  border: 1.5px solid rgba(0, 230, 153, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 230, 153, 0.15);
}

.lp-bottom-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.lp-bottom-info p {
  font-size: 0.82rem;
  color: #8eaab0;
  margin: 2px 0 0;
}

/* Common Section Styles */
.lp-section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.lp-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.lp-section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #00e699;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.lp-section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.lp-section-desc {
  color: #8eaab0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* About Section */
.lp-about-section {
  background: #030f12;
}

.lp-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.lp-about-card {
  background: rgba(6, 28, 34, 0.6);
  border: 1px solid rgba(0, 230, 153, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.lp-about-card:hover {
  transform: translateY(-4px);
  border-color: #00e699;
  box-shadow: 0 10px 30px rgba(0, 230, 153, 0.15);
}

.lp-about-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 230, 153, 0.12);
  border: 1px solid rgba(0, 230, 153, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.lp-about-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.lp-about-card p {
  color: #8eaab0;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.lp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(4, 20, 25, 0.8);
  border: 1px solid rgba(0, 230, 153, 0.2);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.lp-stat-num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #00e699;
  display: block;
  text-shadow: 0 0 20px rgba(0, 230, 153, 0.3);
}

.lp-stat-label {
  color: #8eaab0;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 0.2rem;
  display: block;
}

/* Features Section */
.lp-features-section {
  background: linear-gradient(180deg, #030f12 0%, #05181d 100%);
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-feat-card {
  position: relative;
  background: linear-gradient(145deg, rgba(6, 28, 34, 0.7), rgba(3, 15, 18, 0.9));
  border: 1px solid rgba(0, 230, 153, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.lp-feat-card:hover {
  transform: translateY(-4px);
  border-color: #00e699;
  box-shadow: 0 12px 32px rgba(0, 230, 153, 0.2);
}

.lp-feat-badge {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(0, 230, 153, 0.35);
  margin-bottom: 0.5rem;
}

.lp-feat-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.lp-feat-card p {
  color: #8eaab0;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* How It Works Section */
.lp-works-section {
  background: #030f12;
}

.lp-steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lp-step-card {
  flex: 1;
  background: rgba(6, 28, 34, 0.6);
  border: 1px solid rgba(0, 230, 153, 0.15);
  border-radius: 20px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.lp-step-card:hover {
  border-color: #00e699;
  transform: translateY(-3px);
}

.lp-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C896, #009973);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 200, 150, 0.3);
}

.lp-step-card h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.lp-step-card p {
  color: #8eaab0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.lp-step-arrow {
  font-size: 1.8rem;
  color: #00e699;
  opacity: 0.6;
}

/* Contact CTA Section */
.lp-contact-section {
  background: #030f12;
}

.lp-contact-box {
  background: linear-gradient(135deg, rgba(6,35,42,0.9), rgba(3,18,22,0.95));
  border: 1px solid rgba(0, 230, 153, 0.3);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lp-contact-content h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 1rem;
}

.lp-contact-content p {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.lp-contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Landing Page Footer */
.lp-footer {
  background: #02090b;
  border-top: 1px solid rgba(0, 230, 153, 0.12);
  padding: 2rem 0;
}

.lp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lp-footer-copy {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .lp-hero-content {
    max-width: 100%;
    text-align: center;
  }
  .lp-hero-badge {
    justify-content: center;
  }
  .lp-hero-cta-group {
    justify-content: center;
  }
  .lp-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-about-grid, .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-steps-grid {
    flex-direction: column;
  }
  .lp-step-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .lp-nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(3, 15, 18, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 230, 153, 0.2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
  }
  .lp-nav-menu.open {
    display: flex;
  }
  .lp-mobile-toggle {
    display: flex;
  }
  .lp-bottom-grid {
    grid-template-columns: 1fr;
  }
  .lp-about-grid, .lp-features-grid {
    grid-template-columns: 1fr;
  }
  .lp-stats-row {
    grid-template-columns: 1fr;
  }
  .lp-glass-stack {
    position: static;
    transform: none;
    width: 100%;
    max-width: 280px;
    margin-top: 1.5rem;
  }
  .lp-visual-stage {
    flex-direction: column;
    min-height: auto;
  }
  .lp-stand-wrapper {
    display: none;
  }
}

/* Consistent Brand Title & Logo Image Styling matching login.php */
body.landing-page .brand-title {
  font-family: var(--display, 'Outfit', 'DM Sans', sans-serif);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: inline-block;
  line-height: 1.1;
  margin: 0;
}

body.landing-page .brand-title .brand-green {
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
}

body.landing-page .brand-title .brand-qr {
  color: #ffffff;
}

.lp-brand-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 230, 153, 0.3));
}

.lp-brand-title {
  font-size: 1.45rem;
}

.lp-hero-title.brand-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.lp-screen-logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.lp-screen-brand {
  font-size: 0.85rem;
}

.lp-stand-logo-img {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.lp-stand-brand {
  font-size: 0.65rem;
}

.lp-footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.lp-footer-brand-title {
  font-size: 1.2rem;
}

/* ==========================================================================
   Live Camera QR Scanner Page Styles (Professional Single-Logo UI)
   ========================================================================== */

body.scanner-page {
  background: #030f12 !important;
}

.scanner-main {
  padding: 6.5rem 0 3.5rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-card {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, #051a20 0%, #030e11 100%);
  border: 1.5px solid rgba(0, 230, 153, 0.35);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 230, 153, 0.15);
  padding: 2rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.scanner-header {
  margin-bottom: 1.5rem;
}

.scanner-title {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.scanner-subtitle {
  font-size: 0.85rem;
  color: #8eaab0;
  margin: 0;
  line-height: 1.4;
}

.scanner-viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  overflow: hidden;
  background: #020a0d;
  border: 2px solid rgba(0, 230, 153, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-target-box {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(0, 230, 153, 0.3);
  border-radius: 16px;
  pointer-events: none;
  z-index: 3;
}

.scanner-overlay-status {
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  z-index: 4;
  text-align: center;
}

.scanner-success-toast {
  background: rgba(0, 200, 150, 0.25);
  border: 1.5px solid rgba(0, 230, 153, 0.6);
  border-radius: 30px;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 230, 153, 0.35);
  margin-bottom: 1.25rem;
  text-align: left;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 4px 15px rgba(0, 230, 153, 0.3); }
  100% { box-shadow: 0 8px 25px rgba(0, 230, 153, 0.6); }
}

.toast-check-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00e699;
  color: #030f12;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-info strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.toast-info span {
  display: block;
  font-size: 0.75rem;
  color: #00e699;
}

.scanner-controls {
  display: flex;
  justify-content: space-around;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.scan-ctrl-btn {
  background: rgba(0, 230, 153, 0.08);
  border: 1px solid rgba(0, 230, 153, 0.3);
  color: #ffffff;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.scan-ctrl-btn:hover {
  background: rgba(0, 230, 153, 0.22);
  border-color: #00e699;
  color: #00e699;
  transform: translateY(-2px);
}

.manual-input-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 230, 153, 0.2);
}

.manual-input-box label {
  display: block;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
  text-align: left;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.input-row input {
  flex: 1;
  background: rgba(6, 28, 34, 0.8);
  border: 1px solid rgba(0, 230, 153, 0.3);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  color: #ffffff;
  font-size: 0.9rem;
}

.input-row input:focus {
  outline: none;
  border-color: #00e699;
  box-shadow: 0 0 10px rgba(0, 230, 153, 0.3);
}

.btn-go {
  background: linear-gradient(135deg, #00C896, #009973);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   RIDESAFE QR — Comprehensive Admin Portal Theme (Landing Page Design)
   ========================================================================== */

body.admin-body {
  background-color: #030f12 !important;
  color: #f8fafc !important;
  font-family: var(--font) !important;
}

.admin-sidebar {
  background: linear-gradient(180deg, #020a0d 0%, #04161c 45%, #020a0d 100%) !important;
  border-right: 1px solid rgba(0, 230, 153, 0.15) !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
}

.admin-sidebar .sidebar-nav a {
  color: #cbd5e1 !important;
  transition: all 0.2s ease !important;
}

.admin-sidebar .sidebar-nav a:hover {
  background: rgba(0, 230, 153, 0.12) !important;
  color: #00e699 !important;
}

.admin-sidebar .sidebar-nav a.active {
  background: linear-gradient(135deg, #00C896 0%, #009973 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 200, 150, 0.4) !important;
}

.admin-pill {
  background: rgba(0, 230, 153, 0.15) !important;
  border: 1px solid rgba(0, 230, 153, 0.4) !important;
  color: #00e699 !important;
}

.dash-head h1, .toolbar h1, .page-head-main h1 {
  color: #ffffff !important;
  font-family: var(--display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.dash-ico, .page-ico {
  color: #00e699 !important;
}

.dash-sub, .page-sub {
  color: #8eaab0 !important;
}

.date-chip {
  background: rgba(6, 28, 34, 0.8) !important;
  border: 1px solid rgba(0, 230, 153, 0.25) !important;
  color: #00e699 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.date-chip small {
  color: #8eaab0 !important;
}

/* Stat Cards */
.stat-card {
  background: linear-gradient(145deg, rgba(6, 28, 34, 0.75), rgba(3, 15, 18, 0.95)) !important;
  border: 1px solid rgba(0, 230, 153, 0.2) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

.stat-card:hover {
  transform: translateY(-3px) !important;
  border-color: #00e699 !important;
  box-shadow: 0 12px 35px rgba(0, 230, 153, 0.25) !important;
}

.stat-num {
  color: #00e699 !important;
  font-family: var(--display) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 20px rgba(0, 230, 153, 0.35) !important;
}

.stat-lbl {
  color: #8eaab0 !important;
}

.stat-go {
  color: rgba(0, 230, 153, 0.5) !important;
}

.stat-trend.up { color: #00e699 !important; }
.stat-trend.down { color: #ef4444 !important; }
.stat-trend.flat { color: #8eaab0 !important; }

/* Panels, Cards & Tables */
.dash-panel, .panel, .card, .table-wrap, .filter-card, .login-card, .qr-box, .qr-panel {
  background: rgba(6, 28, 34, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 230, 153, 0.2) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
}

.dash-panel-head h2, .panel h2, .panel h3, .card h2, .card h3 {
  color: #ffffff !important;
  font-family: var(--display) !important;
}

.dash-panel-head a {
  color: #00e699 !important;
}

.activity-list li {
  border-bottom-color: rgba(0, 230, 153, 0.1) !important;
}

.activity-list .label {
  color: #f1f5f9 !important;
}

.activity-list .value {
  color: #8eaab0 !important;
}

table.data {
  background: transparent !important;
}

table.data th {
  background: rgba(3, 15, 18, 0.95) !important;
  color: #00e699 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(0, 230, 153, 0.25) !important;
}

table.data td {
  color: #f1f5f9 !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(0, 230, 153, 0.1) !important;
  padding: 0.85rem 1rem !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.rider-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
  letter-spacing: 0.01em !important;
  display: inline-block !important;
}

table.data td.muted,
table.data .muted {
  color: #cbd5e1 !important;
  font-weight: 500 !important;
}

.qr-id-badge {
  display: inline-block !important;
  background: rgba(0, 230, 153, 0.15) !important;
  border: 1px solid rgba(0, 230, 153, 0.4) !important;
  color: #00e699 !important;
  font-family: monospace !important;
  font-weight: 700 !important;
  padding: 0.3rem 0.65rem !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
}

table.data tr:hover td {
  background: rgba(0, 230, 153, 0.12) !important;
  color: #ffffff !important;
}

table.data tr:hover .rider-name {
  color: #00e699 !important;
  text-shadow: 0 0 12px rgba(0, 230, 153, 0.4) !important;
}

table.data tr:hover td.muted,
table.data tr:hover .muted {
  color: #ffffff !important;
}

table.data tr:last-child td {
  border-bottom: none !important;
}

/* Forms, Inputs, Selects & Textareas */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="date"], select, textarea, .form-control {
  background: rgba(4, 20, 25, 0.85) !important;
  border: 1px solid rgba(0, 230, 153, 0.25) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 0.6rem 0.9rem !important;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none !important;
  border-color: #00e699 !important;
  box-shadow: 0 0 15px rgba(0, 230, 153, 0.3) !important;
}

label, .form-label, .field-label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

/* Buttons */
.btn-add, .btn.primary, button[type="submit"].btn-primary, .btn-primary-save, .btn.btn-emerald {
  background: linear-gradient(135deg, #00C896 0%, #009973 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 30px !important;
  box-shadow: 0 6px 20px rgba(0, 200, 150, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-add:hover, .btn.primary:hover, button[type="submit"].btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(0, 230, 153, 0.5) !important;
  color: #ffffff !important;
}

.btn.secondary, .btn.btn-secondary, .btn-outline {
  background: rgba(0, 230, 153, 0.05) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.4) !important;
  color: #ffffff !important;
  border-radius: 30px !important;
  transition: all 0.25s ease !important;
}

.btn.secondary:hover, .btn.btn-secondary:hover {
  background: rgba(0, 230, 153, 0.18) !important;
  border-color: #00e699 !important;
  color: #00e699 !important;
}

/* Status Badges */
.status-badge.verified, .status-pill.active, .badge.status-verified, .badge.verified, .status-verified {
  background: rgba(0, 230, 153, 0.15) !important;
  border: 1px solid rgba(0, 230, 153, 0.4) !important;
  color: #00e699 !important;
}

.status-badge.unverified, .status-pill.pending, .badge.status-unverified, .badge.unverified, .status-unverified {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.status-badge.archived, .status-pill.archived, .badge.status-archived, .badge.archived {
  background: rgba(148, 163, 184, 0.15) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #94a3b8 !important;
}

/* Pagination & Mobile Bar */
.pagination a {
  background: rgba(4, 20, 25, 0.8) !important;
  border: 1px solid rgba(0, 230, 153, 0.25) !important;
  color: #cbd5e1 !important;
}

.pagination .active a {
  background: linear-gradient(135deg, #00C896, #009973) !important;
  color: #ffffff !important;
  border-color: #00e699 !important;
}

.admin-mobilebar {
  background: rgba(3, 15, 18, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 230, 153, 0.15) !important;
}

.admin-footer {
  color: #8eaab0 !important;
  border-top: 1px solid rgba(0, 230, 153, 0.12) !important;
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
}

.admin-footer::before {
  color: #00e699 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* ==========================================================================
   Complete Dark Glassmorphism Override for All Admin Cards, Filters & Textfields
   ========================================================================== */

/* 1. Filter Panels, Forms & Filter Cards */
.filter-panel, .filter-card {
  background: rgba(6, 28, 34, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
  padding: 1.25rem 1.4rem !important;
  margin-bottom: 1.5rem !important;
}

.filter-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 1rem !important;
}

.filter-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
}

.filter-field:first-child {
  flex: 1 1 280px !important;
}

.filter-field label {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  color: #cbd5e1 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin: 0 !important;
}

.filter-field input,
.filter-field select,
.filter-field textarea {
  height: 44px !important;
  background: rgba(4, 20, 25, 0.9) !important;
  border: 1px solid rgba(0, 230, 153, 0.3) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 0 1rem !important;
  font-size: 0.95rem !important;
  box-sizing: border-box !important;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #00e699 !important;
  background: rgba(4, 20, 25, 0.95) !important;
  box-shadow: 0 0 15px rgba(0, 230, 153, 0.3) !important;
}

.filter-form .btn.inline {
  height: 44px !important;
  padding: 0 1.25rem !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  background: linear-gradient(135deg, #00C896 0%, #009973 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 200, 150, 0.3) !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.filter-form .btn.inline:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0, 230, 153, 0.45) !important;
  background: linear-gradient(135deg, #00e699 0%, #00b377 100%) !important;
  color: #ffffff !important;
}

.filter-form .btn.inline.secondary {
  background: rgba(0, 230, 153, 0.08) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.35) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.filter-form .btn.inline.secondary:hover {
  background: rgba(0, 230, 153, 0.2) !important;
  border-color: #00e699 !important;
  color: #00e699 !important;
}

/* 2. Edit Cards, Section Cards, Settings Cards, Hero Cards & Privacy Cards */
.edit-card, .edit-hero-card, .section-card, .settings-section, .settings-card, .privacy-card, .card {
  background: rgba(6, 28, 34, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 230, 153, 0.2) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5) !important;
  color: #f8fafc !important;
}

.edit-card:hover {
  border-color: rgba(0, 230, 153, 0.4) !important;
  box-shadow: 0 14px 40px rgba(0, 230, 153, 0.15) !important;
}

.card-header h2, .edit-card h2, .edit-card h3, .photo-drop-meta strong, .card-header h3 {
  color: #ffffff !important;
  font-family: var(--display) !important;
}

.card-header .section-note, .photo-drop-meta p {
  color: #8eaab0 !important;
}

.card-header {
  border-bottom-color: rgba(0, 230, 153, 0.15) !important;
}

/* 3. All Input Fields, Selects & Textareas Across All Form Groups */
.form-group label, .field-label, label, .form-grid label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
input.form-control,
select.form-control,
textarea.form-control {
  background: rgba(4, 20, 25, 0.9) !important;
  border: 1px solid rgba(0, 230, 153, 0.25) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
input.form-control:focus,
select.form-control:focus {
  border-color: #00e699 !important;
  background: rgba(4, 20, 25, 0.95) !important;
  box-shadow: 0 0 15px rgba(0, 230, 153, 0.3) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) hue-rotate(90deg) !important;
}

input:disabled, select:disabled, textarea:disabled {
  background: rgba(2, 12, 15, 0.8) !important;
  color: #64748b !important;
  border-color: rgba(0, 230, 153, 0.1) !important;
}

/* 4. Plate Badges & Action Buttons inside Tables */
.plate-badge, .plate-chip, .badge.plate {
  background: rgba(4, 20, 25, 0.9) !important;
  border: 1px solid rgba(0, 230, 153, 0.3) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

table.data td .action-btn,
table.data td .btn-action,
table.data td .btn,
.table-actions .btn,
.table-actions a,
.actions-cell a,
.actions-cell button {
  background: rgba(6, 28, 34, 0.9) !important;
  border: 1px solid rgba(0, 230, 153, 0.3) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

table.data td .action-btn:hover,
table.data td .btn-action:hover,
.table-actions .btn:hover,
.actions-cell a:hover {
  background: rgba(0, 230, 153, 0.22) !important;
  border-color: #00e699 !important;
  color: #00e699 !important;
}

.btn-action.deactivate, .btn-deactivate, a.btn-deactivate {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

.btn-action.deactivate:hover, .btn-deactivate:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  color: #f59e0b !important;
}

.btn-action.archive, .btn-archive, a.btn-archive, .btn-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.btn-action.archive:hover, .btn-archive:hover, .btn-danger:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  color: #ef4444 !important;
}

/* 5. File Upload Button & Controls */
.photo-drop input[type="file"], .choose-file-wrap {
  color: #cbd5e1 !important;
}

.photo-drop input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #00C896, #009973) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-right: 0.75rem !important;
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.3) !important;
}

/* 6. Sticky Actions Bar at Bottom of Forms */
.edit-save-bar, .sticky-actions-bar, .form-sticky-footer {
  background: rgba(4, 20, 25, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 230, 153, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8) !important;
}

.edit-save-bar .btn.secondary, .sticky-actions-bar .btn.secondary, .form-sticky-footer .btn.secondary {
  background: rgba(0, 230, 153, 0.08) !important;
  border: 1px solid rgba(0, 230, 153, 0.3) !important;
  color: #ffffff !important;
}

/* 7. Page Head & Breadcrumb */
.page-head {
  border-bottom-color: rgba(0, 230, 153, 0.15) !important;
}

.page-head-main h1 {
  color: #ffffff !important;
}

.breadcrumb a, .breadcrumb span {
  color: #8eaab0 !important;
}

/* ==========================================================================
   Public Rider Pages — Consistent Landing Page Theme (Hub to Lost Assistance)
   ========================================================================== */

body.public-page,
body:has(.public-shell) {
  background-color: #030f12 !important;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(0, 230, 153, 0.08), transparent 55%),
    radial-gradient(rgba(0, 230, 153, 0.12) 1px, transparent 1px) !important;
  background-size: 100% 100%, 32px 32px !important;
  color: #f8fafc !important;
  min-height: 100vh;
}

.public-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 4rem;
}

/* Logo Card Header */
.pub-logo-card,
.logo-badge.public-logo-sm {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1.5rem !important;
  padding: 0 !important;
}

.pub-logo-img,
.logo-badge.public-logo-sm img {
  max-width: 130px !important;
  height: auto !important;
  filter: drop-shadow(0 4px 16px rgba(0, 230, 153, 0.35)) !important;
  margin-bottom: 0.4rem !important;
  display: block;
}

.public-shell .brand-text-block {
  text-align: center;
  margin-top: 0.35rem;
}

.public-shell .brand-title {
  font-family: var(--display, 'Outfit', sans-serif) !important;
  font-style: italic !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem !important;
}

.public-shell .brand-title .brand-green {
  color: #00e699 !important;
  text-shadow: 0 0 16px rgba(0, 230, 153, 0.5) !important;
}

.public-shell .brand-title .brand-qr {
  color: #ffffff !important;
}

.public-shell .brand-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.public-shell .brand-tagline .tagline-text {
  color: #8eaab0 !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.public-shell .brand-tagline .tagline-line {
  background-color: #00e699 !important;
  height: 2px !important;
}

/* Public Hero Card */
.public-shell .hero-card {
  background: linear-gradient(145deg, rgba(6, 28, 34, 0.92), rgba(3, 15, 18, 0.96)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 153, 0.1) !important;
  padding: 1.6rem 1.4rem !important;
  margin-bottom: 1.4rem !important;
  text-align: center !important;
}

.public-shell .hero-card::after {
  display: none !important;
}

.public-shell .hero-card h1 {
  font-family: var(--display, 'Outfit', sans-serif) !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 0.5rem !important;
  letter-spacing: -0.01em !important;
}

.public-shell .hero-card p {
  color: #cbd5e1 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.public-shell .hero-card strong {
  color: #00e699 !important;
  font-weight: 700;
}

/* The 4 Action Hub Buttons */
.public-shell .action-grid {
  display: grid;
  gap: 1rem;
}

.public-shell .action-btn {
  background: rgba(6, 28, 34, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.22) !important;
  border-radius: 20px !important;
  padding: 1rem 1.25rem !important;
  min-height: 64px;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 230, 153, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  text-decoration: none !important;
}

.public-shell .action-btn:hover {
  transform: translateY(-3px) !important;
  border-color: #00e699 !important;
  box-shadow: 0 14px 35px rgba(0, 230, 153, 0.25) !important;
  color: #00e699 !important;
}

.public-shell .action-btn .icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(0, 230, 153, 0.12) !important;
  border: 1px solid rgba(0, 230, 153, 0.3) !important;
  color: #00e699 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 1.35rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 12px rgba(0, 230, 153, 0.2) !important;
}

.public-shell .action-btn.emergency .icon {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25) !important;
}

.public-shell .action-btn.lost .icon {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

/* Panels (Profile, Contact, Emergency, Lost Item) */
.public-shell .panel {
  background: rgba(6, 28, 34, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.22) !important;
  border-radius: 24px !important;
  padding: 1.6rem 1.4rem !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
  margin-bottom: 1.3rem !important;
  color: #f8fafc !important;
}

.public-shell .panel h2 {
  font-family: var(--display, 'Outfit', sans-serif) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 0.85rem !important;
  letter-spacing: -0.01em !important;
}

.public-shell .panel h3 {
  color: #00e699 !important;
  font-family: var(--display, 'Outfit', sans-serif) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-top: 1.4rem !important;
}

.public-shell .panel p {
  color: #cbd5e1 !important;
  line-height: 1.6 !important;
}

.public-shell .panel p.muted,
.public-shell .muted {
  color: #8eaab0 !important;
}

/* Avatar Photo */
.public-shell .profile-photo {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #00e699 !important;
  box-shadow: 0 0 25px rgba(0, 230, 153, 0.35) !important;
  margin: 0 auto 1.1rem !important;
  background: #061c22 !important;
  display: block;
}

.public-shell .profile-photo.placeholder {
  background: rgba(0, 230, 153, 0.12) !important;
  color: #00e699 !important;
  border: 3px solid rgba(0, 230, 153, 0.4) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 2.2rem !important;
}

/* Meta Data List */
.public-shell .meta-list li {
  border-bottom: 1px solid rgba(0, 230, 153, 0.12) !important;
  padding: 0.75rem 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.public-shell .meta-list .label {
  color: #8eaab0 !important;
  font-size: 0.92rem !important;
}

.public-shell .meta-list .value {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

/* Badges */
.public-shell .badge {
  background: rgba(0, 230, 153, 0.15) !important;
  border: 1px solid rgba(0, 230, 153, 0.4) !important;
  color: #00e699 !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.9rem !important;
  border-radius: 30px !important;
  font-size: 0.85rem !important;
}

.public-shell .badge.warn {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #f59e0b !important;
}

/* Buttons */
.public-shell .btn {
  background: linear-gradient(135deg, #00C896 0%, #009973 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.85rem 1.4rem !important;
  border-radius: 30px !important;
  box-shadow: 0 6px 20px rgba(0, 200, 150, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  width: 100% !important;
  margin-top: 0.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.public-shell .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(0, 230, 153, 0.5) !important;
  color: #ffffff !important;
}

.public-shell .btn.secondary {
  background: rgba(0, 230, 153, 0.08) !important;
  border: 1.5px solid rgba(0, 230, 153, 0.35) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.public-shell .btn.secondary:hover {
  background: rgba(0, 230, 153, 0.18) !important;
  border-color: #00e699 !important;
  color: #00e699 !important;
}

.public-shell .btn.accent {
  background: linear-gradient(135deg, #00C896 0%, #009973 100%) !important;
  color: #ffffff !important;
}

.public-shell .btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
}

/* Back Link */
.public-shell .back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  color: #00e699 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  margin-bottom: 1.25rem !important;
  text-decoration: none !important;
  transition: transform 0.2s ease !important;
}

.public-shell .back-link:hover {
  transform: translateX(-4px) !important;
  color: #00e699 !important;
}

/* Form Inputs inside public pages */
.public-shell .form-group label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  margin-bottom: 0.4rem !important;
}

.public-shell .form-group input,
.public-shell .form-group textarea,
.public-shell .form-group select {
  background: rgba(4, 20, 25, 0.9) !important;
  border: 1px solid rgba(0, 230, 153, 0.25) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
}

.public-shell .form-group input:focus,
.public-shell .form-group textarea:focus,
.public-shell .form-group select:focus {
  outline: none !important;
  border-color: #00e699 !important;
  box-shadow: 0 0 15px rgba(0, 230, 153, 0.3) !important;
}

/* Alerts */
.public-shell .alert.ok {
  background: rgba(0, 230, 153, 0.15) !important;
  border: 1px solid rgba(0, 230, 153, 0.4) !important;
  color: #00e699 !important;
}

.public-shell .alert.error {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.public-shell .alert.info {
  background: rgba(14, 165, 233, 0.15) !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
  color: #38bdf8 !important;
}

/* Site Footer on public pages */
.site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(0, 230, 153, 0.12) !important;
  color: #8eaab0 !important;
  margin-top: 2.5rem !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
}

.site-footer .muted {
  color: #64748b !important;
  font-size: 0.85rem !important;
  margin: 0.25rem 0 !important;
}

.site-footer .footer-logo img {
  max-width: 90px !important;
  height: auto !important;
  margin-bottom: 0.5rem !important;
  filter: drop-shadow(0 2px 10px rgba(0, 230, 153, 0.3)) !important;
}





