/* ============================================================
   BigEZ Wireless — global styles
   Brand palette: blue / red / green over white surfaces.
   Verified WCAG AA at body sizes:
     blue  #1e40af on #fff = 8.59:1
     red   #dc2626 on #fff = 4.83:1
     green #15803d on #fff = 4.66:1   (used for body text/icons)
     muted #4d5969 on #fff = 6.32:1   (was 5f6b7a — still fine but
                                       slightly bumped for safety)
   ============================================================ */

/* Self-hosted heading weight that matches the BigEZ artwork better
   than Arial Black on systems that don't ship it (Linux / older
   Windows). Falls back to Arial Black → Impact → sans-serif. */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");

:root {
  --blue:        #1e40af;
  --blue-2:      #1d4ed8;
  --blue-soft:   #eaf0fb;
  --blue-deep:   #0a1f44;
  --red:         #dc2626;
  --red-2:       #ef4444;
  --red-soft:    #fde8e8;
  /* Slightly darker green for AA contrast when used as body text. */
  --green:       #15803d;
  --green-2:     #16a34a;
  --green-soft:  #e7f7ee;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fc;
  --bg-soft-2:   #eef2f8;
  --card:        #ffffff;
  --ink:         #0c1424;
  --ink-2:       #1a2540;
  --muted:       #4d5969;
  --muted-2:     #93a1bd;
  --line:        #e6eaf2;
  --line-2:      #d3dbeb;
  --shadow-sm:   0 1px 3px rgba(11, 26, 56, 0.06);
  --shadow:      0 6px 24px rgba(11, 26, 56, 0.08);
  --shadow-lg:   0 14px 40px rgba(11, 26, 56, 0.12);
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   18px;
  --wireless-font: "Archivo Black", "Arial Black", "Helvetica Neue", Impact, sans-serif;

  /* Three-zone theme — used on the home page.  Inner pages use a
     plain white surface for content sections and only the hero
     borrows --zone-top. */
  --zone-top:  #e6ecf3;       /* slightly dark grey — header → end of hero */
  --zone-mid:  #0a1f44;       /* dark blue — value blocks + how-scheduling */
  --zone-foot: #f3f5f9;       /* light off-white — site footer */
  --on-mid:    #d6dceb;       /* body color on dark blue */
  --on-foot:   var(--muted);  /* body color on the light footer */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(30, 64, 175, .35);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .55em; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 36px; }
@media (max-width: 520px) { .container { padding: 0 22px; } }

/* ===========================================================
   LOCATIONS ANNOUNCEMENT STRIP
   Slim green band above the header on the home page.
   =========================================================== */
.locations-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  background: var(--green);
  color: #fff !important;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 80;
  transition: background .15s ease;
}
.locations-strip:hover { background: var(--green-2); text-decoration: none; }
.locations-strip strong { font-weight: 800; letter-spacing: .01em; }
.locations-strip .loc-icon svg { width: 18px; height: 18px; display: block; }
.locations-strip .loc-arrow { font-weight: 800; padding-left: 4px; }
@media (max-width: 520px) {
  .locations-strip { font-size: .82rem; padding: 8px 14px; gap: 8px; }
  .locations-strip .loc-icon svg { width: 16px; height: 16px; }
}

/* Skip-to-content (a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;       /* extra breathing room from the container edge */
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
/* Combined BigEZ Wireless mark — cropped to content (~5:1 aspect),
   so a smaller height renders the same visible logo. */
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}
@media (max-width: 900px) { .brand-logo { height: 40px; max-width: 240px; } }
@media (max-width: 720px) { .brand-logo { height: 36px; max-width: 210px; } }
@media (max-width: 520px) { .brand-logo { height: 32px; max-width: 180px; } }
@media (max-width: 380px) { .brand-logo { height: 28px; max-width: 150px; } }

.spacer { flex: 1; }

/* Green CALL button in the header — easy thumb target on mobile. */
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff !important;
  font-weight: 800;
  font-size: .98rem;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: background .15s ease, transform .04s ease;
}
.nav-call:hover  { background: var(--green-2); text-decoration: none; }
.nav-call:active { transform: translateY(1px); }
.nav-call-text   { display: inline-flex; align-items: baseline; gap: 6px; }
.nav-call-label  { font-weight: 800; }
/* Phone number alongside "Call" on desktop; hide on phones to keep
   the button thumb-sized. The "Call" label always stays visible. */
@media (max-width: 720px) {
  .nav-call           { padding: 10px 14px; }
  .nav-call-num       { display: none; }
}
/* Backwards compat — admin header still uses .nav-phone for the back-link */
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue) !important; font-weight: 700; font-size: .98rem;
  padding: 6px 10px; border-radius: 10px;
}
.nav-phone:hover { background: var(--bg-soft); text-decoration: none; }

/* Hamburger button */
.nav-toggle {
  width: 44px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--blue); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Dropdown menu */
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 70;
}
.nav-menu.open { display: flex; }
.nav-item {
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-item:hover { background: var(--bg-soft); text-decoration: none; }
.nav-item.active { background: var(--bg-soft); }

/* Color-coded primary entries — must match the home-screen CTA colors. */
.nav-item.brand-red   { color: var(--red);   font-weight: 800; }
.nav-item.brand-blue  { color: var(--blue);  font-weight: 800; }
.nav-item.brand-green { color: var(--green); font-weight: 800; }
/* Use a SVG icon instead of a colored dot when an icon is present. */
.nav-item.has-icon .nav-icon {
  width: 18px; height: 18px; flex-shrink: 0;
}
.nav-item.brand-red:not(.has-icon)::before,
.nav-item.brand-blue:not(.has-icon)::before,
.nav-item.brand-green:not(.has-icon)::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  display: inline-block;
}
.nav-item.brand-red:hover    { background: var(--red-soft);   color: var(--red); }
.nav-item.brand-blue:hover   { background: var(--blue-soft);  color: var(--blue); }
.nav-item.brand-green:hover  { background: var(--green-soft); color: var(--green); }
.nav-item.brand-red.active   { background: var(--red-soft);   color: var(--red); }
.nav-item.brand-blue.active  { background: var(--blue-soft);  color: var(--blue); }
.nav-item.brand-green.active { background: var(--green-soft); color: var(--green); }

.nav-pill {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}

/* ===== Admin header ===== */
.admin-nav { flex-wrap: wrap; row-gap: 8px; }
.admin-pill { white-space: nowrap; }
.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--blue) !important;
  font-weight: 700;
  font-size: .98rem;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.admin-back:hover { background: var(--bg-soft); text-decoration: none; }
.admin-back-short { display: none; }
@media (max-width: 520px) {
  .admin-back        { padding: 7px 10px; font-size: .92rem; }
  .admin-back-full   { display: none; }
  .admin-back-short  { display: inline; }
  .admin-pill        { font-size: .72rem; padding: 3px 8px; }
}
@media (max-width: 380px) {
  .admin-pill        { display: none; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .04s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .87rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-blue    { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); color: #fff; }
.btn-green   { background: var(--green-2); color: #fff; }
.btn-green:hover { background: var(--green); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost   { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-2); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-2); color: #fff; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background: var(--zone-top);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
}
.hero-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 4px;
}
.hero-logo img {
  height: 160px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(11, 26, 56, .10));
}
@media (max-width: 900px) { .hero-logo img { height: 130px; } }
@media (max-width: 720px) { .hero-logo img { height: 100px; } .hero { padding: 24px 0 28px; } }
@media (max-width: 460px) { .hero-logo img { height: 76px; } }

.hero-tagline {
  font-size: 1.55rem;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.hero-tagline .accent-red   { color: var(--red); }
.hero-tagline .accent-blue  { color: var(--blue); }
.hero-tagline .accent-green { color: var(--green); }
.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 18px;
}

/* Inner-page hero variant — left aligned */
.hero-page {
  text-align: left;
  padding: 48px 0 36px;
}
.hero-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 12px 0 10px;
}
@media (max-width: 720px) { .hero-page h1 { font-size: 1.9rem; } }
.hero-page .lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 0 18px;
}
.hero-page .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
  margin-bottom: 1em;
}

/* Stacked CTAs — Schedule on top, Marketplace under it.
   Both share the same width so the column reads as a clean pair. */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 0 auto 14px;
  width: 100%;
  max-width: 360px;
}
.hero-buttons .btn { width: 100%; }
.hero-trust-row {
  display: inline-flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}
.hero-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-row span::before { content: "✓"; color: var(--green); font-weight: 900; }

/* Boost Mobile mark in the hero — transparent logo only. */
.hero-boost {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}
.hero-boost img {
  height: 60px;
  width: auto;
}
@media (max-width: 520px) { .hero-boost img { height: 46px; } }

.btn-cart svg, .btn-cal svg { width: 20px; height: 20px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-2);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  70%      { box-shadow: 0 0 0 7px rgba(22,163,74,0); }
}

/* ===========================================================
   SECTIONS
   =========================================================== */
section { padding: 64px 0; }
section.tight { padding: 36px 0; }
section.alt { background: var(--bg-soft); }
section .subtitle { color: var(--muted); margin-top: -.4em; margin-bottom: 1.8em; max-width: 720px; font-size: 1.05rem; }

/* ===========================================================
   ZONE-MID — dark blue band used on the home page
   =========================================================== */
.zone-mid {
  background: var(--zone-mid);
  color: var(--on-mid);
}
.zone-mid h1, .zone-mid h2, .zone-mid h3, .zone-mid h4 { color: #fff; }
.zone-mid p, .zone-mid li, .zone-mid ol { color: var(--on-mid); }
.zone-mid strong { color: #fff; }
.zone-mid .muted { color: #91a0bd; }
.zone-mid a { color: #cfe0ff; }
.zone-mid a:hover { color: #fff; }
.zone-mid .btn-ghost {
  color: var(--on-mid);
  border: 1px solid rgba(255,255,255,.18);
}
.zone-mid .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
/* The popular-repairs card stays light against the dark band so it
   still pops; cards keep their own color stack.  We deliberately
   exempt buttons from the link-color override so .btn-blue stays
   white-on-blue inside cards. */
.zone-mid .card { color: var(--ink); }
.zone-mid .card h3, .zone-mid .card h4 { color: var(--ink); }
.zone-mid .card p, .zone-mid .card li { color: var(--ink); }
.zone-mid .card a:not(.btn) { color: var(--blue); }
.zone-mid .card .btn-outline { color: var(--ink); }

/* Value blocks live INSIDE zone-mid but have white card backgrounds.
   Without these overrides the global zone-mid h3 → #fff rule would
   leave their headings invisible on white. */
.zone-mid .value-block h3 { color: var(--ink); }
.zone-mid .value-block p  { color: var(--muted); }

/* ===========================================================
   VALUE BLOCKS (home page)
   =========================================================== */
.value-stack {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.value-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, transform .12s ease;
}
.value-block:hover { border-color: var(--line-2); transform: translateY(-1px); }
.value-block .vb-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
}
.value-block .vb-icon svg { width: 28px; height: 28px; }
.value-block .vb-icon.blue  { background: var(--blue-soft);  color: var(--blue);  }
.value-block .vb-icon.red   { background: var(--red-soft);   color: var(--red);   }
.value-block .vb-icon.green { background: var(--green-soft); color: var(--green); }
.value-block h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.value-block p { color: var(--muted); font-size: .96rem; margin: 0; line-height: 1.5; }
.value-block .vb-cta {
  white-space: nowrap;
  min-width: 160px;
  justify-content: center;
}
@media (max-width: 640px) {
  .value-block {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    padding: 18px 18px;
  }
  .value-block .vb-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .value-block .vb-cta {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 8px;
  }
}

/* ===========================================================
   GRID + CARDS
   =========================================================== */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card.elevated { box-shadow: var(--shadow); }

/* ===========================================================
   TABLES
   =========================================================== */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; }
th { background: var(--bg-soft); color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }

/* ===========================================================
   FORMS
   =========================================================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
label .req { color: var(--red); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="time"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, .18);
}
textarea { min-height: 110px; resize: vertical; }
.help { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.field-error { color: var(--red); font-size: .85rem; margin-top: 6px; font-weight: 600; }

.alert { padding: 13px 16px; border-radius: 10px; font-size: .96rem; margin-bottom: 14px; }
.alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

/* ===========================================================
   BADGES
   =========================================================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge.pending        { background: #fff7ed; color: #9a3412; }
.badge.accepted       { background: #eff6ff; color: #1d4ed8; }
.badge.awaiting_parts { background: #fefce8; color: #854d0e; }
.badge.in_progress    { background: #fef3c7; color: #92400e; }
.badge.completed      { background: #ecfdf5; color: #065f46; }
.badge.picked_up      { background: #f3f4f6; color: #374151; }
.badge.cancelled      { background: #fef2f2; color: #991b1b; }
.badge.gray           { background: #f3f4f6; color: #374151; }

/* 4-digit customer-facing track code — used in admin queue + modal. */
.track-code {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .82rem;
}
.track-code.lg { font-size: 1.05rem; padding: 4px 12px; border-radius: 8px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--zone-foot);
  color: var(--on-foot);
  padding: 56px 0 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.site-footer h4 { color: var(--ink); font-size: .92rem; margin: 0 0 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.site-footer a { color: var(--ink-2); display: block; padding: 5px 0; font-size: .96rem; }
.site-footer a:hover { color: var(--blue); text-decoration: none; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }

.footer-brand p { color: var(--muted); max-width: 380px; margin: 14px 0 10px; line-height: 1.55; }
/* The footer surface itself is light, so the logo doesn't need a chip. */
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.footer-logo-chip img,
.footer-brand-img {
  height: 56px;
  width: auto;
  max-width: 360px;
  display: block;
  object-fit: contain;
}
@media (max-width: 720px) {
  .footer-logo-chip img,
  .footer-brand-img { height: 46px; max-width: 280px; }
}
.footer-phone {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue) !important;
  letter-spacing: -.01em;
  margin-top: 8px;
  padding: 0 !important;
}
.footer-phone:hover { color: var(--blue-2) !important; text-decoration: underline; }
.footer-hours { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* Boost Mobile mark in footer — sits directly on the light surface. */
.footer-boost {
  margin-top: 14px;
  display: inline-flex;
}
.footer-boost img { height: 52px; width: auto; max-width: 220px; display: block; object-fit: contain; }
@media (max-width: 720px) { .footer-boost img { height: 44px; max-width: 180px; } }

.footer-col h4 { margin-bottom: 12px; }

.footer-bottom {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
  font-size: .85rem; color: var(--muted);
}
.footer-legal { flex: 1; }
.footer-marks { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.footer-staff {
  display: inline-block !important;
  padding: 4px 10px !important;
  font-size: .78rem !important;
  color: var(--muted) !important;
}
.footer-staff:hover { color: var(--blue) !important; }

/* ===========================================================
   MARKETPLACE
   =========================================================== */
.product-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--bg-soft-2) center/cover no-repeat;
  position: relative;
}
.product-card .thumb .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--muted-2); font-weight: 700;
}
.product-card .thumb .badge-corner {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,.94);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .title { font-weight: 800; font-size: 1rem; color: var(--ink); }
.product-card .price { color: var(--red); font-weight: 800; font-size: 1.15rem; }
.product-card .meta { color: var(--muted); font-size: .85rem; }
.product-card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

.section-toggle { display: inline-flex; gap: 6px; background: var(--bg-soft); padding: 4px; border-radius: 999px; }

/* Filter row above the marketplace grid */
.filter-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.filter-row label { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.filter-row select, .filter-row input[type="text"] { padding: 8px 10px; font-size: .92rem; }
.filter-row-reset { align-self: end; }
@media (max-width: 800px) {
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row-reset { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .filter-row { grid-template-columns: 1fr; }
}
.section-toggle button {
  border: none; background: transparent;
  padding: 8px 16px; border-radius: 999px;
  cursor: pointer; font-weight: 700; color: var(--ink);
  font-family: inherit;
}
.section-toggle button.active { background: #fff; box-shadow: var(--shadow-sm); color: var(--blue); }

/* ===========================================================
   EMPTY STATES
   =========================================================== */
.empty {
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 36px 24px;
}
.empty h3 { color: var(--ink); margin-bottom: .4em; }
.empty .empty-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.empty .actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* ===========================================================
   ADMIN
   =========================================================== */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; height: max-content; box-shadow: var(--shadow-sm); }
.admin-sidebar a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 700; font-size: .95rem;
}
.admin-sidebar a:hover { background: var(--bg-soft); text-decoration: none; }
.admin-sidebar a.active { background: var(--blue); color: #fff; }

.repair-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 130px 100px;
  gap: 12px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .repair-row { grid-template-columns: 1fr 1fr; } }
.repair-row.deleted { opacity: .55; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 26, 56, .6); display: none; z-index: 100; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 620px;
  padding: 24px; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow: auto;
}
.modal h3 { margin-top: 0; }
.modal .close {
  float: right; background: transparent; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--muted);
}

/* Italic asterisked note under a CTA — used on the home page in
   place of a secondary button when we just need a quick caveat. */
.other-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 540px;
}
.zone-mid .other-note { color: var(--on-mid); }

/* ===========================================================
   SCHEDULE — form section headers + live estimate panel
   The form section headers all share a left-bar treatment so the
   estimate panel reads as one of the row, not a foreign banner.
   =========================================================== */
#scheduleForm h3 {
  border-left: 4px solid var(--blue);
  padding-left: 12px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
}
#scheduleForm h3.mt-3 { margin-top: 28px; }

.estimate-card {
  background: var(--blue-soft);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.estimate-card.muted {
  background: var(--bg-soft);
  border-left-color: var(--line-2);
}
.estimate-label { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.estimate-value { font-size: 1.55rem; font-weight: 900; color: var(--blue); letter-spacing: -.01em; line-height: 1.1; }
.estimate-value.quote { color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.estimate-detail { color: var(--muted); font-size: .85rem; margin-top: 4px; line-height: 1.4; }
#estimateHint { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* "Other / not listed" branch fields */
#otherFields {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--bg-soft);
}
#otherFields h4 { margin: 0 0 10px; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ===========================================================
   ADMIN — settings panel
   =========================================================== */
.settings-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.settings-section h3 { margin-top: 0; }
.settings-section .row { flex-wrap: wrap; row-gap: 8px; }
.settings-section .row .spacer { display: none; }
.settings-section > .row { gap: 8px; }
@media (min-width: 720px) {
  .settings-section > .row .spacer { display: block; }
}

/* Legacy fallback (kept so old screens don't break) */
.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 80px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child { border-bottom: none; }
.settings-row.head { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.settings-row input, .settings-row select { padding: 8px 10px; font-size: .92rem; }
@media (max-width: 720px) {
  .settings-row { grid-template-columns: 1fr; }
  .settings-row.head { display: none; }
}

/* Stores — one card per store, Remove button at bottom of card */
.store-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--bg-soft);
}
.store-card-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.store-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
@media (max-width: 600px) { .store-card-fields { grid-template-columns: 1fr; } }
.store-card-fields label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.store-card-fields input {
  width: 100%;
  padding: 9px 11px;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.store-card-fields input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.store-card-foot {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* Service picker + per-device pricing grid */
.svc-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
@media (max-width: 600px) { .svc-toolbar { grid-template-columns: 1fr; } }
.svc-toolbar select { width: 100%; padding: 11px 12px; font-size: 1rem; }
.svc-toolbar .toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.svc-meta {
  background: var(--blue-soft);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: .9rem;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.svc-meta strong { color: var(--blue); }
.svc-meta select {
  padding: 6px 10px;
  font-size: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.device-price-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.device-price-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.device-price-row:last-child { border-bottom: none; }
.device-price-row .device-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.device-price-row .device-type-pill {
  display: inline-block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.device-price-row .price-input-wrap {
  position: relative;
}
.device-price-row .price-input-wrap::before {
  content: "$";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
  pointer-events: none;
}
.device-price-row input {
  width: 100%;
  padding: 9px 12px 9px 22px;
  font-size: .95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.device-price-row input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
@media (max-width: 520px) {
  .device-price-row { grid-template-columns: 1fr 110px; padding: 10px 12px; }
}

/* Device list manager (modal contents) */
.device-mgr-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 520px) { .device-mgr-toolbar { grid-template-columns: 1fr; } }
.device-mgr-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 80px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.device-mgr-row:last-child { border-bottom: none; }
.device-mgr-row input,
.device-mgr-row select {
  width: 100%;
  padding: 7px 9px;
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
@media (max-width: 600px) {
  .device-mgr-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .device-mgr-row > .device-mgr-type { grid-column: 1 / -1; }
  .device-mgr-row > .device-mgr-rm   { grid-column: 1 / -1; justify-self: end; }
}

/* ===========================================================
   THANK-YOU PAGE
   =========================================================== */
.thanks-card {
  max-width: 620px; margin: 32px auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; text-align: center; box-shadow: var(--shadow);
}
.thanks-card .check {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid; place-items: center;
  color: var(--green); font-size: 2.4rem; font-weight: 900;
}
.thanks-card .ref {
  display: inline-block;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
  margin-top: 14px;
  border: 1px solid var(--line);
}

/* 4-digit track-code callout used on the thanks page. */
.code-callout {
  margin: 18px auto 4px;
  background: var(--blue-soft);
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 380px;
  text-align: left;
}
.code-callout-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.code-callout-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: .15em;
  color: var(--blue);
  line-height: 1.1;
  margin: 4px 0 6px;
}
.code-callout-hint { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.code-callout-hint a { color: var(--blue); }

/* ===========================================================
   UTIL
   =========================================================== */
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.tag {
  display: inline-block; background: var(--bg-soft);
  color: var(--blue); padding: 4px 12px;
  border-radius: 999px; font-size: .82rem; font-weight: 700;
}
