/* =================================================================
   GetAnAirportTransfer — Admin panel styles
   Loaded AFTER assets/css/styles.css (inherits CSS variables, font, reset)
   ================================================================= */

:root {
  /* Cool admin palette (intentionally distinct from marketing's warm cream) */
  --admin-bg: #F4F6F8;
  --admin-surface: #FFFFFF;
  --admin-surface-soft: #F9FAFB;
  --admin-border: #E5E7EB;
  --admin-border-strong: #D1D5DB;
  --admin-text: #111827;
  --admin-text-muted: #6B7280;
  --admin-text-soft: #9CA3AF;

  --admin-sidebar-w: 240px;
  --admin-topbar-h: 64px;

  /* Status colors */
  --st-pending: #F59E0B;
  --st-pending-bg: rgba(245, 158, 11, 0.12);
  --st-confirmed: #2563EB;
  --st-confirmed-bg: rgba(37, 99, 235, 0.12);
  --st-assigned: #8B5CF6;
  --st-assigned-bg: rgba(139, 92, 246, 0.12);
  --st-progress: #06B6D4;
  --st-progress-bg: rgba(6, 182, 212, 0.12);
  --st-completed: #10B981;
  --st-completed-bg: rgba(16, 185, 129, 0.12);
  --st-cancelled: #6B7280;
  --st-cancelled-bg: rgba(107, 114, 128, 0.12);
  --st-refunded: #1F2937;
  --st-refunded-bg: rgba(31, 41, 55, 0.12);
}

body.admin {
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Hide noise overlay from marketing styles inside admin */
body.admin::before { display: none !important; }

/* =========== Layout shell =========== */
.admin-shell {
  display: grid;
  grid-template-columns: var(--admin-sidebar-w) 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.admin-sidebar .brand {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-sidebar .brand img { height: 36px; width: auto; }
.admin-sidebar .brand-text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  opacity: 0.95;
}
.admin-sidebar .brand-text small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-light);
  margin-top: 2px;
}

.admin-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}
.admin-nav-section {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  padding: 14px 12px 6px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-weight: 600;
}
.admin-nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--color-accent);
  border-radius: 0 3px 3px 0;
}
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
.admin-nav a .badge {
  margin-left: auto;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

.admin-sidebar .sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidebar .user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
}
.admin-sidebar .user-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.admin-sidebar .user-chip-text { line-height: 1.25; min-width: 0; }
.admin-sidebar .user-chip-text strong { display: block; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-sidebar .user-chip-text span { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.55); }

/* =========== Main column =========== */
.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: var(--admin-topbar-h);
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-topbar-left { display: flex; align-items: center; gap: 12px; }
.admin-topbar h1 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--admin-text);
}
.admin-topbar .subtitle {
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
}
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-topbar .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--admin-text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.admin-topbar .icon-btn:hover { background: var(--admin-surface-soft); color: var(--admin-text); border-color: var(--admin-border); }
.admin-topbar .icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--st-pending);
  border-radius: 50%;
  border: 2px solid var(--admin-surface);
}

.mobile-sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.admin-content {
  flex: 1;
  padding: 28px;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: var(--admin-sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.2);
  }
  .admin-shell.sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-shell.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 25;
  }
  .mobile-sidebar-toggle { display: inline-flex; }
  .admin-content { padding: 20px 16px; }
}

/* =========== Cards / surfaces =========== */
.admin-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-card-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--admin-text);
}
.admin-card-header .meta { font-size: 0.8125rem; color: var(--admin-text-muted); }

/* =========== KPI grid =========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.kpi-card .kpi-label {
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kpi-card .kpi-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--admin-surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.kpi-card .kpi-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--admin-text);
  line-height: 1.1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.kpi-card .kpi-meta {
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
  margin-top: 8px;
}
.kpi-card .kpi-meta.up { color: var(--st-completed); }
.kpi-card .kpi-meta.down { color: #DC2626; }

/* =========== Status pills =========== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill[data-status="pending"]     { color: var(--st-pending);   background: var(--st-pending-bg); }
.status-pill[data-status="confirmed"]   { color: var(--st-confirmed); background: var(--st-confirmed-bg); }
.status-pill[data-status="assigned"]    { color: var(--st-assigned);  background: var(--st-assigned-bg); }
.status-pill[data-status="in_progress"] { color: var(--st-progress);  background: var(--st-progress-bg); }
.status-pill[data-status="completed"]   { color: var(--st-completed); background: var(--st-completed-bg); }
.status-pill[data-status="cancelled"]   { color: var(--st-cancelled); background: var(--st-cancelled-bg); }
.status-pill[data-status="refunded"]    { color: var(--st-refunded);  background: var(--st-refunded-bg); }

/* =========== Filter bar =========== */
.filter-bar {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.filter-pill:hover { background: var(--admin-surface-soft); color: var(--admin-text); }
.filter-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.filter-pill .count {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}
.filter-pill:not(.active) .count {
  background: var(--admin-border);
  color: var(--admin-text-muted);
}
.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--admin-text);
}
.filter-bar input[type="search"] { min-width: 220px; }
.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 42, 71, 0.08);
}
.filter-bar-spacer { flex: 1; }

/* =========== Data table =========== */
.data-table {
  width: 100%;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
}
.data-table thead th {
  background: var(--admin-surface-soft);
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--admin-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}
.data-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.875rem;
  color: var(--admin-text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr {
  cursor: pointer;
  transition: background 0.1s ease;
}
.data-table tbody tr:hover { background: var(--admin-surface-soft); }
.data-table .ref-code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--admin-text);
}
.data-table .pickup-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.data-table .pickup-time strong { font-weight: 600; font-size: 0.875rem; }
.data-table .pickup-time span { font-size: 0.75rem; color: var(--admin-text-muted); }
.data-table .route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
}
.data-table .route .arrow { color: var(--admin-text-soft); }
.data-table .price {
  font-weight: 700;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.data-table .row-action {
  background: transparent;
  border: 0;
  color: var(--admin-text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.data-table .row-action:hover { background: var(--admin-border); color: var(--admin-text); }

/* Stacked card view on small screens */
@media (max-width: 720px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tbody tr {
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 14px;
    background: var(--admin-surface);
  }
  .data-table tbody td {
    padding: 4px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .data-table tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--admin-text-muted);
    letter-spacing: 0.06em;
    font-weight: 600;
  }
  .data-table tbody td[data-label="Rota"] {
    flex-direction: column;
    align-items: flex-start;
  }
}

.empty-state {
  background: var(--admin-surface);
  border: 1px dashed var(--admin-border-strong);
  border-radius: 12px;
  padding: 64px 24px;
  text-align: center;
  color: var(--admin-text-muted);
}
.empty-state .emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h3 { color: var(--admin-text); margin: 0 0 6px; font-size: 1.125rem; }
.empty-state p { font-size: 0.9375rem; max-width: 380px; margin: 0 auto; line-height: 1.5; }

/* =========== Today timeline (dashboard) =========== */
.today-list { display: flex; flex-direction: column; gap: 6px; }
.today-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--admin-surface-soft);
  cursor: pointer;
  transition: background 0.1s ease, transform 0.1s ease;
}
.today-row:hover { background: var(--admin-border); transform: translateX(2px); }
.today-row .time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.today-row .body { font-size: 0.8125rem; line-height: 1.45; }
.today-row .body .route { font-weight: 600; color: var(--admin-text); }
.today-row .body .meta { color: var(--admin-text-muted); margin-top: 2px; }

/* =========== Slide-over (order detail) =========== */
.slide-over-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.slide-over-backdrop.open { opacity: 1; pointer-events: auto; }

.slide-over {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(820px, 100%);
  background: var(--admin-bg);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0.16, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.16);
}
.slide-over.open { transform: translateX(0); }

.slide-over-header {
  padding: 18px 24px;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.slide-over-header .ref {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--admin-text);
}
.slide-over-header .meta { font-size: 0.8125rem; color: var(--admin-text-muted); margin-top: 2px; }
.slide-over-header .header-left { display: flex; align-items: center; gap: 14px; }
.slide-over-header .close-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid var(--admin-border);
  color: var(--admin-text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.slide-over-header .close-btn:hover { background: var(--admin-surface-soft); color: var(--admin-text); }

.slide-over-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.slide-over-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .slide-over-grid { grid-template-columns: 1fr; }
}

.detail-card {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.detail-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-muted);
  margin: 0 0 12px;
}
.detail-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.875rem;
  border-bottom: 1px dashed var(--admin-border);
}
.detail-card .row:last-child { border-bottom: none; }
.detail-card .row .label { color: var(--admin-text-muted); }
.detail-card .row .value { color: var(--admin-text); font-weight: 500; text-align: right; }
.detail-card .row .value a { color: var(--color-primary); }
.detail-card .row .value strong { font-weight: 700; }

.detail-card.totals .row.total {
  border-top: 2px solid var(--admin-text);
  padding-top: 12px;
  margin-top: 6px;
  border-bottom: none;
  font-size: 1rem;
}
.detail-card.totals .row.total .value { font-size: 1.25rem; font-weight: 700; font-feature-settings: "tnum" 1; }

.detail-card .notes-area {
  width: 100%;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  background: var(--admin-surface-soft);
  color: var(--admin-text);
}
.detail-card .notes-area:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.detail-card .notes-status { font-size: 0.75rem; color: var(--admin-text-muted); margin-top: 6px; }

/* =========== Status timeline (order detail) =========== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--admin-border);
}
.timeline-step {
  position: relative;
  padding: 10px 0 10px 0;
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--admin-bg);
  border: 2px solid var(--admin-border-strong);
  box-shadow: 0 0 0 3px var(--admin-surface);
}
.timeline-step.done::before { background: var(--st-completed); border-color: var(--st-completed); }
.timeline-step.current::before { background: var(--color-accent); border-color: var(--color-accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--admin-surface), 0 0 0 6px rgba(196, 103, 76, 0.15); }
  50%      { box-shadow: 0 0 0 3px var(--admin-surface), 0 0 0 10px rgba(196, 103, 76, 0); }
}
.timeline-step h5 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text);
}
.timeline-step time { font-size: 0.75rem; color: var(--admin-text-muted); display: block; margin-top: 1px; }
.timeline-step.upcoming h5 { color: var(--admin-text-muted); }

/* Slide-over sticky bottom action bar */
.slide-over-footer {
  border-top: 1px solid var(--admin-border);
  background: var(--admin-surface);
  padding: 14px 24px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.slide-over-footer .left { margin-right: auto; }

/* =========== Buttons (admin scoped) =========== */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-admin.primary { background: var(--color-primary); color: #fff; }
.btn-admin.primary:hover { background: #1a3a5e; }
.btn-admin.accent { background: var(--color-accent); color: #fff; }
.btn-admin.accent:hover { background: var(--color-accent-dark); }
.btn-admin.ghost { background: var(--admin-surface); color: var(--admin-text); border-color: var(--admin-border); }
.btn-admin.ghost:hover { background: var(--admin-surface-soft); border-color: var(--admin-border-strong); }
.btn-admin.danger { background: transparent; color: #DC2626; border-color: #FCA5A5; }
.btn-admin.danger:hover { background: rgba(220, 38, 38, 0.06); }
.btn-admin.success { background: #25D366; color: #fff; }
.btn-admin.success:hover { background: #1bb554; }
.btn-admin.sm { padding: 6px 10px; font-size: 0.8125rem; }

/* =========== Toast =========== */
.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--admin-text);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  animation: toast-in 0.25s cubic-bezier(0.32, 0.72, 0.16, 1);
}
.toast.success { background: var(--st-completed); }
.toast.error   { background: #DC2626; }
.toast.info    { background: var(--st-confirmed); }
@keyframes toast-in {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* =========== Login page =========== */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--admin-bg);
}
.login-hero {
  background: linear-gradient(135deg, #0E2A47 0%, #1A4373 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: #fff;
}
.login-hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 103, 76, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.login-hero .brand img { height: 56px; }
.login-hero .hero-content { position: relative; z-index: 2; }
.login-hero .hero-content h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.login-hero .hero-content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  font-size: 1rem;
  max-width: 380px;
}
.login-hero .hero-illustration {
  position: relative;
  z-index: 2;
  width: 280px;
  margin: 0 auto;
}

.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 36px;
}
.login-card .mobile-logo { display: none; margin-bottom: 24px; }
.login-card .mobile-logo img { height: 48px; }
.login-card h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.login-card .lede { font-size: 0.875rem; color: var(--admin-text-muted); margin: 0 0 28px; }
.login-card .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.login-card label { font-size: 0.8125rem; font-weight: 600; color: var(--admin-text); }
.login-card input {
  padding: 11px 14px;
  border: 1px solid var(--admin-border-strong);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--admin-surface);
  color: var(--admin-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-card input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 42, 71, 0.1);
}
.login-card .password-wrap { position: relative; }
.login-card .password-wrap input { padding-right: 44px; }
.login-card .password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--admin-text-muted);
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-card .password-toggle:hover { background: var(--admin-surface-soft); color: var(--admin-text); }
.login-card .row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 24px;
  font-size: 0.8125rem;
}
.login-card .row-between label { font-weight: 500; color: var(--admin-text-muted); cursor: pointer; }
.login-card .row-between input[type="checkbox"] { margin-right: 6px; vertical-align: middle; accent-color: var(--color-primary); }
.login-card .row-between a { color: var(--color-primary); font-weight: 600; }
.login-card .submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.login-card .submit-btn:hover { background: #1a3a5e; }
.login-card .submit-btn:disabled { opacity: 0.6; cursor: progress; }
.login-card .login-error {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #B91C1C;
  display: none;
}
.login-card .login-error.show { display: block; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-card .mobile-logo { display: block; }
}

/* =========== Section helpers =========== */
.section-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  .section-row { grid-template-columns: 1fr; }
}

.recent-feed { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--admin-border);
}
.recent-item:last-child { border-bottom: none; }
.recent-item .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--admin-surface-soft);
  color: var(--color-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  text-transform: uppercase;
}
.recent-item .body { line-height: 1.35; min-width: 0; }
.recent-item .body strong { font-weight: 600; font-size: 0.875rem; display: block; color: var(--admin-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item .body span { font-size: 0.75rem; color: var(--admin-text-muted); }
.recent-item .when { font-size: 0.75rem; color: var(--admin-text-soft); }
