/* ═══════════════════════════════════════════════════════════
   Feres Delivery V2 — Food · Parcel · E-commerce UI
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --fd-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Brand — Feres primary (#56ae57) */
  --feres-primary: #56ae57;
  --fd-green: #56ae57;
  --fd-green-dark: #459647;
  --fd-green-bright: #6bc06c;
  --fd-green-light: #e8f5e8;
  --fd-green-glow: rgba(86, 174, 87, 0.35);
  --fd-navy: #0a1628;
  --fd-navy-mid: #0f2744;
  --fd-navy-teal: #0c3d35;

  /* Service colors */
  --fd-food: #f97316;
  --fd-food-bg: #fff7ed;
  --fd-parcel: #3b82f6;
  --fd-parcel-bg: #eff6ff;
  --fd-ecom: #8b5cf6;
  --fd-ecom-bg: #f5f3ff;
  --fd-express: #ef4444;
  --fd-express-bg: #fef2f2;

  --fd-surface: #f4f7fb;
  --fd-card: #ffffff;
  --fd-border: #e8edf3;
  --fd-text: #1a2332;
  --fd-muted: #64748b;
  --fd-radius: 14px;
  --fd-radius-sm: 10px;
  --fd-shadow: 0 4px 24px rgba(12, 26, 46, 0.07);
  --fd-shadow-lg: 0 12px 48px rgba(12, 26, 46, 0.14);
}

/* ── Global overrides ── */
body.admin-body {
  font-family: var(--fd-font);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(86, 174, 87, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(59, 130, 246, 0.08), transparent 50%),
    var(--fd-surface);
  color: var(--fd-text);
}

/* ═══════════════ LOGIN PAGE — animated delivery scene ═══════════════ */
body.login-body {
  margin: 0;
  font-family: var(--fd-font);
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(160deg, #eef7ee 0%, #dcefdc 40%, #c8e6c9 100%);
}

/* ── Full-screen animated background ── */
.login-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.55;
  animation: blobDrift 14s ease-in-out infinite;
}

.login-blob-1 {
  width: clamp(220px, 32vw, 420px);
  height: clamp(220px, 32vw, 420px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle at 30% 30%, var(--fd-green-bright), var(--fd-green-dark) 70%);
  animation-delay: 0s;
}

.login-blob-2 {
  width: clamp(180px, 28vw, 360px);
  height: clamp(180px, 28vw, 360px);
  bottom: 8%;
  left: -8%;
  background: radial-gradient(circle at 40% 40%, #8fd490, var(--feres-emerald-darker, #3a7d3b) 75%);
  animation-delay: -4s;
}

.login-blob-3 {
  width: clamp(100px, 14vw, 180px);
  height: clamp(100px, 14vw, 180px);
  top: 18%;
  left: 12%;
  background: radial-gradient(circle, #b8e0b9, var(--fd-green));
  opacity: 0.4;
  animation-delay: -7s;
}

.login-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fd-green);
  opacity: 0.5;
  animation: dotPulse 3s ease-in-out infinite;
}

.login-dot-1 { top: 22%; right: 28%; }
.login-dot-2 { top: 38%; left: 22%; animation-delay: 1s; background: var(--fd-green-dark); }
.login-dot-3 { bottom: 38%; right: 18%; width: 7px; height: 7px; animation-delay: 2s; }

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 14px) scale(1.04); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

/* Floating service badges */
.login-sky-icons {
  position: absolute;
  inset: 0;
}

.sky-icon {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: skyFloat 7s ease-in-out infinite;
  white-space: nowrap;
}

.sky-icon i { font-size: 16px; }

.sky-food {
  top: 14%;
  left: 8%;
  background: rgba(249, 115, 22, 0.75);
  animation-delay: 0s;
}

.sky-parcel {
  top: 10%;
  right: 10%;
  background: rgba(59, 130, 246, 0.75);
  animation-delay: -2s;
}

.sky-ecom {
  bottom: 42%;
  left: 6%;
  background: rgba(139, 92, 246, 0.75);
  animation-delay: -4s;
}

.sky-express {
  bottom: 48%;
  right: 8%;
  background: rgba(86, 174, 87, 0.8);
  animation-delay: -1s;
}

@keyframes skyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Road */
.login-road-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  min-height: 200px;
}

.login-road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  perspective: 400px;
}

.road-edge {
  flex: 0 0 12%;
  background: linear-gradient(180deg, #065f46 0%, #064e3b 100%);
}

.road-surface {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #374151 0%, #1f2937 55%, #111827 100%);
  overflow: hidden;
  transform: rotateX(12deg);
  transform-origin: bottom center;
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.35);
}

.road-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 28px,
    rgba(255, 255, 255, 0.55) 28px,
    rgba(255, 255, 255, 0.55) 36px,
    transparent 36px,
    transparent 64px
  );
  animation: roadScroll 2.5s linear infinite;
}

.road-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) perspective(120px) rotateX(55deg);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: roadBrandMove 6s linear infinite;
}

.road-brand-2 { top: 35%; animation-delay: -2s; }
.road-brand-3 { top: 65%; animation-delay: -4s; }

@keyframes roadScroll {
  from { background-position-y: 0; }
  to { background-position-y: 64px; }
}

@keyframes roadBrandMove {
  from { transform: translateX(-50%) perspective(120px) rotateX(55deg) translateY(0); opacity: 0.15; }
  to { transform: translateX(-50%) perspective(120px) rotateX(55deg) translateY(-80px); opacity: 0.05; }
}

/* Riders on road */
.road-actor {
  position: absolute;
  bottom: 18%;
  z-index: 2;
}

.road-moto {
  animation: driveMoto 12s linear infinite;
}

.road-walker {
  animation: walkPerson 18s linear infinite;
  animation-delay: -6s;
}

.moto-body,
.walker-body {
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.moto-body > .bi-scooter {
  font-size: clamp(36px, 6vw, 56px);
  color: var(--fd-green-bright);
}

.moto-rider {
  position: absolute;
  top: -6px;
  left: 14px;
  font-size: clamp(18px, 3vw, 26px);
  color: #fff;
}

.moto-box {
  position: absolute;
  top: -4px;
  right: -8px;
  font-size: clamp(14px, 2.5vw, 20px);
  color: #fbbf24;
  animation: boxBounce 0.6s ease-in-out infinite;
}

.walker-body > .bi-person-walking {
  font-size: clamp(32px, 5vw, 48px);
  color: #fff;
}

.walker-parcel {
  position: absolute;
  top: 2px;
  right: -14px;
  font-size: clamp(16px, 2.8vw, 22px);
  color: #60a5fa;
  animation: boxBounce 0.8s ease-in-out infinite;
}

.moto-shadow,
.walker-shadow {
  width: 48px;
  height: 8px;
  margin: 2px auto 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes driveMoto {
  0% { left: -12%; transform: scale(0.85); }
  15% { transform: scale(1); }
  85% { transform: scale(1); }
  100% { left: 108%; transform: scale(0.85); }
}

@keyframes walkPerson {
  0% { left: 108%; transform: scaleX(-1) scale(0.9); }
  100% { left: -15%; transform: scaleX(-1) scale(0.9); }
}

@keyframes boxBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── Centered glass login card ── */
.login-center {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 32px;
}

.login-topbar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.login-topbar .form-select {
  font-size: 12px;
  min-width: 110px;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.login-topbar .form-select option {
  color: #0f172a;
  background: #fff;
}

.login-glass-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 36px;
  border-radius: 18px;
  background: rgba(5, 46, 36, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 32px rgba(5, 46, 36, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #fff;
}

.login-panel-header {
  margin-bottom: 28px;
  text-align: center;
}

/* ═══════════════ BRAND LOGO MARK ═══════════════ */
.feres-logo-mark {
  position: relative;
  flex-shrink: 0;
}

.feres-logo-mark--sidebar {
  width: 48px;
  height: 48px;
}

.feres-logo-mark--login {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}

.feres-logo-mark__glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fd-green-glow) 0%, transparent 70%);
  animation: logoGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.feres-logo-mark__ring {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--fd-green-bright) 0%, var(--fd-green) 40%, var(--fd-green-dark) 75%, #4a9fd4 100%);
  box-shadow:
    0 8px 24px rgba(86, 174, 87, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.feres-logo-mark--login .feres-logo-mark__ring {
  border-radius: 22px;
  padding: 4px;
}

.feres-logo-mark__inner {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.feres-logo-mark--login .feres-logo-mark__inner {
  border-radius: 18px;
}

.feres-logo-mark__img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.feres-logo-mark__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--fd-green-dark);
  font-size: 22px;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
}

.feres-logo-mark--login .feres-logo-mark__fallback {
  font-size: 32px;
}

.feres-logo-mark.has-custom-logo .feres-logo-mark__fallback {
  display: none;
}

.feres-logo-mark.has-custom-logo .feres-logo-mark__inner {
  background: rgba(255, 255, 255, 0.95);
}

@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.login-panel-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.12);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto 18px;
  box-shadow: 0 4px 20px rgba(86, 174, 87, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-panel-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.login-panel-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin: 0;
}

.login-panel-header .portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: rgba(86, 174, 87, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--fd-font);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.login-input-wrap input:focus {
  outline: none;
  border-color: var(--fd-green-bright);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(86, 174, 87, 0.25);
}

.login-glass-card .alert-danger {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fff;
}

.btn-login-submit {
  width: 100%;
  padding: 14px;
  background: var(--fd-green);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--fd-font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  box-shadow: 0 4px 20px rgba(86, 174, 87, 0.5);
  margin-top: 6px;
}

.btn-login-submit:hover {
  background: var(--fd-green-dark);
  box-shadow: 0 6px 24px rgba(86, 174, 87, 0.6);
  transform: translateY(-1px);
  color: #fff;
}

.btn-login-submit:active {
  transform: translateY(0);
  background: #3a7d3b;
}

.login-footer-note {
  text-align: center;
  margin-top: 22px;
  padding: 10px 14px;
  background: rgba(86, 174, 87, 0.2);
  border-radius: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-footer-note i {
  color: var(--fd-green-bright);
  margin-right: 4px;
}

@media (max-width: 767.98px) {
  .login-sky-icons .sky-icon span { display: none; }
  .sky-icon { padding: 8px 10px; }
  .login-glass-card { padding: 32px 24px 28px; }
  .login-topbar { top: 12px; right: 12px; }
  .road-actor { bottom: 14%; }
}

@media (prefers-reduced-motion: reduce) {
  .login-blob,
  .login-dot,
  .sky-icon,
  .road-lines,
  .road-brand,
  .road-moto,
  .road-walker,
  .moto-box,
  .walker-parcel {
    animation: none !important;
  }
}

/* ═══════════════ ADMIN SIDEBAR — Feres green panel ═══════════════ */
.admin-sidebar {
  background:
    radial-gradient(circle at 55% 16%, rgba(18, 236, 133, .22), transparent 19%),
    linear-gradient(180deg, #004f42 0%, #006443 46%, #075a42 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-right: none !important;
  border-radius: 0 34px 34px 0 !important;
  box-shadow: 8px 0 28px rgba(0, 50, 38, .2) !important;
  overflow: hidden;
}

.sidebar-bg-watermark {
  display: none;
}

.admin-sidebar > *:not(.sidebar-bg-watermark) {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 27px 20px 15px !important;
  min-height: auto !important;
  border-bottom: none !important;
  gap: 7px !important;
  background: transparent !important;
  text-align: center;
}

.sidebar-brand--stacked {
  width: 100%;
}

/* Keep the uploaded logo colors while removing its baked-in white JPEG background. */
.sidebar-logo-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.sidebar-logo-card {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  margin: 0 auto;
  border-radius: 0;
  background: transparent !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.sidebar-logo-card::before { content: none; }

.sidebar-logo-card__img {
  width: 145%;
  height: 145%;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
  position: relative;
  z-index: 2;
  transform: none;
  filter: url("#sidebarRemoveWhite");
  mix-blend-mode: normal;
}

.sidebar-logo-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #1aa055;
  font-size: 34px;
  position: relative;
  z-index: 2;
}

.sidebar-logo-card.has-custom-logo {
  background: transparent !important;
  padding: 0;
}

.sidebar-logo-card.has-custom-logo .sidebar-logo-card__img {
  transform: none;
}

.sidebar-logo-card.has-custom-logo .sidebar-logo-card__fallback {
  display: none;
}

.sidebar-brand-name {
  max-width: 200px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.sidebar-brand-name__main {
  font-size: 27px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.sidebar-brand-name__sub {
  color: #36ef92;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sidebar-app-name {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0c5e33 !important;
  line-height: 1.2;
  white-space: normal;
}

.sidebar-portal-tag {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.sidebar-search {
  padding: 8px 18px 12px;
  border-bottom: none;
  background: transparent;
}

.sidebar-search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(104, 255, 188, .22);
  border-radius: 15px;
  padding: 13px 58px 13px 44px;
  font-size: 14px;
  color: #fff;
  font-family: var(--fd-font);
}

.sidebar-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.sidebar-search input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.24);
}

.sidebar-search-wrap {
  position: relative;
}

.sidebar-search-wrap i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
}

.sidebar-search-shortcut {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  pointer-events: none;
}

.sidebar-nav-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 9px 21px 9px;
  color: #32ef8e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sidebar-nav-heading::before,
.sidebar-nav-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 238, 145, .42));
}
.sidebar-nav-heading::after {
  background: linear-gradient(90deg, rgba(62, 238, 145, .42), transparent);
}

.sidebar-nav-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
  padding: 0 0 16px !important;
}

.sidebar-nav .nav-link {
  color: #fff !important;
  border-left: 0 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 7px 10px !important;
  margin: 2px 12px !important;
}

.sidebar-nav .nav-link > i:first-child {
  color: #fff !important;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .09);
  font-size: 15px;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(39, 204, 119, .72), rgba(22, 157, 91, .45)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px rgba(99, 255, 178, .12), 0 7px 18px rgba(0, 36, 27, .18);
}

.sidebar-nav .submenu {
  background: rgba(0, 0, 0, 0.12) !important;
  border-radius: 12px !important;
  margin: 2px 14px !important;
}

.sidebar-nav .submenu .nav-link {
  margin: 1px 6px !important;
  padding-left: 48px !important;
  font-size: 13px !important;
}

.sidebar-nav .submenu-arrow {
  color: rgba(255, 255, 255, 0.75) !important;
  width: auto;
  height: auto;
  margin-left: auto;
  background: transparent;
  font-size: 11px;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 14px 18px;
  padding: 11px;
  border: 1px solid rgba(83, 240, 160, .13);
  border-radius: 13px;
  background: rgba(0, 47, 36, .24);
  color: #fff;
}
.sidebar-user-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #19bf6c, #0f9c57);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.sidebar-user-meta {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.25;
}
.sidebar-user-meta strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-meta span {
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-chevron {
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
}

/* ═══════════════ TOPBAR — glass (watermark shows through) ═══════════════ */
.admin-topbar {
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(20px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04) !important;
  height: 68px !important;
  padding: 0 28px !important;
}

.page-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.topbar-services {
  display: flex;
  gap: 6px;
  margin-left: 16px;
}

.topbar-svc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.topbar-svc.food { background: var(--fd-food-bg); color: var(--fd-food); }
.topbar-svc.parcel { background: var(--fd-parcel-bg); color: var(--fd-parcel); }
.topbar-svc.ecom { background: var(--fd-ecom-bg); color: var(--fd-ecom); }

.topbar-live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fd-green-dark);
  background: var(--fd-green-light);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(86, 174, 87, 0.25);
  box-shadow: 0 2px 8px rgba(86, 174, 87, 0.12);
}

.topbar-live .live-label {
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.live-indicator,
.user-indicator {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topbar-live .live-dot,
.topbar-user .user-dot {
  position: absolute;
  inset: 3px;
  background: var(--fd-green);
  border-radius: 50%;
  z-index: 2;
}

.topbar-live .live-ring,
.topbar-user .user-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--fd-green);
  opacity: 0.55;
  animation: liveRingPulse 2s ease-out infinite;
}

.topbar-user .user-dot {
  background: var(--fd-navy, #1e3a5f);
}

.topbar-user .user-ring {
  border-color: var(--fd-navy, #1e3a5f);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fd-text, #1e293b);
  background: rgba(30, 58, 95, 0.06);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(30, 58, 95, 0.12);
}

.topbar-user .welcome-text {
  font-size: 15px !important;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-user .text-accent {
  font-size: 16px;
  font-weight: 800;
}

@keyframes liveRingPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.text-accent {
  color: var(--fd-green) !important;
}

/* ═══════════════ DASHBOARD ═══════════════ */
.admin-content {
  background: transparent !important;
  padding: 28px !important;
  position: relative;
}

.dash-welcome {
  background: linear-gradient(135deg, var(--fd-navy) 0%, #0f3055 60%, #0a4a3a 100%);
  border-radius: var(--fd-radius);
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.dash-welcome::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 179, 122, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.dash-welcome h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.dash-welcome p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 0;
}

.dash-welcome-services {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.dash-svc-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Stat cards */
.stat-card {
  border: 1px solid var(--fd-border) !important;
  border-radius: var(--fd-radius) !important;
  box-shadow: var(--fd-shadow) !important;
  padding: 22px !important;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.stat-food::before { background: var(--fd-food); }
.stat-card.stat-parcel::before { background: var(--fd-parcel); }
.stat-card.stat-ecom::before { background: var(--fd-ecom); }
.stat-card.stat-drivers::before { background: var(--fd-green); }

.stat-card .stat-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  font-size: 24px !important;
}

.stat-card .stat-value {
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Service lane cards */
.service-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.service-lane {
  background: var(--fd-card);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  padding: 24px;
  box-shadow: var(--fd-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-lane:hover {
  transform: translateY(-3px);
  box-shadow: var(--fd-shadow-lg);
}

.service-lane-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.service-lane-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-lane-icon.food { background: var(--fd-food-bg); color: var(--fd-food); }
.service-lane-icon.parcel { background: var(--fd-parcel-bg); color: var(--fd-parcel); }
.service-lane-icon.ecom { background: var(--fd-ecom-bg); color: var(--fd-ecom); }

.service-lane-header h6 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.service-lane-header small {
  color: var(--fd-muted);
  font-size: 12px;
}

.service-lane-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lane-stat {
  background: var(--fd-surface);
  border-radius: var(--fd-radius-sm);
  padding: 12px;
  text-align: center;
}

.lane-stat .val {
  font-size: 20px;
  font-weight: 800;
  color: var(--fd-text);
  letter-spacing: -0.02em;
}

.lane-stat .lbl {
  font-size: 11px;
  color: var(--fd-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Admin cards — glass (watermark visible through lists) */
.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: var(--fd-radius) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-card-header {
  background: rgba(255, 255, 255, 0.16) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.admin-card-header h5 {
  font-weight: 800 !important;
  font-size: 15px !important;
}

/* Buttons */
.btn-primary {
  background: var(--fd-green) !important;
  border-color: var(--fd-green) !important;
}

.btn-primary:hover {
  background: var(--fd-green-dark) !important;
  border-color: var(--fd-green-dark) !important;
}

/* Footer */
.admin-footer {
  background: rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-size: 12px;
}

@media (max-width: 1199.98px) {
  .service-lanes { grid-template-columns: 1fr; }
  .topbar-services { display: none; }
}

@media (max-width: 767.98px) {
  .topbar-live { display: none; }
}

/* Permission matrix (sub-admin allowed pages) */
.perm-matrix-wrap {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--bs-border-color, #e2e8f0);
  border-radius: 10px;
}
.perm-matrix {
  margin-bottom: 0;
}
.perm-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.perm-matrix tbody td {
  vertical-align: middle;
}
.perm-matrix tbody tr:hover {
  background: #f8fafc;
}
.perm-matrix code {
  color: #94a3b8;
}
.perm-matrix .form-switch .form-check-input {
  width: 2.1em;
  height: 1.1em;
  margin: 0;
  cursor: pointer;
}
.perm-matrix .form-switch .form-check-input:checked {
  background-color: #16a34a;
  border-color: #16a34a;
}
.perm-matrix .form-check-input:disabled {
  opacity: .4;
}
.perm-matrix .perm-dash {
  opacity: .5;
}
