:root {
  /* Orbit Rider palette */
  --navy-950: #0a111c;
  --navy-900: #0f1a2b;
  --navy-800: #1b2f44;
  --navy-700: #2a4b6b;
  --navy-600: #3d6285;
  --sky-300: #b8d0e7;
  --sky-400: #8fb1d4;
  --gold-200: #f5e6d3;
  --gold-300: #f5d9b3;
  --gold-400: #e5d4bc;

  --bg: #eef3f8;
  --bg-soft: #f6f9fc;
  --card: #ffffff;
  --text: #0f1a2b;
  --text-muted: #5c7088;
  --border: rgba(15, 26, 43, 0.08);
  --border-strong: rgba(15, 26, 43, 0.14);
  --danger: #dc4c4c;
  --success: #2d9f6f;
  --warning: #c98a1a;

  --sidebar-w: 272px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 8px 32px rgba(15, 26, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 26, 43, 0.12);
  --gradient-navy: linear-gradient(165deg, #0f1a2b 0%, #1b2f44 48%, #2a4b6b 100%);
  --gradient-btn: linear-gradient(135deg, #b8d0e7 0%, #8fb1d4 100%);
  --gradient-gold: linear-gradient(135deg, #f5e6d3 0%, #e5d4bc 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.hidden { display: none !important; }

.boot-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* ── Auth Universe (Login / Forgot / Reset) ── */
@property --orbit-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.auth-universe {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 15% 20%, rgba(42, 75, 107, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 85% 75%, rgba(245, 217, 179, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, #060b14 0%, #0f1a2b 35%, #1b2f44 68%, #0a111c 100%);
  color: white;
}

.auth-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 25% 65%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(184, 208, 231, 0.8), transparent),
    radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 70% 35%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 55%, rgba(245, 217, 179, 0.7), transparent),
    radial-gradient(1px 1px at 92% 12%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 18% 88%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 62% 48%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 78% 92%, rgba(184, 208, 231, 0.5), transparent);
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

.auth-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.auth-nebula-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(143, 177, 212, 0.35) 0%, transparent 70%);
  animation: nebulaDrift 18s ease-in-out infinite;
}

.auth-nebula-2 {
  width: 440px;
  height: 440px;
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, rgba(245, 217, 179, 0.18) 0%, transparent 70%);
  animation: nebulaDrift 22s ease-in-out infinite reverse;
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(184, 208, 231, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 208, 231, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.auth-watermark {
  position: absolute;
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.auth-nexus {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.auth-nexus--solo {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 32px 20px;
}

.auth-nexus--solo .auth-deck {
  max-width: 460px;
  width: 100%;
  padding: 0;
}

.auth-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 48px 64px;
  position: relative;
}

.orbit-system {
  position: relative;
  width: min(340px, 72vw);
  height: min(340px, 72vw);
  margin: 0 auto 36px;
  transition: transform 0.35s ease-out;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff8ee 0%, var(--gold-300) 28%, #c9a56a 55%, #1b2f44 100%);
  box-shadow:
    0 0 40px rgba(245, 217, 179, 0.45),
    0 0 80px rgba(245, 217, 179, 0.15),
    inset -8px -12px 24px rgba(15, 26, 43, 0.35);
  animation: corePulse 4s ease-in-out infinite;
}

.orbit-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 217, 179, 0.22) 0%, transparent 70%);
  animation: corePulse 4s ease-in-out infinite reverse;
}

.orbit-path {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(184, 208, 231, 0.22);
  transform: translate(-50%, -50%);
  animation: orbitSpin linear infinite;
}

.orbit-path-1 {
  width: 180px;
  height: 180px;
  animation-duration: 14s;
  border-color: rgba(245, 217, 179, 0.35);
}

.orbit-path-2 {
  width: 250px;
  height: 250px;
  animation-duration: 22s;
  animation-direction: reverse;
  transform: translate(-50%, -50%) rotateX(68deg);
  border-color: rgba(184, 208, 231, 0.28);
}

.orbit-path-3 {
  width: 320px;
  height: 320px;
  animation-duration: 32s;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(24deg);
  border-color: rgba(255, 255, 255, 0.1);
}

.orbit-sat {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 14px rgba(245, 217, 179, 0.9);
}

.orbit-sat-2 {
  background: var(--sky-300);
  box-shadow: 0 0 14px rgba(184, 208, 231, 0.9);
  width: 8px;
  height: 8px;
  margin-left: -4px;
}

.orbit-sat-3 {
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  width: 6px;
  height: 6px;
  margin-left: -3px;
}

.auth-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  background: rgba(245, 217, 179, 0.08);
  border: 1px solid rgba(245, 217, 179, 0.22);
  margin-bottom: 18px;
  animation: fadeUp 0.7s ease both;
}

.auth-visual-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--sky-300) 55%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.7s ease 0.1s both;
}

.auth-visual-desc {
  margin: 0 0 24px;
  max-width: 420px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

.auth-visual-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp 0.7s ease 0.3s both;
}

.auth-visual-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.auth-deck {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px 40px 36px 28px;
  gap: 18px;
}

.auth-deck-main {
  width: min(440px, 100%);
}

.auth-deck-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(440px, 100%);
  animation: fadeUp 0.6s ease both;
}

.auth-brand-title {
  margin: 0;
  font-family: 'Outfit', 'IBM Plex Sans Arabic', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: #ffffff;
}

.auth-deck-tagline {
  margin: 10px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(184, 208, 231, 0.65);
  text-transform: uppercase;
}

.orbit-logo-light .orbit-logo-text {
  color: white;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.14em;
}

.orbit-logo-light .orbit-logo-sub {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.orbit-mark-glow {
  box-shadow:
    0 0 0 4px rgba(245, 217, 179, 0.12),
    0 0 32px rgba(245, 217, 179, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.35);
}

.auth-glass-wrap {
  position: relative;
  border-radius: 26px;
  padding: 2px;
  background: conic-gradient(from var(--orbit-angle), rgba(245, 217, 179, 0.7), rgba(184, 208, 231, 0.5), rgba(42, 75, 107, 0.4), rgba(245, 217, 179, 0.7));
  animation: borderSpin 5s linear infinite, fadeUp 0.7s ease 0.15s both;
}

.auth-glass-panel {
  background: rgba(10, 17, 28, 0.78);
  backdrop-filter: blur(28px);
  border-radius: 24px;
  padding: 28px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-panel-top--solo {
  margin-bottom: 18px;
}

.auth-panel-top .auth-login-title {
  margin-bottom: 4px;
}

.auth-panel-top .auth-login-sub {
  margin-bottom: 0;
}

.auth-panel-divider {
  height: 1px;
  margin: 22px 0 16px;
  background: linear-gradient(90deg, transparent, rgba(184, 208, 231, 0.22), transparent);
}

.auth-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: #86efac;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-login-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease infinite;
}

.auth-login-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
}

.auth-login-sub {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
  line-height: 1.55;
}

.auth-deck .form-group {
  margin-bottom: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap .input-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.45;
  pointer-events: none;
}

.auth-deck .input-wrap input {
  padding-inline-start: 42px !important;
}

.input-wrap-password input {
  padding-inline-end: 44px !important;
}

.input-toggle-pw {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.input-toggle-pw:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.input-toggle-pw .icon-eye-off {
  display: none;
}

.input-toggle-pw.is-visible .icon-eye-open {
  display: none;
}

.input-toggle-pw.is-visible .icon-eye-off {
  display: block;
}

.auth-deck .form-group label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.auth-deck input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: white !important;
  border-radius: 14px;
}

.auth-deck input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.auth-deck input:focus {
  border-color: rgba(184, 208, 231, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(143, 177, 212, 0.15) !important;
}

.auth-deck .btn-primary {
  margin-top: 4px;
  border-radius: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.auth-deck .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: btnShine 4s ease infinite;
}

.auth-forgot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.82rem;
}

.auth-deck .link {
  color: var(--sky-300);
}

.auth-deck .link:hover {
  color: var(--gold-300);
}

.auth-deck .error {
  background: rgba(220, 76, 76, 0.12);
  border-color: rgba(220, 76, 76, 0.35);
  color: #fca5a5;
}

.auth-deck .success {
  background: rgba(45, 159, 111, 0.12);
  border-color: rgba(45, 159, 111, 0.35);
  color: #86efac;
}

/* Transmission feed (promo) */
.transmission-feed {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  animation: fadeUp 0.7s ease 0.25s both;
}

.transmission-feed--inline {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  animation: none;
}

.transmission-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-300);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.transmission-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  animation: pulse 1.5s ease infinite;
}

.transmission-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.transmission-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-inline-start: 2px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, transform 0.2s;
  animation: fadeUp 0.5s ease both;
  min-height: 0;
}

.transmission-item:nth-child(1) { animation-delay: 0.35s; }
.transmission-item:nth-child(2) { animation-delay: 0.45s; }
.transmission-item:nth-child(3) { animation-delay: 0.55s; }
.transmission-item:nth-child(4) { animation-delay: 0.65s; }

.transmission-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-4px);
}

.transmission-item.tx-gold {
  border-inline-start-color: var(--gold-300);
  background: rgba(245, 217, 179, 0.06);
}

.transmission-item.tx-sky {
  border-inline-start-color: var(--sky-300);
}

.transmission-item.tx-navy {
  border-inline-start-color: rgba(255, 255, 255, 0.35);
}

.transmission-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.transmission-body strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.transmission-body p {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.auth-footer {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s ease 0.4s both;
}

@keyframes orbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-path-2 { animation-name: orbitSpinTilt; }
.orbit-path-3 { animation-name: orbitSpinTilt2; }

@keyframes orbitSpinTilt {
  to { transform: translate(-50%, -50%) rotateX(68deg) rotate(360deg); }
}

@keyframes orbitSpinTilt2 {
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(24deg) rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes starTwinkle {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@keyframes nebulaDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
}

@keyframes borderSpin {
  to { --orbit-angle: 360deg; }
}

@keyframes btnShine {
  0%, 75%, 100% { transform: translateX(-120%); }
  90% { transform: translateX(120%); }
}

.orbit-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.orbit-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--navy-900);
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.orbit-logo-text { font-size: 1.65rem; font-weight: 800; letter-spacing: 0.06em; }
.orbit-logo-sub { font-size: 0.8rem; opacity: 0.65; margin-top: 2px; }

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background:
    radial-gradient(circle at 80% 10%, rgba(184, 208, 231, 0.35) 0%, transparent 45%),
    var(--bg-soft);
}

.auth-panel-full { min-height: 100vh; }

/* ── Cards & Forms ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  width: min(440px, 100%);
}

.card-flat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy-800);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  background: white;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(143, 177, 212, 0.22);
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-btn);
  color: var(--navy-900);
  width: 100%;
  box-shadow: 0 4px 16px rgba(143, 177, 212, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(143, 177, 212, 0.55);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--border-strong);
  color: var(--navy-800);
}

.btn-secondary:hover { background: var(--bg-soft); }

.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }

.btn-sm {
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 10px;
  width: auto;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.presence-pill.is-online {
  background: #d1fae5;
  color: #065f46;
}

.presence-pill.is-online .presence-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.presence-pill.is-offline {
  background: #f1f5f9;
  color: #64748b;
}

.presence-pill.is-offline .presence-dot {
  background: #94a3b8;
}

.presence-pill.is-blocked {
  background: #fee2e2;
  color: #991b1b;
}

.presence-pill.is-blocked .presence-dot {
  background: #ef4444;
}

.riders-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.riders-search {
  position: relative;
  flex: 1;
  min-width: min(100%, 320px);
  display: flex;
  align-items: center;
}

.riders-search-icon {
  position: absolute;
  right: 14px;
  font-size: 0.95rem;
  opacity: 0.55;
  pointer-events: none;
}

.riders-search input {
  width: 100%;
  padding: 13px 44px 13px 40px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: white;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.riders-search input:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(143, 177, 212, 0.22);
}

.riders-search-clear {
  position: absolute;
  left: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.riders-search-clear:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.riders-search-clear.is-hidden {
  display: none;
}

.riders-search-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.riders-table-wrap.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.riders-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.riders-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.riders-stat-card {
  min-width: 160px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.riders-stat-card.is-online {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.riders-stat-card.is-blocked {
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.riders-stat-card.is-blocked .riders-stat-value {
  color: #b91c1c;
}

.riders-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.riders-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.riders-table-wrap {
  overflow-x: auto;
}

.users-table-scroll {
  max-height: calc(100vh - 260px);
  min-height: 420px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.users-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-soft);
}

.users-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 8px;
}

.users-page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.users-page-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy-800);
  font-weight: 700;
  cursor: pointer;
}

.users-page-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.users-page-gap {
  color: var(--text-muted);
  padding: 0 2px;
}

.users-page-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.promo-layout {
  display: grid;
  gap: 20px;
}

.promo-create-form {
  max-width: 100%;
}

@media (min-width: 1100px) {
  .promo-layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    align-items: start;
  }
}

.profile-modal-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.promo-code-cell {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--bg-soft);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
}

.profile-modal-large {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile-modal-body {
  overflow-y: auto;
  padding: 0 24px 24px;
}

.profile-docs-section {
  margin-top: 20px;
  padding-top: 8px;
}

.profile-docs-section .application-section-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy-900);
}

.riders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.riders-table thead th {
  background: var(--bg-soft);
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.riders-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.riders-table tbody tr:hover {
  background: rgba(143, 177, 212, 0.06);
}

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

.riders-table .cell-ltr {
  direction: ltr;
  text-align: right;
  font-size: 0.88rem;
  color: var(--navy-700);
}

.riders-table .cell-balance {
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
}

.riders-table .col-actions {
  min-width: 180px;
}

.table-empty {
  text-align: center;
  padding: 40px 16px !important;
  color: var(--text-muted);
}

.active-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.active-pill.is-active {
  background: #d1fae5;
  color: #065f46;
}

.active-pill.is-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.riders-table td,
.riders-table th {
  white-space: nowrap;
}

.riders-table td:nth-child(3),
.riders-table td:nth-child(4) {
  white-space: normal;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 17, 28, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--navy-800);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--border);
}

.link {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.link:hover { color: var(--sky-400); }

.error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  border: 1px solid #fecaca;
}

.success {
  background: #ecfdf5;
  color: #047857;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  border: 1px solid #a7f3d0;
}

/* ── Layout ── */
.layout {
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--gradient-navy);
  color: white;
  padding: 24px 18px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline-end: 4px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.sidebar-brand {
  flex-shrink: 0;
  padding: 8px 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.sidebar-brand .orbit-mark { width: 44px; height: 44px; font-size: 0.95rem; }

.nav-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  padding: 0 14px;
  margin-bottom: 10px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.925rem;
  transition: background 0.18s, color 0.18s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.nav-item.active {
  background: rgba(184, 208, 231, 0.18);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(184, 208, 231, 0.25);
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-item.active .nav-icon {
  background: var(--gradient-gold);
  color: var(--navy-900);
}

.nav-item-text {
  flex: 1;
  min-width: 0;
}

.nav-pending-badge {
  margin-inline-start: auto;
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
  animation: nav-pending-pop 0.28s ease;
}

.nav-item.active .nav-pending-badge {
  box-shadow: 0 0 0 2px rgba(184, 208, 231, 0.45);
}

@keyframes nav-pending-pop {
  0% { transform: scale(0.75); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.nav-divider {
  height: 1px;
  margin: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item-logout {
  color: rgba(255, 255, 255, 0.72);
}

.nav-item-logout:hover {
  background: rgba(220, 76, 76, 0.12);
  color: #fca5a5;
}

.nav-item-logout .nav-icon {
  background: rgba(220, 76, 76, 0.12);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-gold);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.user-meta { min-width: 0; }
.user-meta .name { font-weight: 700; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta .role { font-size: 0.72rem; opacity: 0.55; margin-top: 2px; }

.main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: calc(100vw - var(--sidebar-w));
}

.topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.content {
  padding: 20px 24px 28px;
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.page-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ── Welcome banner ── */
.welcome-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 28px;
  background: var(--gradient-navy);
  color: white;
  box-shadow: var(--shadow-lg);
}

.welcome-banner::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(245, 217, 179, 0.15) 0%, transparent 70%);
}

.welcome-banner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.welcome-banner p {
  margin: 0;
  opacity: 0.82;
  line-height: 1.7;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 217, 179, 0.15);
  border: 1px solid rgba(245, 217, 179, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-300);
  position: relative;
  z-index: 1;
}

/* ── Promo / motivational cards ── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.promo-card {
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.promo-card.gold {
  background: var(--gradient-gold);
  color: var(--navy-900);
  border-color: rgba(229, 212, 188, 0.6);
}

.promo-card.navy {
  background: linear-gradient(145deg, #1b2f44, #2a4b6b);
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
}

.promo-card.sky {
  background: linear-gradient(145deg, #e8f2fa, #d4e6f5);
  color: var(--navy-900);
  border-color: rgba(143, 177, 212, 0.35);
}

.promo-card.white {
  background: white;
  color: var(--navy-900);
}

.promo-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  display: block;
}

.promo-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.promo-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.88;
}

/* ── Stats ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card .label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 8px;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-icon.navy { background: rgba(15, 26, 43, 0.08); }
.stat-icon.sky { background: rgba(143, 177, 212, 0.25); }
.stat-icon.gold { background: rgba(245, 217, 179, 0.45); }
.stat-icon.green { background: rgba(45, 159, 111, 0.15); }
.stat-icon.amber { background: rgba(201, 138, 26, 0.15); }

/* ── Section ── */
.section {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
  text-decoration: none;
}

.section-link:hover { color: var(--sky-400); }

/* ── Tables ── */
.table-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th, td {
  padding: 15px 18px;
  text-align: start;
  border-bottom: 1px solid rgba(15, 26, 43, 0.06);
}

th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--bg-soft);
}

tbody tr:hover { background: rgba(184, 208, 231, 0.06); }
tbody tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge.pending_verification { background: #fef3c7; color: #92400e; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.approved { background: #d1fae5; color: #065f46; }
.badge.rejected { background: #fee2e2; color: #991b1b; }
.badge.active { background: #d1fae5; color: #065f46; }
.badge.inactive, .badge.suspended { background: #fee2e2; color: #991b1b; }
.badge.completed { background: #d1fae5; color: #065f46; }
.badge.requested { background: #dbeafe; color: #1e40af; }
.badge.in_progress { background: #ede9fe; color: #5b21b6; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.doc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.doc-card-head {
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.doc-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.doc-thumb-btn img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.doc-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 17, 28, 0.72);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.doc-missing {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.application-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.application-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.application-detail-title {
  flex: 1;
  min-width: 220px;
}

.application-detail-title .page-title {
  margin-bottom: 4px;
}

.application-detail-title .page-sub {
  margin: 0;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--sky-500);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.application-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.application-section-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--navy-900);
}

.application-section-sub {
  margin: -8px 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.image-preview-overlay {
  z-index: 1100;
  padding: 12px;
}

.image-preview-card {
  width: min(960px, 96vw);
  max-height: 96vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px 20px 20px;
  box-shadow: var(--shadow-lg);
}

.image-preview-card .modal-head {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.image-preview-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview-card img {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 88px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.doc-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  color: var(--text-muted);
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky-400);
  animation: pulse 1.2s ease infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

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

@media (max-width: 960px) {
  .auth-nexus {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-visual {
    padding: 36px 24px 12px;
    text-align: center;
    align-items: center;
  }

  .auth-visual-desc {
    margin-inline: auto;
  }

  .auth-visual-pills {
    justify-content: center;
  }

  .orbit-system {
    width: min(260px, 70vw);
    height: min(260px, 70vw);
    margin-bottom: 24px;
  }

  .auth-watermark {
    left: 50%;
    font-size: clamp(4rem, 22vw, 7rem);
    opacity: 0.6;
  }

  .auth-deck {
    padding: 20px 18px 28px;
  }

  .auth-deck-main,
  .auth-deck-brand {
    width: 100%;
  }

  .auth-brand-title {
    font-size: 1.25rem;
    letter-spacing: 0.16em;
  }

  .transmission-list {
    grid-template-columns: 1fr;
  }

  .transmission-body p {
    -webkit-line-clamp: 1;
  }

  .auth-panel-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .layout { flex-direction: column; overflow-x: hidden; }
  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    max-width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 4px;
  }
  .main {
    max-width: 100%;
    width: 100%;
  }
  .sidebar-brand, .sidebar-footer, .nav-section-label { display: none; }
  .nav-item { margin: 0; padding: 10px 12px; font-size: 0.82rem; }
  .nav-icon { width: 28px; height: 28px; font-size: 0.85rem; }
  .content { padding: 20px 16px 32px; }
  .promo-grid { grid-template-columns: 1fr; }
}

/* ── Banners admin ── */
.banner-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 22px;
  background: var(--gradient-navy);
  color: white;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 140px;
}

.banner-hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: -90px;
  left: -60px;
  background: radial-gradient(circle, rgba(245, 217, 179, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.banner-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.banner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 217, 179, 0.12);
  border: 1px solid rgba(245, 217, 179, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-300);
}

.banner-hero h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.banner-hero p {
  margin: 0;
  opacity: 0.82;
  line-height: 1.75;
  max-width: 560px;
  font-size: 0.92rem;
}

.banner-hero-orbit {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  z-index: 1;
}

.banner-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(184, 208, 231, 0.35);
  animation: bannerOrbitSpin 12s linear infinite;
}

.banner-orbit-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-300);
  transform: translateX(-50%);
}

.banner-orbit-core {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes bannerOrbitSpin {
  to { transform: rotate(360deg); }
}

.banner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.banner-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.banner-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.banner-stat-icon.sky { background: #e8f2fb; color: var(--navy-700); }
.banner-stat-icon.green { background: #d1fae5; color: #065f46; }
.banner-stat-icon.amber { background: #fef3c7; color: #92400e; }

.banner-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.banner-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
}

.banner-audience-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.banner-audience-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  text-align: right;
  transition: all 0.22s ease;
  box-shadow: var(--shadow);
}

.banner-audience-btn:hover {
  border-color: rgba(143, 177, 212, 0.5);
  transform: translateY(-1px);
}

.banner-audience-btn.active {
  border-color: var(--navy-900);
  background: linear-gradient(135deg, rgba(15, 26, 43, 0.04) 0%, rgba(42, 75, 107, 0.08) 100%);
  box-shadow: 0 8px 28px rgba(15, 26, 43, 0.1);
}

.banner-audience-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.banner-audience-btn.active .banner-audience-icon {
  background: var(--gradient-navy);
  color: white;
}

.banner-audience-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-audience-text strong {
  font-size: 1rem;
  color: var(--navy-900);
}

.banner-audience-text small {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.banner-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 28px;
}

.banner-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.banner-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.banner-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--gradient-btn);
  color: var(--navy-900);
  flex-shrink: 0;
}

.banner-panel-icon.gold {
  background: var(--gradient-gold);
}

.banner-panel-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.banner-panel-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.banner-upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.banner-field-inline {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
}

.banner-field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.banner-field-input:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 3px rgba(143, 177, 212, 0.25);
  background: white;
}

.banner-field-number {
  width: 100px;
}

.banner-field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.banner-dropzone {
  position: relative;
  display: block;
  border: 2px dashed rgba(143, 177, 212, 0.55);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbfe 0%, #eef4fa 100%);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-height: 160px;
}

.banner-dropzone:hover,
.banner-dropzone.is-dragover {
  border-color: var(--sky-400);
  background: linear-gradient(180deg, #f0f7fd 0%, #e5eef8 100%);
  transform: scale(1.005);
}

.banner-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.banner-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
  pointer-events: none;
}

.banner-dropzone-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.banner-dropzone-inner strong {
  color: var(--navy-900);
  font-size: 0.95rem;
}

.banner-dropzone-inner span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.banner-upload-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.banner-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.banner-submit-arrow {
  font-size: 1.1rem;
  opacity: 0.7;
}

.banner-tips-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.banner-tips-list li span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-preview-mock {
  background: var(--gradient-navy);
  border-radius: var(--radius);
  padding: 14px;
  color: white;
}

.banner-preview-mock-bar {
  height: 8px;
  width: 40%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.banner-preview-mock-slide {
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(184, 208, 231, 0.35) 0%, rgba(245, 217, 179, 0.25) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
}

.banner-preview-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.banner-preview-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.banner-preview-dots span.active {
  width: 18px;
  border-radius: 8px;
  background: var(--gold-300);
}

.banner-gallery-section {
  margin-top: 8px;
}

.banner-count-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-700);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.banner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
  animation: bannerCardIn 0.4s ease both;
}

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

.banner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.banner-card.is-inactive {
  opacity: 0.72;
}

.banner-card-image-wrap {
  position: relative;
}

.banner-thumb-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #eef3f8;
  cursor: zoom-in;
  position: relative;
}

.banner-thumb-btn img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.banner-card:hover .banner-thumb-btn img {
  transform: scale(1.03);
}

.banner-zoom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 43, 0.45);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.banner-thumb-btn:hover .banner-zoom-overlay {
  opacity: 1;
}

.banner-order-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 26, 43, 0.75);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.banner-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.banner-status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.banner-status-badge.paused {
  background: #fef3c7;
  color: #92400e;
}

.banner-card-body {
  padding: 14px 16px 16px;
}

.banner-card-title {
  display: block;
  color: var(--navy-900);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.banner-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 28px;
  background: var(--card);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.banner-empty-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  opacity: 0.85;
}

.banner-empty-state h3 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.15rem;
}

.banner-empty-state p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .banner-layout {
    grid-template-columns: 1fr;
  }

  .banner-stats {
    grid-template-columns: 1fr;
  }

  .banner-audience-switch {
    grid-template-columns: 1fr;
  }

  .banner-hero-orbit {
    display: none;
  }
}

/* ── Admin Notifications ── */
.notify-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1b2f44 0%, #2d4a66 55%, #1b2f44 100%);
  color: #fff;
}

.notify-hero-glow {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 217, 179, 0.22), transparent 70%);
  pointer-events: none;
}

.notify-hero-content {
  position: relative;
  z-index: 1;
}

.notify-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.notify-hero h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.notify-hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.notify-audience-switch {
  margin-bottom: 20px;
}

.notify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: start;
}

.notify-compose-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notify-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

.notify-dropzone {
  min-height: 140px;
}

.notify-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.notify-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.notify-channel-card:has(input:checked) {
  border-color: rgba(27, 47, 68, 0.35);
  box-shadow: inset 0 0 0 1px rgba(27, 47, 68, 0.12);
  background: rgba(184, 208, 231, 0.12);
}

.notify-channel-card input {
  margin-top: 4px;
  accent-color: var(--navy-700);
}

.notify-channel-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.notify-channel-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notify-channel-text strong {
  color: var(--navy-900);
  font-size: 0.92rem;
}

.notify-channel-text small {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.78rem;
}

.notify-target-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.notify-target-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy-800);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.notify-target-btn.active {
  background: rgba(27, 47, 68, 0.08);
  border-color: rgba(27, 47, 68, 0.28);
  color: var(--navy-900);
}

.notify-field-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.notify-submit-btn {
  margin-top: 4px;
}

.notify-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-inline-end: 4px;
}

.notify-history-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.notify-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.notify-history-head strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.notify-history-head time {
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.notify-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notify-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(184, 208, 231, 0.25);
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 700;
}

.notify-history-body {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.notify-history-image-btn {
  border: none;
  background: rgba(27, 47, 68, 0.06);
  color: var(--navy-800);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.notify-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--navy-700);
  font-size: 0.8rem;
  font-weight: 600;
}

.notify-warn {
  color: #b45309;
}

@media (max-width: 960px) {
  .notify-layout,
  .notify-channel-grid,
  .notify-target-switch {
    grid-template-columns: 1fr;
  }
}

/* ── Service Types ── */
.service-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 35, 68, 0.06), rgba(143, 177, 212, 0.12));
  border: 1px solid var(--border);
}

.service-hero h2 {
  margin: 10px 0 8px;
  color: var(--navy-900);
  font-size: 1.35rem;
}

.service-hero p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.service-list {
  display: grid;
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.service-card-new {
  border: 2px solid rgba(143, 177, 212, 0.55);
  margin-bottom: 8px;
}

.service-create-title {
  margin: 0 0 18px;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.service-card-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

.service-thumb-upload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}

.service-thumb-upload input {
  display: none;
}

.service-thumb-upload span {
  width: 100%;
  padding: 6px 4px;
  background: rgba(15, 35, 68, 0.72);
  color: white;
  font-size: 0.68rem;
  text-align: center;
}

.service-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 35, 68, 0.08);
  color: var(--navy-800);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-fields-grid,
.service-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-field-wide {
  grid-column: 1 / -1;
}

.service-pricing-title {
  margin: 18px 0 12px;
  font-weight: 700;
  color: var(--navy-900);
}

.service-active-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  font-weight: 600;
  color: var(--navy-800);
}

.service-active-check input {
  width: auto;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-msg {
  margin-top: 10px;
}

.service-card-name {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.1rem;
}

.service-textarea {
  min-height: 72px;
  resize: vertical;
}

.service-pricing-form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.service-tier-block {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.service-tier-title {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .service-fields-grid,
  .service-pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-active-check {
    padding-top: 0;
  }
}

.badge.cancelled {
  background: rgba(220, 76, 76, 0.12);
  color: var(--danger);
}

.cancel-reason-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cancel-reason-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cancel-reason-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.cancel-reason-label {
  color: var(--navy-900);
  font-weight: 600;
}

.cancel-reason-count {
  color: var(--text-muted);
  font-weight: 700;
}

.cancel-reason-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.cancel-reason-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5b4b4, var(--danger));
  min-width: 4px;
  transition: width 0.35s ease;
}

.profile-note-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.profile-driver-note {
  line-height: 1.7;
  color: var(--navy-900);
}

.profile-old-value {
  color: var(--text-muted);
  text-decoration: line-through;
}

.profile-new-value {
  color: #047857;
  font-weight: 700;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.driver-reports-panel {
  gap: 16px;
}

.driver-reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driver-reports-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-reports-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 320px);
}

.driver-reports-search .search-input {
  flex: 1;
  min-width: 180px;
}

.driver-reports-stats .riders-stat-card {
  flex: 1 1 140px;
}

.driver-reports-table .cell-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.driver-report-row.is-pending {
  background: linear-gradient(90deg, rgba(220, 76, 76, 0.04), transparent);
}

.report-reason-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.report-reason-badge.reason-danger {
  background: rgba(220, 76, 76, 0.12);
  color: #b42318;
  border-color: rgba(220, 76, 76, 0.18);
}

.report-reason-badge.reason-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.report-reason-badge.reason-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.18);
}

.report-reason-badge.reason-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.18);
}

.report-note-preview {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.badge.report-status.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.badge.report-status.resolved {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.badge.report-status.dismissed {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.driver-report-detail .driver-report-hero {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(220, 76, 76, 0.16);
  background: linear-gradient(135deg, rgba(220, 76, 76, 0.07), rgba(15, 42, 68, 0.03));
}

.driver-report-hero-text {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--navy-900);
}

.driver-report-actions {
  margin-top: 0;
}

.driver-report-notes-box {
  margin-top: 0;
}

.driver-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.driver-report-route {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.driver-report-route-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
  color: var(--navy-900);
}

.route-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
}

.form-textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: white;
  font: inherit;
  color: var(--text);
  resize: vertical;
  line-height: 1.6;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.driver-reports-search.riders-search {
  min-width: min(100%, 360px);
}

.driver-reports-search.riders-search input {
  flex: 1;
}

.report-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(220, 76, 76, 0.08), rgba(15, 42, 68, 0.04));
  border-bottom: 1px solid var(--border);
}

.report-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.report-details {
  margin: 0;
  padding: 12px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy-900);
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.report-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px;
}

.report-person {
  background: #f7f9fb;
  border-radius: 12px;
  padding: 12px;
}

.report-person-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.report-person-name {
  font-weight: 700;
  color: var(--navy-900);
}

.report-phone {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--navy-700);
  text-decoration: none;
}

.report-phone:hover {
  text-decoration: underline;
}

.report-route {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--navy-800);
}

.report-route > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.route-dot.pickup {
  background: #10b981;
}

.route-dot.dropoff {
  background: #dc4c4c;
}

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--navy-900);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Ratings admin */
.ratings-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ratings-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ratings-section-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ratings-section-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.ratings-section-tab.is-active {
  border-color: var(--orbit-600, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ratings-section-tab strong {
  display: block;
  color: var(--navy-900);
  font-size: 1rem;
}

.ratings-section-tab small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.ratings-section-tab em {
  margin-inline-start: auto;
  font-style: normal;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--surface-muted, #f1f5f9);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.ratings-section-tab-icon {
  font-size: 1.4rem;
}

.ratings-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ratings-compact-list {
  gap: 8px;
}

.rating-compact-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: start;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.rating-compact-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.rating-compact-item.is-rider {
  border-inline-start: 4px solid #0ea5e9;
}

.rating-compact-item.is-driver {
  border-inline-start: 4px solid #f59e0b;
}

.rating-compact-main {
  min-width: 0;
  flex: 1;
}

.rating-compact-names {
  margin-top: 6px;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.95rem;
}

.rating-compact-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-compact-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.rating-compact-tags {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rating-compact-open {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
}

.rating-detail-overlay {
  padding: 20px;
}

.rating-detail-modal-card {
  width: min(920px, 100%);
  max-height: min(90vh, 980px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rating-detail-modal-body {
  overflow: auto;
  padding: 0 18px 18px;
}

.rating-detail-modal-body .rating-detail-card {
  border: none;
  box-shadow: none;
  padding: 0;
}

.rating-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.rating-detail-card-rider {
  border-top: 4px solid #0ea5e9;
}

.rating-detail-card-driver {
  border-top: 4px solid #f59e0b;
}

.rating-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.rating-detail-title {
  margin: 8px 0 4px;
  color: var(--navy-900);
  font-size: 1.15rem;
}

.rating-detail-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.rating-direction-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.rating-direction-badge.is-rider {
  background: #e0f2fe;
  color: #0369a1;
}

.rating-direction-badge.is-driver {
  background: #fef3c7;
  color: #b45309;
}

.rating-stars-large {
  font-size: 1.15rem;
  color: #f59e0b;
  white-space: nowrap;
}

.rating-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rating-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.rating-contact-email .detail-item,
.rating-contact-email strong,
.rating-contact-stack .rating-contact-email strong {
  align-items: flex-start;
}

.rating-contact-stack .detail-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
}

.rating-email-link,
.rating-contact-email strong {
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.55;
  display: block;
  max-width: 100%;
}

.rating-full-block {
  display: grid;
  gap: 12px;
}

.rating-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-comment-item {
  align-items: flex-start !important;
}

.rating-full-comment {
  display: block;
  white-space: pre-wrap;
  line-height: 1.7;
  font-weight: 500 !important;
  color: var(--navy-900);
}

.ratings-empty {
  padding: 40px 20px;
  text-align: center;
  background: white;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .ratings-section-tabs,
  .rating-contact-grid {
    grid-template-columns: 1fr;
  }

  .rating-detail-head {
    flex-direction: column;
  }
}

.support-panel .riders-toolbar {
  flex-wrap: wrap;
  gap: 10px;
}

.support-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  min-height: 70vh;
}

.support-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.support-detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.support-detail-field.is-full {
  grid-column: 1 / -1;
}

.support-detail-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.support-detail-value {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.support-detail-value.cell-ltr {
  direction: ltr;
  text-align: right;
  unicode-bidi: plaintext;
}

.support-context-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 10px;
  word-break: break-all;
  max-width: 100%;
}

.support-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
  padding: 0;
  overflow: hidden;
}

.support-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #eef2f6;
}

.support-chat-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 26, 43, 0.06);
}

.support-chat-bubble.is-user {
  align-self: flex-start;
  border-bottom-right-radius: 4px;
}

.support-chat-bubble.is-admin {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-left-radius: 4px;
  color: #0f2d2a;
}

.support-chat-bubble.is-admin .support-chat-meta {
  color: #3d5c54;
}

.support-chat-bubble.is-admin .support-chat-text {
  color: #0f2d2a;
}

.support-chat-bubble.is-system {
  align-self: center;
  max-width: 92%;
  background: #fff7ed;
  border: 1px dashed #fdba74;
}

.support-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.support-chat-text {
  white-space: pre-wrap;
  line-height: 1.55;
}

.support-chat-image {
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.support-chat-image-wrap {
  border: none;
  padding: 0;
  margin-top: 8px;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  max-width: 220px;
  max-height: 220px;
  display: block;
}

.support-chat-image-wrap:hover .support-chat-image {
  opacity: 0.92;
}

.support-compose-preview-img {
  cursor: zoom-in;
}

.support-chat-compose {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  align-items: end;
}

.support-chat-compose textarea {
  resize: vertical;
  min-height: 44px;
}

.support-image-btn {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 8px;
}

.support-image-preview {
  grid-column: 1 / -1;
  position: relative;
  display: inline-block;
}

.support-image-preview img {
  max-height: 80px;
  border-radius: 10px;
}

.support-image-preview button {
  position: absolute;
  top: -6px;
  left: -6px;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
}

.support-resolve-box {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-resolve-box h4 {
  margin: 0;
}

.support-closed-note {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.badge.support-status.waiting_admin { background: #fef3c7; color: #92400e; }
.badge.support-status.waiting_user { background: #dbeafe; color: #1e40af; }
.badge.support-status.resolved { background: #dcfce7; color: #166534; }

.support-detail-layout.has-trip-context {
  grid-template-columns: minmax(220px, 260px) minmax(480px, 620px) minmax(300px, 1fr);
}

.support-detail-layout.has-trip-context > *,
.support-context-panel,
.support-detail-sidebar {
  min-width: 0;
}

.support-context-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  max-height: 78vh;
  overflow-y: auto;
}

.support-context-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-context-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.support-context-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.support-context-alert.is-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.support-route-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-route-item {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.support-route-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.support-route-item p {
  margin: 0;
  line-height: 1.55;
  font-size: 13px;
  color: #0f172a;
}

.support-route-item.is-pickup span { color: #047857; }
.support-route-item.is-dropoff span { color: #b91c1c; }

.support-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.support-metrics-grid.compact .support-metric-card {
  padding: 8px 10px;
}

.support-metric-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
}

.support-metric-card span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.support-metric-card strong {
  font-size: 14px;
  color: #0f172a;
}

.support-fare-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.support-fare-box h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.support-fare-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef2f7;
  font-size: 13px;
}

.support-fare-row:last-child { border-bottom: none; }

.support-fare-row.is-total {
  font-weight: 800;
  font-size: 14px;
  padding-top: 8px;
}

.support-fare-row.is-highlight strong {
  color: #047857;
}

.support-fare-row.is-discount strong {
  color: #059669;
}

.admin-ride-full-panel {
  max-height: none;
}

.admin-ride-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #e5e7eb;
}

.admin-ride-section:first-of-type {
  border-top: none;
}

.admin-ride-section h4 {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
}

.admin-ride-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-ride-detail-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.admin-ride-detail-item.is-full {
  grid-column: 1 / -1;
}

.admin-ride-detail-item.is-highlight {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.admin-ride-detail-item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-ride-detail-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}

.admin-ride-coords {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.admin-ride-coords a {
  color: #0f766e;
  text-decoration: none;
}

.admin-ride-status-row {
  margin-bottom: 4px;
}

.admin-ride-related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-ride-related-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  background: #f8fafc;
}

.admin-route-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.admin-route-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-route-legend-item i {
  width: 28px;
  height: 0;
  border-top: 4px solid #111827;
  border-radius: 999px;
  display: inline-block;
}

.admin-route-legend-item.is-driver i {
  border-top-color: #dc2626;
}

.admin-route-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-route-comparison.is-warning .admin-route-comparison-item:last-child strong {
  color: #b45309;
}

.admin-route-comparison-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.admin-route-comparison-item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-route-comparison-item strong {
  font-size: 13px;
  color: var(--text-primary);
}

.admin-route-map {
  width: 100%;
  min-height: 320px;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  background: #eff6ff;
}

.admin-route-map-loading,
.admin-route-map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-route-map-error {
  color: #b45309;
  background: #fffbeb;
}

.driver-map-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.driver-map-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.driver-map-stat {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.driver-map-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.driver-map-stat strong {
  font-size: 20px;
  color: var(--text-primary);
}

.driver-map-stat.is-available strong { color: #047857; }
.driver-map-stat.is-busy strong { color: #dc2626; }
.driver-map-stat.is-hot strong { color: #ea580c; }

.driver-map-layout.with-hot-zones {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
}

.driver-map-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  min-height: 560px;
}

.hot-zones-enable-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hot-zones-enable-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hot-zones-enable-copy strong {
  font-size: 13px;
}

#hot-zones-enabled-status {
  font-size: 11px;
  color: #15803d;
  line-height: 1.4;
}

#hot-zones-enabled-status.is-off {
  color: #b45309;
}

.hot-zones-enable-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.hot-zones-enable-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.hot-zones-enable-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.hot-zones-enable-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hot-zones-enable-toggle input:checked + .hot-zones-enable-slider {
  background: #ea580c;
}

.hot-zones-enable-toggle input:checked + .hot-zones-enable-slider::before {
  transform: translateX(20px);
}

.hot-zones-enable-toggle input:focus-visible + .hot-zones-enable-slider {
  outline: 2px solid #fdba74;
  outline-offset: 2px;
}

.hot-zones-panel.is-disabled .hot-zones-panel-head,
.hot-zones-panel.is-disabled .hot-zones-list {
  opacity: 0.72;
}

.hot-zones-disabled-msg {
  color: #b45309;
}

.hot-zones-panel-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hot-zones-panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 640px;
}

.hot-zones-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hot-zones-panel-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hot-zones-panel-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hot-zones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  flex: 1;
}

.hot-zone-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
  cursor: pointer;
}

.hot-zone-card.is-selected {
  border-color: #ea580c;
  background: #fff7ed;
}

.hot-zone-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hot-zone-card-head strong {
  font-size: 13px;
}

.hot-zone-surge-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
}

.hot-zone-surge-badge.is-elevated,
.hot-zone-surge-badge.is-high,
.hot-zone-surge-badge.is-critical {
  background: #fee2e2;
  color: #991b1b;
}

.hot-zone-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hot-zone-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hot-zone-card-actions label {
  font-size: 11px;
  color: var(--text-muted);
}

.hot-zone-surge-select,
.hot-zone-name-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}

.hot-zone-card-buttons {
  display: flex;
  gap: 8px;
}

.hot-zone-manual-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 11px;
  font-weight: 600;
}

#hot-zones-pin-btn.is-active {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.admin-driver-map.is-pin-mode {
  outline: 2px dashed #ea580c;
  outline-offset: -2px;
}

.admin-route-legend-item.is-hot-moderate i {
  background: #ca8a04;
}

.admin-route-legend-item.is-hot-high i {
  background: #dc2626;
}

.admin-route-legend-item.is-hot-notify i {
  background: transparent;
  border: 2px dashed #ea580c;
}

.driver-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  min-height: 72vh;
}

.admin-driver-map {
  width: 100%;
  min-height: 72vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  background: #eff6ff;
}

.driver-map-detail {
  min-height: 72vh;
  max-height: 72vh;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.driver-map-detail.hidden {
  display: none;
}

.driver-map-detail-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-map-detail-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.driver-map-detail-section h4 {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.admin-route-legend.compact {
  margin-top: 8px;
}

.admin-route-legend-item.is-car-available img,
.admin-route-legend-item.is-car-busy img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.admin-route-legend-item.is-car-busy img.is-red {
  filter: brightness(0) saturate(100%) invert(24%) sepia(95%) saturate(7461%) hue-rotate(357deg) brightness(93%) contrast(88%);
}

.driver-report-trip-full {
  margin-top: 16px;
}

.driver-report-trip-full .support-context-panel {
  max-height: none;
}

.support-context-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
}

.support-rider-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

.support-rider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.support-rider-field span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.support-rider-field strong {
  font-size: 13px;
  color: #0f172a;
}

.support-rider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .support-detail-layout,
  .support-detail-layout.has-trip-context {
    grid-template-columns: 1fr;
  }

  .admin-route-comparison {
    grid-template-columns: 1fr;
  }

  .driver-map-layout,
  .driver-map-layout.with-hot-zones,
  .driver-map-main {
    grid-template-columns: 1fr;
  }

  .hot-zones-panel {
    max-height: none;
  }

  .driver-map-detail {
    min-height: auto;
    max-height: none;
  }
}

.profile-suspended-alert {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.12);
}

.profile-suspended-alert-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-suspended-alert-icon {
  font-size: 28px;
  line-height: 1;
}

.profile-suspended-alert-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #991b1b;
}

.profile-suspended-alert-sub {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.92rem;
}

.profile-suspended-reason-text {
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #1b2f44;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.profile-suspended-reason-text.is-missing {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.profile-suspended-alert-actions {
  margin-top: 12px;
}

.modal-card.has-suspended-user .modal-head h3 {
  color: #991b1b;
}

.btn-danger-outline {
  background: #fff;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.btn-danger-outline:hover {
  background: #fef2f2;
}

.rcard-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0f2d2a 0%, #1a4a44 55%, #0d2421 100%);
  color: #fff;
}

.rcard-hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 120, 0.25), transparent 70%);
  pointer-events: none;
}

.rcard-hero-content { position: relative; z-index: 1; }

.rcard-hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.rcard-hero h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.rcard-hero p {
  margin: 0;
  opacity: 0.88;
  max-width: 680px;
  line-height: 1.7;
}

.rcard-type-switch { margin-bottom: 20px; }

.rcard-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 24px;
}

.rcard-create-form,
.rcard-search-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rcard-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rcard-field { display: flex; flex-direction: column; gap: 6px; }

.rcard-search-form {
  flex-direction: row;
  align-items: stretch;
}

.rcard-search-form .banner-field-input { flex: 1; }

.rcard-section-head {
  margin: 8px 0 14px;
}

.rcard-section-head h3 {
  margin: 0 0 4px;
  color: var(--navy-900);
}

.rcard-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.rcard-denom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  width: 100%;
}

.rcard-denom-card {
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rcard-denom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 45, 42, 0.08);
  border-color: #9fd4c9;
}

.rcard-denom-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rcard-denom-top strong {
  font-size: 1.35rem;
  color: #0f2d2a;
}

.rcard-denom-badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef7f5;
  color: #0f2d2a;
}

.rcard-denom-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.rcard-pending { color: #0f766e; font-weight: 700; }

.rcard-denom-action {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f766e;
}

.rcard-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  width: 100%;
}

.rcard-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: 100%;
}

.rcard-stats {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.rcard-stats .riders-stat-card {
  min-width: 0;
}

.rcard-table-section {
  width: 100%;
  margin-bottom: 16px;
}

.rcard-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rcard-table-head h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-800);
}

.rcard-table-head span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rcard-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: min(52vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.rcard-table-wrap table {
  min-width: 720px;
}

.rcard-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-soft);
  box-shadow: 0 1px 0 rgba(15, 26, 43, 0.08);
}

.rcard-table-wrap th,
.rcard-table-wrap td {
  vertical-align: top;
}

.rcard-table-wrap td:nth-child(3) {
  min-width: 180px;
  max-width: 280px;
}

.rcard-table-wrap .rcard-status {
  line-height: 1.45;
}

.rcard-table-wrap .rcard-actions-cell {
  white-space: nowrap;
}

.rcard-tab-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.rcard-tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy-800);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.rcard-tab-btn.active {
  background: #0f2d2a;
  border-color: #0f2d2a;
  color: #fff;
}

.rcard-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rcard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.rcard-redeem-result {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  background: #fafcfb;
}

.rcard-redeem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rcard-redeem-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.rcard-redeem-actions {
  display: flex;
  gap: 8px;
}

.rcard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 45, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.rcard-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.rcard-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.rcard-modal-head h3 { margin: 0; }

.rcard-modal-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.rcard-modal-body { padding: 18px; }

.rcard-modal-subtitle {
  margin: 16px 0 10px;
  font-size: 0.95rem;
  color: var(--navy-800);
}

.rcard-download-note {
  margin: -8px 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef7f5;
  color: #0f766e;
  font-size: 0.88rem;
  line-height: 1.6;
}

.rcard-status {
  display: inline-block;
  font-size: 0.86rem;
  line-height: 1.5;
}

.rcard-status.pending {
  color: #b45309;
}

.rcard-status.downloaded {
  color: #0f766e;
}

.rcard-status.downloaded small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .rcard-layout { grid-template-columns: 1fr; }
  .rcard-search-form { flex-direction: column; }
  .rcard-field-row { grid-template-columns: 1fr; }
  .rcard-detail-toolbar { flex-direction: column; align-items: stretch; }
}

