/* ============================================================
   linea LED — Warranty Claim Hub
   Design tokens pulled from the brand logo:
   charcoal grey body copy, signal-orange accent, clean geometric type.
   The signature element is the "LED strip" — a literal row of glowing
   dots used as the site's status/progress motif throughout.
   ============================================================ */

:root {
  --ink: #232426;
  --charcoal: #4a4b4d;
  --charcoal-soft: #6b6c6e;
  --accent: #f2790a;
  --accent-dark: #c25e04;
  --accent-light: #ffab3d;
  --accent-soft: #fde3bd;
  --bg: #eceef1;
  --panel: #ffffff;
  --border: #dedfe2;
  --muted: #83848a;
  --success: #1f8348;
  --success-soft: #d9f0e2;
  --danger: #cf3838;
  --danger-soft: #fadada;
  --progress: #1d6fb8;
  --progress-soft: #d8e9fa;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 6px rgba(20, 20, 22, 0.06), 0 14px 36px rgba(20, 20, 22, 0.12);
  --shadow-lg: 0 10px 20px rgba(20, 20, 22, 0.12), 0 28px 70px rgba(20, 20, 22, 0.22);
  --gradient-accent: linear-gradient(135deg, #ffab3d 0%, #f2790a 50%, #c25e04 100%);
  --gradient-ink: linear-gradient(160deg, #303134 0%, #1a1b1d 100%);
  --gradient-success: linear-gradient(135deg, #3fb579 0%, #1f8348 100%);
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 6% 0%, rgba(242, 121, 10, 0.12), transparent 42%),
    radial-gradient(circle at 100% 8%, rgba(29, 111, 184, 0.08), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(31, 131, 72, 0.05), transparent 45%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- LED strip signature element ---------- */
.led-strip {
  display: flex;
  gap: 6px;
  align-items: center;
}
.led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c3d3f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.led-dot.lit {
  background: var(--accent);
  box-shadow: 0 0 6px 1px rgba(247, 148, 29, 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}
.led-dot.lit:nth-child(2) { animation-delay: 0.3s; }
.led-dot.lit:nth-child(3) { animation-delay: 0.6s; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .led-dot.lit { animation: none; }
}

/* ---------- Sticky header (topbar + nav stay visible while scrolling) ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--gradient-ink), url("../assets/bg-glow-thin.svg");
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: normal, screen;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  position: relative;
  z-index: 5;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gradient-accent);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .brand img {
  height: 36px;
  width: auto;
  background: #fff;
  padding: 6px 11px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 14px rgba(242, 121, 10, 0.45), 0 2px 8px rgba(0,0,0,0.25);
}
.topbar .brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6d6d7;
}
.topbar .status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #b9babb;
  font-family: var(--font-mono);
}

/* ---------- Customer Portal widget — deliberately separate from admin nav ---------- */
.cust-portal-widget { position: relative; margin-left: 4px; }
.cust-portal-btn {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(242, 121, 10, 0.35);
}
.cust-portal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  z-index: 200;
}
.cust-portal-dropdown.open { display: block; }
.cust-portal-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
}
.cust-portal-dropdown button:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Nav (numbered modules — this genuinely is a workflow sequence) ---------- */
.module-nav {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  box-shadow: 0 2px 10px rgba(49,50,52,0.04);
  position: relative;
  z-index: 4;
}
.module-nav button {
  border: none;
  background: transparent;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.module-nav button .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--charcoal-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  transition: all 0.15s ease;
}
.module-nav button:hover { color: var(--ink); }
.module-nav button.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.module-nav button.active .num {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(247, 148, 29, 0.4);
}

/* ---------- Layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.module { display: none; }
.module.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.module-head { margin-bottom: 20px; }
.module-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.module-head h1 {
  font-family: var(--font-display);
  font-size: 27px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.module-head p { margin: 0; color: var(--charcoal-soft); font-size: 14.5px; }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(247, 148, 29, 0.48); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--charcoal); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--charcoal-soft); box-shadow: 0 2px 8px rgba(49,50,52,0.06); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Photo upload ---------- */
.photo-drop {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.photo-drop:hover { border-color: var(--accent); color: var(--accent-dark); }
.photo-previews { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.photo-previews img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border);
}

/* ---------- Stat cards ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border);
}
.stat-card .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .value { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-top: 4px; }
.stat-card.pending::before { background: var(--gradient-accent); }
.stat-card.pending .value { color: var(--accent-dark); }
.stat-card.progress::before { background: var(--progress); }
.stat-card.progress .value { color: var(--progress); }
.stat-card.resolved::before { background: var(--success); }
.stat-card.resolved .value { color: var(--success); }

/* ---------- Vivid stat cards (full-color, icon-led — dashboard "HD" style) ---------- */
.stat-card-vivid {
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease;
}
.stat-card-vivid:hover { transform: translateY(-2px); }
.stat-card-vivid .stat-icon {
  font-size: 20px; display: block; margin-bottom: 8px; opacity: 0.95;
}
.stat-card-vivid .value {
  font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1;
}
.stat-card-vivid .label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.88; margin-top: 4px; display: block;
}
.stat-card-vivid.blue   { background: linear-gradient(135deg, #2f8fe0, #1d6fb8); }
.stat-card-vivid.amber  { background: linear-gradient(135deg, #ffab3d, #d9770a); }
.stat-card-vivid.teal   { background: linear-gradient(135deg, #22b3c4, #0e7c86); }
.stat-card-vivid.green  { background: linear-gradient(135deg, #3fb579, #1f8348); }
.stat-card-vivid.red    { background: linear-gradient(135deg, #e6564f, #b93430); }
.stat-card-vivid.purple { background: linear-gradient(135deg, #9b6fe0, #6b3fc9); }
.stat-card-vivid.navy   { background: linear-gradient(135deg, #3d4a63, #232c3d); }

/* ---------- Table ---------- */
.table-toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.table-toolbar input, .table-toolbar select { max-width: 220px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; overflow-wrap: break-word; }
tbody tr:hover { background: #fafafa; }
thead th:last-child, tbody td:last-child { white-space: nowrap; }

/* Action buttons in a table row — always a clean side-by-side row, never
   an awkward cascade/overlap even when the column is narrow. */
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.row-actions select {
  font-size: 12px;
  padding: 5px 8px;
  min-width: 100px;
  max-width: 130px;
}

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
}
.badge.Pending { background: linear-gradient(135deg, #ffab3d, #d9770a); color: #fff; font-weight: 700; }
.badge.In-Progress { background: linear-gradient(135deg, #22b3c4, #0e7c86); color: #fff; font-weight: 700; }
.badge.Resolved { background: linear-gradient(135deg, #3fb579, #1f8348); color: #fff; font-weight: 700; }
.badge.In-Warranty { background: linear-gradient(135deg, #3fb579, #1f8348); color: #fff; font-weight: 700; }
.badge.Out-of-Warranty { background: linear-gradient(135deg, #e6564f, #b93430); color: #fff; font-weight: 700; }
.badge.Not-Found, .badge.Unknown-Dates { background: #d7d8da; color: var(--charcoal); font-weight: 700; }
tr.in-warranty-row { background: var(--success-soft); }
tr.in-warranty-row:hover { background: #d5edde; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Empty / loading states ---------- */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .icon { font-size: 28px; margin-bottom: 8px; }
.toast {
  position: fixed; bottom: 20px; right: 20px; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow);
  z-index: 100; max-width: 320px; display: none;
}
.toast.show { display: block; animation: fadein 0.2s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ---------- QR module ---------- */
.qr-output { text-align: center; padding: 20px; }
#qrCanvasWrap { display: inline-block; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }

/* ---------- Admin login gate ---------- */
.login-gate { max-width: 380px; margin: 60px auto; text-align: center; }
.login-gate .lock { font-size: 30px; margin-bottom: 10px; }

/* ---------- Warranty detail modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(49, 50, 52, 0.5);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-panel {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff;
}
.modal-body { padding: 20px; }
/* ---------- Detail card / rows — used in Claim Details, Warranty View,
   and the Track My Claim result. Global (not modal-scoped) so it works
   consistently wherever it's used. ---------- */
.detail-card {
  background: #fbfbfc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 16px;
  margin-top: 4px;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .k {
  color: var(--muted); font-size: 12px; flex-shrink: 0; padding-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.detail-row .v { text-align: right; font-weight: 600; color: var(--ink); max-width: 62%; }

/* On narrow screens (phones — where Track My Claim is mostly used), a rigid
   side-by-side layout squeezes long values into a tiny column and forces
   ugly wrapping. Stack label above value instead. */
@media (max-width: 420px) {
  .detail-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail-row .v { text-align: left; max-width: 100%; }
}

.detail-status-pill {
  text-align: center; margin: 2px 0 16px;
}
.detail-status-pill span {
  display: inline-block; padding: 7px 20px; border-radius: 20px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.detail-photos { margin-top: 16px; }
.detail-photos .hint { margin-bottom: 8px; }
.detail-photos img {
  border-radius: 8px; border: 1px solid var(--border); margin: 0 6px 6px 0; object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.import-summary {
  background: var(--success-soft); color: var(--success); border-radius: 8px; padding: 12px 14px; font-size: 13px;
}
.import-summary.has-errors { background: var(--accent-soft); color: var(--accent-dark); }
.import-errors { margin-top: 8px; font-size: 12px; color: var(--charcoal-soft); max-height: 120px; overflow-y: auto; }

/* ---------- Footer ---------- */
footer {
  text-align: center; padding: 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border);
}

/* ============================================================
   KIOSK MODE — shown on a phone right after scanning a QR code.
   Only the complaint form is visible: no top bar, no module nav.
   ============================================================ */
body.kiosk-mode .topbar,
body.kiosk-mode .module-nav,
body.kiosk-mode footer { display: none !important; }
body.kiosk-mode main { padding: 16px 14px 40px; max-width: 480px; }
body.kiosk-mode:has(#module-mydashboard.active) main { max-width: 1180px; }
body.kiosk-mode .module.active { display: block !important; }
body.kiosk-mode .module:not(.active) { display: none !important; }

.kiosk-header {
  display: none;
  text-align: center;
  background: var(--gradient-ink), url("../assets/bg-glow.svg");
  background-size: cover, cover;
  background-position: center, top;
  background-blend-mode: normal, screen;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.kiosk-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gradient-accent);
}
.kiosk-header img { height: 26px; background: #fff; padding: 5px 8px; border-radius: 7px; margin-bottom: 10px; }
.kiosk-header h1 {
  font-family: var(--font-display); font-size: 16px; letter-spacing: 0.03em; margin: 0; color: #fff;
  text-transform: uppercase;
}
body.kiosk-mode .kiosk-header { display: block; }

/* Form sections with icon badges, matching the "SCAN MATRIX DATA" style */
.form-section { margin-bottom: 18px; }
.form-section-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.form-section-head .icon-badge {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.icon-badge.green { background: var(--gradient-success); }
.icon-badge.orange { background: var(--gradient-accent); }
.form-section-head .title {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink);
}

/* Locked / scan-prefilled fields */
input.locked-field, textarea.locked-field {
  background: #f7f8f9; color: var(--charcoal); font-weight: 600; border-style: dashed;
}
input.locked-field::placeholder, textarea.locked-field::placeholder { font-weight: 400; color: var(--muted); }

.gps-box {
  display: flex; align-items: center; gap: 10px; background: var(--gradient-success); color: #fff;
  border-radius: 10px; padding: 12px 14px; font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  margin-top: 4px; box-shadow: 0 4px 14px rgba(31, 131, 72, 0.28);
}
.gps-box.pending { background: var(--accent-soft); color: var(--accent-dark); font-family: var(--font-body); font-weight: 500; box-shadow: none; }
.gps-box .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Individual photo slots */
.photo-slots { display: grid; grid-template-columns: 1fr; gap: 10px; }
.photo-slot {
  border: 1.5px dashed var(--border); border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  transition: border-color 0.15s ease;
}
.photo-slot:hover { border-color: var(--accent); }
.photo-slot .slot-label { font-size: 12.5px; font-weight: 600; color: var(--charcoal); }
.photo-slot .slot-label .req { color: var(--accent-dark); font-weight: 700; }
.photo-slot .slot-status { font-size: 12px; color: var(--muted); }
.photo-slot.filled { border-style: solid; border-color: var(--success); }
.photo-slot img.thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }

/* Fault diagnosis checkbox grid */
.fault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .fault-grid { grid-template-columns: 1fr; } }
.fault-option {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s ease;
  background: #fff;
}
.fault-option:hover { border-color: var(--accent-light); }
.fault-option input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.fault-option.checked {
  border-color: transparent; background: var(--gradient-accent); color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(242, 121, 10, 0.3);
}

/* ---------- QR module: auto-generated + searchable list ---------- */
.qr-hero {
  background: var(--gradient-ink), url("../assets/bg-glow.svg");
  background-size: cover, cover;
  background-position: center, top;
  background-blend-mode: normal, screen;
  border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 22px;
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.qr-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 0%, rgba(247,148,29,0.35), transparent 55%); }
.qr-hero h1 { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; position: relative; }
.qr-hero p { margin: 0; color: #c9cacb; font-size: 13.5px; position: relative; max-width: 520px; }

.qr-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
  transition: box-shadow 0.15s ease;
}
.qr-list-item:hover { box-shadow: 0 4px 14px rgba(49,50,52,0.08); }
.qr-list-item .info .id { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-dark); font-weight: 700; }
.qr-list-item .info .name { font-size: 13.5px; font-weight: 600; margin: 2px 0; }
.qr-list-item .info .addr { font-size: 12px; color: var(--muted); }

/* ---------- Full-screen submit success confirmation ---------- */
.success-screen {
  text-align: center;
  padding: 30px 10px 10px;
  animation: fadein 0.35s ease;
}
.success-check {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--gradient-success); color: #fff; font-size: 36px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(31, 131, 72, 0.35);
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-in { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-screen h2 {
  font-family: var(--font-display); font-size: 21px; color: var(--ink); margin: 0 0 8px;
}
.success-screen > p { color: var(--charcoal-soft); font-size: 14px; margin: 0 0 20px; }
.success-card {
  background: #fbfbfc; border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; text-align: left;
}
.success-row {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.success-row:last-child { border-bottom: none; }
.success-row span { color: var(--muted); }
.success-row strong { color: var(--ink); font-family: var(--font-mono); }

/* ---------- Photo slots — richer filled state ---------- */
.photo-slot.filled { border-style: solid; border-color: var(--success); background: var(--success-soft); }
