/* ============================================================
   PEKEMA Member Portal — Inspection Report History
   Theme: Navy & Gold (luxury / banking)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  /* Navy & Gold — luxury / banking theme */
  --gold: #c6a24a;
  --gold-light: #ddbe6e;
  --gold-dark: #a07e2e;
  --gold-rgb: 198, 162, 74;
  --gold-light-rgb: 221, 190, 110;
  --ink: #0a1e3f;            /* deep navy */
  --ink-2: #12294f;          /* navy raised */
  --ink-3: #1c3868;          /* navy highlight */
  --ink-rgb: 10, 30, 63;
  --ink-soft: #47536b;       /* body text on light */
  --heading: #0f1f3d;
  --line: #e4e8f0;           /* cool hairline */
  --line-2: #eef1f7;
  --paper: #f5f7fb;          /* cool off-white */
  --white: #ffffff;
  --muted: #7681a0;
  --success: #1f7a54;
  --danger: #c0392b;
  --warn: #b7791f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 63, .05), 0 1px 3px rgba(10, 30, 63, .08);
  --shadow-md: 0 6px 22px -6px rgba(10, 30, 63, .16);
  --shadow-lg: 0 24px 60px -12px rgba(10, 30, 63, .34);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth__brand {
  position: relative;
  background:
    linear-gradient(150deg, rgba(10, 30, 63, .93), rgba(10, 30, 63, .8)),
    url("assets/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.auth__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 400px at 80% 110%, rgba(198, 162, 74, .35), transparent 60%);
  pointer-events: none;
}
.auth__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.auth__logo img { width: 52px; height: 52px; }
.auth__logo b { font-size: 20px; letter-spacing: .5px; }
.auth__logo span { display: block; font-size: 11px; color: var(--gold-light); font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }

.auth__pitch { position: relative; z-index: 1; max-width: 460px; }
.auth__pitch h1 { font-family: var(--font-display); font-size: 42px; line-height: 1.1; font-weight: 700; letter-spacing: -.4px; }
.auth__pitch h1 em { color: var(--gold-light); font-style: normal; }
.auth__pitch p { margin-top: 18px; font-size: 16px; color: #cdd2dd; }
.auth__points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.auth__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #e6e9ef; }
.auth__points svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-light); }

.auth__foot { position: relative; z-index: 1; font-size: 13px; color: #9aa1b2; }

/* Right / form panel */
.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--white);
}
.auth__card { width: 100%; max-width: 400px; }
.auth__card > .mobile-logo { display: none; }
.auth__card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; color: var(--heading); }
.auth__card .sub { color: var(--muted); margin-top: 6px; margin-bottom: 30px; font-size: 15px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field .input-wrap { position: relative; }
.field .input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--paper);
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198, 162, 74, .16);
}
/* Password row: input box + separate show/hide button beside it (no overlap) */
.field .input-wrap:has(.toggle-pw) { display: flex; align-items: stretch; gap: 8px; }
.field .input-wrap:has(.toggle-pw) input { flex: 1; padding-right: 14px; }
.field .toggle-pw {
  flex-shrink: 0; width: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--muted);
  transition: border-color .18s, color .18s, background .18s;
}
.field .toggle-pw:hover { color: var(--gold-dark); border-color: var(--gold); background: #fff; }
.field .toggle-pw:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 162, 74, .16); }

.auth__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 14px; }
.auth__row label { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.auth__row a { color: var(--gold-dark); font-weight: 600; }
.auth__row a:hover { text-decoration: underline; }

.auth__error {
  display: none;
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6c0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.auth__error.show { display: block; }

.auth__divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 26px 0; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth__signup { text-align: center; font-size: 14px; color: var(--muted); margin-top: 24px; }
.auth__signup a { color: var(--gold-dark); font-weight: 600; }
.auth__signup a:hover { text-decoration: underline; }

.hint { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12.5px; color: var(--muted); margin-top: 20px; }
.hint b { color: var(--ink-soft); }

/* ============================================================
   DASHBOARD / APP SHELL
   ============================================================ */
.app { min-height: 100vh; background: var(--paper); }

.topbar {
  position: sticky; top: 0; z-index: 40;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 40%),
    linear-gradient(105deg, #071630 0%, var(--ink) 46%, #14315e 100%);
  border-bottom: 1px solid rgba(221, 190, 110, .28);
  box-shadow: 0 1px 0 rgba(198, 162, 74,.35), 0 10px 30px -18px rgba(0,0,0,.9);
}
/* hairline gold accent under the whole bar */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  opacity: .8;
}
.topbar { position: sticky; }
.topbar__inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px; height: 72px;
}

/* Brand lockup */
.topbar__logo { display: flex; align-items: center; gap: 13px; }
.topbar__logo-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(221, 190, 110,.35);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 4px 12px -6px rgba(0,0,0,.6);
}
.topbar__logo-badge img { width: 30px; height: 30px; }
.topbar__logo-text b { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .4px; line-height: 1; }
.topbar__logo-text span { font-size: 9.5px; color: var(--gold-light); text-transform: uppercase; letter-spacing: 2px; display: block; margin-top: 4px; font-weight: 600; }

.topbar__divider { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.16), transparent); margin: 0 4px; }

/* Nav */
.topbar__nav { display: flex; gap: 2px; }
.topbar__nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: #aeb5c4; transition: background .18s, color .18s;
}
.topbar__nav a svg { opacity: .75; transition: opacity .18s; }
.topbar__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.topbar__nav a:hover svg { opacity: 1; }
.topbar__nav a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(198, 162, 74,.28), rgba(198, 162, 74,.16));
  box-shadow: inset 0 0 0 1px rgba(221, 190, 110,.45);
}
.topbar__nav a.active svg { opacity: 1; color: var(--gold-light); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Credits chip */
.credits {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(198, 162, 74,.22), rgba(198, 162, 74,.12));
  border: 1px solid rgba(221, 190, 110, .4);
  padding: 6px 14px 6px 7px; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.credits__coin {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
  color: #fff; box-shadow: 0 2px 6px -2px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.35);
  flex-shrink: 0;
}
.credits__body { display: flex; flex-direction: column; line-height: 1.05; }
.credits__body b { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .2px; }
.credits__body small { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); font-weight: 600; }

/* User chip */
.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 5px 10px 5px 5px; border-radius: 999px; color: #fff;
  transition: background .18s, border-color .18s;
}
.user-chip:hover { background: rgba(255,255,255,.1); border-color: rgba(221, 190, 110,.5); }
.avatar {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-light), var(--gold-dark));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 13.5px; letter-spacing: .3px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 0 0 2px rgba(255,255,255,.08);
  flex-shrink: 0;
}
.avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--ink);
}
.user-chip__meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; max-width: 140px; }
.user-chip__meta b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip__meta small { font-size: 10.5px; color: var(--gold-light); font-weight: 500; }
.user-chip__chevron { color: #9aa1b2; flex-shrink: 0; transition: transform .2s ease; }

/* User dropdown menu */
.user-menu { position: relative; }
.user-menu.open .user-chip { background: rgba(255,255,255,.12); border-color: rgba(221,190,110,.55); }
.user-menu.open .user-chip__chevron { transform: rotate(180deg); }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 258px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 50;
}
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.user-dropdown__head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dropdown__head .avatar { width: 40px; height: 40px; font-size: 14px; }
.user-dropdown__head .avatar::after { border-color: #fff; }
.user-dropdown__id { min-width: 0; }
.user-dropdown__id b { display: block; font-size: 14px; font-weight: 700; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown__id small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown__item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: none; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: background .14s, color .14s;
}
.user-dropdown__item svg { color: var(--muted); transition: color .14s; }
.user-dropdown__item:hover { background: var(--paper); color: var(--ink); }
.user-dropdown__item:hover svg { color: var(--gold-dark); }
.user-dropdown__item.active { background: rgba(var(--gold-rgb), .12); color: var(--gold-dark); }
.user-dropdown__item.active svg { color: var(--gold-dark); }
.user-dropdown__item.danger { color: var(--danger); }
.user-dropdown__item.danger svg { color: var(--danger); }
.user-dropdown__item.danger:hover { background: #fdecea; }
.user-dropdown__sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Icon button (logout) */
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #c7ccd8;
  transition: background .18s, color .18s, border-color .18s;
}
.icon-btn:hover { background: rgba(192,57,43,.18); border-color: rgba(192,57,43,.5); color: #ff8f82; }

.page { max-width: 1180px; margin: 0 auto; padding: 34px 24px 60px; }

/* Hero request block */
.hero-card {
  background:
    radial-gradient(300px 300px at calc(100% - 20px) -40px, rgba(198, 162, 74, .38), transparent 62%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 58%, var(--ink-3) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.hero-card__tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(198, 162, 74, .22); color: var(--gold-light);
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .3px; margin-bottom: 16px; position: relative;
}
.hero-card h1 { font-family: var(--font-display); font-size: 33px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; position: relative; max-width: 640px; }
.hero-card h1 em { color: var(--gold-light); font-style: normal; }
.hero-card p { margin-top: 12px; color: #c9cede; max-width: 560px; position: relative; font-size: 15.5px; }

.search-box {
  position: relative;
  margin-top: 28px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}
.search-box .seg {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px;
  padding: 4px 6px;
}
.search-box .seg svg { color: var(--gold); flex-shrink: 0; }
.search-box select, .search-box input {
  border: 0; outline: none; font-size: 15px; width: 100%; color: var(--ink);
  background: transparent; font-family: inherit;
}
.search-box select { color: var(--ink-soft); font-weight: 600; cursor: pointer; }
.search-box .vsep { width: 1px; background: var(--line); margin: 6px 0; }
.search-box .btn { padding: 14px 30px; }

/* Info button + Purchase Process popup */
.info-btn {
  position: relative; flex-shrink: 0; align-self: stretch;
  width: 44px; display: grid; place-items: center; cursor: help;
  color: var(--muted); border-radius: 10px; transition: background .15s, color .15s;
}
.info-btn:hover, .info-btn:focus-visible { background: rgba(var(--gold-rgb), .12); color: var(--gold-dark); outline: none; }
.info-pop {
  position: absolute; bottom: calc(100% + 14px); right: -6px; width: min(320px, calc(100vw - 40px));
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 30; text-align: left;
}
.info-btn:hover .info-pop, .info-btn:focus-visible .info-pop, .info-btn:focus-within .info-pop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.info-pop::after {
  content: ""; position: absolute; top: 100%; right: 18px;
  border: 8px solid transparent; border-top-color: #fff;
  filter: drop-shadow(0 1px 0 var(--line));
}
.info-pop__head {
  display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800;
  color: var(--heading); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
}
.info-pop__head svg { color: var(--gold-dark); }
.info-pop__steps { list-style: none; counter-reset: step; display: grid; gap: 9px; }
.info-pop__steps li {
  position: relative; padding-left: 30px; font-size: 12.7px; color: var(--ink-soft); line-height: 1.45;
}
.info-pop__steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(var(--gold-rgb), .16); color: var(--gold-dark);
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.info-pop__steps li b { color: var(--ink); font-weight: 700; }
.info-pop__foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }

.reqmeta { position: relative; display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.reqmeta span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #aeb4c4; }
.reqmeta svg { color: var(--gold-light); }

/* Report type cards */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 44px 0 18px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.2px; color: var(--heading); display: flex; align-items: center; gap: 11px; }
.section-head h2::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); flex-shrink: 0; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 5px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
  cursor: pointer; position: relative;
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.rcard.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 162, 74, .18); }
.rcard.selected::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  box-shadow: 0 2px 6px -1px rgba(198,162,74,.6);
}
.rcard__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(198, 162, 74, .13); color: var(--gold-dark); margin-bottom: 14px;
}
.rcard h3 { font-size: 15.5px; font-weight: 700; }
.rcard .code { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--gold-dark); text-transform: uppercase; }
.rcard p { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 54px; }
.rcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rcard .price { font-weight: 800; font-size: 15px; color: var(--ink); }
.rcard .price small { font-weight: 600; color: var(--muted); font-size: 11px; }
.badge-eta { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-eta.instant { background: #e7f4ec; color: var(--success); }
.badge-eta.delay { background: #fbf1e0; color: var(--warn); }

/* History table */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.panel__head h2 { font-size: 17px; font-weight: 700; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchmini { position: relative; }
.searchmini svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchmini input { padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; width: 220px; background: var(--paper); }
.searchmini input:focus { outline: none; border-color: var(--gold); background: #fff; }

table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); font-weight: 700; padding: 13px 22px; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 15px 22px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fcfbf7; }
.vin { font-family: "SF Mono", ui-monospace, "Cascadia Code", monospace; font-size: 13px; font-weight: 600; color: var(--ink); }
.car-cell b { display: block; font-weight: 600; }
.car-cell small { color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status.ready { background: #e7f4ec; color: var(--success); }
.status.ready::before { background: var(--success); }
.status.processing { background: #fbf1e0; color: var(--warn); }
.status.processing::before { background: var(--warn); }
.status.failed { background: #fdecea; color: var(--danger); }
.status.failed::before { background: var(--danger); }

.badge-eta { white-space: nowrap; }
.link-dl { color: var(--gold-dark); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.link-dl:hover { text-decoration: underline; }
.link-dl.disabled { color: var(--muted); pointer-events: none; }

.empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty svg { color: var(--line); margin-bottom: 12px; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat .v { font-size: 28px; font-weight: 800; margin-top: 6px; letter-spacing: -.5px; color: var(--heading); }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat .d { font-size: 12.5px; margin-top: 4px; color: var(--success); font-weight: 600; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  /* 100% clears the toast's own height; the extra 40px clears the 24px
     bottom offset and shadow so nothing peeks above the viewport edge */
  transform: translateX(-50%) translateY(calc(100% + 40px));
  visibility: hidden;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: 14px; display: flex; align-items: center; gap: 10px;
  z-index: 100; transition: transform .3s cubic-bezier(.2, .9, .3, 1), visibility .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.toast svg { color: var(--gold-light); }

.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.feed-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--gold-dark); background: rgba(var(--gold-rgb), .12);
  border: 1px solid rgba(var(--gold-rgb), .3); padding: 6px 13px; border-radius: 999px;
}

.news-featured {
  display: block; margin-top: 6px; padding: 34px 36px; border-radius: 18px;
  background:
    radial-gradient(320px 300px at calc(100% - 10px) -30px, rgba(var(--gold-rgb), .34), transparent 62%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 58%, var(--ink-3) 100%);
  color: #fff; box-shadow: var(--shadow-md); position: relative;
}
.news-featured h2 {
  font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.3px;
  line-height: 1.2; margin: 14px 0 10px; max-width: 760px;
}
.news-featured p { color: #cdd6e6; font-size: 15.5px; max-width: 720px; }

.news-tag {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 5px 11px; border-radius: 999px;
  background: rgba(var(--gold-rgb), .2); color: var(--gold-light);
  border: 1px solid rgba(var(--gold-light-rgb), .35);
}
.news-featured { transition: transform .16s ease, box-shadow .2s ease; }
.news-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: #9aa5bd; flex-wrap: wrap; }
.news-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.news-src { color: var(--gold-light); font-weight: 600; }
.news-readmore { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--gold-light); font-weight: 700; }
.news-featured:hover .news-readmore svg { transform: translateX(3px); }
.news-readmore svg { transition: transform .16s; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.news-card .news-tag { align-self: flex-start; background: rgba(var(--gold-rgb), .12); color: var(--gold-dark); border-color: rgba(var(--gold-rgb), .3); }
.news-card h3 { font-size: 16px; font-weight: 700; color: var(--heading); line-height: 1.32; margin: 13px 0 9px; }
.news-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.news-card .news-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }

/* Single article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; margin-top: 6px; }
.back-link {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px; align-self: start;
  font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .15s;
}
.back-link:hover { color: var(--gold-dark); }
.article {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 44px; box-shadow: var(--shadow-sm);
}
.article h1 {
  font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.4px;
  line-height: 1.18; color: var(--heading); margin: 14px 0 0; max-width: 720px;
}
.article__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.article__meta .news-src { color: var(--gold-dark); }
.article__body p { font-size: 16px; line-height: 1.72; color: #303a4f; margin-bottom: 18px; }
.article__body p:first-child { font-size: 17.5px; color: var(--ink); }
.article__note {
  margin-top: 26px; padding: 13px 16px; border-radius: 10px;
  background: var(--paper); border: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}

.related { position: sticky; top: 88px; }
.related__title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.related-item {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 16px; margin-bottom: 12px; transition: border-color .16s, box-shadow .16s, transform .12s;
}
.related-item:hover { border-color: var(--gold-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-item .news-tag { background: rgba(var(--gold-rgb), .12); color: var(--gold-dark); border-color: rgba(var(--gold-rgb), .3); font-size: 10px; }
.related-item b { display: block; font-size: 14px; font-weight: 700; color: var(--heading); line-height: 1.35; margin: 9px 0 6px; }
.related-item small { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .related { position: static; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { padding: 26px; }
  .news-featured h2 { font-size: 22px; }
  .article { padding: 26px 22px; }
  .article h1 { font-size: 24px; }
}

/* ============================================================
   HOMEPAGE — request builder
   ============================================================ */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--gold-dark);
}
.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 4px; flex-wrap: wrap; }
.welcome__title { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.4px; color: var(--heading); margin-top: 8px; }
.welcome__title span { color: var(--gold-dark); }
.welcome__sub { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 520px; }

.welcome__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.wstat {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-sm); min-width: 138px;
}
.wstat__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--gold-rgb), .12); color: var(--gold-dark); flex-shrink: 0; }
.wstat__body { display: flex; flex-direction: column; line-height: 1.1; }
.wstat__body b { font-size: 20px; font-weight: 800; color: var(--heading); letter-spacing: -.3px; }
.wstat__body small { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* Builder layout */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; margin-top: 30px; }
.builder__main { display: flex; flex-direction: column; gap: 20px; }

.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.step__num {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(var(--gold-light-rgb), .35);
}
.step__title h2 { font-size: 18px; font-weight: 700; color: var(--heading); letter-spacing: -.2px; }
.step__title p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* VIN field */
.vin-field {
  display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 16px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.vin-field:focus-within { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .14); }
.vin-field__icon { color: var(--gold-dark); flex-shrink: 0; }
.vin-field input {
  flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; font-family: inherit;
  color: var(--ink); padding: 14px 4px; letter-spacing: .4px;
}
.vin-field input::placeholder { color: #9aa2b6; letter-spacing: 0; }
.vin-field .info-btn { align-self: center; height: 40px; }

.field-help { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.field-help svg { flex-shrink: 0; margin-top: 1px; color: var(--gold-dark); }

/* Report option rows */
.opt-list { display: flex; flex-direction: column; gap: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 15px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 16px 18px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.opt:hover { border-color: var(--gold-light); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line);
  flex-shrink: 0; position: relative; transition: border-color .16s;
}
.opt.selected { border-color: var(--gold); background: linear-gradient(0deg, rgba(var(--gold-rgb), .05), rgba(var(--gold-rgb), .05)), #fff; box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .14); }
.opt.selected .opt__radio { border-color: var(--gold); }
.opt.selected .opt__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.opt__icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: rgba(var(--gold-rgb), .12); color: var(--gold-dark); }
.opt.selected .opt__icon { background: var(--gold); color: #fff; }
.opt__main { flex: 1; min-width: 0; }
.opt__title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--heading); }
.opt__code { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--gold-dark); background: rgba(var(--gold-rgb), .13); padding: 2px 7px; border-radius: 5px; }
.opt__desc { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.opt__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; text-align: right; }
.opt__price { font-size: 16px; font-weight: 800; color: var(--heading); white-space: nowrap; }
.opt__price small { font-size: 11px; font-weight: 600; color: var(--muted); }

/* Summary sidebar */
.summary { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.summary__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-md); }
.summary__title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.summary__rows { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.srow { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.srow span { color: var(--muted); flex-shrink: 0; }
.srow b { font-weight: 700; color: var(--ink); text-align: right; }
.srow b.mono { font-family: "SF Mono", ui-monospace, monospace; font-size: 12.5px; word-break: break-all; }
.srow b.is-muted { color: var(--muted); font-weight: 500; font-family: inherit; }

.summary__total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.summary__total span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.summary__total b { font-size: 19px; font-weight: 800; color: var(--heading); }

.summary__bal { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 11px; padding: 12px 14px; margin-bottom: 16px; }
.summary__bal svg { color: var(--muted); flex-shrink: 0; }
.summary__bal .bal { flex: 1; display: flex; flex-direction: column; }
.summary__bal .bal span { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.summary__bal .bal b { font-size: 16px; font-weight: 800; color: var(--heading); }
.summary__bal .bal b.neg { color: var(--danger); }

.summary__assure { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 13px; line-height: 1.4; }
.summary__assure svg { color: var(--success); flex-shrink: 0; }

.summary__link {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--line);
  border-radius: 12px; padding: 13px 16px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: border-color .16s, color .16s;
}
.summary__link:hover { border-color: var(--gold); color: var(--gold-dark); }
.summary__link svg { color: var(--gold-dark); flex-shrink: 0; }

@media (max-width: 940px) {
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; order: 3; }
}
@media (max-width: 560px) {
  .welcome__title { font-size: 25px; }
  .welcome__stats { width: 100%; }
  .wstat { flex: 1; min-width: 0; padding: 11px 12px; }
  .step { padding: 20px; }
  .opt { flex-wrap: wrap; }
  .opt__meta { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; padding-left: 35px; }
}

/* History CTA (dashboard → history page) */
.history-cta {
  display: flex; align-items: center; gap: 16px; margin-top: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .12s;
}
.history-cta:hover { border-color: var(--gold-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.history-cta__icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(var(--gold-rgb), .13); color: var(--gold-dark);
}
.history-cta__text { flex: 1; min-width: 0; }
.history-cta__text b { display: block; font-size: 15.5px; color: var(--heading); }
.history-cta__text small { font-size: 13px; color: var(--muted); }
.history-cta__arrow { color: var(--gold-dark); flex-shrink: 0; transition: transform .18s; }
.history-cta:hover .history-cta__arrow { transform: translateX(4px); }

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-head {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  border-radius: 18px; padding: 30px 34px; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.account-head::before {
  content: ""; position: absolute; right: -60px; top: -70px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .4), transparent 70%);
}
.account-id { display: flex; align-items: center; gap: 20px; position: relative; }
.account-id__avatar {
  width: 72px; height: 72px; border-radius: 20px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-light), var(--gold-dark));
  color: #fff; font-size: 26px; font-weight: 800; letter-spacing: .5px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35), 0 8px 20px -6px rgba(0,0,0,.5);
}
.account-id h1 { font-family: var(--font-display); font-size: 29px; font-weight: 700; letter-spacing: -.3px; }
.account-id__meta { display: flex; align-items: center; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.pill-id {
  font-family: "SF Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700;
  background: rgba(var(--gold-rgb), .2); color: var(--gold-light);
  border: 1px solid rgba(var(--gold-light-rgb), .4); padding: 4px 12px; border-radius: 999px;
}
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #b6f0cf; font-weight: 600; }
.verified svg { color: #4fd18c; }
.since { font-size: 13px; color: #9aa5bd; }

.account-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; margin-top: 8px; }

.detail-panel { padding: 6px 22px; }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.detail-v { font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: right; }
.detail-v.mono { font-family: "SF Mono", ui-monospace, monospace; }
.tier-badge {
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(var(--gold-rgb), .14); color: var(--gold-dark); border: 1px solid rgba(var(--gold-rgb), .3);
}
.account-stats { grid-template-columns: repeat(3, 1fr); margin-top: 0; }

/* Credit card */
.credit-card {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 100%);
  border: 1px solid rgba(var(--gold-light-rgb), .35);
  border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-md);
}
.credit-card__glow { position: absolute; right: -50px; bottom: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(var(--gold-rgb), .5), transparent 70%); }
.credit-card__top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.credit-card__top svg { color: var(--gold-light); }
.credit-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: #aeb8cf; font-weight: 600; }
.credit-card__amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-top: 10px; position: relative; }
.credit-card__amount small { font-size: 15px; font-weight: 600; color: var(--gold-light); letter-spacing: 0; }
.credit-card__id { margin-top: 18px; font-size: 12px; color: #8f9ab4; letter-spacing: .5px; position: relative; }

.topup { margin-top: 18px; }
.topup__title { font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 12px; }
.topup__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topup-opt {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 16px;
  transition: border-color .16s, box-shadow .16s, transform .12s;
}
.topup-opt:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .13); transform: translateY(-2px); }
.topup-opt b { font-size: 17px; font-weight: 800; color: var(--gold-dark); }
.topup-opt small { font-size: 12px; color: var(--muted); }
.topup__note { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.user-chip.active-chip { background: rgba(var(--gold-rgb), .2); border-color: rgba(var(--gold-light-rgb), .5); }

/* Change password */
.pw-panel { padding: 24px; }
.pw-field { margin-bottom: 16px; }
.pw-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.pw-wrap { display: flex; align-items: stretch; gap: 8px; }
.pw-wrap input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14.5px; background: var(--paper); font-family: inherit; transition: border-color .18s, box-shadow .18s, background .18s;
}
.pw-wrap input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .16); }
.pw-eye {
  flex-shrink: 0; width: 44px; display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .18s, color .18s, background .18s;
}
.pw-eye:hover { color: var(--gold-dark); border-color: var(--gold); background: #fff; }
.pw-eye.on { color: var(--gold-dark); border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); margin-top: 9px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .25s ease, background .25s ease; }
.pw-meter span.weak { background: var(--danger); }
.pw-meter span.fair { background: var(--warn); }
.pw-meter span.good { background: #3f9d6b; }
.pw-meter span.strong { background: var(--success); }
.pw-strength { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-weight: 600; min-height: 15px; }
.pw-msg { display: none; font-size: 13px; border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0 16px; }
.pw-msg.show { display: block; }
.pw-msg.err { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; }
.pw-msg.ok { background: #e7f4ec; color: var(--success); border: 1px solid #b7e0c7; }
.pw-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pw-hint { font-size: 12px; color: var(--muted); }

/* Buy-credits package buttons (account sidebar) */
.topup-opt {
  position: relative; display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
  transition: border-color .16s, box-shadow .16s, transform .12s; text-align: left;
}
.topup-opt:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .13); transform: translateY(-2px); }
.topup-opt.is-popular { border-color: rgba(var(--gold-rgb), .55); }
.topup-opt b { font-size: 17px; font-weight: 800; color: var(--gold-dark); }
.topup-opt small { font-size: 12px; color: var(--muted); }
.topup-opt__save { font-size: 10.5px; font-weight: 700; color: var(--success); margin-top: 2px; }
.topup-opt__badge {
  position: absolute; top: -8px; right: 10px; font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 999px;
}

/* ============================================================
   CHECKOUT / PAYMENT GATEWAY
   ============================================================ */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.checkout.is-done { grid-template-columns: 1fr; }
.checkout__title { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.4px; color: var(--heading); }
.checkout__sub { color: var(--muted); font-size: 15px; margin: 8px 0 26px; max-width: 560px; }

.co-section { margin-bottom: 28px; }
.co-section__title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 14px; }
.co-step { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }

.pkg-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pkg-opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 16px; text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .12s;
}
.pkg-opt:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.pkg-opt.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .15); }
.pkg-opt b { font-size: 22px; font-weight: 800; color: var(--heading); letter-spacing: -.5px; }
.pkg-opt__cr { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pkg-opt__price { font-size: 15px; font-weight: 700; color: var(--gold-dark); margin-top: 8px; }
.pkg-opt__save { font-size: 11px; font-weight: 700; color: var(--success); margin-top: 2px; }
.pkg-opt__badge { position: absolute; top: -8px; right: 10px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: var(--gold); color: #fff; padding: 2px 8px; border-radius: 999px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 13px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 17px; text-align: left; transition: border-color .16s, box-shadow .16s; }
.pay-method:hover { border-color: var(--gold-light); }
.pay-method.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .14); }
.pay-method__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.pay-method.selected .pay-method__radio { border-color: var(--gold); }
.pay-method.selected .pay-method__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.pay-method__body b { display: block; font-size: 14.5px; font-weight: 700; color: var(--heading); }
.pay-method__body small { font-size: 12.5px; color: var(--muted); }

.pay-detail { margin-top: 14px; }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pay-grid--single { grid-template-columns: 1fr; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.pay-tile {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line);
  border-radius: 11px; padding: 10px 12px; text-align: left; transition: border-color .16s, box-shadow .16s, transform .1s;
}
.pay-tile:hover { border-color: var(--gold-light); transform: translateY(-1px); }
.pay-tile.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .14); }
.pay-tile__logo {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12);
}
.pay-tile__name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
@media (max-width: 640px) { .pay-grid { grid-template-columns: repeat(2, 1fr); } }
.co-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; background: var(--paper); font-family: inherit; color: var(--ink); }
.co-input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .16); }
select.co-input { cursor: pointer; }
.co-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.co-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.co-redirect { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px dashed var(--line); border-radius: 11px; padding: 14px 16px; }
.co-redirect svg { color: var(--gold-dark); flex-shrink: 0; margin-top: 1px; }
.co-redirect b { display: block; font-size: 13.5px; color: var(--heading); }
.co-redirect small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.checkout__side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.co-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-md); }
.co-summary .srow { padding: 7px 0; }
.co-total { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; margin-top: 6px; border-top: 1px solid var(--line); }
.co-total span { font-size: 15px; font-weight: 700; color: var(--ink); }
.co-total b { font-size: 22px; font-weight: 800; color: var(--heading); letter-spacing: -.5px; }
.co-secure { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 12px; justify-content: center; }
.co-secure svg { color: var(--success); }
.co-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.co-badges span { font-size: 10px; font-weight: 700; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 4px 9px; border-radius: 6px; }
.co-demo { font-size: 11.5px; color: var(--muted); line-height: 1.55; padding: 0 4px; }

/* Processing + success */
.pay-processing { text-align: center; padding: 70px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.pay-processing h2 { font-size: 20px; font-weight: 700; color: var(--heading); margin-top: 20px; }
.pay-processing p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.spinner { width: 46px; height: 46px; margin: 0 auto; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.co-success { max-width: 560px; margin: 10px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 40px 34px; box-shadow: var(--shadow-md); }
.co-success__icon { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: #e7f4ec; color: var(--success); }
.co-success h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--heading); }
.co-success > p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.receipt { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 8px 18px; margin: 24px 0; }
.receipt__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.receipt__row:last-child { border-bottom: 0; }
.receipt__row span { color: var(--muted); }
.receipt__row b { color: var(--ink); font-weight: 700; text-align: right; }
.co-success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

@media (max-width: 940px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout__side { position: static; order: 3; }
  .pkg-select { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pw-grid { grid-template-columns: 1fr; }
  .pkg-select { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .account-stats { grid-template-columns: 1fr; }
  .account-id { gap: 14px; }
  .account-id__avatar { width: 58px; height: 58px; font-size: 21px; }
  .account-id h1 { font-size: 22px; }
}

/* ============================================================
   JAPAN REPORT GUIDE PAGE
   ============================================================ */
.guide-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 58%, var(--ink-3) 100%);
  color: #fff; border-radius: 18px; padding: 42px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.guide-hero::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), .4), transparent 70%);
}
.guide-hero__text { position: relative; }
.guide-hero__text h1 { font-family: var(--font-display); font-size: 33px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; margin-top: 4px; }
.guide-hero__text h1 em { color: var(--gold-light); font-style: normal; }
.guide-hero__text p { margin: 12px 0 22px; color: #c9d2e4; max-width: 520px; font-size: 15.5px; }
.guide-hero__toc {
  position: relative; list-style: none; align-self: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 8px;
}
.guide-hero__toc a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: #d3dae8; transition: background .16s, color .16s;
}
.guide-hero__toc a:hover { background: rgba(var(--gold-rgb), .18); color: #fff; }
.guide-hero__toc span {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(var(--gold-rgb), .2); color: var(--gold-light); font-size: 12px; font-weight: 700; flex-shrink: 0;
}

.rcard.static { cursor: default; }
.rcard.static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.guide-anatomy .rcard h3 { margin-bottom: 6px; }
.guide-anatomy .rcard p { min-height: 0; }

.note-line { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 820px; line-height: 1.6; }
.note-line b { color: var(--ink-soft); }

/* Grade table */
.grade-table tbody td { padding: 13px 22px; }
.gchip {
  display: inline-grid; place-items: center; min-width: 52px; height: 30px; padding: 0 10px;
  border-radius: 8px; font-weight: 800; font-size: 14px; color: #fff; letter-spacing: .3px;
}
.g-top { background: #1f7a54; }
.g-good { background: #3f9d6b; }
.g-mid { background: var(--warn); }
.g-low { background: #c0392b; }
.g-r { background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb),.5); color: var(--gold-light); }
.rate { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.rate.best { background: #e7f4ec; color: #1f7a54; }
.rate.good { background: #eaf5ef; color: #2f7d55; }
.rate.mid { background: #fbf1e0; color: var(--warn); }
.rate.low { background: #fdecea; color: var(--danger); }

/* Letter grades */
.letter-grades .lcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: relative; overflow: hidden;
}
.letter-grades .lcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.letter-grades .lcard b { font-size: 30px; font-weight: 800; line-height: 1; }
.letter-grades .lcard h3 { font-size: 15px; margin: 8px 0 6px; }
.letter-grades .lcard p { font-size: 13px; color: var(--muted); }
.lcard.g-A::before { background: #1f7a54; } .lcard.g-A b { color: #1f7a54; }
.lcard.g-B::before { background: #3f9d6b; } .lcard.g-B b { color: #3f9d6b; }
.lcard.g-C::before { background: var(--warn); } .lcard.g-C b { color: var(--warn); }
.lcard.g-D::before { background: #c0392b; } .lcard.g-D b { color: #c0392b; }

/* Inspection map */
.map-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.map-diagram {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: var(--radius); padding: 20px; text-align: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.map-diagram__title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold-light); font-weight: 700; margin-bottom: 8px; }
.map-diagram svg { max-width: 220px; margin: 0 auto; }
.map-diagram .mk circle { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.map-diagram .mk.warn circle { fill: #c0392b; }
.map-diagram .mk text { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle; }
.map-diagram__cap { font-size: 11.5px; color: #9aa5bd; margin-top: 10px; }

.map-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.code-row {
  display: flex; gap: 12px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.code-key {
  flex-shrink: 0; min-width: 58px; text-align: center; font-weight: 800; font-size: 13px;
  color: var(--ink); background: rgba(var(--gold-rgb), .14); border: 1px solid rgba(var(--gold-rgb), .3);
  border-radius: 7px; padding: 6px 8px; font-family: "SF Mono", ui-monospace, monospace;
}
.code-row b { font-size: 14px; display: block; }
.code-row small { font-size: 12px; color: var(--muted); }

/* Equipment */
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.equip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: var(--ink-soft);
}
.equip b {
  display: inline-block; min-width: 42px; color: var(--gold-dark); font-weight: 800;
  font-family: "SF Mono", ui-monospace, monospace; margin-right: 6px;
}

/* Guide CTA */
.guide-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding: 30px 34px; border-radius: 16px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff;
  box-shadow: var(--shadow-md);
}
.guide-cta h2 { font-size: 21px; font-weight: 800; }
.guide-cta p { color: #c9d2e4; margin-top: 6px; font-size: 15px; }

@media (max-width: 900px) {
  .guide-hero { grid-template-columns: 1fr; padding: 30px; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-diagram { max-width: 320px; margin: 0 auto; }
  .equip-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .letter-grades, .map-codes, .equip-grid { grid-template-columns: 1fr 1fr; }
  .guide-hero__text h1 { font-size: 23px; }
}

/* ---------- Responsive ---------- */
/* Hide primary nav early so the account/credits cluster never overflows */
@media (max-width: 1040px) {
  .topbar__nav, .topbar__divider { display: none; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__card > .mobile-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 28px; }
  .auth__card > .mobile-logo img { width: 46px; }
  .auth__card > .mobile-logo b { font-size: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .user-chip__meta { display: none; }
  .user-chip { padding: 4px; }
}
@media (max-width: 560px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .hero-card { padding: 26px; }
  .hero-card h1 { font-size: 23px; }
  .search-box .vsep { display: none; }
  .searchmini input { width: 100%; }
  .credits__body { display: none; }
  .credits { padding: 5px; }
  .topbar__inner { gap: 10px; height: 64px; padding: 0 16px; }
  .topbar__logo-text span { display: none; }
  .page { padding: 22px 16px 48px; }
}

/* ============================================================
   AUCTION REPORT LOOKUP (report.html)
   ============================================================ */
.field-hint { font-size: 13px; color: var(--muted); margin: 10px 0 18px; }
.field-hint .vin { font-size: 12.5px; }

#lookupResult:not(:empty) { margin-top: 22px; }
#lookupResult > .panel + .panel,
.report-view > .panel + .panel { margin-top: 18px; }
.report-view > .panel:first-child { margin-top: 0; }

/* ---- collapsing search step ----
   The body collapses via the grid-rows trick (animatable height without
   fixed max-height); the slim reopen bar appears in its place. */
.step__collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease; }
.step__collapse-inner { overflow: hidden; min-height: 0; opacity: 1; transition: opacity .3s ease .1s; }
#lookupStep { transition: padding .4s ease; }
#lookupStep.is-collapsed { padding: 0; }
#lookupStep.is-collapsed .step__collapse { grid-template-rows: 0fr; }
#lookupStep.is-collapsed .step__collapse-inner { opacity: 0; transition-delay: 0s; }

.step-mini {
  display: none; width: 100%; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer; font: inherit; text-align: left;
  padding: 15px 20px; border-radius: 16px; transition: background .15s ease;
}
.step-mini:hover { background: var(--paper); }
#lookupStep.is-collapsed .step-mini { display: flex; animation: rise-in .35s ease backwards; }
.step-mini__icon {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff;
}
.step-mini__text { font-size: 14px; color: var(--muted); min-width: 0; }
.step-mini__text .vin { color: var(--heading); }
.step-mini__cta {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 700; color: var(--gold-dark);
}
.step-mini__cta svg { transition: transform .2s ease; }
.step-mini:hover .step-mini__cta svg { transform: translateY(2px); }

/* results slide up as they render, siblings slightly staggered */
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#lookupResult > .panel, .report-view > .panel { animation: rise-in .4s ease backwards; }
.report-view > .panel:nth-child(2) { animation-delay: .06s; }
.report-view > .panel:nth-child(3) { animation-delay: .12s; }
.report-view > .panel:nth-child(4) { animation-delay: .18s; }
.report-view > .panel:nth-child(n+5) { animation-delay: .24s; }

/* progress notes crossfade when their text changes */
@keyframes note-swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.note-swap { animation: note-swap .3s ease; }

/* loading + message states */
.lookup-loading, .lookup-msg { padding: 54px 28px; text-align: center; }
.lookup-loading .spinner { margin: 0 auto 20px; }
.lookup-loading h2, .lookup-msg h2 { font-size: 18px; font-weight: 700; }
.lookup-loading p, .lookup-msg p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.lookup-msg__icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.lookup-msg__icon--warn { background: #fbf1e0; color: var(--warn); }

/* availability card */
.found-card__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; padding: 24px 22px; }
.found-car { font-size: 20px; font-weight: 700; color: var(--heading); }
.found-card__vehicle .vin { display: block; margin-top: 5px; color: var(--muted); }
.found-card__counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.count-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 12px; text-align: center; }
.count-tile__n { font-size: 22px; font-weight: 800; color: var(--heading); letter-spacing: -.5px; }
.count-tile__l { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 3px; line-height: 1.35; }
.found-card__foot { padding: 20px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.unlock-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* spec list */
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 18px; }
.spec-list dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.spec-list dd { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* report view */
.report-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding: 24px 22px; }
.flag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.flag { background: #fdecea; color: var(--danger); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.report-sheet { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); }
.report-sheet img { display: block; width: 100%; height: auto; }
.report-sheet span { display: block; padding: 10px 12px; font-size: 12.5px; font-weight: 600; color: var(--gold-dark); border-top: 1px solid var(--line); }

/* translation progress while the LLM reads the auction sheets */
.xl-bar { max-width: 340px; margin: 20px auto 8px; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.xl-bar span { display: block; height: 100%; border-radius: 999px; background: var(--gold); transition: width .35s ease; }
.xl-bar__note { font-size: 12.5px; color: var(--muted); }

/* the LLM's read of one auction sheet, shown with that sheet */
.sheet-tr { border-top: 1px solid var(--line); margin: 0 22px; padding: 18px 0 4px; }
.sheet-tr__head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold-dark); }
.sheet-tr .spec-list { margin-top: 14px; }
.sheet-tr__note { margin-top: 16px; }
.sheet-tr__note b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.sheet-tr__note p { font-size: 14px; color: var(--ink); margin-top: 5px; line-height: 1.55; }
.chiprow { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink); }

/* one card per auction appearance — sheet + facts + that auction's photos */
.auction-card__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding: 24px 22px 4px; }
.auction-card__facts .spec-list { margin-top: 0; }
.auction-card__tags { display: inline-flex; align-items: center; gap: 8px; }
.auction-card__empty { padding: 4px 22px 22px; }
.muted { font-size: 13.5px; color: var(--muted); }

.muted-count { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 22px; }
.photo { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s ease; }
.photo:hover img { transform: scale(1.04); }

.table-wrap { overflow-x: auto; }

.pdf-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; flex-wrap: wrap; }
.pdf-panel__text h2 { font-size: 17px; font-weight: 700; }
.pdf-panel__text p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.pdf-panel__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* indeterminate progress strip shown under the panel while generating */
.pdf-progress { flex-basis: 100%; animation: rise-in .3s ease; }
.pdf-progress__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pdf-progress__bar span {
  display: block; height: 100%; width: 40%; border-radius: 999px;
  background: var(--gold); animation: pdf-sweep 1.4s ease-in-out infinite;
}
@keyframes pdf-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.pdf-progress p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* small in-button spinner for the generating state */
.btn-spinner {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}

/* full-screen PDF preview */
.pdf-viewer { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 18, .72); display: flex; flex-direction: column; padding: 3vh 4vw; animation: viewer-fade .2s ease; }
@keyframes viewer-fade { from { opacity: 0; } to { opacity: 1; } }
.pdf-viewer__bar, .pdf-viewer__frame { animation: viewer-rise .3s ease backwards; }
@keyframes viewer-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.pdf-viewer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: #fff; padding: 12px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: 14px; font-weight: 600;
}
.pdf-viewer__close { background: none; border: 0; color: #fff; font-size: 15px; cursor: pointer; padding: 4px 9px; border-radius: 6px; }
.pdf-viewer__close:hover { background: rgba(255, 255, 255, .12); }
.pdf-viewer__frame { flex: 1; width: 100%; border: 0; background: #525659; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

@media (max-width: 900px) {
  .found-card__body, .report-head, .auction-card__head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .spec-list { grid-template-columns: 1fr; }
  .found-card__counts { grid-template-columns: repeat(2, 1fr); }
  .pdf-panel { flex-direction: column; align-items: stretch; }
  .pdf-panel__actions { flex-direction: column; align-items: stretch; }
  .pdf-viewer { padding: 0; }
  .pdf-viewer__bar, .pdf-viewer__frame { border-radius: 0; }
  .step-mini { flex-wrap: wrap; }
  .step-mini__cta { margin-left: 42px; }
}

/* decorative motion off for users who ask for it; spinners and the progress
   sweep stay, since they communicate state rather than decorate */
@media (prefers-reduced-motion: reduce) {
  #lookupResult > .panel, .report-view > .panel, .step-mini,
  .pdf-viewer, .pdf-viewer__bar, .pdf-viewer__frame,
  .note-swap, .pdf-progress { animation: none !important; }
  #lookupStep, .step__collapse, .step__collapse-inner,
  .step-mini__cta svg, .photo img { transition: none !important; }
}

/* ============================================================
   PUBLIC SITE — landing, insurance, warranty
   ============================================================ */
body.public-page { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
body.public-page > .landing-section:last-of-type { flex: 1; }

/* Public topbar reuses the app bar; links are plain text (no icons) */
.topbar--public .topbar__nav a { padding: 9px 16px; }
.topbar--public .topbar__right .btn-ghost { color: #e8ecf5; border-color: rgba(255,255,255,.28); }
.topbar--public .topbar__right .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.avatar--sm { width: 24px; height: 24px; font-size: 10px; margin-right: 8px; }

/* --- Hero --- */
.landing-hero {
  color: #fff;
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(198,162,74,.16), transparent 55%),
    linear-gradient(115deg, #071630 0%, var(--ink) 48%, #14315e 100%);
  border-bottom: 1px solid rgba(221,190,110,.25);
}
.landing-hero__inner {
  max-width: 1180px; margin: 0 auto; padding: 72px 24px 64px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.landing-kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px;
}
.landing-hero__copy h1 {
  font-family: var(--font-display); font-size: 44px; line-height: 1.12;
  font-weight: 700; letter-spacing: -.5px;
}
.landing-hero__copy h1 em { font-style: italic; color: var(--gold-light); }
.landing-hero__copy > p { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: #c3cbdc; max-width: 520px; }
.landing-hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.landing-hero__points {
  display: flex; gap: 34px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap;
}
.landing-hero__points li { list-style: none; }
.landing-hero__points b { display: block; font-size: 20px; font-weight: 800; color: var(--gold-light); }
.landing-hero__points span { font-size: 12.5px; color: #aeb5c4; }
.landing-hero__art img {
  width: 100%; border-radius: var(--radius); display: block;
  border: 1px solid rgba(221,190,110,.35);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}

/* --- Sections --- */
.landing-section { padding: 30px 0 56px; }
.landing-section--tint { background: #fff; border-block: 1px solid var(--line-2); }
.landing-section__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* --- Product trio --- */
.product-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .16s ease, box-shadow .2s ease, border-color .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.product-card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(198,162,74,.13); color: var(--gold-dark);
}
.product-card h3 { font-size: 17px; font-weight: 800; color: var(--heading); }
.product-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.product-card__go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--gold-dark);
}
.product-card:hover .product-card__go { text-decoration: underline; }
.product-card__badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  background: #fbf1e0; color: var(--warn); padding: 4px 10px; border-radius: 999px;
}

/* --- Report tiles --- */
.report-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.report-tile {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.report-tile.is-soon { background: linear-gradient(180deg, #fff, #fafbfe); }
.report-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.report-tile h3 { font-size: 16px; font-weight: 800; color: var(--heading); }
.report-tile > p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.report-tile__meta {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  font-size: 13px; padding: 14px 0; margin-top: auto; border-top: 1px solid var(--line-2);
}
.report-tile__meta dt { color: var(--muted); font-weight: 500; }
.report-tile__meta dd { font-weight: 700; color: var(--ink); }

/* --- Steps --- */
.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.landing-steps li {
  list-style: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.landing-steps__n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #fff;
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
  box-shadow: 0 4px 10px -4px rgba(198,162,74,.7);
}
.landing-steps h3 { font-size: 15.5px; font-weight: 800; color: var(--heading); }
.landing-steps p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 6px; }

/* --- Footer --- */
.landing-footer {
  margin-top: auto; color: #aeb5c4;
  background: linear-gradient(115deg, #071630 0%, var(--ink) 60%, #102a52 100%);
  border-top: 1px solid rgba(221,190,110,.25);
}
.landing-footer__inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 24px 30px;
  display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; justify-content: space-between;
}
.landing-footer__brand img { height: 44px; margin-bottom: 12px; }
.landing-footer__brand p { font-size: 12.5px; line-height: 1.7; }
.landing-footer__nav { display: flex; flex-direction: column; gap: 8px; }
.landing-footer__nav a { font-size: 13.5px; color: #c3cbdc; }
.landing-footer__nav a:hover { color: var(--gold-light); }
.landing-footer__note { width: 100%; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

@media (max-width: 900px) {
  .landing-hero__inner { grid-template-columns: 1fr; padding: 48px 24px 40px; }
  .landing-hero__copy h1 { font-size: 34px; }
  .product-trio, .report-trio, .landing-steps { grid-template-columns: 1fr; }
  .topbar--public .topbar__nav { display: none; }
}

/* ============================================================
   INSURANCE / WARRANTY — quote form and mock quotation
   ============================================================ */
.landing-hero--slim .landing-hero__inner { grid-template-columns: 1fr; padding: 60px 24px 52px; }
.landing-section__inner--narrow { max-width: 860px; }

.quote-panel { padding: 28px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.quote-grid .field:first-child { grid-column: 1 / -1; }
.quote-panel .input-wrap input { padding-left: 14px; }

.quote-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft); margin: 10px 0; cursor: pointer;
}
.quote-check input { margin-top: 2px; accent-color: var(--gold); }
.quote-panel .auth__error { margin: 12px 0; }
.quote-panel #quoteBtn { margin-top: 10px; }

/* Mock quotation */
.quote-result { padding-top: 6px; }
.quote-result__head { text-align: center; margin-bottom: 22px; }
.quote-result__head h3 { font-size: 22px; font-weight: 800; color: var(--heading); margin-top: 12px; }
.quote-result__head p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.quote-result__head em { color: var(--warn); font-style: normal; font-weight: 600; }

.plan-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff;
}
.plan-card.is-popular { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,162,74,.15); }
.plan-card__badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan-card small { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); }
.plan-card h4 { font-size: 16px; font-weight: 800; color: var(--heading); }
.plan-card__price { font-size: 24px; font-weight: 800; color: var(--ink); margin: 6px 0; }
.plan-card__price span { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan-card ul { margin: 0 0 14px; padding: 0; flex: 1; }
.plan-card li {
  list-style: none; font-size: 13px; color: var(--ink-soft);
  padding: 5px 0 5px 22px; position: relative;
}
.plan-card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a07e2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}
.quote-result__note {
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 18px 0 14px;
}

/* Report-type picker page tweak: picker step sits above the search step */
#typeStep { margin-bottom: 18px; }
#typeStep .step__head { margin-bottom: 14px; }

@media (max-width: 760px) {
  .quote-grid { grid-template-columns: 1fr; }
  .plan-trio { grid-template-columns: 1fr; }
  .plan-card__badge { top: -10px; }
}

@media (min-width: 901px) {
  .product-trio--four { grid-template-columns: repeat(4, 1fr); }
}
