/* ==========================================================================
   Eazzier Transport — component stylesheet (the design system's single home).

   Read EAZZIER_TRANSPORT_UI_MANUAL.md before editing. The contract:
   - Tailwind utilities handle LAYOUT ONLY (flex, grid, gap, padding, width).
   - Every reusable visual (cards, buttons, chips, inputs, tables, seats,
     drawers, modals, nav, toasts, timelines) is a class defined HERE, driven
     by the brand tokens below. New pages compose these classes; they do not
     invent parallel styles.
   - Tokens mirror tailwind.config in base.html — change both together.
   ========================================================================== */

:root {
  /* Brand */
  --et-primary: #5e0a80;
  --et-primary-strong: #4d0968;    /* hover/active */
  --et-primary-soft: #f1e4f8;      /* tint backgrounds */
  --et-primary-fainter: #f9f4fc;   /* faintest tint (hover rows, active nav) */
  --et-gold: #ffd75c;
  --et-gold-strong: #fdc226;
  --et-gold-soft: #fff3c6;
  --et-gold-ink: #7a5a00;          /* readable text on gold tints */
  --et-success: #28a745;
  --et-success-soft: #e5f6e9;
  --et-danger: #dc3545;
  --et-danger-soft: #fdebed;
  --et-info: #0d6efd;
  --et-info-soft: #e7f0ff;

  /* Neutrals */
  --et-bg: #f5f5f5;
  --et-card: #ffffff;
  --et-border: #ece9f1;
  --et-ink: #211a2b;               /* headings */
  --et-body: #4b4457;              /* body text */
  --et-muted: #8b8496;             /* secondary text */

  /* Shape & elevation */
  --et-radius: 16px;               /* cards */
  --et-radius-sm: 10px;            /* inputs, chips, seats */
  --et-shadow-card: 0 1px 2px rgba(40, 3, 54, .04), 0 4px 16px rgba(40, 3, 54, .06);
  --et-shadow-pop: 0 8px 30px rgba(40, 3, 54, .16);

  /* Motion — one timing language everywhere */
  --et-ease: cubic-bezier(.22, .8, .36, 1);
  --et-fast: 150ms;
  --et-med: 260ms;
}

.et-body { background: var(--et-bg); color: var(--et-body); }

h1, h2, h3, h4 { color: var(--et-ink); }

/* Numbers (fares, seat counts, KPIs) must align — always tabular */
.num, .kpi-value, td.num, .seat { font-variant-numeric: tabular-nums; }

::selection { background: var(--et-primary-soft); }

/* Focus visibility (a11y) */
:focus-visible { outline: 2px solid #cba0e2; outline-offset: 2px; border-radius: 6px; }

/* Slim scrollbars */
* { scrollbar-width: thin; scrollbar-color: #d9d3e3 transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #d9d3e3; border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--et-card);
  border: 1px solid var(--et-border);
  border-radius: var(--et-radius);
  box-shadow: var(--et-shadow-card);
}
.card-hover { transition: box-shadow var(--et-fast) var(--et-ease), transform var(--et-fast) var(--et-ease); }
.card-hover:hover { box-shadow: var(--et-shadow-pop); transform: translateY(-1px); }

.section-title { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--et-muted); }

/* --------------------------------------------------------------------------
   Icon circles — the structured.app-style colored dots used everywhere
   (timelines, KPI cards, feature cards, nav headers).
   -------------------------------------------------------------------------- */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px; flex: none;
  background: var(--et-primary-soft); color: var(--et-primary);
}
.icon-circle svg { width: 20px; height: 20px; }
.icon-circle-sm { width: 32px; height: 32px; } .icon-circle-sm svg { width: 16px; height: 16px; }
.icon-circle-lg { width: 52px; height: 52px; } .icon-circle-lg svg { width: 26px; height: 26px; }
.icon-circle-gold    { background: var(--et-gold-soft);    color: var(--et-gold-ink); }
.icon-circle-success { background: var(--et-success-soft); color: var(--et-success); }
.icon-circle-danger  { background: var(--et-danger-soft);  color: var(--et-danger); }
.icon-circle-info    { background: var(--et-info-soft);    color: var(--et-info); }
.icon-circle-neutral { background: #f0eef4; color: var(--et-muted); }
.icon-circle-solid   { background: var(--et-primary); color: #fff; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .875rem; line-height: 1;
  padding: .625rem 1rem; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background var(--et-fast) var(--et-ease), color var(--et-fast) var(--et-ease),
              border-color var(--et-fast) var(--et-ease), box-shadow var(--et-fast) var(--et-ease),
              transform var(--et-fast) var(--et-ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--et-primary); color: #fff; }
.btn-primary:hover { background: var(--et-primary-strong); }
.btn-gold { background: var(--et-gold); color: #3f2f00; }
.btn-gold:hover { background: var(--et-gold-strong); }
.btn-outline { background: #fff; border-color: var(--et-border); color: var(--et-body); }
.btn-outline:hover { border-color: #cba0e2; color: var(--et-primary); }
.btn-ghost { background: transparent; color: var(--et-body); }
.btn-ghost:hover { background: var(--et-primary-fainter); color: var(--et-primary); }
.btn-danger { background: var(--et-danger); color: #fff; }
.btn-danger:hover { background: #b02a37; }
.btn-danger-soft { background: var(--et-danger-soft); color: var(--et-danger); }
.btn-danger-soft:hover { background: #fbd8dc; }
.btn-success { background: var(--et-success); color: #fff; }
.btn-success:hover { background: #1f8c38; }

.btn-sm { padding: .375rem .75rem; font-size: .8125rem; border-radius: 10px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: .875rem 1.5rem; font-size: 1rem; border-radius: 14px; }
/* Marketing hero CTA — the big friendly pill (structured.app "Continue") */
.btn-pill { border-radius: 9999px; padding: .875rem 2rem; font-size: 1rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; color: var(--et-muted);
  transition: background var(--et-fast) var(--et-ease), color var(--et-fast) var(--et-ease);
  cursor: pointer; border: none; background: transparent;
}
.icon-btn:hover { background: var(--et-primary-fainter); color: var(--et-primary); }
.icon-btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Status chips — one vocabulary for trip/booking/parcel states
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .75rem; font-weight: 600; line-height: 1;
  padding: .3125rem .625rem; border-radius: 9999px;
  background: #f0eef4; color: var(--et-muted); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip .dot { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; flex: none; }
.chip-primary { background: var(--et-primary-soft); color: var(--et-primary); }
.chip-gold    { background: var(--et-gold-soft);    color: var(--et-gold-ink); }
.chip-success { background: var(--et-success-soft); color: #1c7a33; }
.chip-danger  { background: var(--et-danger-soft);  color: #b02a37; }
.chip-info    { background: var(--et-info-soft);    color: #0a58ca; }
.chip-neutral { background: #f0eef4; color: var(--et-muted); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.label { display: block; font-size: .8125rem; font-weight: 600; color: var(--et-ink); margin-bottom: .375rem; }
.help { font-size: .75rem; color: var(--et-muted); margin-top: .25rem; }

.input, .select, textarea.input {
  width: 100%; font-size: .875rem; color: var(--et-ink);
  background: #fff; border: 1px solid var(--et-border); border-radius: var(--et-radius-sm);
  padding: .625rem .75rem; transition: border-color var(--et-fast), box-shadow var(--et-fast);
}
.input::placeholder { color: #b3adbe; }
.input:focus, .select:focus { outline: none; border-color: #ad6ccd; box-shadow: 0 0 0 3px var(--et-primary-soft); }
.input-lg { padding: .875rem 1rem; font-size: 1rem; border-radius: 12px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8496' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .625rem center; padding-right: 2.25rem;
}
.input-error { border-color: var(--et-danger) !important; }
.error-text { font-size: .75rem; color: var(--et-danger); margin-top: .25rem; }

/* Search input with a leading icon (wrap: .search-box > svg + input) */
.search-box { position: relative; }
.search-box > svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--et-muted); pointer-events: none; }
.search-box > .input { padding-left: 2.375rem; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .track { position: absolute; inset: 0; background: #ddd8e5; border-radius: 9999px; transition: background var(--et-med) var(--et-ease); }
.toggle .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 9999px; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform var(--et-med) var(--et-ease);
}
.toggle input:checked + .track { background: var(--et-primary); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 2px solid #cba0e2; outline-offset: 2px; }

/* Checkbox (permission lists) */
.checkbox { width: 18px; height: 18px; border-radius: 5px; accent-color: var(--et-primary); cursor: pointer; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--et-radius); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table thead th {
  text-align: left; font-size: .6875rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--et-muted);
  padding: .75rem 1rem; border-bottom: 1px solid var(--et-border);
  background: #faf9fc; white-space: nowrap;
}
.table tbody td { padding: .875rem 1rem; border-bottom: 1px solid var(--et-border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--et-fast); }
.table-hover tbody tr:hover { background: var(--et-primary-fainter); cursor: pointer; }
.table .col-hidden { display: none; }

/* Avatar initials (staff, customers, agents) */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 9999px;
  background: var(--et-primary-soft); color: var(--et-primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Sidebar navigation
   -------------------------------------------------------------------------- */
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem; border-radius: 12px;
  font-size: .875rem; font-weight: 500; color: var(--et-body);
  transition: background var(--et-fast) var(--et-ease), color var(--et-fast) var(--et-ease);
}
.nav-item svg { width: 18px; height: 18px; flex: none; color: var(--et-muted); transition: color var(--et-fast); }
.nav-item:hover { background: var(--et-primary-fainter); color: var(--et-primary); }
.nav-item:hover svg { color: var(--et-primary); }
.nav-item.active { background: var(--et-primary-soft); color: var(--et-primary); font-weight: 600; }
.nav-item.active svg { color: var(--et-primary); }

/* Collapsible group: <button.nav-group-btn> + <div.nav-sub><div>…</div></div>
   Animated with the grid-rows trick so height animates smoothly. */
.nav-group-btn { width: 100%; cursor: pointer; background: none; border: none; text-align: left; }
.nav-group-btn .chev { margin-left: auto; transition: transform var(--et-med) var(--et-ease); }
.nav-group-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--et-med) var(--et-ease);
}
.nav-sub > div { overflow: hidden; }
.nav-sub.open { grid-template-rows: 1fr; }
.nav-sub .nav-item { padding-left: 2.6rem; font-size: .8125rem; }

/* --------------------------------------------------------------------------
   Sidebar collapse (icons-only). State lives on <html class="sidebar-collapsed">
   so a tiny inline script can apply it before paint (no flash); app.js toggles
   it via #sidebar-toggle and persists to localStorage("et.sidebar.collapsed").
   -------------------------------------------------------------------------- */
.et-sidebar { width: 16rem; transition: width var(--et-med) var(--et-ease); }
.et-main { margin-left: 16rem; transition: margin-left var(--et-med) var(--et-ease); }
html.sidebar-collapsed .et-sidebar { width: 76px; }
html.sidebar-collapsed .et-main { margin-left: 76px; }
html.sidebar-collapsed .et-sidebar .sidebar-head { justify-content: center; padding-left: 0; padding-right: 0; }
html.sidebar-collapsed .et-sidebar .brand-text { display: none; }
html.sidebar-collapsed .et-sidebar .nav-item { justify-content: center; padding-left: .5rem; padding-right: .5rem; }
html.sidebar-collapsed .et-sidebar .nav-item > span,
html.sidebar-collapsed .et-sidebar .nav-group-btn .chev { display: none; }
html.sidebar-collapsed .et-sidebar .nav-sub { display: none; }
#sidebar-toggle svg { transition: transform var(--et-med) var(--et-ease); }
html.sidebar-collapsed #sidebar-toggle svg { transform: rotate(180deg); }

/* Dark chrome variant for the platform-admin surface */
.sidebar-dark { background: #22102e; border-color: #372145; }
.sidebar-dark .nav-item { color: #cbbcd8; }
.sidebar-dark .nav-item svg { color: #8d7a9e; }
.sidebar-dark .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-dark .nav-item:hover svg { color: var(--et-gold); }
.sidebar-dark .nav-item.active { background: rgba(255,215,92,.14); color: var(--et-gold); }
.sidebar-dark .nav-item.active svg { color: var(--et-gold); }

/* --------------------------------------------------------------------------
   Segmented control (Seat view ⇄ List view, Day/Week, tabs)
   -------------------------------------------------------------------------- */
.seg { display: inline-flex; background: #eeebf3; border-radius: 12px; padding: 3px; gap: 2px; }
.seg-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .875rem; border-radius: 10px; border: none; cursor: pointer;
  font-size: .8125rem; font-weight: 600; color: var(--et-muted); background: transparent;
  transition: background var(--et-fast) var(--et-ease), color var(--et-fast) var(--et-ease), box-shadow var(--et-fast);
}
.seg-btn svg { width: 15px; height: 15px; }
.seg-btn.active { background: #fff; color: var(--et-primary); box-shadow: 0 1px 3px rgba(40,3,54,.12); }

/* Underline tabs (settings sections) */
.tab-btn {
  padding: .625rem .25rem; margin-right: 1.25rem; border: none; background: none; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--et-muted);
  border-bottom: 2px solid transparent; transition: color var(--et-fast), border-color var(--et-fast);
}
.tab-btn.active { color: var(--et-primary); border-bottom-color: var(--et-primary); }

/* --------------------------------------------------------------------------
   Seat map — rendered by JS from SeatLayout JSON (see bookings.js)
   States per the design brief §3.
   -------------------------------------------------------------------------- */
.seat-map { display: grid; gap: 6px; justify-content: center; }
.seat {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; font-weight: 700; cursor: pointer; user-select: none;
  border: 1.5px solid #d9d0e6; background: #fff; color: var(--et-muted);
  transition: background var(--et-fast) var(--et-ease), border-color var(--et-fast),
              color var(--et-fast), transform var(--et-fast) var(--et-ease);
}
.seat-available:hover { border-color: var(--et-primary); color: var(--et-primary); transform: scale(1.1); }
.seat-selected { background: var(--et-gold); border-color: var(--et-gold-strong); color: #3f2f00; transform: scale(1.06); box-shadow: 0 2px 8px rgba(253,194,38,.5); }
.seat-taken { background: #e5e0ec; border-color: #e5e0ec; color: #a29aae; }
.seat-taken:hover { border-color: #b6aac6; }   /* still clickable: opens booking info */
.seat-held {
  background: repeating-linear-gradient(45deg, var(--et-info-soft), var(--et-info-soft) 4px, #d3e3ff 4px, #d3e3ff 8px);
  border-color: #9ec2fb; color: #0a58ca; cursor: not-allowed;
}
.seat-crew, .seat-blocked { background: #f0eef4; border-color: #f0eef4; color: #c4bece; cursor: not-allowed; }
.seat-pop { animation: seat-pop .45s var(--et-ease); }
@keyframes seat-pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Aisle gap cells (vertical map: gap is a column; horizontal map: a row) */
.seat-gap { width: 18px; height: 34px; }
.seat-gap-h { width: 34px; height: 18px; }
.seat-legend { display: flex; align-items: center; gap: .375rem; font-size: .75rem; color: var(--et-muted); }
.seat-legend .seat { width: 16px; height: 16px; border-radius: 5px; cursor: default; pointer-events: none; }

/* Seat designer canvas cells */
.des-cell {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px dashed #ddd6e6;
  display: flex; align-items: center; justify-content: center;
  font-size: .625rem; font-weight: 700; color: var(--et-muted);
  cursor: crosshair; user-select: none; transition: all var(--et-fast) var(--et-ease);
  background: #fbfafd;
}
.des-cell:hover { border-color: var(--et-primary); background: var(--et-primary-fainter); }
.des-cell.has-seat { border-style: solid; border-color: #cba0e2; background: #fff; color: var(--et-primary); cursor: pointer; }
.des-cell.seat-type-vip { background: var(--et-gold-soft); border-color: var(--et-gold-strong); color: var(--et-gold-ink); }
.des-cell.seat-type-crew { background: #f0eef4; border-color: #c4bece; color: var(--et-muted); }
.des-cell.seat-type-blocked { background: #f0eef4; border-color: #f0eef4; color: #c4bece; text-decoration: line-through; }
.des-cell.aisle-col { background: transparent; border-color: transparent; cursor: pointer; }

/* --------------------------------------------------------------------------
   Right drawer (Booking Panel, Register Parcel). NON-DISMISSIBLE by default:
   backdrop clicks do not close it — they nudge the panel (attention shake).
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(33, 26, 43, .35);
  opacity: 0; pointer-events: none; transition: opacity var(--et-med) var(--et-ease);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(46vw, 640px); min-width: 440px;
  background: #fff; box-shadow: var(--et-shadow-pop);
  transform: translateX(105%); transition: transform var(--et-med) var(--et-ease);
  display: flex; flex-direction: column;
  border-top-left-radius: 20px; border-bottom-left-radius: 20px;
}
@media (max-width: 900px) {  /* tablet: full-width sheet */
  .drawer { width: 100vw; min-width: 0; border-radius: 0; }
}
.drawer-open .drawer { transform: translateX(0); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-nudge { animation: drawer-nudge .3s var(--et-ease); }
@keyframes drawer-nudge { 0%,100% { transform: translateX(0); } 40% { transform: translateX(-10px); } 70% { transform: translateX(4px); } }

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 70; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(33, 26, 43, .45); }
.modal-card {
  position: relative; background: #fff; border-radius: 20px; box-shadow: var(--et-shadow-pop);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  animation: modal-in var(--et-med) var(--et-ease);
}
.modal-card-lg { max-width: 760px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toast {
  display: flex; align-items: center; gap: .625rem;
  background: #2a2135; color: #fff; font-size: .875rem; font-weight: 500;
  padding: .75rem 1rem; border-radius: 14px; box-shadow: var(--et-shadow-pop);
  animation: toast-in var(--et-med) var(--et-ease);
  max-width: 380px;
}
.toast svg { width: 18px; height: 18px; flex: none; }
.toast-success svg { color: #6fdd8b; }
.toast-danger svg { color: #ff8f9c; }
.toast-info svg { color: #7db4ff; }
.toast-out { animation: toast-out var(--et-med) var(--et-ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* --------------------------------------------------------------------------
   Live indicator & real-time cues
   -------------------------------------------------------------------------- */
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 9999px; background: var(--et-success); flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 9999px;
  border: 2px solid var(--et-success); opacity: 0; animation: live-ping 2s var(--et-ease) infinite;
}
@keyframes live-ping { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

.flash-update { animation: flash-update 1.2s var(--et-ease); }
@keyframes flash-update { 0% { background: var(--et-gold-soft); } 100% { background: transparent; } }

/* --------------------------------------------------------------------------
   Skeleton loading
   -------------------------------------------------------------------------- */
.skeleton {
  position: relative; overflow: hidden; background: #edeaf2; border-radius: 8px; color: transparent !important;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: translateX(-100%); animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* --------------------------------------------------------------------------
   Timeline (structured.app signature) — live feed, route stops, how-it-works
   Usage: <ol.timeline> <li.timeline-item> <span.icon-circle …> content </li>
   -------------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline-item { position: relative; display: flex; gap: .875rem; padding-bottom: 1.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px;
  width: 2px; border-radius: 2px; background: var(--et-border);
}
.timeline-item:last-child::before { display: none; }
.timeline-item.t-dashed::before {
  background: repeating-linear-gradient(to bottom, var(--et-border) 0 5px, transparent 5px 10px);
}

/* --------------------------------------------------------------------------
   Progress bars & KPI deltas
   -------------------------------------------------------------------------- */
.progress { height: 6px; border-radius: 9999px; background: #eeeaf3; overflow: hidden; }
.progress > div { height: 100%; border-radius: 9999px; background: var(--et-primary); transition: width var(--et-med) var(--et-ease); }
.progress-gold > div { background: var(--et-gold-strong); }
.progress-success > div { background: var(--et-success); }
.progress-info > div { background: var(--et-info); }

.kpi-value { font-size: 1.625rem; font-weight: 800; color: var(--et-ink); letter-spacing: -.02em; }
.delta-up { color: #1c7a33; } .delta-down { color: #b02a37; }

/* --------------------------------------------------------------------------
   Dropdown menus
   -------------------------------------------------------------------------- */
.menu {
  position: absolute; z-index: 50; min-width: 200px; padding: .375rem;
  background: #fff; border: 1px solid var(--et-border); border-radius: 14px; box-shadow: var(--et-shadow-pop);
  display: none;
}
.menu.open { display: block; animation: modal-in var(--et-fast) var(--et-ease); }
.menu-item {
  display: flex; align-items: center; gap: .625rem; width: 100%;
  padding: .5rem .625rem; border-radius: 9px; font-size: .8125rem; font-weight: 500;
  color: var(--et-body); cursor: pointer; border: none; background: none; text-align: left;
}
.menu-item:hover { background: var(--et-primary-fainter); color: var(--et-primary); }
.menu-item svg { width: 15px; height: 15px; color: var(--et-muted); }
.menu-item:hover svg { color: var(--et-primary); }
.menu-sep { height: 1px; background: var(--et-border); margin: .375rem .25rem; }

/* --------------------------------------------------------------------------
   Wizard steps (sign-up) — progress bar à la structured.app onboarding
   -------------------------------------------------------------------------- */
.wizard-bar { height: 8px; border-radius: 9999px; background: #eeeaf3; overflow: hidden; }
.wizard-bar > div { height: 100%; border-radius: 9999px; background: var(--et-primary); transition: width .4s var(--et-ease); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: modal-in var(--et-med) var(--et-ease); }

/* OTP boxes */
.otp-box {
  width: 48px; height: 56px; text-align: center; font-size: 1.375rem; font-weight: 700;
  border: 1.5px solid var(--et-border); border-radius: 12px; color: var(--et-ink);
}
.otp-box:focus { outline: none; border-color: var(--et-primary); box-shadow: 0 0 0 3px var(--et-primary-soft); }

/* PIN pad */
.pin-key {
  height: 64px; border-radius: 16px; border: 1px solid var(--et-border); background: #fff;
  font-size: 1.25rem; font-weight: 700; color: var(--et-ink); cursor: pointer;
  transition: all var(--et-fast) var(--et-ease);
}
.pin-key:hover { background: var(--et-primary-fainter); border-color: #cba0e2; }
.pin-key:active { transform: scale(.95); background: var(--et-primary-soft); }
.pin-dot { width: 14px; height: 14px; border-radius: 9999px; background: #e3ddeb; transition: background var(--et-fast); }
.pin-dot.filled { background: var(--et-primary); }

/* --------------------------------------------------------------------------
   Fare matrix
   -------------------------------------------------------------------------- */
.fare-cell {
  min-width: 118px; padding: .5rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: all var(--et-fast) var(--et-ease); text-align: right;
}
.fare-cell:hover { border-color: #cba0e2; background: var(--et-primary-fainter); }
.fare-cell .amt { font-weight: 700; color: var(--et-ink); font-variant-numeric: tabular-nums; }
.fare-cell .cur { font-size: .6875rem; color: var(--et-muted); font-weight: 600; }
.fare-cell-empty { background: #faf9fc; border-radius: 10px; min-width: 118px; }
.fare-override-badge {
  display: inline-flex; align-items: center; gap: .2rem; font-size: .625rem; font-weight: 700;
  color: var(--et-gold-ink); background: var(--et-gold-soft); border-radius: 6px; padding: .125rem .375rem;
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
.divider-y { border-top: 1px solid var(--et-border); }

/* Payment method placeholder badges (marketing) */
.pay-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--et-border); background: #fff; border-radius: 10px;
  padding: .5rem .875rem; font-size: .8125rem; font-weight: 700; color: var(--et-body);
}
.pay-badge .swatch { width: 10px; height: 10px; border-radius: 3px; }

/* Marketing section eyebrow */
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--et-primary); }

/* Receipt (print preview) */
.receipt { font-family: 'Inter', monospace; background: #fff; border: 1px dashed #cfc7da; border-radius: 12px; }
.receipt-rule { border-top: 1px dashed #cfc7da; }

/* Simple fade-in-up entrance for hero/cards where used */
.fade-up { animation: fade-up .5s var(--et-ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Empty state block */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.5rem; }
