/* ============================================================
   rent-service · Mobile Prototype · shared.css
   v1.0 · 2026-04-13
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..900&family=JetBrains+Mono:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0');

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --accent: #F59E0B;
  --accent-dark: #B45309;
  --accent-light: #FEF3C7;

  /* Return (jade) */
  --return-solid: #30A46C;
  --return-bg: #D1FAE5;
  --return-text: #047857;
  --return-subtle: #ECFDF5;

  /* Semantic */
  --green: #10B981;
  --red: #EF4444;
  --amber: #F59E0B;

  /* Background */
  --bg-default: #FAF8F5;
  --bg-page: #EEF0F4;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;

  /* Slate */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-700: #334155;
  --slate-900: #0F172A;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-on-primary: #FFFFFF;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,23,42,0.06);
  --sh-md: 0 2px 8px rgba(15,23,42,0.08);
  --sh-lg: 0 8px 24px rgba(15,23,42,0.12);
  --sh-xl: 0 24px 64px rgba(15,23,42,0.18);

  /* Duration */
  --dur-fast: 120ms;
  --dur-std: 200ms;
  --dur-slow: 320ms;
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body.navigator { display: block; padding: 0; align-items: stretch; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* Type scale */
.display-lg { font: 800 40px/48px 'Inter'; letter-spacing: -0.02em; }
.display-md { font: 800 32px/40px 'Inter'; letter-spacing: -0.02em; }
.headline-md { font: 700 22px/28px 'Inter'; letter-spacing: -0.01em; }
.title-lg { font: 600 18px/24px 'Inter'; }
.title-md { font: 600 16px/22px 'Inter'; }
.body-lg { font: 400 16px/24px 'Inter'; }
.body-md { font: 400 14px/20px 'Inter'; }
.label-lg { font: 600 15px/20px 'Inter'; }
.label-md { font: 500 13px/18px 'Inter'; }
.caption { font: 400 12px/16px 'Inter'; color: var(--text-secondary); }
.overline { font: 700 11px/16px 'Inter'; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }

/* ---------- 3. Phone frame ---------- */
.phone-wrap {
  position: relative;
  width: 390px;
  height: 844px;
}
.phone-frame {
  width: 390px;
  height: 844px;
  border-radius: 48px;
  border: 10px solid #111418;
  background: var(--bg-default);
  box-shadow: var(--sh-xl), inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0A0C0F;
  border-radius: 0 0 16px 16px;
  z-index: 100;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-default);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: relative;
  padding-top: 44px;
  padding-bottom: 34px;
}
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen.dark { background: var(--bg-dark); color: #F8FAFC; }
.phone-screen.scroll-body { padding-bottom: 96px; }
.phone-screen.with-nav { padding-bottom: 96px; }

/* Back to navigator pill */
.nav-back {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 14px;
  background: rgba(15,23,42,0.85);
  color: #fff;
  border-radius: var(--r-pill);
  font: 500 13px/1 'Inter';
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 200;
}
.nav-back:hover { background: var(--primary); }

/* ---------- 4. Status bar ---------- */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font: 600 15px/1 'Inter';
  color: var(--text-primary);
  z-index: 50;
  pointer-events: none;
}
.phone-screen.dark .phone-status-bar { color: #F8FAFC; }
.phone-status-bar .time { font-variant-numeric: tabular-nums; }
.phone-status-bar .right {
  display: flex; align-items: center; gap: 6px;
}
.phone-status-bar .signal, .phone-status-bar .wifi, .phone-status-bar .battery {
  font-family: 'Material Symbols Rounded';
  font-size: 16px;
}
.phone-status-bar .battery { font-size: 18px; }

/* Home indicator */
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 999px;
  opacity: 0.85;
  z-index: 50;
}
.phone-screen.dark ~ .phone-home-indicator,
.phone-screen.dark .phone-home-indicator { background: #F8FAFC; }

/* ---------- 5. Bottom nav ---------- */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--slate-200);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px 20px;
  z-index: 40;
}
.bottom-nav .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--slate-500);
  font: 500 11px/1.1 'Inter';
  padding: 6px 4px;
  border-radius: var(--r-md);
}
.bottom-nav .tab .material-symbols-rounded { font-size: 24px; }
.bottom-nav .tab.active { color: var(--primary); }
.bottom-nav .tab.active .icon-wrap {
  background: var(--primary-light);
  border-radius: var(--r-pill);
  padding: 4px 16px;
  margin-bottom: 2px;
}

/* ---------- 6. Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--r-md);
  font: 600 15px/1 'Inter';
  width: 100%;
  transition: background var(--dur-fast) var(--ease-std), transform var(--dur-fast);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary[disabled] { background: var(--slate-300); color: #fff; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--r-md);
  font: 600 15px/1 'Inter';
  width: 100%;
}
.btn-text {
  color: var(--primary);
  font: 600 14px/1 'Inter';
  padding: 10px 4px;
}
.btn-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary);
}
.btn-icon:hover { background: var(--slate-100); }

.cta-with-sum {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-md);
  width: 100%;
  padding: 8px;
  transition: background var(--dur-fast);
}
.cta-with-sum:hover { background: var(--primary-dark); }
.cta-with-sum .line1 { font: 700 16px/1.1 'Inter'; }
.cta-with-sum .line2 { font: 500 12px/1.2 'Inter'; opacity: 0.9; margin-top: 2px; display: flex; gap: 4px; align-items: center; }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-md);
}
.card.flat { box-shadow: none; border: 1px solid var(--slate-200); }
.bento-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--sh-md);
}

/* ---------- 8. DepositChip ---------- */
.deposit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font: 500 13px/16px 'Inter';
  background: var(--return-bg);
  color: var(--return-text);
  white-space: nowrap;
}
.deposit-chip .icon {
  font-family: 'Material Symbols Rounded';
  font-size: 16px;
  display: inline-block;
}
.deposit-chip.charged .icon,
.deposit-chip.refunding .icon {
  animation: return-cycle 2.2s linear infinite;
}
.deposit-chip.refunded {
  background: rgba(16,185,129,0.14);
  color: #047857;
}
.deposit-chip.refunded .icon::before { content: 'check_circle'; }
.deposit-chip .amount { font-weight: 700; font-variant-numeric: tabular-nums; }

@keyframes return-cycle {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- 9. PriceBreakdown ---------- */
.price-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.price-block {
  border-radius: var(--r-lg);
  padding: 14px;
  border: 1px solid var(--slate-200);
  background: #fff;
}
.price-block.rental { background: var(--primary-light); border-color: transparent; }
.price-block.deposit { background: var(--return-subtle); border-color: var(--return-bg); }
.price-block .label {
  font: 500 12px/1 'Inter';
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 6px;
}
.price-block .amount {
  font: 800 22px/1.1 'Inter';
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text-primary);
}
.price-block .caption { margin-top: 6px; font-size: 11px; }

/* ---------- 10. Inputs ---------- */
.input-text {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--slate-300);
  background: #fff;
  font: 500 16px/1 'Inter';
  transition: border-color var(--dur-fast);
}
.input-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.input-otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.otp-cell {
  height: 56px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--slate-300);
  background: #fff;
  text-align: center;
  font: 700 22px/1 'JetBrains Mono';
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.otp-cell.filled { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.otp-cell.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.input-amount {
  width: 100%;
  height: 64px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--slate-300);
  background: #fff;
  font: 700 24px/1 'JetBrains Mono';
  text-align: right;
}

/* ---------- 11. Badges / Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--slate-100);
  color: var(--text-primary);
  font: 500 13px/1 'Inter';
  border: 1px solid transparent;
}
.chip.active { background: var(--primary); color: #fff; }
.chip.ghost { background: transparent; border-color: var(--slate-300); }
.chip .material-symbols-rounded { font-size: 14px; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font: 600 11px/16px 'Inter';
  letter-spacing: 0.02em;
}
.status-badge { padding: 4px 10px; border-radius: var(--r-pill); font: 600 12px/1 'Inter'; display: inline-flex; align-items: center; gap: 4px; }
.status-badge.active { background: var(--primary-light); color: var(--primary-dark); }
.status-badge.overdue { background: #FEE2E2; color: #B91C1C; }
.status-badge.completed { background: var(--return-subtle); color: var(--return-text); }
.status-badge.disputed { background: var(--accent-light); color: var(--accent-dark); }

/* ---------- 12. Bottom Sheet ---------- */
.bottom-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 32px rgba(15,23,42,0.18);
  padding: 10px 20px 24px;
  z-index: 30;
  transition: height var(--dur-slow) var(--ease-std);
}
.bottom-sheet::before {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: var(--slate-300);
  border-radius: 999px;
  margin: 0 auto 12px;
}
.bottom-sheet.peek { height: 30%; }
.bottom-sheet.mid { height: 58%; }
.bottom-sheet.full { height: 92%; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 20;
}

/* ---------- 13. PostomatCard, EquipmentCard ---------- */
.postomat-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--slate-200);
  align-items: center;
}
.postomat-card .thumb {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Material Symbols Rounded';
  font-size: 32px;
  flex: 0 0 64px;
}
.postomat-card .info { flex: 1; min-width: 0; }
.postomat-card .title { font: 600 15px/1.2 'Inter'; margin-bottom: 2px; }
.postomat-card .sub { font: 400 13px/1.3 'Inter'; color: var(--text-secondary); }
.postomat-card .avail { font: 600 12px/1 'Inter'; color: var(--return-text); margin-top: 6px; }

.equipment-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  min-width: 180px;
}
.equipment-card .img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: 'Material Symbols Rounded';
  font-size: 56px;
}
.equipment-card .body { padding: 12px; }
.equipment-card .name { font: 600 14px/1.2 'Inter'; margin-bottom: 4px; }
.equipment-card .price { font: 700 16px/1 'Inter'; color: var(--text-primary); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- 14. ShelfMap ---------- */
.shelf-map {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  background: var(--slate-900);
  padding: 16px 12px 20px;
  border-radius: var(--r-lg);
}
.shelf-cell {
  aspect-ratio: 0.6;
  border-radius: var(--r-sm);
  background: var(--slate-300);
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px;
  font: 700 11px/1 'JetBrains Mono';
  color: var(--slate-700);
}
.shelf-cell.free { background: var(--slate-200); color: var(--slate-500); }
.shelf-cell.occupied { background: var(--slate-500); color: #fff; }
.shelf-cell.target {
  background: var(--primary);
  color: #fff;
  animation: shelf-glow 1400ms ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--primary);
}
.shelf-cell.fault { background: var(--red); color: #fff; }
.shelf-cell.unavailable { background: repeating-linear-gradient(45deg, var(--slate-400), var(--slate-400) 4px, var(--slate-300) 4px, var(--slate-300) 8px); color: var(--slate-700); }
.shelf-cell .tool-dot {
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

@keyframes shelf-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); transform: scale(1.04); }
}

.shelf-rack-frame {
  background: var(--slate-900);
  border-radius: var(--r-lg);
  padding: 14px 10px;
  color: #fff;
}
.shelf-rack-frame .rack-header {
  display: flex; justify-content: space-between;
  font: 500 12px/1 'Inter';
  color: var(--slate-400);
  margin-bottom: 10px;
  padding: 0 4px;
}

/* ---------- 15. Strap Instruction ---------- */
.strap-instruction {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 20px;
  text-align: center;
}
.strap-svg {
  width: 200px; height: 120px;
  margin: 8px auto 12px;
  display: block;
}
.strap-svg .strap-belt {
  stroke: var(--accent);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
}
.strap-svg.tightening .strap-belt { animation: strap-tighten 2s ease-in-out infinite; }
.strap-svg.loosening .strap-belt { animation: strap-loosen 2s ease-in-out infinite; }
@keyframes strap-tighten {
  0%, 100% { stroke-dashoffset: 80; }
  50% { stroke-dashoffset: 0; }
}
@keyframes strap-loosen {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 80; }
}
.strap-svg .buckle {
  fill: var(--slate-700);
}

/* ---------- 16. CrossReturnBanner ---------- */
.cross-return-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(120deg, var(--return-subtle), var(--primary-light));
  border-radius: var(--r-lg);
  border: 1px solid var(--return-bg);
}
.cross-return-banner .icon {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--return-text);
  flex: 0 0 36px;
}
.cross-return-banner .text strong { font: 700 14px/1.2 'Inter'; color: var(--text-primary); display: block; margin-bottom: 2px; }
.cross-return-banner .text span { font: 400 12px/1.4 'Inter'; color: var(--text-secondary); }

/* ---------- 17. BLE indicator ---------- */
.ble-indicator {
  position: relative;
  width: 180px; height: 180px;
  margin: 24px auto;
  display: flex; align-items: center; justify-content: center;
}
.ble-indicator .core {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Material Symbols Rounded';
  font-size: 40px;
  z-index: 4;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
}
.ble-indicator .ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--primary);
  width: 80px; height: 80px;
  opacity: 0;
  animation: ble-pulse 2.4s ease-out infinite;
}
.ble-indicator .ring:nth-child(2) { animation-delay: 0.6s; }
.ble-indicator .ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes ble-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- 18. Guided Photo Overlay ---------- */
.guided-photo {
  position: relative;
  height: 100%;
  background: #0A0C0F;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.photo-viewport {
  flex: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #1a1f2a, #0A0C0F);
  overflow: hidden;
}
.ghost-frame {
  width: 280px;
  height: 320px;
  border: 2px dashed rgba(37,99,235,0.85);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ghost-frame::after {
  content: '';
  position: absolute; inset: -12px;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 9999px rgba(10,12,15,0.4);
}
.ghost-tool {
  color: rgba(255,255,255,0.25);
  font-family: 'Material Symbols Rounded';
  font-size: 140px;
  line-height: 1;
}
.photo-hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 60px 16px 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
  z-index: 5;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), transparent);
}
.photo-hud-top .step-pill {
  background: rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font: 500 13px/1 'Inter';
}
.photo-hud-bottom {
  padding: 20px 16px 40px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  position: relative;
  z-index: 5;
}
.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  text-align: center;
  padding: 4px;
  color: rgba(255,255,255,0.6);
}
.photo-thumb.done { background: var(--return-bg); color: var(--return-text); border-color: var(--return-solid); }
.photo-thumb.current { border-color: var(--primary); background: rgba(37,99,235,0.15); color: #fff; }
.shutter {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255,255,255,0.3);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.shutter::before {
  content: '';
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 2px solid #0A0C0F;
}
.photo-caption {
  text-align: center;
  font: 500 15px/1.3 'Inter';
  margin-bottom: 16px;
}

/* ---------- 19. Active rental banner ---------- */
.active-rental-banner {
  background: var(--slate-900);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 12px;
}
.active-rental-banner .timer {
  font: 800 20px/1 'JetBrains Mono';
  color: #fff;
}
.active-rental-banner .name { font: 600 13px/1.2 'Inter'; color: var(--slate-300); margin-bottom: 4px; }

/* Action grid */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.action-tile {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px 16px;
  text-align: left;
  border: 1px solid var(--slate-200);
  display: flex; flex-direction: column; gap: 6px;
}
.action-tile .material-symbols-rounded {
  color: var(--primary);
  font-size: 28px;
}
.action-tile .t { font: 600 14px/1.2 'Inter'; }
.action-tile .s { font: 400 12px/1.3 'Inter'; color: var(--text-secondary); }

/* ---------- 20. Screen layout helpers ---------- */
.screen-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 12px;
}
.screen-header h1 { font: 700 20px/1.2 'Inter'; flex: 1; }
.screen-pad { padding: 0 20px; }
.stack { display: flex; flex-direction: column; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-20 > * + * { margin-top: 20px; }
.stack-24 > * + * { margin-top: 24px; }
.row { display: flex; gap: 8px; align-items: center; }
.spacer { flex: 1; }

.sticky-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 20px 32px;
  background: linear-gradient(180deg, transparent, var(--bg-default) 30%);
  z-index: 25;
}

/* Map placeholder */
.map-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, #E0E7FF 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, #DBEAFE 0%, transparent 40%),
    linear-gradient(135deg, #EEF2F7, #E5EAF2);
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--slate-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.map-pin {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 13px/1 'Inter';
  box-shadow: 0 4px 12px rgba(37,99,235,0.4), 0 0 0 4px rgba(255,255,255,0.8);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.map-pin.selected { background: var(--accent); box-shadow: 0 4px 16px rgba(245,158,11,0.5), 0 0 0 4px #fff; transform: translate(-50%,-50%) scale(1.1); }
.map-pin.busy { background: var(--slate-500); }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline .t-step { position: relative; padding: 8px 0 16px; }
.timeline .t-step::before {
  content: '';
  position: absolute;
  left: -24px; top: 8px; bottom: -8px;
  width: 2px; background: var(--slate-200);
}
.timeline .t-step:last-child::before { display: none; }
.timeline .t-step .dot {
  position: absolute;
  left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--slate-200);
  border: 3px solid var(--bg-default);
  box-shadow: 0 0 0 1px var(--slate-300);
}
.timeline .t-step.done .dot { background: var(--return-solid); box-shadow: 0 0 0 1px var(--return-solid); }
.timeline .t-step.current .dot { background: var(--primary); box-shadow: 0 0 0 1px var(--primary); animation: shelf-glow 1800ms infinite; }
.timeline .t-step .t { font: 600 14px/1.3 'Inter'; }
.timeline .t-step .s { font: 400 12px/1.4 'Inter'; color: var(--text-secondary); margin-top: 2px; }

/* Section */
.section-title {
  font: 700 11px/1 'Inter';
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 20px 20px 10px;
}

/* Success checkmark */
.success-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--return-bg);
  color: var(--return-solid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  position: relative;
  font-family: 'Material Symbols Rounded';
  font-size: 56px;
}
.success-circle::after {
  content: '';
  position: absolute; inset: -8px;
  border: 2px solid var(--return-solid);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-once 900ms ease-out 200ms 1 both;
}
@keyframes pulse-once {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* QR placeholder */
.qr-box {
  width: 220px; height: 220px;
  margin: 20px auto;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-md);
  position: relative;
  background-image:
    linear-gradient(45deg, #000 25%, transparent 25%),
    linear-gradient(-45deg, #000 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #000 75%),
    linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}
.qr-box::before {
  content: '';
  position: absolute;
  inset: 16px;
  background: repeating-conic-gradient(#000 0% 25%, #fff 25% 50%) 50% 50% / 10px 10px;
  border-radius: 2px;
}
.qr-box::after {
  content: 'СБП';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: #5B0FEB;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 900 14px/1 'Inter';
  border-radius: 8px;
  border: 4px solid #fff;
  box-shadow: var(--sh-md);
}

/* Consents */
.consent-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}
.consent-check {
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: #fff;
  flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Material Symbols Rounded';
  font-size: 16px;
}
.consent-check.off { background: #fff; border: 1.5px solid var(--slate-300); color: transparent; }
.consent-row .t { font: 500 13px/1.4 'Inter'; }
.consent-row .s { font: 400 11px/1.4 'Inter'; color: var(--text-secondary); margin-top: 2px; }

/* Option (radio list) */
.option-row {
  display: flex; gap: 12px; align-items: center;
  padding: 16px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-lg);
  cursor: pointer;
}
.option-row.selected { border-color: var(--primary); background: var(--primary-light); }
.option-row .radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--slate-300);
  flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
}
.option-row.selected .radio { border-color: var(--primary); }
.option-row.selected .radio::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.option-row .info { flex: 1; }
.option-row .logo {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: #5B0FEB; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 800 13px/1 'Inter';
}
.option-row .logo.tbank { background: #FFDD2D; color: #000; }
.option-row .recommend {
  background: var(--return-bg); color: var(--return-text);
  font: 700 10px/1 'Inter'; padding: 2px 6px; border-radius: var(--r-xs);
  margin-left: 8px;
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 80ms !important;
  }
}

/* ---------- 22. Navigator (index.html) ---------- */
.nav-wrap { max-width: 1400px; margin: 0 auto; padding: 40px 24px 80px; }
.nav-hero {
  background: linear-gradient(135deg, var(--primary), #4F46E5);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 40px 32px;
  margin-bottom: 32px;
  box-shadow: var(--sh-lg);
}
.nav-hero h1 { font: 800 36px/1.15 'Inter'; letter-spacing: -0.02em; margin-bottom: 8px; }
.nav-hero p { font: 400 16px/1.5 'Inter'; opacity: 0.92; max-width: 600px; }
.nav-hero .tokens {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 24px;
}
.nav-hero .token {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font: 500 13px/1 'Inter';
}
.nav-hero .token .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
}

.nav-group-title {
  font: 700 12px/1 'Inter';
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 28px 4px 16px;
}
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.nav-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--sh-md);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--dur-fast), box-shadow var(--dur-std);
  border: 1px solid var(--slate-200);
}
.nav-card:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); border-color: var(--primary); }
.nav-card .thumb {
  aspect-ratio: 390/600;
  background: var(--bg-default);
  border-radius: var(--r-lg);
  border: 6px solid #111418;
  padding: 8px;
  overflow: hidden;
  position: relative;
  font-size: 9px;
  color: var(--text-secondary);
}
.nav-card .num { font: 700 12px/1 'JetBrains Mono'; color: var(--primary); }
.nav-card h3 { font: 700 15px/1.2 'Inter'; }
.nav-card p { font: 400 12px/1.4 'Inter'; color: var(--text-secondary); }
.nav-card .group-chip {
  display: inline-flex;
  padding: 2px 8px;
  font: 700 10px/1.4 'Inter';
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  align-self: flex-start;
}
.group-auth { background: var(--primary-light); color: var(--primary-dark); }
.group-main { background: var(--accent-light); color: var(--accent-dark); }
.group-return { background: var(--return-bg); color: var(--return-text); }
.group-aux { background: var(--slate-100); color: var(--slate-700); }

/* List divider */
.list-divider { height: 1px; background: var(--slate-100); margin: 8px 0; }

/* Tabs (onboarding) */
.ob-dots { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.ob-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300); }
.ob-dots .dot.active { background: var(--primary); width: 24px; border-radius: 999px; }

/* Segment */
.segment {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  background: var(--slate-100);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 2px;
}
.segment .seg {
  padding: 8px 6px;
  text-align: center;
  font: 500 13px/1 'Inter';
  border-radius: var(--r-sm);
  color: var(--text-secondary);
}
.segment .seg.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--sh-sm);
  font-weight: 600;
}

/* Empty state helpers */
.hero-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: 'Material Symbols Rounded';
  font-size: 72px;
  margin-bottom: 16px;
}

/* Tiny progress */
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--slate-200);
  overflow: hidden;
}
.progress-bar .fill { height: 100%; background: var(--primary); border-radius: 999px; }
.progress-bar.amber .fill { background: var(--accent); }
.progress-bar.red .fill { background: var(--red); }
