/* ============================================================
   AccLocker — "Slate + Orange Blaze" premium design system
   Hand-written, no frameworks. Lightweight (<40KB).
   ============================================================ */
:root {
  /* Slate */
  --slate-950: #020617; --slate-900: #0F172A; --slate-800: #1E293B;
  --slate-700: #334155; --slate-600: #475569; --slate-500: #64748B;
  --slate-400: #94A3B8; --slate-300: #CBD5E1; --slate-200: #E2E8F0;
  --slate-100: #F1F5F9; --slate-50: #F8FAFC;
  /* Orange blaze */
  --orange-700: #C2410C; --orange-600: #EA580C; --orange-500: #F97316;
  --orange-400: #FB923C; --orange-100: #FFEDD5; --orange-50: #FFF7ED;
  /* Accents */
  --amber-500: #F59E0B; --amber-100: #FEF3C7;
  --emerald-700: #047857; --emerald-600: #059669; --emerald-500: #10B981;
  --emerald-100: #D1FAE5; --emerald-50: #ECFDF5;
  --red-600: #DC2626; --red-100: #FEE2E2; --red-50: #FEF2F2;
  --blue-700: #1D4ED8; --blue-600: #2563EB; --blue-100: #DBEAFE; --blue-50: #EFF6FF;
  --violet-700: #6D28D9; --violet-100: #EDE9FE;
  /* Semantic */
  --ink: var(--slate-900); --muted: var(--slate-500); --faint: var(--slate-400);
  --line: var(--slate-200); --bg: #FFFFFF; --surface: var(--slate-50);
  --accent: var(--orange-600); --accent-hover: var(--orange-700);
  --accent-soft: var(--orange-50);
  --ok: var(--emerald-600); --warn: #B45309; --bad: var(--red-600);
  --radius: .75rem; --radius-lg: 1rem; --radius-sm: .5rem;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 4px 14px -4px rgba(15,23,42,.12);
  --shadow-lg: 0 12px 32px -8px rgba(15,23,42,.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
::selection { background: var(--orange-100); }

/* ---------- layout ---------- */
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
main.site-main { min-height: 60vh; padding-bottom: 3rem; }
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.meta { color: var(--muted); font-size: .88rem; }
.hint { color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1.1rem; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.grid.cards-sm { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 1.75rem; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stack > * + * { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover);
  text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.outline { background: #fff; color: var(--slate-800); border-color: var(--slate-300); }
.btn.outline:hover { border-color: var(--slate-400); background: var(--slate-50); color: var(--slate-900); }
.btn.ghost { background: transparent; color: var(--slate-700); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--slate-50); border-color: var(--slate-300); color: var(--slate-900); }
.btn.dark { background: var(--slate-900); border-color: var(--slate-900); }
.btn.dark:hover { background: var(--slate-800); border-color: var(--slate-800); }
.btn.danger { background: var(--red-600); border-color: var(--red-600); }
.btn.danger:hover { background: #B91C1C; border-color: #B91C1C; }
.btn.success { background: var(--emerald-600); border-color: var(--emerald-600); }
.btn.success:hover { background: var(--emerald-700); }
.btn.sm { padding: .38rem .8rem; font-size: .85rem; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; }
button.btn { font-family: var(--font); }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  padding: .18rem .6rem; border-radius: 999px; white-space: nowrap;
  background: var(--slate-100); border: 1px solid var(--line); color: var(--slate-600);
}
.badge.auto { background: var(--emerald-50); border-color: var(--emerald-100); color: var(--emerald-700); }
.badge.manual { background: var(--amber-100); border-color: #FDE68A; color: #92400E; }
.badge.insured { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.badge.level { background: var(--violet-100); border-color: #DDD6FE; color: var(--violet-700); }
.badge.sponsored { background: var(--orange-50); border-color: #FDBA74; color: var(--orange-700);
  text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.badge.oos { background: var(--slate-100); color: var(--muted); }
.badge.verified { background: var(--emerald-50); border-color: var(--emerald-100); color: var(--emerald-700); }
.badge.official { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border-color: #FDBA74;
  color: #9A3412; box-shadow: 0 0 0 1px rgba(251,146,60,.25); }
.badge.warranty { background: var(--slate-900); border-color: var(--slate-900); color: #fff; }
.badge.new { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }

/* ---------- attribute filter chips (category shelf) ---------- */
.attr-filters { display: flex; flex-direction: column; gap: .5rem; margin: .9rem 0; }
.attr-group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
a.badge:hover { border-color: var(--orange-500); color: var(--orange-700); }
.badge.attr-active { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }
.badge.attr-active a { color: #fff; text-decoration: none; margin-left: .15rem; }
.attr-row { display: flex; gap: .5rem; margin-bottom: .4rem; }
.attr-row input[type=text] { flex: 1; padding: .5rem; border: 1px solid #888; border-radius: .3rem; }
.attr-remove { flex: 0 0 auto; }
.badge.coupon { background: var(--amber-100); border-color: #FDE68A; color: #92400E; }
.sold-line { font-weight: 600; }
.share-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(1rem);
  background: var(--slate-900); color: #fff; font-size: .85rem; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 999px; z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- forms ---------- */
label, .flabel { display: block; margin: .8rem 0 .3rem; font-weight: 600; font-size: .92rem; }
label.fl { display: block; margin: .8rem 0 .3rem; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: .6rem .8rem; font: 1rem var(--font); color: var(--ink);
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
textarea { min-height: 6rem; resize: vertical; font-family: var(--font); }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--orange-600); }
select { width: auto; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow); max-width: 34rem; }
.form-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.field-err { color: var(--red-600); font-size: .85rem; margin-top: .25rem; }
/* bare buttons (no .btn class) default to primary action */
button:not([class]), input[type=submit]:not([class]) {
  font: 600 .95rem/1.2 var(--font); padding: .62rem 1.25rem; margin-top: .9rem;
  border-radius: var(--radius-sm); background: var(--accent); border: 1px solid var(--accent);
  color: #fff; cursor: pointer; box-shadow: var(--shadow-sm);
}
button:not([class]):hover, input[type=submit]:not([class]):hover { background: var(--accent-hover); }

/* ---------- flashes / alerts ---------- */
.flash {
  border: 1px solid; border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 1rem 0;
  font-size: .93rem; display: flex; gap: .6rem; align-items: flex-start;
}
.flash.error { background: var(--red-50); border-color: #FCA5A5; color: #991B1B; }
.flash.success { background: var(--emerald-50); border-color: #6EE7B7; color: #065F46; }
.flash.info { background: var(--blue-50); border-color: #93C5FD; color: #1E40AF; }
.flash.warning { background: #FFFBEB; border-color: #FCD34D; color: #92400E; }

/* ---------- tables ---------- */
table.table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; }
table.table th, table.table td { text-align: left; padding: .65rem .8rem;
  border-bottom: 1px solid var(--line); vertical-align: top; }
table.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--slate-50); }
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background: var(--slate-50); }
table.stats { border-collapse: collapse; width: 100%; margin: 1rem 0; }
table.stats th, table.stats td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; }
table.stats th { background: var(--slate-50); font-size: .8rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08); color: #E2E8F0;
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; }
.brand-name em { font-style: normal; color: var(--orange-500); }
.main-nav { display: flex; gap: .25rem; align-items: center; margin-left: .5rem; }
.main-nav a { color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: .5rem .8rem; border-radius: var(--radius-sm); }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.header-search { flex: 1; max-width: 26rem; margin-left: auto; display: flex; }
.header-search input[type=search] {
  border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: #fff; padding: .55rem 1.1rem;
}
.header-search input[type=search]::placeholder { color: #94A3B8; }
.header-search input[type=search]:focus { background: rgba(255,255,255,.12); border-color: var(--orange-500); box-shadow: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: .25rem; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 999px; color: #CBD5E1; text-decoration: none;
  border: 1px solid transparent; }
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.icon-btn .dot { position: absolute; top: .3rem; right: .3rem; min-width: 1.15rem; height: 1.15rem;
  border-radius: 999px; background: var(--orange-500); color: #fff; font-size: .68rem;
  font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 .25rem; }
.header-user { display: flex; align-items: center; gap: .55rem; color: #CBD5E1; font-size: .9rem; }
.header-user .avatar { width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--orange-500);
  color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.header-cta { display: flex; gap: .5rem; }
.header-cta .btn { box-shadow: none; }
.btn.header-outline { background: transparent; border-color: rgba(255,255,255,.25);
  color: #E2E8F0; box-shadow: none; }
.btn.header-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45);
  color: #fff; }
.nav-toggle { display: none; }
/* trust strip */
.trust-strip { background: var(--slate-800); color: #CBD5E1; font-size: .83rem; }
.trust-strip .wrap { display: flex; gap: 1.5rem; padding-top: .45rem; padding-bottom: .45rem;
  flex-wrap: wrap; align-items: center; }
.trust-strip b { color: #fff; font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(60rem 24rem at 85% -10%, rgba(249,115,22,.35), transparent 60%),
              radial-gradient(40rem 20rem at 10% 110%, rgba(249,115,22,.18), transparent 60%),
              linear-gradient(135deg, var(--slate-950), var(--slate-900) 55%, #1c1430);
  padding: 3.5rem 0 3rem;
}
.hero h1 { font-size: 2.4rem; max-width: 44rem; margin-bottom: .6rem; }
.hero h1 .hl { color: var(--orange-400); }
.hero p.lead { color: #CBD5E1; font-size: 1.08rem; max-width: 42rem; }
.hero .cta-row { display: flex; gap: .75rem; margin: 1.4rem 0 1.8rem; flex-wrap: wrap; }
.hero .btn.ghost { color: #E2E8F0; border-color: rgba(255,255,255,.25); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.counters { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.counter { min-width: 8rem; }
.counter b { font-size: 1.9rem; font-weight: 800; display: block; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.counter b .plus { color: var(--orange-400); }
.counter span { color: #94A3B8; font-size: .88rem; }
.hero-trust { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; color: #CBD5E1; font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s; }
a.card { color: inherit; display: block; }
a.card:hover, .card.hoverable:hover { box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: var(--slate-300); text-decoration: none; }
.card h3 { margin: 0 0 .4rem; font-size: 1.02rem; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--orange-700); text-decoration: none; }
.card .price { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin: .35rem 0; }
.card .thumb { border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--slate-100), var(--orange-50));
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--slate-400); font-weight: 800; font-size: 1.6rem; margin-bottom: .8rem; }
.card .thumb.has-img { padding: 0; overflow: hidden; }
.card .thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg { margin: 0 0 1.25rem; }
.pimg img { width: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--radius-lg); display: block; }
/* product card */
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard .sponsored-tag { position: absolute; top: .7rem; left: .7rem; z-index: 2; }
.pcard .card-body { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pcard .seller-line { margin-top: auto; padding-top: .4rem; }
/* category card */
.cat-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; }
.cat-card .cat-ico { width: 2.9rem; height: 2.9rem; flex-shrink: 0; border-radius: var(--radius-sm);
  background: #FFF7ED;
  background: color-mix(in srgb, var(--cat, #F97316) 13%, #ffffff);
  color: var(--cat, #EA580C); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.cat-card .cat-ico .cat-fb { font-size: 1.3rem; font-weight: 800; }
/* Letter avatar shows only when Font Awesome failed to load (no .fa-ok on <html>). */
.fa-ok .cat-ico .cat-fb { display: none; }
.cat-card:hover .cat-ico { background: linear-gradient(135deg, var(--orange-600), var(--orange-500)); color: #fff; }
.cat-card h3 { margin: 0; font-size: 1rem; }
/* larger variant for shelf headers */
.cat-ico.lg { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; border-radius: var(--radius); }
.cat-ico.lg .cat-fb { font-size: 1.5rem; }
.shelf-head { display: flex; align-items: center; gap: .9rem; margin: 1rem 0 .5rem; }
.shelf-head h1 { margin: 0; }
.cat-card .meta { margin: 0; }
/* shop card */
.shop-card { display: flex; gap: 1rem; align-items: center; position: relative; }
.shop-card .sponsored-tag { position: absolute; top: .7rem; right: .7rem; z-index: 2; }
.shop-card .shoplogo { flex-shrink: 0; }

/* ---------- shop page ---------- */
.shop-banner { border-radius: var(--radius-lg); padding: 2rem; color: #fff; margin: 1.25rem 0;
  background: radial-gradient(40rem 16rem at 90% 0%, rgba(249,115,22,.4), transparent 60%),
              linear-gradient(120deg, var(--slate-900), var(--slate-800)); }
.shophead { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.shoplogo { width: 4.5rem; height: 4.5rem; border-radius: 1rem; background: var(--slate-100);
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--slate-500); flex-shrink: 0; }
.shop-banner .shoplogo { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.shoplogo.has-img { padding: 0; overflow: hidden; }
.shoplogo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shophead h1 { margin: 0; font-size: 1.7rem; }
.shop-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.shop-banner .badge { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.announce { border-left: 4px solid var(--orange-500); background: var(--orange-50);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.25rem 0; }

/* ---------- product page ---------- */
.pricebox { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  background: #fff; box-shadow: var(--shadow); position: sticky; top: 5.5rem; }
.pricebox .total { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.qty { display: flex; gap: .6rem; align-items: center; margin: .9rem 0; }
.qty input { width: 5rem; }
.secure-note { display: flex; gap: .5rem; align-items: flex-start; background: var(--emerald-50);
  border: 1px solid var(--emerald-100); color: #065F46; border-radius: var(--radius-sm);
  padding: .65rem .8rem; font-size: .86rem; margin-top: 1rem; }
.seller-card { margin-top: 1.1rem; }

/* ---------- filters / pagination / breadcrumbs / tabs ---------- */
.filters { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin: 1.25rem 0;
  padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); }
.filters .spacer { flex: 1; }
.pager { display: flex; gap: .4rem; margin: 1.75rem 0; flex-wrap: wrap; align-items: center; }
.pager a, .pager span.cur, .pager span.meta { padding: .45rem .8rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--slate-700); background: #fff; }
.pager a:hover { border-color: var(--orange-500); color: var(--orange-700); text-decoration: none; }
.pager span.cur { background: var(--slate-900); color: #fff; border-color: var(--slate-900); font-weight: 700; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 1.1rem 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--orange-700); }
.tabs { display: flex; gap: 1.25rem; border-bottom: 2px solid var(--line); margin: 1.75rem 0 1.25rem; }
.tabs a { padding: .55rem .25rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom: 2px solid var(--orange-500); margin-bottom: -2px; }

/* ---------- faq / guide / reviews ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem;
  margin-bottom: .6rem; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange-600); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 2.25rem 0; }
.guide h2 { margin-top: 0; }
.stars { color: var(--amber-500); letter-spacing: .12em; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem;
  margin: .8rem 0; background: #fff; }
.review .who { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- how it works / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.1rem;
  counter-reset: step; margin: 1.5rem 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.25rem; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step);
  width: 2.2rem; height: 2.2rem; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); margin-bottom: .7rem; }
.step h3 { margin: 0 0 .35rem; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- trust strip / logos ---------- */
.trust-badges { display: flex; gap: .8rem; flex-wrap: wrap; }
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem;
  font-size: .86rem; font-weight: 600; color: var(--slate-700); box-shadow: var(--shadow-sm); }
.trust-badge .tb-ico { color: var(--emerald-600); font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-900); color: #94A3B8; margin-top: 4rem; font-size: .92rem; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .07em; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.foot-brand p { max-width: 20rem; }
.pay-badges { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1rem; }
.pay-badges span { border: 1px solid rgba(255,255,255,.18); border-radius: .35rem;
  padding: .25rem .6rem; font-size: .72rem; font-weight: 700; color: #CBD5E1; letter-spacing: .03em; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: .6rem; margin: 1.25rem 0; }
.msg { max-width: 75%; padding: .7rem .95rem; border-radius: 1rem; font-size: .95rem; }
.msg .msg-meta { font-size: .76rem; color: var(--muted); margin-bottom: .25rem; }
.msg-in { align-self: flex-start; background: var(--slate-100); border: 1px solid var(--line);
  border-bottom-left-radius: .25rem; }
.msg-out { align-self: flex-end; background: var(--orange-600); color: #fff;
  border-bottom-right-radius: .25rem; }
.msg-out .msg-meta { color: rgba(255,255,255,.85); }
.msg p { margin: 0; }
.msg .flag-note { font-size: .78rem; font-style: italic; opacity: .85; margin-top: .3rem; }
.chat-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; margin-top: 1rem; }

/* ---------- auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 3rem 1rem; }
.auth-card { width: 100%; max-width: 26rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.25rem; }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: .4rem; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; }
.auth-card .btn.block { margin-top: 1.1rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.methods { display: grid; gap: .7rem; margin-top: 1.25rem; }
.methods a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem;
  text-decoration: none; color: var(--ink); font-weight: 600; display: flex; gap: .7rem;
  align-items: center; background: #fff; transition: border-color .15s, box-shadow .15s; }
.methods a:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); text-decoration: none; }

/* ---------- auth v2: google button, tabs, dividers ---------- */
.auth-card-wide { max-width: 29rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .72rem 1rem; background: #fff; color: var(--slate-800);
  border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  font: 600 .95rem var(--font); cursor: pointer; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, background .15s; }
.btn-google:hover { border-color: var(--slate-400); background: var(--slate-50);
  box-shadow: var(--shadow-sm); text-decoration: none; color: var(--slate-900); }
.btn-google svg { flex: none; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0;
  color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-tabs { display: flex; background: var(--slate-100); border-radius: var(--radius-sm);
  padding: .25rem; margin-bottom: 1.2rem; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: .62rem .5rem;
  font: 600 .9rem var(--font); color: var(--muted); border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.auth-tab:hover { color: var(--slate-800); }
.auth-tab.active { background: #fff; color: var(--slate-900); box-shadow: var(--shadow-sm); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-note { margin-top: .8rem; }
.remember { display: flex; align-items: center; gap: .5rem; font-weight: 500;
  font-size: .9rem; margin: .9rem 0 0; cursor: pointer; }

/* ---------- dashboards ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--orange-500), var(--orange-700)); }
.stat-card .v { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.stat-card .l { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.stat-card.green::before { background: linear-gradient(var(--emerald-500), var(--emerald-700)); }
.stat-card.slate::before { background: linear-gradient(var(--slate-500), var(--slate-800)); }
.stat-card.amber::before { background: linear-gradient(var(--amber-500), var(--orange-600)); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: .5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; margin: 1.25rem 0; box-shadow: var(--shadow-sm); }
.panel h2, .panel h3 { margin-top: 0; }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow-sm); }
.testimonial .quote { font-style: italic; color: var(--slate-700); }
.testimonial .who { margin-top: .8rem; font-size: .86rem; color: var(--muted); font-weight: 600; }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.1rem; }
.tool-card { display: block; color: inherit; }
.tool-card:hover { text-decoration: none; }
.tool-card .t-ico { width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm);
  background: var(--slate-900); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.2rem; margin-bottom: .7rem; }
.tool-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.tool-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.result-box { background: var(--slate-900); color: #E2E8F0; border-radius: var(--radius-sm);
  padding: 1rem; font-family: ui-monospace, monospace; font-size: .85rem;
  white-space: pre-wrap; word-break: break-all; margin-top: 1rem; max-height: 22rem; overflow: auto; }

/* ---------- modal (CSS :target) ---------- */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(2,6,23,.6); z-index: 100; padding: 1rem; }
.modal:target { display: flex; }
.modal .box { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
  max-width: 28rem; width: 100%; box-shadow: var(--shadow-lg); }

/* ---------- misc ---------- */
.divider { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.kbd { font-family: ui-monospace, monospace; background: var(--slate-100);
  border: 1px solid var(--line); border-radius: .3rem; padding: .05rem .4rem; font-size: .85em; }
.progress { height: .55rem; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-500), var(--orange-700)); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .big { font-size: 2.5rem; margin-bottom: .5rem; }

/* ---------- responsive ---------- */
.searchbar { display: flex; gap: .5rem; margin: 1rem 0; }
.searchbar input[type=search] { flex: 1; }
@media (max-width: 64rem) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 48rem) {
  h1 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.8rem; }
  .cols, .cols-2 { grid-template-columns: 1fr; }
  .pricebox { position: static; }
  .main-nav { display: none; }
  .header-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: none; background: var(--slate-900); border-top: 1px solid rgba(255,255,255,.08); }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; color: #E2E8F0; padding: .85rem 1.25rem; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06); font-weight: 600; }
  .mobile-nav a:hover { background: rgba(255,255,255,.06); }
  .mobile-search { padding: .8rem 1.25rem; }
  .mobile-search input[type=search] { border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08); color: #fff; }
  .counters { gap: 1.25rem; }
  .counter b { font-size: 1.5rem; }
  .msg { max-width: 90%; }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .header-cta .btn { padding: .5rem .9rem; font-size: .85rem; }
  .table-wrap table.table { min-width: 36rem; }
}
@media (min-width: 48.01rem) {
  .mobile-nav, .mobile-search { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- announcement ticker (admin: Site Settings -> Announcement ticker) ---- */
.ticker {
  background: var(--slate-900, #0f172a); color: #f8fafc;
  overflow: hidden; white-space: nowrap; font-size: .83rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ticker .tk-track {
  display: inline-flex; align-items: center;
  padding: .55rem 0; animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.ticker .tk-item { display: inline-flex; align-items: center; padding: 0 1.6rem; }
.ticker .tk-sep { color: #475569; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- search autocomplete dropdown ---------- */
.header-search, .mobile-search, .searchbar { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + .3rem); left: 0; right: 0; z-index: 300;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.search-suggest[hidden] { display: none; }
.sug-item {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem;
  color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.sug-item:hover, .sug-item.active { background: var(--slate-100); text-decoration: none; }
.sug-type {
  flex: none; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); background: var(--slate-100);
  border-radius: .35rem; padding: .1rem .45rem; min-width: 4.6rem; text-align: center;
}
.sug-item:hover .sug-type, .sug-item.active .sug-type { background: var(--orange-100); color: var(--orange-700); }
.sug-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- search page filter bar ---------- */
.search-filters {
  display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem 1rem; margin: 1rem 0;
}
.search-filters label { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); }
.search-filters select, .search-filters input[type=checkbox] { accent-color: var(--accent); }
.search-filters select {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .3rem .5rem;
}
