/* ============================================================
   TruckUZ — design tokens
   Structure/components ported from MSGO (same font stack, radii,
   shadows, layout patterns) — only the accent palette is new, to
   keep TruckUZ visually distinct from MSGO (steel-blue primary
   instead of MSGO's green/cobalt, so the two apps don't get
   confused if a user has both). Variable NAMES kept as --route/
   --fare to minimize the diff against the MSGO source file this
   was ported from; they mean "primary accent" / "price accent"
   here, not literally routes/fares.
   ============================================================ */
:root{
  --ink:#12161C;
  --paper:#EEF2F0;
  --surface:#FFFFFF;

  --route:#35506B;        /* steel/cargo blue-grey — primary accent */
  --route-dark:#223649;
  --route-tint:#E7EDF1;

  --fare:#DB9138;         /* amber — price accent, same as MSGO (universal convention) */
  --fare-tint:#FBF0DE;

  --line:#E1E6E3;
  --muted:#6E7B76;
  --muted-2:#98A29D;

  --danger:#C0553F;
  --danger-tint:#F7E7E2;

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;

  --radius-sm:9px;
  --radius-md:14px;
  --radius-lg:20px;
  --radius-pill:999px;

  --shadow-sheet:0 20px 60px -20px rgba(18,22,28,.45);
  --shadow-toast:0 20px 60px -20px rgba(18,22,28,.45);
  --shadow-highlight:0 0 0 3px var(--route-tint);

  --sidebar-w:88px;
  --sidebar-w-desktop:240px;
  --bottom-nav-h:84px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  min-height:var(--tg-vh, 100dvh);
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
}
button{ font-family:inherit; }
input,select,textarea{ font-family:inherit; }

/* Scrollbar track/thumb hidden everywhere inside the app — scrolling
   itself is untouched (touch/wheel/keyboard all still work), this only
   removes the visible bar. */
.app-shell, .app-shell *{
  scrollbar-width:none;      /* Firefox */
  -ms-overflow-style:none;   /* legacy Edge/IE */
}
.app-shell::-webkit-scrollbar, .app-shell *::-webkit-scrollbar{
  display:none;               /* Chrome/Safari/Chromium Edge */
}

@keyframes rt-pulse{ 0%{opacity:.9;transform:scale(1)} 70%,100%{opacity:0;transform:scale(2.6)} }
@keyframes rt-blink{ 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fade-in{ from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:translateY(0)} }
@keyframes sheet-up{ from{transform:translateY(24px); opacity:.6} to{transform:translateY(0); opacity:1} }

/* ============================================================
   App shell — adaptive: phone frame on mobile, centered card on
   tablet/desktop with a real side/tab navigation instead of the
   fixed-mobile-only frame from the original prototype.
   ============================================================ */
.app-shell{
  min-height:var(--tg-vh, 100dvh);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--paper);
  padding:0;
  container-type:inline-size;
  container-name:msgo;
}
/* Dev-only viewport/role switcher — testing aid, not part of the product UI.
   Forces .app-shell's inline size so the @container breakpoints above
   respond to a chosen width instead of the real browser window. */
.app-shell.dev-mobile{ max-width:390px; margin:0 auto; }
.app-shell.dev-tablet{ max-width:820px; margin:0 auto; }
.app-shell.dev-desktop{ max-width:1280px; margin:0 auto; }

.dev-bar{
  position:fixed; top:10px; left:50%; transform:translateX(-50%);
  z-index:200; display:flex; gap:6px; align-items:center;
  background:rgba(18,22,28,.92); border-radius:var(--radius-pill);
  padding:5px; box-shadow:var(--shadow-toast); backdrop-filter:blur(6px);
}
.dev-bar button{
  border:none; background:transparent; color:#B8C2BD; font-size:11.5px; font-weight:600;
  padding:6px 10px; border-radius:var(--radius-pill); cursor:pointer; white-space:nowrap;
}
.dev-bar button.active{ background:#fff; color:var(--ink); }
.dev-bar .dev-sep{ width:1px; align-self:stretch; background:rgba(255,255,255,.18); margin:2px 2px; }
@container msgo (min-width:641px){
  .app-shell{ background:#D9DFDB; padding:32px 16px; }
}

.app-frame{
  width:100%;
  max-width:100%;
  height:var(--tg-vh, 100dvh);
  background:var(--paper);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative;
}
@container msgo (min-width:641px) and (max-width:1023px){
  .app-frame{ max-width:760px; height:min(920px, calc(var(--tg-vh, 100vh) * .92)); border-radius:24px; border:1px solid var(--line); box-shadow:var(--shadow-sheet); }
}
@container msgo (min-width:1024px){
  .app-frame{ max-width:1240px; height:min(880px, calc(var(--tg-vh, 100vh) * .92)); border-radius:24px; border:1px solid var(--line); box-shadow:var(--shadow-sheet); }
}

/* status bar (kept as a light nod to the original mobile mock, hidden on wider viewports) */
.status-bar{
  flex:none; height:36px; display:flex; align-items:center; justify-content:space-between;
  padding:0 22px; font-size:13px; font-weight:600; font-family:var(--font-mono);
}
@container msgo (min-width:641px){ .status-bar{ display:none; } }

/* toasts */
.toast-stack{ position:absolute; top:14px; left:14px; right:14px; z-index:90; display:flex; flex-direction:column; gap:8px; }
@container msgo (min-width:641px){ .toast-stack{ left:auto; width:340px; right:20px; top:20px; } }
.toast{ background:var(--ink); color:#fff; padding:12px 14px; border-radius:13px; font-size:13px; display:flex; gap:10px; align-items:flex-start; box-shadow:var(--shadow-toast); animation:fade-in .18s ease-out; }

/* ============================================================
   Layout: content area shifts right of the sidebar on wide
   screens; bottom nav becomes a left sidebar.
   ============================================================ */
/* min-height:0 — без него flex-элемент с overflow-y:auto не сжимается до
   размера родителя и не скроллится сам, а раздувается по контенту; всё, что
   не влезло, обрезает overflow:hidden у .app-frame и визуально уезжает под
   футер (реальный баг, найден 15.09.2026 — карточка заявки пряталась под
   нижней навигацией). Классическая ловушка flexbox-скролла. */
.content-area{ flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
/* !important — эта утилита всегда применяется ВМЕСТЕ со вторым классом,
   у которого своё сокращённое свойство padding (.panel-section, .tickets-area
   и т.п.); при равной специфичности он идёт позже в файле и молча
   перезаписывал padding-bottom обратно на 8-24px (реальный баг, найден
   15.09.2026 — то же самое "спряталось под футером", что чинили раньше
   через min-height:0 выше, но с другой причиной: тут не скролл ломался,
   а просто не хватало нижнего отступа, чтобы последний элемент вообще
   долистывался выше панели навигации). !important гарантирует победу
   независимо от порядка правил в файле. */
.content-pad-bottom{ padding-bottom:calc(var(--bottom-nav-h) + 20px) !important; }
@container msgo (min-width:1024px){
  .app-frame.has-nav .content-area{ margin-left:var(--sidebar-w-desktop); }
  .app-frame.has-nav .content-pad-bottom{ padding-bottom:24px !important; }
}
@container msgo (min-width:641px) and (max-width:1023px){
  .app-frame.has-nav .content-area{ margin-left:var(--sidebar-w); }
  .app-frame.has-nav .content-pad-bottom{ padding-bottom:24px !important; }
}

/* ============================================================
   Typography helpers
   ============================================================ */
.h-display{ font-family:var(--font-display); font-weight:700; }
.text-muted{ color:var(--muted); }
.text-muted-2{ color:var(--muted-2); }
.mono{ font-family:var(--font-mono); }
.eyebrow{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-mono); color:var(--muted-2); }

/* ============================================================
   Buttons
   ============================================================ */
.btn{ border:none; border-radius:var(--radius-pill); font-weight:600; cursor:pointer; transition:opacity .15s ease, transform .1s ease; }
.btn:active{ transform:scale(.98); }
.btn:disabled{ cursor:not-allowed; }
.btn-block{ width:100%; padding:14px 20px; font-size:15px; }
.btn-primary{ background:var(--route); color:#fff; }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-danger{ background:var(--danger-tint); color:var(--danger); }
.btn-danger-solid{ background:var(--danger); color:#fff; }
.btn-outline{ background:transparent; border:1.5px solid var(--line); color:var(--route-dark); }
.btn-ghost{ background:none; border:none; color:var(--route-dark); font-weight:600; cursor:pointer; }
.btn-social{ flex:1; display:flex; align-items:center; justify-content:center; gap:8px; border:1.5px solid var(--line); background:var(--surface); color:var(--ink); padding:12px 0; border-radius:var(--radius-pill); font-weight:600; font-size:13.5px; cursor:pointer; }
.btn-social.dark{ border:none; background:var(--ink); color:#fff; }

.segmented{ display:flex; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-pill); padding:4px; }
.segmented button{ flex:1; border:none; padding:10px 0; border-radius:var(--radius-pill); font-weight:600; font-size:13.5px; cursor:pointer; background:transparent; color:var(--muted); transition:background .15s ease,color .15s ease; }
.segmented button.active{ background:var(--ink); color:#fff; }

.field{ margin-bottom:14px; }
.field label{ display:block; font-size:12.5px; font-weight:600; color:var(--muted); margin-bottom:6px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea{
  width:100%; border:1.5px solid var(--line); background:var(--surface); border-radius:var(--radius-sm);
  padding:13px 14px; font-size:15px; color:var(--ink); outline:none; box-sizing:border-box;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--route); }
.field textarea{ resize:none; }
/* Чекбоксы/радио внутри .field раньше растягивались тем же правилом, что и
   текстовые поля (width:100%+паддинг) — превращались в гигантский пустой
   прямоугольник вместо маленького квадрата (реальный баг, найден
   15.09.2026). Возвращаем им обычный размер. */
.field input[type="checkbox"], .field input[type="radio"]{
  width:18px; height:18px; flex:none; margin:0; accent-color:var(--route); cursor:pointer;
}
.checkbox-field{ cursor:pointer; }

/* ============================================================
   Auth screen
   ============================================================ */
.auth-wrap{ padding:0 22px; }
@container msgo (min-width:641px){ .auth-wrap{ max-width:420px; margin:0 auto; padding:0 24px; } }
.brand-row{ display:flex; align-items:center; gap:10px; margin:22px 0 26px; }
.brand-mark{ width:38px; height:38px; border-radius:11px; background:var(--ink); display:flex; align-items:center; justify-content:center; flex:none; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:19px; }
.brand-tag{ font-size:11.5px; color:var(--muted); font-family:var(--font-mono); letter-spacing:.04em; }

.progress-dots{ display:flex; gap:6px; margin:6px 0 20px; }
.progress-dots span{ height:4px; flex:1; border-radius:4px; background:var(--line); }
.progress-dots span.done{ background:var(--route); }

.auth-divider{ display:flex; align-items:center; gap:10px; margin:18px 0; }
.auth-divider .line{ flex:1; height:1px; background:var(--line); }
.auth-legal{ margin-top:18px; padding-bottom:26px; text-align:center; font-size:13px; color:var(--muted); line-height:1.5; }
.auth-legal span{ color:var(--route-dark); font-weight:600; cursor:pointer; }
.auth-legal a{ color:var(--route-dark); font-weight:600; text-decoration:none; }

/* Верхняя панель экрана входа: бренд слева, переключатель языка + размера
   шрифта справа (см. docs/concept.md — визуал по образцу MSGO, без пароля). */
.auth-topbar{ display:flex; align-items:center; justify-content:space-between; padding-top:18px; }
.auth-topbar-controls{ display:flex; gap:8px; }
.pill-btn{
  background:var(--surface); border:1.5px solid var(--line); border-radius:var(--radius-pill);
  padding:8px 13px; font-size:12.5px; font-weight:700; color:var(--ink); cursor:pointer;
  display:flex; align-items:center; gap:4px; font-family:var(--font-body);
}
.pill-btn:active{ transform:scale(.96); }
.lang-menu{ position:relative; }
.lang-menu-list{
  position:absolute; top:calc(100% + 6px); right:0; background:var(--surface); border:1px solid var(--line);
  border-radius:12px; box-shadow:var(--shadow-sheet); overflow:hidden; z-index:80; min-width:96px;
}
.lang-menu-list button{
  display:block; width:100%; border:none; background:none; padding:10px 14px; text-align:left;
  font-size:13px; font-weight:600; color:var(--ink); cursor:pointer;
}
.lang-menu-list button:hover, .lang-menu-list button.active{ background:var(--surface-2, var(--paper)); }

/* ============================================================
   Home header + toggles
   ============================================================ */
.home-header{ display:flex; align-items:center; justify-content:space-between; padding:12px 20px 6px; }
@container msgo (min-width:1024px){ .home-header{ padding:24px 28px 6px; } }
.avatar{ width:44px; height:44px; border-radius:13px; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:600; font-size:15px; flex:none; }
.avatar.lg{ width:74px; height:74px; border-radius:20px; font-size:24px; margin:0 auto 12px; }
.avatar.sm{ width:32px; height:32px; border-radius:9px; font-size:12px; }
.bell-btn{ width:40px; height:40px; border-radius:12px; background:var(--surface); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; position:relative; cursor:pointer; }
.bell-dot{ position:absolute; top:6px; right:7px; width:8px; height:8px; border-radius:50%; background:var(--fare); border:2px solid var(--paper); }

.mode-row{ display:flex; gap:8px; padding:10px 20px 0; }
@container msgo (min-width:1024px){ .mode-row{ padding:10px 28px 0; } }
.mode-row button{ flex:1; border:1.5px solid var(--line); background:var(--surface); color:var(--muted-2); padding:9px 0; border-radius:var(--radius-pill); font-weight:600; font-size:13px; cursor:not-allowed; opacity:.5; }
.mode-row button.active{ border-color:var(--ink); background:var(--ink); color:#fff; cursor:pointer; opacity:1; }

.balance-card{ margin:12px 20px 4px; background:var(--ink); border-radius:var(--radius-lg); padding:16px; color:#fff; display:flex; align-items:center; justify-content:space-between; gap:12px; }
@container msgo (min-width:1024px){ .balance-card{ margin:12px 28px 4px; } }
.balance-card .label{ font-size:11px; font-family:var(--font-mono); letter-spacing:.06em; color:#9AA9A3; text-transform:uppercase; }
.balance-card .value{ font-size:20px; font-weight:600; margin-top:3px; font-family:var(--font-display); }

.route-card{ margin:12px 20px 4px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:10px; position:relative; }
@container msgo (min-width:1024px){ .route-card{ margin:12px 28px 4px; } }
.geo-picker{ display:flex; flex-direction:column; gap:8px; }
.route-select-row{ display:flex; gap:8px; }
.route-select-row select, .geo-picker-country{ flex:1; width:auto; min-width:0; border:1.5px solid var(--line); background:var(--paper); border-radius:var(--radius-sm); padding:10px; font-size:12.5px; color:var(--ink); }
.geo-picker-country{ width:100%; }
.route-select-row select:disabled, .geo-picker-country:disabled{ opacity:.5; cursor:not-allowed; }
.field-invalid .route-select-row select{ border-color:var(--danger); }
.field.field-invalid input, .field.field-invalid select{ border-color:var(--danger); }

.country-option{ display:block; width:100%; text-align:left; padding:14px 16px; border:none; background:none; border-bottom:1px solid var(--line); font-size:14px; color:var(--ink); cursor:pointer; }
.country-option:last-child{ border-bottom:none; }
.country-option.active{ font-weight:700; color:var(--route-dark); }

.place-city{ color:var(--route-dark); text-decoration:underline; text-decoration-color:var(--route-tint); text-underline-offset:2px; }
.route-summary{ display:flex; flex-direction:column; gap:6px; padding-top:2px; }
.route-summary-row{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:500; color:var(--ink); }
.route-input-row{ display:flex; align-items:center; gap:10px; position:relative; }
.route-input-row input{ flex:1; border:none; background:transparent; font-size:14px; color:var(--ink); outline:none; font-weight:500; }
.route-dot{ width:8px; height:8px; border-radius:50%; background:var(--muted-2); flex:none; }
.route-dot.to{ border-radius:2px; background:var(--route); }
.route-sep{ height:1px; background:var(--line); margin-left:2px; }
.suggest-list{ position:absolute; top:26px; left:0; right:0; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow-sheet); max-height:180px; overflow-y:auto; z-index:70; }
.suggest-list button{ display:block; width:100%; text-align:left; border:none; background:transparent; padding:10px 14px; font-size:13.5px; color:var(--ink); cursor:pointer; border-bottom:1px solid var(--line); }
.suggest-list button:hover{ background:var(--paper); }

.orders-heading{ display:flex; align-items:center; justify-content:space-between; padding:14px 20px 0; }
@container msgo (min-width:1024px){ .orders-heading{ padding:22px 28px 0; } }
.sort-btn{ border:1.5px solid var(--line); background:var(--surface); color:var(--muted); padding:7px 12px; border-radius:var(--radius-pill); font-weight:600; font-size:12px; cursor:pointer; }

.tabs-row{
  display:flex; gap:6px; padding:18px 20px 6px; overflow-x:auto;
  /* Fade the right edge instead of hard-clipping a chip when the row
     doesn't fully fit — scrolling still works (see the hidden-scrollbar
     rule near the top of this file), this just signals there's more. */
  -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
  mask-image:linear-gradient(to right, #000 calc(100% - 18px), transparent 100%);
}
@container msgo (min-width:1024px){ .tabs-row{ padding:18px 28px 6px; } }
.tab-chip{ flex:none; border:1.5px solid var(--line); background:var(--surface); color:var(--muted); padding:8px 13px; border-radius:var(--radius-pill); font-weight:600; font-size:12.5px; white-space:nowrap; display:flex; align-items:center; gap:5px; cursor:pointer; }
.tab-chip.active{ border-color:var(--ink); background:var(--ink); color:#fff; }
.tab-chip .count{ font-family:var(--font-mono); font-size:11px; opacity:.75; }

/* ============================================================
   Ride ticket cards + grid (real responsive grid, replaces the
   original's disabled desktop columns)
   ============================================================ */
.tickets-area{ display:flex; flex-direction:column; gap:10px; padding:14px 20px 24px; }
@container msgo (min-width:641px){
  .tickets-area{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; padding:14px 28px 28px; }
}
@container msgo (min-width:1024px){
  .tickets-area{ grid-template-columns:repeat(3,1fr); }
}
.tickets-heading{ grid-column:1/-1; font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); padding:0 4px; }

.ticket{ background:var(--surface); border-radius:14px; position:relative; overflow:hidden; border:1px solid var(--line); }
.ticket.highlight{ border-color:var(--route); border-width:1.5px; background:linear-gradient(180deg, var(--route-tint) 0%, var(--surface) 90px); box-shadow:var(--shadow-highlight); }
.ticket.highlight::before{ content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--route); }
.ticket-body{ padding:16px 16px 14px; }
.ticket-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.chip{ font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:4px 9px; border-radius:var(--radius-pill); font-family:var(--font-mono); }
.route-line{ display:flex; align-items:center; gap:0; margin-bottom:12px; }
.route-line .pt{ flex:1; }
.route-line .pt.right{ text-align:right; }
.route-line .dash{ flex:none; width:46px; height:1px; margin:14px 8px 0; border-top:2px dashed var(--line); }
.driver-row{ display:flex; align-items:center; gap:9px; }
.driver-row .name{ font-size:13px; font-weight:600; }
.driver-row .meta{ font-size:11px; color:var(--muted); }
.price{ font-family:var(--font-mono); font-weight:600; font-size:15px; color:var(--fare); }
.ticket-actions{ padding:0 16px 16px; display:flex; gap:8px; }
.cancel-banner{ margin-top:12px; padding:10px 12px; border-radius:10px; background:var(--danger-tint); display:flex; flex-direction:column; gap:8px; }
.offer-divider{ border-top:1.5px dashed var(--line); margin:0 20px; }

.vehicle-thumb{ width:44px; height:44px; border-radius:10px; object-fit:cover; flex:none; cursor:pointer; border:1px solid var(--line); background:var(--surface); }
.photo-modal-overlay{
  position:fixed; inset:0; background:rgba(10,12,15,.9); z-index:200;
  display:flex; align-items:center; justify-content:center; padding:24px; cursor:zoom-out;
}
.photo-modal-overlay img{ max-width:100%; max-height:100%; border-radius:12px; }

.empty-state{ grid-column:1/-1; text-align:center; padding:60px 24px; color:var(--muted); }
.empty-state .title{ font-family:var(--font-display); font-size:16px; color:var(--ink); margin-bottom:6px; }
.empty-state p{ font-size:13.5px; line-height:1.5; margin:0; }

/* ============================================================
   Profile
   ============================================================ */
.profile-head{ padding:20px; text-align:center; }
.avatar-photo-wrap{ position:relative; width:74px; height:74px; margin:0 auto 12px; }
.avatar-photo-wrap .avatar.lg{ margin:0; }
.avatar-photo{ width:74px; height:74px; border-radius:20px; object-fit:cover; display:block; border:1px solid var(--line); }
.avatar-edit-btn{
  position:absolute; right:-4px; bottom:-4px; width:28px; height:28px; border-radius:50%;
  background:var(--ink); color:#fff; border:2px solid var(--paper); display:flex; align-items:center;
  justify-content:center; font-size:13px; cursor:pointer; padding:0;
}
.vehicle-photo-wrap{ position:relative; width:64px; height:64px; flex:none; }
.vehicle-photo-md{ width:64px; height:64px; border-radius:14px; object-fit:cover; display:block; border:1px solid var(--line); background:var(--paper); }
.vehicle-photo-placeholder{ width:64px; height:64px; border-radius:14px; background:var(--paper); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:26px; }
.vehicle-photo-wrap .avatar-edit-btn{ width:24px; height:24px; font-size:11px; right:-6px; bottom:-6px; }
.profile-name{ font-size:20px; font-weight:700; }
.profile-contact{ font-size:13px; color:var(--muted); margin-top:2px; }
.role-badge{ display:inline-flex; align-items:center; gap:4px; background:var(--fare-tint); color:#8A5A15; font-size:11px; font-weight:700; padding:3px 8px; border-radius:var(--radius-pill); font-family:var(--font-mono); margin-top:8px; }
.stat-row{ display:flex; gap:10px; padding:4px 20px 20px; }
.stat-card{ flex:1; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px; text-align:center; }
.stat-card .val{ font-family:var(--font-mono); font-size:20px; font-weight:600; color:var(--route-dark); }
.stat-card .lbl{ font-size:11px; color:var(--muted); margin-top:2px; }
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:8px; }
.panel-section{ padding:0 20px 8px; }
@container msgo (min-width:641px){ .panel-section{ max-width:640px; } }
.panel-section .section-label{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin:18px 0 8px 2px; font-family:var(--font-mono); }
.route-history-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }

/* ============================================================
   Bottom nav — becomes a left sidebar from tablet width up
   ============================================================ */
.bottom-nav{
  position:absolute; left:0; right:0; bottom:0; top:auto; width:auto;
  height:var(--bottom-nav-h);
  background:var(--surface); border-top:1px solid var(--line);
  display:flex; flex-direction:row; align-items:center; justify-content:space-around;
  gap:0; padding:10px 14px 20px; z-index:40; box-sizing:border-box;
}
.bottom-nav .nav-item{ background:none; border:none; display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; padding:4px; cursor:pointer; opacity:.55; }
.bottom-nav .nav-item.active{ opacity:1; }
.bottom-nav .nav-item span{ font-size:10.5px; font-weight:600; color:var(--muted-2); }
.bottom-nav .nav-item.active span{ color:var(--ink); }
.nav-fab{ width:52px; height:52px; border-radius:50%; background:var(--route); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 20px -6px rgba(53,80,107,.55); border:4px solid var(--paper); margin-top:-26px; }

@container msgo (min-width:641px){
  .bottom-nav{
    right:auto; top:0; bottom:0; height:auto; width:var(--sidebar-w);
    flex-direction:column; justify-content:flex-start; gap:28px;
    padding:28px 0 0; border-top:none; border-right:1px solid var(--line);
  }
  .bottom-nav .nav-item{ flex:none; }
  .nav-fab{ margin-top:0; }
}
@container msgo (min-width:1024px){
  .bottom-nav{ width:var(--sidebar-w-desktop); align-items:flex-start; padding-left:28px; }
  .bottom-nav .nav-item{ flex-direction:row; gap:10px; }
}

/* ============================================================
   Bottom sheet
   ============================================================ */
.sheet-overlay{ position:absolute; inset:0; background:rgba(18,22,28,.5); z-index:60; display:flex; align-items:flex-end; }
@container msgo (min-width:641px){ .sheet-overlay{ align-items:center; justify-content:center; } }
.sheet{ background:var(--paper); width:100%; border-radius:24px 24px 0 0; max-height:88%; overflow-y:auto; padding-bottom:26px; box-sizing:border-box; animation:sheet-up .18s ease-out; }
.sheet.no-anim{ animation:none; } /* re-renders while typing shouldn't replay the entrance animation */
@container msgo (min-width:641px){ .sheet{ width:480px; max-width:92vw; border-radius:24px; max-height:85vh; } }
.sheet-grip{ width:36px; height:4px; border-radius:4px; background:var(--line); margin:10px auto 4px; }
.sheet-header{ display:flex; align-items:center; justify-content:space-between; padding:12px 20px 6px; }
.sheet-header h3{ font-size:18px; margin:0; font-family:var(--font-display); }
.sheet-close{ width:30px; height:30px; border-radius:50%; background:var(--surface); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.sheet-content{ padding:14px 20px 4px; }

.fee-note{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin:2px 0 16px; }
.fee-note .row{ display:flex; justify-content:space-between; font-size:13px; color:var(--muted); }
.total-note{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:16px; }
.total-note .row{ display:flex; justify-content:space-between; font-size:15.5px; font-weight:700; }

.seat-stepper{ display:flex; align-items:center; justify-content:space-between; background:var(--surface); border:1.5px solid var(--line); border-radius:var(--radius-sm); padding:6px 10px; }
.seat-stepper button{ width:34px; height:34px; border-radius:50%; border:1.5px solid var(--line); background:var(--paper); font-size:18px; font-weight:700; color:var(--ink); cursor:pointer; }

.star-picker{ display:flex; justify-content:center; gap:6px; padding:8px 0 18px; }
.star-picker button{ background:none; border:none; font-size:34px; line-height:1; cursor:pointer; opacity:.35; transition:opacity .1s ease, transform .1s ease; padding:0; }
.star-picker button.active{ opacity:1; }
.star-picker button:active{ transform:scale(1.1); }
.rating-badge{ display:inline-flex; align-items:center; gap:3px; font-family:var(--font-mono); font-size:11px; color:var(--muted); }

.request-row{ border:1px solid var(--line); border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:8px; }

.card-option{ text-align:left; border:1.5px solid var(--line); background:var(--surface); border-radius:12px; padding:12px 14px; font-family:var(--font-mono); font-size:13.5px; cursor:pointer; }
.card-option.selected{ border-color:var(--route); background:var(--route-tint); }
.progress-bar{ height:6px; border-radius:4px; background:var(--line); margin-bottom:16px; overflow:hidden; }
.progress-bar .fill{ height:100%; background:var(--route); }

.notif-item{ background:var(--surface); border:1px solid var(--line); border-radius:9px; padding:12px 14px; }
.notif-item .time{ font-size:11px; color:var(--muted); margin-top:4px; font-family:var(--font-mono); }
