/* The Cruise Guy — design system */
:root {
  --navy: #02204C;
  --blue: #0C6EB5;
  --light-blue: #DFEBF7;
  --coral: #E7917A;
  --teal: #2C5559;
  --ink: #222222;
  --grey: #6B7280;
  --white: #FFFFFF;
  --stroke: #e6edf5;
  --stroke-strong: #d5e0ea;
  --shadow: 0 1px 3px rgba(2, 32, 76, 0.08);
  --shadow-lg: 0 8px 28px rgba(2, 32, 76, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 44px;
  --nav-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--white); }
body {
  font-family: var(--font);
  background: var(--light-blue);
  color: var(--ink);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.auth-page,
body.no-nav { padding-bottom: var(--safe-bottom); }
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.page { max-width: 640px; margin: 0 auto; padding: 16px; }
body.admin-page .page { max-width: 960px; }

/* ---------- Top bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-bar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.top-bar-brand img,
.top-bar > img { height: 34px; width: 34px; border-radius: 50%; flex: none; }
.top-bar h1 {
  font-size: 16px;
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}
.top-bar-side {
  width: var(--tap);
  height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.top-bar-side.grow { width: auto; flex: 1; justify-content: flex-start; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-strong);
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { background: var(--light-blue); }
.icon-btn.danger { color: #a4392b; border-color: #f0cfc9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  line-height: 1.2;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:active { filter: brightness(0.95); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-block { display: flex; width: 100%; }
.btn-text {
  background: none;
  border: none;
  color: var(--grey);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
}
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Deal card ---------- */
.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  cursor: pointer;
}
.deal-card .photo-wrap { position: relative; background: var(--navy); }
.deal-card .photo-wrap > img,
.deal-card .photo-wrap > .monogram {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: scale-down;
}
.deal-card .photo-wrap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(2, 32, 76, 0.45), transparent);
  pointer-events: none;
}
.deal-card .company-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 62%;
  box-shadow: var(--shadow);
}
.deal-card .company-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  aspect-ratio: auto;
}
.deal-card .save-btn,
.deal-card .map-btn {
  position: absolute;
  z-index: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.deal-card .save-btn {
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  width: 36px;
  height: 36px;
}
.deal-card .save-btn.is-saved { color: var(--coral); }
.deal-card .map-btn {
  bottom: 10px;
  right: 10px;
  background: rgba(2, 32, 76, 0.55);
  border: 2px solid var(--white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--white);
}
.deal-card .body { padding: 16px; }
.deal-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.deal-blurb {
  margin: -4px 0 10px;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}
.deal-card .meta-row svg { width: 18px; height: 18px; flex: none; color: var(--navy); }
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
}
.meta-row svg { width: 18px; height: 18px; flex: none; color: var(--navy); }
.deal-card .badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.badge-pill {
  background: var(--teal);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.deal-card hr { border: none; border-top: 1px solid #eef2f7; margin: 12px 0; }
.deal-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deal-card .price { font-size: 15px; color: var(--ink); }
.deal-card .price strong { font-size: 20px; }

/* Deal detail layout */
.deal-hero { position: relative; margin: -16px -16px 16px; }
.deal-hero img,
.deal-hero .monogram {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: scale-down;
}
.deal-hero-actions {
  position: absolute;
  top: 12px;
  right: 12px;
}
.sticky-cta {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
  z-index: 15;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
body.no-nav .sticky-cta,
body.auth-page .sticky-cta { bottom: calc(var(--safe-bottom) + 12px); }

/* ---------- Ports ---------- */
.port-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  min-height: 96px;
}
.port-card img,
.port-card .monogram {
  width: 112px;
  height: 112px;
  object-fit: scale-down;
  flex: none;
  background: var(--navy);
}
.port-card .body { padding: 10px 8px 10px 0; min-width: 0; flex: 1; }
.port-card h4 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.port-card p { margin: 0; font-size: 13.5px; color: var(--grey); }
.port-card .summary {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.port-card .chevron { color: var(--grey); margin-right: 10px; flex: none; }
.port-card .chevron svg { width: 18px; height: 18px; }

.hero {
  position: relative;
  margin: -16px -16px 16px;
  background: var(--navy);
  min-height: 180px;
}
.hero img,
.hero .monogram {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: scale-down;
  min-height: 180px;
}
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(2, 32, 76, 0.78), transparent);
  color: var(--white);
}
.hero-overlay h2 { margin: 0 0 4px; font-size: 22px; }
.hero-overlay p { margin: 0; opacity: 0.9; font-size: 14px; }

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(2, 32, 76, 0.06);
}
.detail-card h4 {
  margin: 0 0 8px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.detail-card h4 svg { width: 20px; height: 20px; }
.detail-card p { margin: 0; line-height: 1.5; }
.detail-card .placeholder { color: var(--grey); font-style: italic; }

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Filters / chips / search ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.filter-bar select,
.filter-bar input {
  border-radius: 20px;
  border: 1px solid var(--stroke-strong);
  padding: 8px 12px;
  background: var(--white);
  font-size: 14px;
}
.chip-bar {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.chip-bar.has-chips { display: flex; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--stroke-strong);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  min-height: 36px;
}
.chip.active,
.chip-filter { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip .chip-x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.search-bar { display: flex; margin-bottom: 14px; position: relative; }
.search-bar input {
  flex: 1;
  border-radius: 20px;
  border: 1px solid var(--stroke-strong);
  padding: 12px 16px 12px 42px;
  font-size: 16px;
  background: var(--white);
}
.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  pointer-events: none;
}
.search-bar .search-icon svg { width: 18px; height: 18px; display: block; }

.load-more { margin: 8px 0 20px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 2px 8px rgba(2, 32, 76, 0.1);
}
.form-card h2 { color: var(--navy); margin-top: 0; text-align: center; }
.form-card .logo { display: block; margin: 0 auto 16px; height: 78px; }
.form-card .logo.logo-lg { height: 148px; width: auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--grey); margin-bottom: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  font-size: 16px;
  background: var(--white);
}
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  height: auto;
  padding: 0;
  margin-right: 6px;
  border: none;
  border-radius: 0;
  background: none;
  display: inline-block;
  vertical-align: middle;
  accent-color: var(--blue);
}
.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.input-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--grey);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-eye svg { width: 20px; height: 20px; }
.form-msg { font-size: 14px; margin: 10px 0; padding: 10px 12px; border-radius: 10px; display: none; }
.form-msg.error { background: #fdeceb; color: #a4392b; display: block; }
.form-msg.success { background: #eaf6ee; color: #1f7a3d; display: block; }
.muted { color: var(--grey); font-size: 14px; }
.center { text-align: center; }
.check-email { text-align: center; padding: 8px 0 4px; }
.check-email h3 { color: var(--navy); margin: 0 0 8px; }

.locked-panel { text-align: center; padding: 36px 20px 24px; }
.locked-panel svg { width: 48px; height: 48px; color: var(--blue); margin-bottom: 12px; }
.locked-preview {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  max-height: 220px;
  overflow: hidden;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* ---------- Menu ---------- */
.identity-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.identity-logo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: var(--navy);
  padding: 10px;
}
.identity-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.identity-card h3 { margin: 0 0 2px; font-size: 17px; color: var(--navy); }
.pill {
  display: inline-block;
  background: #eaf6ee;
  color: #1f7a3d;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 4px;
}
.pill.idle { background: var(--light-blue); color: var(--blue); }

.menu-group {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: var(--tap);
  border-bottom: 1px solid #eef2f7;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  cursor: pointer;
}
.menu-row:last-child { border-bottom: 0; }
.menu-row svg.row-icon { width: 20px; height: 20px; color: var(--blue); flex: none; }
.menu-row .label { flex: 1; }
.menu-row .chevron { color: var(--grey); }
.menu-row.danger { color: #a4392b; }
.menu-row.danger svg.row-icon { color: #a4392b; }

.subscribe-hero h3 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.subscribe-hero .price-tag { font-size: 28px; font-weight: 700; color: var(--navy); margin: 4px 0 10px; }
.subscribe-hero .price-tag span { font-size: 15px; font-weight: 500; color: var(--grey); }
.perk-list { margin: 0 0 16px; padding-left: 18px; color: var(--ink); }
.perk-list li { margin-bottom: 6px; }

.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.interest-chips input { width: auto; margin: 0; }
.interest-chips label.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.disclosure { margin-top: 8px; }
.disclosure summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: 8px 0; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--stroke);
  display: flex;
  z-index: 30;
  padding-bottom: var(--safe-bottom);
  overflow: visible;
}
/* Cover any iPhone strip below the layout viewport so the bar
   always paints to the physical bottom of the screen. */
.bottom-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 80px;
  background: var(--white);
  pointer-events: none;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0 4px;
  min-height: var(--nav-h);
  color: var(--grey);
  font-size: 11px;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active {
  color: var(--navy);
  font-weight: 700;
}
.nav-item.active .nav-icon-wrap {
  transform: translateY(-6px);
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(2, 32, 76, 0.18);
}
.nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.2s var(--ease);
}
.nav-icon { width: 22px; height: 22px; display: block; }

/* ---------- Sheets ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.sheet.open { pointer-events: auto; visibility: visible; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 32, 76, 0);
  transition: background 0.28s ease;
}
.sheet.open .sheet-backdrop { background: rgba(2, 32, 76, 0.45); }
.sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(88vh, 680px);
  overflow: auto;
  padding: 8px 18px calc(20px + var(--safe-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--white);
  transform: translateY(110%);
  transition: transform 0.32s var(--ease);
  color: var(--ink);
}
.sheet.open .sheet-panel { transform: translateY(0); }
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(2, 32, 76, 0.18);
  margin: 6px auto 10px;
}
.sheet-title { margin: 0 0 12px; font-size: 18px; color: var(--navy); }
.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* Dual range */
.dual-range { position: relative; height: 36px; margin: 8px 0 4px; }
.dual-range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: none;
  height: 36px;
}
.dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--white);
  cursor: pointer;
}
.dual-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 4px;
  background: var(--stroke-strong);
  border-radius: 4px;
}
.dual-range-fill {
  position: absolute;
  top: 16px;
  height: 4px;
  background: var(--blue);
  border-radius: 4px;
}

.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 5;
  max-height: 200px;
  overflow: auto;
  display: none;
}
.ac-list.open { display: block; }
.ac-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}
.ac-item:active,
.ac-item:hover { background: var(--light-blue); }

.map-list { list-style: none; margin: 0; padding: 0; }
.map-list li { padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.map-list a { color: var(--blue); font-weight: 600; margin-left: 10px; }

.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; }
.install-steps .step-num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.install-steps .step-body p { margin: 0; font-size: 0.92rem; line-height: 1.4; }
.install-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #ccc;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  transform: translate(-50%, 12px);
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a4392b; }
body.auth-page .toast,
body.no-nav .toast { bottom: calc(var(--safe-bottom) + 16px); }

/* ---------- Skeletons / empty ---------- */
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.skeleton-photo { height: 180px; background: linear-gradient(90deg, #e8eef5 25%, #f5f8fb 50%, #e8eef5 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton-line { height: 12px; margin: 12px 16px; border-radius: 6px; background: #e8eef5; }
.skeleton-line.w60 { width: 60%; }
.skeleton-port { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.skeleton-port .ph { width: 112px; height: 96px; background: #e8eef5; flex: none; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 48px 20px; }
.empty-state svg { width: 56px; height: 56px; color: var(--blue); margin-bottom: 10px; }
.empty-state h3 { margin: 0 0 6px; color: var(--navy); }
.empty-state p { margin: 0 0 16px; color: var(--grey); }

/* ---------- Admin ---------- */
.admin-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 10px 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  min-height: 58px;
}
.admin-item .meta { flex: 1; min-width: 0; }
.admin-item h4 {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-item p { margin: 3px 0 0; font-size: 13px; color: var(--grey); }
.admin-item .admin-actions { display: flex; gap: 4px; flex: none; padding-top: 2px; }
.admin-item .icon-btn { width: 44px; height: 44px; margin: 0; }
.admin-item .icon-btn.danger { color: #a4392b; border-color: #f0cfc9; }
.admin-item .toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
}
.admin-item .toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  color: var(--grey);
  font-weight: 600;
}

.admin-editor {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--light-blue);
  display: none;
  flex-direction: column;
}
.admin-editor.open { display: flex; }
.admin-editor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: var(--white);
  border-bottom: 1px solid var(--stroke);
  flex: none;
}
.admin-editor-bar h2 { flex: 1; margin: 0; font-size: 17px; color: var(--navy); }
.admin-editor-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-bottom: calc(28px + var(--safe-bottom));
}
body.admin-editor-open { overflow: hidden; }

.sr-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.photo-pick svg { width: 20px; height: 20px; }
.photo-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--stroke-strong);
  border-radius: 12px;
  padding: 8px;
}
.photo-chip img {
  width: 56px;
  height: 56px;
  object-fit: scale-down;
  background: var(--navy);
  border-radius: 8px;
  flex: none;
}
.photo-chip-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.status-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.status-badge.published { background: var(--teal); color: var(--white); }
.status-badge.draft { background: #e8eef5; color: var(--grey); }
.status-badge.old { background: var(--coral); color: var(--white); }

.admin-table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef2f7; font-size: 14px; }
.admin-table th { background: var(--navy); color: var(--white); }
.admin-actions a, .admin-actions button:not(.icon-btn) { margin-right: 8px; color: var(--blue); background: none; border: none; cursor: pointer; font-weight: 600; }
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute;
  inset: 0;
  background: #c5d0dc;
  border-radius: 26px;
  transition: 0.2s;
}
.switch .track:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track:before { transform: translateX(18px); }

.admin-warning {
  background: #fff6e8;
  border: 1px solid #f0d9a8;
  color: #7a5a12;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 13px;
}
