:root {
  --primary: #1e3a5f;
  --primary-dark: #152c47;
  --primary-light: #2a5280;
  /* Deep Gold — pulled off orange toward bullion, so the brand reads "safe deposit"
     rather than "sale". Same warmth family as the previous amber (#f59e0b/#d97706),
     so every existing pairing still works, including dark label text on accent buttons. */
  --accent: #C9971C;
  --accent-dark: #A87C12;
  --dark: #0f172a;
  --gray-800: #1e293b;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.15), 0 4px 6px -2px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ───── NAV ───── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-accent { color: var(--accent); }

.brand svg { width: 32px; height: 32px; }

/* The header mark is the one place the logo is meant to be READ, not just recognised — the
   box carries a shield and a shipping label on its faces, and at 32px neither is legible.
   Scoped to .navbar so the footer, dashboard nav and auth cards keep the smaller mark, where
   it sits beside smaller text and only needs to register as an icon.
   The navbar has no fixed height (padding 14px 0 on a flex row), so it simply grows to fit. */
.navbar .brand svg { width: 46px; height: 46px; }

/* The phone rule for EVERY wordmark lives in one block near the end of this
   file — search "PHONE HEADER FIT". It is not here because it has to come after
   .admin-brand to win on source order. */

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* A nav label must never break mid-phrase. Without this, "How It Works" became
   "How It / Works" the moment the row got tight, which silently doubled the
   header height instead of failing visibly. */
.nav-links a { white-space: nowrap; }

/* LAPTOP SQUEEZE BAND.
   Measured on a 1024px laptop: brand 306 + links 532 + five 28px gaps + 48px
   padding = 1026 needed against 1009 available. Seventeen pixels short, and
   four of the six links wrapped. Above the collapse point there is no hamburger
   to fall back on, so tighten the gaps and type just in this band rather than
   collapsing a nav that nearly fits. Wider than 1040px keeps the roomier
   defaults. */
@media (min-width: 961px) and (max-width: 1040px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.88rem; }
  .btn-nav { padding: 8px 16px; }
}

.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--primary-dark) !important; color: var(--white) !important; }

/* ───── HERO ───── */
.hero {
  background: linear-gradient(140deg, #0a1628 0%, #1e3a5f 55%, #2a5280 100%);
  color: var(--white);
  padding: 90px 0 110px;
  overflow: hidden;
  position: relative;
}

/* Deposit doors — a faint locker grid in the empty navy either side of the 1200px
   container, with a small accent "keyhole" per cell. Purely decorative: it is masked
   to fade out well before the text column (so contrast is untouched), sits at z-index 0
   beneath .hero .container, and disappears entirely below ~1250px where the margins
   collapse. Pure CSS — no image requests, nothing for the CSP to block. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.07) 0 1px, transparent 1px 40px),
    radial-gradient(circle at 29px 20px, rgba(201,151,28,.22) 0 2px, transparent 2px);
  background-size: auto, auto, 58px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
  z-index: 2;   /* stay above ::before so the white curve is never tinted by the grid */
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: #93c5fd;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a1628;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(245,158,11,0.4);
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover { background: rgba(255,255,255,0.2); color: var(--white); }

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.box-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.box-card:nth-child(2) { animation-delay: 0.7s; margin-top: 20px; }
.box-card:nth-child(3) { animation-delay: 1.4s; }
.box-card:nth-child(4) { animation-delay: 2.1s; margin-top: 20px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.box-card .icon { font-size: 2.2rem; margin-bottom: 8px; }
.box-card .label { font-size: 0.8rem; color: #93c5fd; font-weight: 600; letter-spacing: 0.5px; }

/* ───── HOW IT WORKS ───── */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.steps.line-visible::before {
  transform: scaleX(1);
}

.step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px var(--gray-100), 0 0 0 8px var(--primary);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.step p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ───── PACKAGES ───── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Four cards need ~936px of track. A 1fr column cannot shrink below its own
   content's min-width, so under that the grid does not compress — it pushes the
   PAGE sideways instead (measured: 25px of horizontal scroll at a 910px
   viewport). The two-column rule further down only started at 900px, leaving
   901-959px broken. Drop to two columns at the same 960px where the nav
   collapses, so the layout changes shape once rather than twice.
   The 900px rule below is now redundant for this property but left in place —
   it is doing the same thing, and the 600px single-column rule still needs it. */
@media (max-width: 960px) {
  .package-grid { grid-template-columns: repeat(2, 1fr); }
}

.package-card {
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 30px 22px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.package-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.package-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eff6ff 0%, var(--white) 60%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pkg-icon { font-size: 2.8rem; margin-bottom: 12px; height: 5.5rem; display: flex; align-items: center; justify-content: center; }

.package-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.pkg-dims {
  font-size: 1.05rem;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  font-weight: 800;
  white-space: nowrap;
  margin-bottom: 18px;
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

.pkg-price {
  margin-bottom: 22px;
}

.pkg-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pkg-price .per {
  font-size: 0.9rem;
  color: var(--gray-400);
}

.pkg-features {
  list-style: none;
  margin-bottom: 24px;
  text-align: left;
  flex: 1;
}

.pkg-features li {
  padding: 7px 0;
  color: var(--gray-600);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pkg-features li:last-child { border-bottom: none; }

.pkg-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-pkg {
  display: block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-pkg:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.package-card.popular .btn-pkg {
  background: var(--accent);
  color: #0a1628;
}

.package-card.popular .btn-pkg:hover { background: var(--accent-dark); color: #0a1628; }

/* ───── FEATURES ───── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feat {
  text-align: center;
}

.feat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.feat h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.feat p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ───── FOOTER ───── */
footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 48px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-brand .brand { color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }

.footer-links {
  column-count: 2;
  column-gap: 44px;
  text-align: right;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color 0.2s;
}

/* 3 columns on wider desktops, 2 on smaller */
@media (min-width: 992px) {
  .footer-links { column-count: 3; }
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.83rem;
  color: #475569;
}

/* ───── AUTH PAGE ───── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(140deg, #0a1628 0%, #1e3a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.auth-card .brand {
  justify-content: center;
  margin-bottom: 8px;
}

.auth-card .auth-sub {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.tab-group {
  display: flex;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.2s;
  background: var(--white);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.btn-auth {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-auth:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.auth-back:hover { color: var(--primary); }

/* ───── DASHBOARD ───── */
.dash-layout {
  min-height: 100vh;
  background: var(--gray-100);
}

.dash-nav {
  background: var(--primary);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.dash-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-nav .brand { color: var(--white); }
.dash-nav .brand-accent { color: var(--accent); }

.dash-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-user-name {
  color: #93c5fd;
  font-size: 0.9rem;
}

/* The plan picker inside the dashboard. Four fixed columns overflowed a phone
   by 20px; a 1fr track cannot shrink below its content, so the grid pushed the
   page instead of compressing — the same failure the marketing packages grid
   had. Columns are defined here rather than inline so a media query can reach
   them at all. */
.cust-plan-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cust-plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cust-plan-grid { grid-template-columns: 1fr; } }

/* DASHBOARD HEADER ON PHONES.
   The wordmark itself is handled by the shared PHONE HEADER FIT block near the
   end of this file. What is left here is specific to this header: the account
   menu beside it. Measured at 375px before the fix: brand 244 + menu 170 + 48
   padding = 462 against 375, so the menu sat off the right edge.
   The greeting text goes because the button and caret still open the same menu
   and the customer's name is already on the page below. */
@media (max-width: 640px) {
  .dash-user { gap: 8px; }
  .dash-user #dash-greeting { display: none; }
}

.btn-logout {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-logout:hover { background: rgba(255,255,255,0.22); }

.dash-main { padding: 36px 0 60px; }

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.dash-header p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-top: 2px;
}

.plan-pill {
  background: var(--primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-sub {
  font-size: 0.82rem;
  color: var(--gray-400);
}

.items-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.items-toolbar h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.selection-info {
  font-size: 0.88rem;
  color: var(--gray-600);
  display: none;
}

.btn-request-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(30,58,95,0.3);
}

.btn-request-box:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30,58,95,0.4);
}

.btn-return {
  background: var(--accent);
  color: #0a1628;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-return:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-return:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.item-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  position: relative;
  border: 2px solid transparent;
  cursor: pointer;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.item-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.12);
}

.item-img-wrap {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  background: var(--gray-100);
}

.item-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.item-card:hover .item-img-wrap img { transform: scale(1.04); }

.item-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
}

.item-card.selected .item-check {
  background: var(--primary);
  border-color: var(--primary);
}

.item-check::after {
  content: '✓';
  color: transparent;
  font-size: 0.7rem;
  font-weight: 800;
}

.item-card.selected .item-check::after { color: var(--white); }

.item-info {
  padding: 12px 14px;
}

.item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-date {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.item-box-type {
  font-size: 0.72rem;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }

/* ───── MODAL ───── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  transform: translateY(20px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.modal h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.modal .modal-sub {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.return-items-list {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  max-height: 180px;
  overflow-y: auto;
}

.return-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--dark);
}

.return-item-row:last-child { border-bottom: none; }
.return-item-row span { font-size: 1.1rem; }

.modal-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.87rem;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  border-radius: 10px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover { border-color: var(--gray-400); color: var(--dark); }

.btn-confirm {
  flex: 2;
  padding: 12px;
  background: var(--success);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-confirm:hover { background: #059669; }

/* Success state */
.success-modal { text-align: center; }

.success-modal .modal-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.6rem; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .steps { flex-direction: column; align-items: center; gap: 24px; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .hero h1 { font-size: 2rem; }
  .package-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 36px 28px; }

  /* Footer stacks vertically on mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    column-count: auto;
  }
  .footer-links a { margin-bottom: 0; }
}

/* ───── ORDER STATUS TIMELINE ───── */
.status-banner {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.status-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.status-banner-top h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.status-label {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.status-label.active   { background: #d1fae5; color: #065f46; }
.status-label.pending  { background: #fef3c7; color: #92400e; }
.status-label.transit  { background: #dbeafe; color: #1e40af; }
.status-label.complete { background: #ede9fe; color: #5b21b6; }

.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.tl-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.tl-step.done:not(:last-child)::after { background: var(--success); }
.tl-step.active-step:not(:last-child)::after {
  background: linear-gradient(90deg, var(--success), var(--gray-200));
}

.tl-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.tl-step.done .tl-dot       { background: var(--success); color: white; }
.tl-step.active-step .tl-dot { background: var(--accent); color: #0a1628; box-shadow: 0 0 0 4px rgba(245,158,11,0.25); }

.tl-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.3;
}

.tl-step.done .tl-label       { color: var(--success); }
.tl-step.active-step .tl-label { color: var(--accent-dark); }

/* ───── FAQ ───── */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--dark);
  transition: background 0.2s;
  font-family: inherit;
}

.faq-q:hover { background: var(--gray-100); }

.faq-chevron {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}

.faq-item.open .faq-a { display: block; }

/* ───── CONTACT ───── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--gray-600);
}

.contact-detail:last-child { border-bottom: none; }
.contact-detail strong { color: var(--dark); }

.contact-form .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--dark);
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.btn-send {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-send:hover { background: var(--primary-dark); transform: translateY(-1px); }

.contact-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 14px;
  display: none;
}

/* ───── CHECKOUT ───── */
.checkout-page {
  min-height: 100vh;
  background: var(--gray-100);
  padding: 48px 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.checkout-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.checkout-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.93rem;
}

.order-summary-row:last-of-type { border-bottom: none; }
.order-summary-row .label { color: var(--gray-600); }
.order-summary-row .value { font-weight: 600; color: var(--dark); }
.order-summary-row.total .label { font-weight: 700; color: var(--dark); font-size: 1rem; }
.order-summary-row.total .value { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

.stripe-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.stripe-placeholder p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 6px;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #635bff;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.secure-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.secure-badge {
  font-size: 0.78rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-pay {
  width: 100%;
  padding: 15px;
  background: #635bff;
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  font-family: inherit;
}

.btn-pay:hover { background: #4f46e5; transform: translateY(-1px); }

.checkout-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: color 0.2s;
  cursor: pointer;
}

.checkout-back:hover { color: var(--primary); }

.plan-summary-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  padding: 24px;
  color: var(--white);
  margin-bottom: 20px;
  text-align: center;
}

.plan-summary-box .plan-icon { font-size: 2.5rem; margin-bottom: 8px; }
.plan-summary-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.plan-summary-box .plan-price { font-size: 2rem; font-weight: 800; color: var(--accent); }
.plan-summary-box .plan-per { font-size: 0.85rem; color: #93c5fd; }

.what-you-get {
  list-style: none;
}

.what-you-get li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.what-you-get li:last-child { border-bottom: none; }
.what-you-get li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ───── ADMIN PANEL ───── */
.admin-layout { min-height: 100vh; background: #0f172a; }

.admin-nav {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.admin-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The section heading and its filter bar sit on one nowrap row. On a phone the
   heading text takes the first 69px and the filter bar needs 349, leaving it
   68px past the edge. Let the row wrap so the controls get the full width, and
   stop their children from insisting on a width larger than the screen. */
@media (max-width: 640px) {
  .admin-section-title { flex-wrap: wrap; row-gap: 10px; }
  .customer-filter-bar { width: 100%; }
  .customer-filter-bar > * { max-width: 100%; min-width: 0; }
  .customer-filter-bar input,
  .customer-filter-bar select { max-width: 100%; }
  /* The segmented control inside it is its own nowrap flex row. Five buttons —
     and the fifth, "🧪 Test", only exists for owners, which is why this looked
     fine when tested as a plain admin. The inline style sets display:flex but
     not flex-wrap, so this can still reach it. */
  #cust-seg { flex-wrap: wrap; }
}

/* ADMIN HEADER ON A PHONE.
   The wordmark is handled by the shared PHONE HEADER FIT block below — this
   header now carries the `brand` class so that rule reaches it. What stays here
   is specific to this bar: it holds a badge plus role and user tags as well as
   the wordmark, so it wraps rather than trying to fit one row.
   Measured before the fix: brand 308 + controls 141 = 449 in a 375px bar, so
   Sign Out sat 98px off the edge — which stretched the DOCUMENT and in turn
   made the position:fixed detail overlay 473px wide. One cause, two symptoms. */
@media (max-width: 640px) {
  .admin-nav .container { flex-wrap: wrap; row-gap: 8px; }
  /* The bar wrapping is not enough on its own: this div is itself a flex row
     holding the wordmark, the ADMIN badge, a role tag and the signed-in email.
     For an OWNER that is 367px of content in a 375px screen, and with nowrap it
     had nowhere to go. An `admin` account fits and an `owner` does not, which is
     why this survived the earlier pass — it was tested as an admin. */
  .admin-brand { gap: 6px; flex-wrap: wrap; row-gap: 4px; }
  .admin-badge { font-size: 0.6rem; padding: 2px 6px; }
  /* The email is the longest and least urgent item — let it shrink and ellipsis
     rather than force another row on every screen. */
  #admin-user-tag { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.admin-badge {
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-main { padding: 32px 0 60px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: #1e293b;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #334155;
}

.admin-stat .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.admin-stat .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.admin-stat .sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ADMIN TABLES ON A PHONE.
   These carry 6 to 18 columns and rendered 759px and 1233px wide inside a 375px
   screen, dragging the whole page sideways with them — 882px of horizontal
   overflow in total. One table in the file already had an overflow-x wrapper
   and behaved correctly; this is that same pattern applied to the rest.
   The table keeps its own width and scrolls INSIDE this box, so the page itself
   no longer moves. */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;   /* momentum scrolling on iOS */
  max-width: 100%;
  border-radius: 12px;                  /* the table's own radius is clipped by the scroll box */
}

/* A scroll box only helps if the table is allowed to exceed it. width:100% plus
   a min-width means: fill the box on desktop, keep columns readable on a phone
   and scroll instead of crushing them. */
.admin-table-wrap > .admin-table { min-width: 640px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
}

.admin-table th {
  background: #0f172a;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid #334155;
  font-size: 0.88rem;
  color: #cbd5e1;
  vertical-align: middle;
}

.admin-table tr:hover td { background: #263348; cursor: pointer; }

.customer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  margin-right: 10px;
  flex-shrink: 0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.green  { background: var(--success); }
.status-dot.yellow { background: var(--accent); }
.status-dot.blue   { background: #3b82f6; }
.status-dot.red    { background: var(--danger); }

.btn-admin-action {
  background: #334155;
  color: #cbd5e1;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-admin-action:hover { background: #475569; color: white; }
.btn-admin-action.primary { background: var(--primary); color: white; }
.btn-admin-action.primary:hover { background: var(--primary-dark); }
.btn-admin-action.success { background: var(--success); color: white; }
.btn-admin-action.danger  { background: var(--danger);  color: white; }

/* Admin customer detail slide-in panel */
.admin-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.admin-detail-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.admin-detail-panel {
  background: #1e293b;
  width: 100%;
  max-width: 600px;
  height: 100%;
  overflow-y: auto;
  padding: 32px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  border-left: 1px solid #334155;
}

.admin-detail-overlay.open .admin-detail-panel { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.panel-header h2 { font-size: 1.2rem; font-weight: 800; color: white; }

.btn-close-panel {
  background: #334155;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-close-panel:hover { background: #475569; color: white; }

.panel-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.panel-info-item {
  background: #0f172a;
  border-radius: 10px;
  padding: 14px;
}

.panel-info-item .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.panel-info-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.panel-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.panel-item-card {
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #334155;
}

.panel-item-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.panel-item-card .panel-item-name {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-item-form {
  background: #0f172a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px dashed #334155;
}

.add-item-form h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-item-form input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: white;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 10px;
  font-family: inherit;
}

.add-item-form input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.add-item-form input::placeholder { color: #475569; }

.status-select {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: white;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
}

.status-select:focus { outline: none; border-color: var(--primary-light); }

/* Return requests table */
.return-request-row td { color: #fbbf24; }

/* ───── TERMS PAGE ───── */
.terms-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.terms-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.terms-page .updated {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 40px;
}

.terms-section {
  margin-bottom: 36px;
}

.terms-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}

.terms-section p, .terms-section li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 10px;
}

.terms-section ul {
  padding-left: 20px;
}

.terms-highlight {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}

.terms-highlight p {
  color: #92400e !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

@media (max-width: 760px) {
  .contact-grid  { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .admin-stats   { grid-template-columns: repeat(2, 1fr); }
  .panel-items-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-info-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .timeline { overflow-x: auto; }
}

/* ── Admin tab bar ────────────────────────────────────────────────────────── */
.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 20px 11px;
  transition: color 0.15s, border-color 0.15s;
}
.admin-tab-btn:hover  { color: #e2e8f0; }
.admin-tab-btn.active { color: #f59e0b; border-bottom-color: #f59e0b; }

/* Seven tabs do not fit 375px, and the strip had neither wrap nor scroll — the
   last three (Live Chat, Accounts, Activity Log) simply ran off the edge with
   no way to reach them. Scroll the strip instead of wrapping it: wrapping would
   double the height of a sticky header on the screen with the least room. */
.admin-tab-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                 /* the tabs are self-evidently scrollable */
}
.admin-tab-bar::-webkit-scrollbar { display: none; }
.admin-tab-bar .admin-tab-btn {
  flex-shrink: 0;                        /* or they compress to unreadable slivers */
  white-space: nowrap;                   /* never break "Live Chat" across lines */
}

/* ── Reports: filter bar ──────────────────────────────────────────────────── */
.report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #1e293b;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.report-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 120px;
}
.report-filter-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.report-filter-group input,
.report-filter-group select {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.83rem;
  padding: 8px 12px;
  transition: border-color 0.15s;
}
.report-filter-group input:focus,
.report-filter-group select:focus {
  border-color: #f59e0b;
  outline: none;
}
.report-filter-group input::placeholder { color: #475569; }

/* ── Reports: summary cards ───────────────────────────────────────────────── */
.report-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.report-stat {
  background: #1e293b;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.rs-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.1;
}
.rs-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 1100px) { .report-summary { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  600px) { .report-summary { grid-template-columns: repeat(2, 1fr); } }

/* ── Hamburger nav button ─────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV COLLAPSE POINT.
   Measured by binary search, not guessed. The six-item row plus the 306px
   wordmark and 48px of container padding needs 920px of document width:
     910px viewport -> scrollWidth 920, overflows by 10
     930px viewport -> scrollWidth 920, fits
   The hamburger used to appear only below 640px, so every width from 641px to
   ~930px rendered a nav that could not fit — at 691px it pushed the page 160px
   wider than the viewport and produced a horizontal scrollbar on tablets.
   960px is the collapse point: ~40px of headroom over the measured 920px, which
   absorbs scrollbar width and cross-platform font metrics. Do not lower it to
   900px to match the hero breakpoint — that was tried and still overflowed. */
@media (max-width: 960px) {
  .nav-login-prefix { display: none; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 12px 24px 20px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 250;
    /* The base .nav-links is a centred ROW; as a dropdown it is a column, and
       the inherited align-items:center shrank every row to its text width —
       which squeezed the Login button until its label overflowed its own
       padding, and left the separators as short stubs under each label. */
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
    display: block !important;
    text-align: center;
  }
  .nav-links a.btn-nav {
    margin-top: 10px;
    text-align: center;
    border-bottom: none;
    border-radius: 8px;
    padding: 12px 22px;
  }
}

/* NAVBARS WITHOUT A HAMBURGER (checkout, privacy, terms).
   Those three carry a one- or two-item nav and no toggle button, so the
   collapse rules above hid their links with nothing able to reopen them — they
   have had no navigation at all on phones. They are short enough never to need
   a dropdown, so keep them inline and let them wrap instead.
   Scoped with :has() so the collapse above stays untouched for the 30 pages
   that do have a hamburger. Where :has() is unsupported this block is simply
   dropped, leaving today's behaviour rather than breaking those pages. */
.navbar:not(:has(.hamburger)) .nav-links {
  display: flex;
  position: static;
  /* MUST reset direction and alignment, not just display/position: the collapse
     block above turns every .nav-links into a stretched COLUMN for the dropdown.
     Without these two the links here stacked vertically and the Login button
     stretched to the full width of the header. */
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  padding: 0;
  background: none;
  border-top: 0;
  box-shadow: none;
}
.navbar:not(:has(.hamburger)) .nav-links a {
  padding: 0;
  border-bottom: 0;
  font-size: 0.95rem;
}
.navbar:not(:has(.hamburger)) .nav-links a.btn-nav {
  margin-top: 0;
  padding: 9px 22px;
}

/* On a phone the brand (200px) plus these links (~160px) plus 48px of padding
   does not fit 375px. Left to itself the nav shrank and its two items stacked
   BESIDE the brand, which reads as a broken header rather than a choice.
   So stack it properly instead: brand on its own row, links centred beneath.
   Nothing is hidden — these pages have no hamburger to reveal it again. */
@media (max-width: 640px) {
  .navbar:not(:has(.hamburger)) .container {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  .navbar:not(:has(.hamburger)) .nav-links {
    width: 100%;
    justify-content: center;
    flex-shrink: 0;      /* never squeeze the row into a stack again */
  }
}

/* ── Testimonials carousel ────────────────────────────────────────────────── */
.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonials-track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tc-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 0;
  font-family: inherit;
}
.tc-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.tc-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 22px;
  font-size: 4.5rem;
  color: var(--gray-200);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}
.testimonial-stars { font-size: 1rem; color: var(--accent); margin-bottom: 8px; letter-spacing: 1px; }
.testimonial-text {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-top: 16px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.testimonial-meta { font-size: 0.8rem; color: var(--gray-400); margin-top: 1px; }

@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 600px) {
  .testimonial-card { flex: 0 0 100%; }
  .tc-btn { width: 36px; height: 36px; font-size: 1.4rem; }
}

/* ── Multi-box discount callout ───────────────────────────────────────────── */
.multibox-callout {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  padding: 20px 28px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  flex-wrap: wrap;
}
.multibox-callout .mc-icon { font-size: 2rem; flex-shrink: 0; }
.multibox-callout h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.multibox-callout p { font-size: 0.88rem; color: #93c5fd; margin: 0; }
.multibox-callout a {
  margin-left: auto;
  background: var(--accent);
  color: #0a1628;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.multibox-callout a:hover { background: #fbbf24; color: #0a1628; }

/* ── Insurance upsell (checkout) ──────────────────────────────────────────── */
.insurance-upsell {
  background: #fffbeb;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.insurance-upsell label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.insurance-upsell input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.insurance-upsell .ins-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.insurance-upsell .ins-desc {
  font-size: 0.81rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.liability-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #7f1d1d;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Referral code input (checkout) ───────────────────────────────────────── */
.referral-group { margin-top: 14px; }
.referral-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 5px;
}
.referral-group input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.referral-group input:focus { outline: none; border-color: var(--primary); }

/* ── 120-day countdown banner (dashboard) ─────────────────────────────────── */
.countdown-banner {
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
}
.countdown-banner.earned {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #6ee7b7;
}
.countdown-icon { font-size: 1.8rem; flex-shrink: 0; }
.countdown-text h4 { font-size: 0.92rem; font-weight: 700; color: #1e3a8a; margin-bottom: 2px; }
.countdown-banner.earned .countdown-text h4 { color: #065f46; }
.countdown-text p { font-size: 0.83rem; color: #1d4ed8; margin: 0; line-height: 1.4; }
.countdown-banner.earned .countdown-text p { color: #047857; }
.countdown-pill {
  margin-left: auto;
  background: #3b82f6;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.countdown-banner.earned .countdown-pill { background: #10b981; }

/* ── Referral card (dashboard) ────────────────────────────────────────────── */
.referral-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  padding: 20px 24px;
  color: white;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.referral-card-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.referral-card-text p { font-size: 0.83rem; color: #93c5fd; margin: 0; }
.referral-code-box { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.referral-code {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
}
.btn-copy-ref {
  background: var(--accent);
  color: #0a1628;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-copy-ref:hover { background: #fbbf24; }

/* ── Admin customer-list filter bar ──────────────────────────────────────── */
.customer-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.customer-filter-bar select {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-family: inherit;
  cursor: pointer;
}
.customer-filter-bar select:focus { outline: none; border-color: #f59e0b; }

/* ── Admin table column filter row ───────────────────────────────────────── */
.col-filter-row th {
  background: #111d33;
  padding: 7px 10px;
  border-top: 1px solid #1e3a5f;
}
.col-filter-row input[type="text"],
.col-filter-row input[type="number"],
.col-filter-row input[type="date"],
.col-filter-row select {
  width: 100%;
  box-sizing: border-box;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: inherit;
}
.col-filter-row input:focus,
.col-filter-row select:focus { outline: none; border-color: #f59e0b; }
.col-filter-row input[type="date"] { color-scheme: dark; min-width: 0; }
.col-filter-clear {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.col-filter-clear:hover { background: #334155; color: #e2e8f0; }

/* ── Forgot password link (login) ─────────────────────────────────────────── */
.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  color: var(--primary);
  margin-top: -8px;
  margin-bottom: 14px;
  cursor: pointer;
}
.forgot-link:hover { text-decoration: underline; color: var(--primary-dark); }

/* ── Popular badge mobile fix ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .popular-badge { font-size: 0.65rem; padding: 3px 10px; top: -11px; }
}

/* ── Protection / Coverage section ───────────────────────────────────────── */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.protection-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 18px;
  padding: 32px 26px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.protection-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.protection-card.prot-featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eff6ff 0%, var(--white) 50%);
}

.prot-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.prot-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.protection-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.prot-price {
  margin: 14px 0 18px;
}

.prot-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.prot-price .per {
  font-size: 0.88rem;
  color: var(--gray-400);
}

.prot-price .included {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--success);
}

.prot-coverage {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.prot-coverage-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.prot-coverage-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.prot-coverage-sub {
  font-size: 0.76rem;
  color: var(--gray-600);
}

.prot-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  flex: 1;
}

.prot-features li {
  padding: 7px 0;
  font-size: 0.87rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.prot-features li:last-child { border-bottom: none; }

.prot-features li .pf-icon {
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 1px;
}

.prot-features li .pf-icon.ok  { color: var(--success); }
.prot-features li .pf-icon.no  { color: var(--gray-300); }

.btn-prot {
  display: block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-prot:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.protection-card.prot-featured .btn-prot {
  background: var(--accent);
  color: #0a1628;
}

.protection-card.prot-featured .btn-prot:hover {
  background: var(--accent-dark);
  color: #0a1628;
}

.prot-note {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.82rem;
  margin-top: 24px;
  line-height: 1.6;
}

@media (max-width: 900px) { .protection-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ── Insurance tier selector (checkout) ───────────────────────────────────── */
.ins-tier-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.ins-tier-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
  display: block;
}

.ins-tier-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.ins-tier-option:hover { border-color: var(--primary); background: #f8faff; }

.ins-tier-option.selected {
  border-color: var(--primary);
  background: #eff6ff;
}

.ins-tier-option input[type=radio] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.ins-tier-info { flex: 1; }

.ins-tier-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}

.ins-tier-coverage {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 1px;
}

.ins-tier-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  white-space: nowrap;
}

.ins-tier-price.free { color: var(--success); }

/* ── Landing page shared styles ──────────────────────────────────────────── */
.lp-list { list-style:none; padding:0; max-width:760px; margin:24px auto 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.lp-list li { background:#fff; padding:13px 18px; border-radius:10px; border-left:3px solid var(--accent); font-size:0.95rem; color:var(--gray-800); line-height:1.5; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.lp-list li strong { color:var(--primary); }
.cta-band { background:linear-gradient(140deg,#0a1628 0%,#1e3a5f 55%,#2a5280 100%); color:#fff; text-align:center; padding:66px 20px; }
.cta-band h2 { color:#fff; font-size:2rem; font-weight:800; margin-bottom:12px; }
.cta-band p { color:#93c5fd; max-width:600px; margin:0 auto 26px; font-size:1.08rem; }
.lp-pricehint { display:inline-block; margin-top:10px; color:#93c5fd; font-size:0.95rem; }

/* ═══ PHONE HEADER FIT ══════════════════════════════════════════════════════
   THE ONE PLACE EVERY HEADER WORDMARK SHRINKS FOR PHONES.

   Adding a header? Add its selector HERE. Do not write a new media query next
   to it — that is exactly how this bug reached three headers independently
   (.navbar, .dash-nav, .admin-brand), each discovered and fixed only when
   somebody happened to look at that page on a phone.

   WHY IT LIVES AT THE END OF THE FILE: `.brand` and `.admin-brand` have equal
   specificity (0,1,0), so source order decides. This block has to come after
   .admin-brand's own font-size or admin would keep its desktop size.

   WHY THERE IS STILL A .navbar SELECTOR: media queries add no specificity, and
   the desktop rule `.navbar .brand svg` (0,2,1) outranks `.brand svg` (0,1,1).
   A shared rule alone would silently lose to it.

   The measurement behind 1.05rem: at desktop size the wordmark alone is 250px;
   add the logo, a 10px gap and 48px of container padding and the row needs
   ~330px, which already overflowed a 360px Galaxy. 1.05rem takes the text to
   ~202px, leaving ~30px of headroom at 360px. */
@media (max-width: 640px) {
  .brand             { font-size: 1.05rem; }
  /* Admin runs smaller: its bar also carries a badge plus role and user tags. */
  .admin-brand       { font-size: 0.92rem; }
  .brand svg         { width: 32px; height: 32px; }
  .navbar .brand svg { width: 38px; height: 38px; }
}
