/* =============================================================================
   CampusTravo design system — white + violet
   Shared by the student app (dashboard.php) and the admin console.
   ========================================================================== */
:root {
  --paper: #ffffff;
  --ink: #1c1633;
  --ink-2: #463f62;
  --muted: #6e6889;
  --faint: #a29dbb;
  --line: #ece7f6;
  --line-2: #e0d9f0;
  --lilac: #f6f2ff;
  --lilac-2: #ede5ff;
  --violet: #6d28d9;
  --violet-2: #7c3aed;
  --violet-3: #5b21b6;
  --violet-soft: #c4b5fd;
  --mint: #059669; --mint-bg: #ecfdf5; --mint-line: #a7f3d0;
  --amber: #b45309; --amber-bg: #fffbeb; --amber-line: #fde68a;
  --rose: #e11d48;  --rose-bg: #fff1f2;  --rose-line: #fecdd3;
  --sky: #0369a1;   --sky-bg: #f0f9ff;   --sky-line: #bae6fd;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(28, 22, 51, .04), 0 2px 8px rgba(28, 22, 51, .04);
  --shadow-2: 0 10px 30px -12px rgba(76, 29, 149, .25);
  --shadow-3: 0 24px 60px -20px rgba(28, 22, 51, .35);
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Sora', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 8px; }
.h-font { font-family: var(--font-head); letter-spacing: -0.02em; }
.num { font-family: var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 12px; padding: .62rem 1rem;
  font-weight: 700; font-size: 13.5px; line-height: 1.1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s;
  user-select: none; text-decoration: none;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 16px -8px rgba(109, 40, 217, .7); }
.btn-primary:hover:not(:disabled) { background: var(--violet-3); }
.btn-soft { background: var(--lilac-2); color: var(--violet-3); }
.btn-soft:hover:not(:disabled) { background: #e2d6ff; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--violet-soft); color: var(--violet-3); }
.btn-danger { background: var(--rose); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #be123c; }
.btn-danger-soft { background: var(--rose-bg); color: var(--rose); border-color: var(--rose-line); }
.btn-success { background: var(--mint); color: #fff; }
.btn-success:hover:not(:disabled) { background: #047857; }
.btn:disabled { opacity: .55; box-shadow: none; }
.btn-sm { padding: .45rem .75rem; font-size: 12.5px; border-radius: 10px; }
.btn-lg { padding: .85rem 1.25rem; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); position: relative;
}
.icon-btn:hover { border-color: var(--violet-soft); color: var(--violet); }
.dot-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--rose); color: #fff; font-size: 10.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.spin {
  width: 15px; height: 15px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; animation: ct-spin .7s linear infinite; display: inline-block;
}
.spin.dark { border-color: var(--lilac-2); border-top-color: var(--violet); }
@keyframes ct-spin { to { transform: rotate(360deg); } }

/* ---------- Surfaces ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 18px; }
.panel { background: var(--lilac); border: 1px solid var(--lilac-2); border-radius: var(--r-md); }
.divider { height: 1px; background: var(--line); border: 0; margin: 14px 0; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  white-space: nowrap; text-decoration: none;
}
.chip-violet { background: var(--lilac-2); color: var(--violet-3); border-color: #ddd0ff; }
.chip-mint   { background: var(--mint-bg); color: var(--mint); border-color: var(--mint-line); }
.chip-amber  { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.chip-rose   { background: var(--rose-bg); color: var(--rose); border-color: var(--rose-line); }
.chip-sky    { background: var(--sky-bg); color: var(--sky); border-color: var(--sky-line); }
.chip-grey   { background: #f6f5f9; color: var(--muted); border-color: var(--line); }
.chip .pulse { width: 7px; height: 7px; border-radius: 999px; background: currentColor; animation: ct-pulse 1.6s ease-in-out infinite; }
@keyframes ct-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Segmented filter ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--lilac); border: 1px solid var(--lilac-2); border-radius: 14px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: .45rem .8rem; border-radius: 10px; font-weight: 700; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--violet-3); box-shadow: var(--shadow-1); }

/* ---------- Forms ---------- */
.field { display: block; }
.field > .lbl { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field > .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 12px;
  padding: .7rem .85rem; font-size: 14px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.input.err { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.textarea { min-height: 90px; resize: vertical; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); font-size: 14px; }
.input-prefix > .input { padding-left: 3rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--violet); margin-top: 1px; flex-shrink: 0; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 999px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::after { transform: translateX(18px); }

/* Option card (radio-like) */
.opt {
  display: block; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: #fff;
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; text-align: left; width: 100%;
}
.opt:hover:not(:disabled):not(.off) { border-color: var(--violet-soft); }
.opt.on { border-color: var(--violet); background: var(--lilac); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.opt.off, .opt:disabled { opacity: .5; cursor: not-allowed; background: #faf9fc; }

/* Upload tile */
.upload {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 118px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: #fcfbff; text-align: center;
  padding: 12px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s;
}
.upload:hover { border-color: var(--violet-soft); background: var(--lilac); }
.upload.has { border-style: solid; border-color: var(--mint-line); background: var(--mint-bg); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.upload .u-title { font-weight: 800; font-size: 13px; color: var(--ink); position: relative; }
.upload .u-sub { font-size: 11.5px; color: var(--muted); position: relative; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 11px 14px; background: #fbfaff; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #fbf9ff; }

/* ---------- Key/value rows ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { font-weight: 700; text-align: right; }
.kv.total { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 12px; font-size: 15px; }
.kv.total > span { color: var(--ink); font-weight: 800; }

/* ---------- Notes (inline callouts) ---------- */
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; }
.note > .ico { margin-top: 1px; }
.note-amber { background: var(--amber-bg); color: #92400e; border: 1px solid var(--amber-line); }
.note-rose { background: var(--rose-bg); color: #9f1239; border: 1px solid var(--rose-line); }
.note-violet { background: var(--lilac); color: var(--violet-3); border: 1px solid var(--lilac-2); }
.note-mint { background: var(--mint-bg); color: #065f46; border: 1px solid var(--mint-line); }
.note-sky { background: var(--sky-bg); color: #075985; border: 1px solid var(--sky-line); }

/* ---------- Empty / skeleton ---------- */
.empty { text-align: center; padding: 38px 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: #fdfcff; }
.empty h4 { margin: 10px 0 4px; font-family: var(--font-head); font-size: 15px; }
.empty p { margin: 0 auto 14px; color: var(--muted); font-size: 13px; max-width: 320px; }
.skel { background: linear-gradient(90deg, #f3f0fa 0%, #faf8ff 50%, #f3f0fa 100%); background-size: 200% 100%; animation: ct-skel 1.2s infinite; border-radius: 12px; }
@keyframes ct-skel { to { background-position: -200% 0; } }

/* ---------- Stepper (ride stages) ---------- */
.stepper { display: flex; align-items: flex-start; gap: 0; }
.stepper .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; min-width: 0; }
.stepper .st::before { content: ''; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.stepper .st:first-child::before { display: none; }
.stepper .st .b { width: 24px; height: 24px; border-radius: 999px; background: #fff; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--faint); position: relative; z-index: 1; }
.stepper .st .t { font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; line-height: 1.2; }
.stepper .st.done .b { background: var(--violet); border-color: var(--violet); color: #fff; }
.stepper .st.done::before, .stepper .st.now::before { background: var(--violet); }
.stepper .st.now .b { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.stepper .st.done .t, .stepper .st.now .t { color: var(--ink-2); }

/* ---------- OTP input ---------- */
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input {
  width: 52px; height: 58px; text-align: center; font-family: var(--font-head); font-size: 24px; font-weight: 700;
  border: 1.5px solid var(--line-2); border-radius: 14px; outline: none; background: #fff;
}
.otp input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }

/* ---------- Timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 999px; background: var(--violet); }
.tl li::after { content: ''; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.tl li:last-child::after { display: none; }
.tl .when { font-size: 11.5px; color: var(--muted); }

/* =============================================================================
   SHEET — right drawer on desktop, Instagram-style bottom sheet on mobile
   ========================================================================== */
.sheet { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.sheet.open { pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(28, 22, 51, .42); opacity: 0; transition: opacity .28s ease; backdrop-filter: blur(2px); }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-3);
  will-change: transform; overflow: hidden;
}
.sheet-grip { display: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sheet-head h3 { margin: 0; font-family: var(--font-head); font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.sheet-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.sheet-head .x { margin-left: auto; flex-shrink: 0; }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot { flex-shrink: 0; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: #fff; display: flex; gap: 10px; }
.sheet-foot:empty { display: none; }

@media (min-width: 768px) {
  .sheet-panel {
    top: 0; right: 0; bottom: 0; width: min(480px, 100vw); transform: translateX(104%);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1); border-left: 1px solid var(--line);
  }
  .sheet.wide .sheet-panel { width: min(760px, 100vw); }
  .sheet.xwide .sheet-panel { width: min(980px, 100vw); }
  .sheet.open .sheet-panel { transform: translateX(0); }
  .sheet.center .sheet-panel {
    top: 50%; left: 50%; right: auto; bottom: auto; width: min(420px, calc(100vw - 32px)); max-height: 86vh;
    border-radius: 22px; border: 1px solid var(--line); transform: translate(-50%, -46%) scale(.97); opacity: 0;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), opacity .18s;
  }
  .sheet.center.open .sheet-panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@media (max-width: 767px) {
  .sheet-panel {
    left: 0; right: 0; bottom: 0; max-height: 92dvh; border-radius: 26px 26px 0 0;
    transform: translateY(104%); transition: transform .34s cubic-bezier(.22, 1, .36, 1);
  }
  .sheet.tall .sheet-panel { height: 92dvh; }
  .sheet.open .sheet-panel { transform: translateY(0); }
  .sheet.dragging .sheet-panel { transition: none; }
  .sheet-grip { display: flex; justify-content: center; padding: 10px 0 2px; flex-shrink: 0; touch-action: none; cursor: grab; }
  .sheet-grip::before { content: ''; width: 42px; height: 5px; border-radius: 999px; background: #dcd5ea; }
  .sheet-head { padding: 8px 18px 14px; touch-action: none; }
  .sheet-body { padding: 16px 18px; }
  .sheet-foot { padding: 12px 18px calc(12px + var(--safe-b)); }
}

body.sheet-lock { overflow: hidden; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 768px) { .toasts { right: 22px; top: 22px; width: 360px; } }
@media (max-width: 767px) { .toasts { left: 12px; right: 12px; top: 12px; } }
.toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-3); font-size: 13.5px; font-weight: 600;
  animation: ct-toast-in .28s cubic-bezier(.22, 1, .36, 1) both;
}
.toast.err { background: #fff; color: var(--ink); border: 1px solid var(--rose-line); }
.toast.err .ti { color: var(--rose); }
.toast.ok .ti { color: #86efac; }
.toast .ti { flex-shrink: 0; margin-top: 1px; }
.toast.out { animation: ct-toast-out .2s ease both; }
@keyframes ct-toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ct-toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Result moment (success / failure inside a sheet) ---------- */
.result { text-align: center; padding: 18px 6px 6px; }
.result .ring { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.result .ring.ok { background: var(--mint-bg); color: var(--mint); box-shadow: 0 0 0 10px #f3fdf8; }
.result .ring.bad { background: var(--rose-bg); color: var(--rose); box-shadow: 0 0 0 10px #fff7f8; }
.result .ring.info { background: var(--lilac-2); color: var(--violet); box-shadow: 0 0 0 10px var(--lilac); }
.result h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.result p { color: var(--muted); margin: 0 auto; max-width: 340px; font-size: 13.5px; }
.result .ring svg { animation: ct-pop .45s cubic-bezier(.22, 1.4, .36, 1) both; }
@keyframes ct-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Responsive visibility helpers (use instead of Tailwind "hidden md:block",
   because .hidden above is !important) */
@media (max-width: 767px) { .only-desk { display: none !important; } }
@media (min-width: 768px) { .only-mob { display: none !important; } }

/* =============================================================================
   v5 additions — responsive fixes, offline bar, date grid, drive-mode cards
   ========================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; word-break: break-word; }

/* iOS zooms the page when a focused field is under 16px: avoid it on phones */
@media (max-width: 767px) {
  .input, .select, .textarea, .otp input { font-size: 16px; }
}

/* Long values never push layouts sideways */
.kv > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.kv > span:first-child { flex-shrink: 0; max-width: 55%; }
.sheet-head > .min-w-0, .sheet-head > div[style*="flex:1"] { min-width: 0; }
.sheet-head h3 { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note > div { min-width: 0; overflow-wrap: anywhere; }
.btn { max-width: 100%; }
.btn > span:not(.spin) { overflow: hidden; text-overflow: ellipsis; }
.flex.flex-wrap > .btn { flex-shrink: 1; }
.tbl-wrap { -webkit-overflow-scrolling: touch; }
.tbl td, .tbl th { max-width: 260px; }
.toasts { z-index: 200; }
.sheet { z-index: 90; }

/* Offline / online banner */
.netbar { position: fixed; left: 50%; top: 0; transform: translate(-50%, -110%); z-index: 210; background: #1c1633; color: #fff;
  font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 0 0 14px 14px; transition: transform .25s ease;
  box-shadow: var(--shadow-3); max-width: calc(100vw - 24px); text-align: center; padding-top: calc(9px + env(safe-area-inset-top, 0px)); }
.netbar.show { transform: translate(-50%, 0); }
.netbar.ok { background: var(--mint); }

/* Date picker: wrapping grid on every screen (no side scroll on mobile) */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.dgrid .dchip { width: 100%; min-width: 0; }
.dmonth { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 6px 2px 0; }
.dmonth:first-child { margin-top: 0; }
@media (max-width: 380px) { .dgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }

/* Drive-mode choice (self-drive / with driver) */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-card { border: 1.5px solid var(--line-2); border-radius: 18px; padding: 16px; background: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, background .15s; width: 100%; }
.mode-card:hover:not(:disabled) { border-color: var(--violet-soft); }
.mode-card.on { border-color: var(--violet); background: var(--lilac); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.mode-card:disabled { opacity: .55; cursor: not-allowed; }
.mode-card .mi { width: 44px; height: 44px; border-radius: 14px; background: var(--lilac-2); color: var(--violet-3); display: flex; align-items: center; justify-content: center; }
.mode-card b { font-family: var(--font-head); font-size: 16px; }
.mode-card .from { font-family: var(--font-head); font-weight: 700; color: var(--violet-3); }
.mode-card ul { margin: 2px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.badge-best { align-self: flex-start; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--mint-bg); color: var(--mint); border: 1px solid var(--mint-line); }

/* Vehicle option row */
.vopt-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.vopt-specs span { font-size: 11px; font-weight: 700; color: var(--muted); background: #f6f5f9; border-radius: 6px; padding: 1px 6px; }

/* Package chips row — wraps instead of squeezing */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (max-width: 360px) { .slot-grid { grid-template-columns: 1fr; } }

/* Price editor grid (admin) */
.price-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-tbl th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 6px 6px; }
.price-tbl td { padding: 5px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.price-tbl input { min-width: 84px; }
.cred { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #0f0a1f; color: #fde68a; border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

/* v5.1 — closed (holiday) date chips */
.dchip.is-closed { background: #f6f5f9; border-style: dashed; }
.dchip.is-closed .dn { color: var(--faint); text-decoration: line-through; }

/* ===== v7.0.2: loading feedback ===== */
#ct-topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
#ct-topbar.on { opacity: 1; }
#ct-topbar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, #8b5cf6, #6d28d9, #ffb020); animation: ctbar 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes ctbar { to { left: 100%; } }
#ct-wait { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(28, 22, 51, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
#ct-wait.on { opacity: 1; pointer-events: auto; }
#ct-wait .cw-card { background: #fff; border-radius: 22px; padding: 26px 26px 22px; width: min(340px, 100%); text-align: center; box-shadow: 0 30px 60px -30px rgba(28, 22, 51, .6); transform: translateY(8px) scale(.98); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
#ct-wait.on .cw-card { transform: none; }
#ct-wait b { display: block; font-family: var(--font-head, inherit); font-size: 17px; margin-top: 14px; }
#ct-wait small { display: block; color: var(--muted, #6b6785); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.cw-spin { display: inline-block; width: 42px; height: 42px; border-radius: 50%; border: 4px solid #ede9fe; border-top-color: #6d28d9; animation: cwspin .8s linear infinite; }
@keyframes cwspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #ct-topbar i { animation-duration: 2.4s; } .cw-spin { animation-duration: 1.6s; } }