/* ============================================================ Rexauto base */

:root {
  --navy:        #16294d;
  --navy-deep:   #0f1d38;
  --navy-line:   #24396180;
  --red:         #d0021b;
  --red-dark:    #a80116;
  --yellow:      #f5c518;
  --green:       #25d366;

  --ink:         #1c1f26;
  --ink-mid:     #5a6172;
  --ink-soft:    #868d9d;
  --line:        #e2e5ea;
  --surface:     #ffffff;
  --surface-alt: #f4f5f7;
  --bg:          #f2f3f5;

  --ok:          #1a8f4c;
  --warn:        #c77700;

  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(22, 41, 77, .08);
  --shadow-md:   0 4px 16px rgba(22, 41, 77, .10);

  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* `display` on a component would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--head); font-weight: 600; letter-spacing: .01em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================================================================ announce */

.announce {
  background: var(--navy-deep);
  color: #dfe5f0;
  font-size: 12.5px;
  padding-block: 7px;
  overflow: hidden;
}
.announce .wrap { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; text-align: center; }
.announce b { color: var(--yellow); }
.announce .code { color: var(--red); background: #fff; padding: 0 6px; border-radius: 3px; font-weight: 700; }

/* ================================================================= topbar */

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.topbar .tb-contact { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-mid); }
.topbar .tb-contact a { display: flex; align-items: center; gap: 6px; }
.topbar .tb-contact a:hover { color: var(--red); }
.topbar .tb-contact svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--red); }

.btn-wholesale {
  background: var(--red); color: #fff; border: 0; border-radius: 3px;
  padding: 7px 15px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
}
.btn-wholesale:hover { background: var(--red-dark); }

.topbar .tb-social { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.topbar .tb-social a { color: var(--ink-soft); }
.topbar .tb-social a:hover { color: var(--navy); }
.topbar .tb-social svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .topbar .tb-contact { font-size: 12px; gap: 12px; }
  .topbar .tb-social { margin-left: 0; }
}

/* ================================================================== header */

.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--red) 0%, var(--red-dark) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--head); font-size: 19px; font-weight: 700; letter-spacing: .02em;
}
.logo-text { line-height: 1.05; }
.logo-text .lt-name {
  font-family: var(--head); font-size: 23px; font-weight: 700;
  color: var(--navy); letter-spacing: .02em;
}
.logo-text .lt-sub {
  display: block; margin-top: 3px; font-family: var(--body);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}

.searchbar { flex: 1; min-width: 0; display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-alt); }
.searchbar:focus-within { border-color: var(--navy); background: var(--surface); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 14px; font-size: 13.5px; color: var(--ink); }
.searchbar input:focus { outline: none; }
.searchbar button { border: 0; background: var(--navy); color: #fff; padding: 0 20px; display: grid; place-items: center; }
.searchbar button:hover { background: var(--navy-deep); }
.searchbar svg { width: 17px; height: 17px; }

.gbadge {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 7px 13px; line-height: 1.2;
}
.gbadge .g { font-size: 19px; font-weight: 700; font-family: var(--head); }
.gbadge .gb-txt { font-size: 10.5px; }
.gbadge .gb-txt b { display: block; font-size: 11.5px; font-weight: 600; }
.gbadge .gb-stars { color: var(--yellow); font-size: 10px; letter-spacing: 1px; }

.head-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.head-actions a { position: relative; color: var(--ink-mid); display: grid; place-items: center; }
.head-actions a:hover { color: var(--red); }
.head-actions svg { width: 21px; height: 21px; }
.pip {
  position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px;
  background: var(--red); color: #fff; border-radius: 9px;
  font-size: 10px; font-weight: 700; display: grid; place-items: center; padding-inline: 4px;
}

.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 8px 10px; color: var(--navy); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1000px) { .gbadge { display: none; } }
@media (max-width: 820px) {
  .site-head .wrap { flex-wrap: wrap; gap: 12px; }
  .searchbar { order: 3; flex-basis: 100%; }
  .head-actions { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; }
}

/* ===================================================================== nav */

.site-nav { background: var(--surface); border-bottom: 2px solid var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 13px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy);
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.site-nav a.offers { background: var(--yellow); color: var(--navy); border-radius: 3px; margin-block: 6px; padding-block: 7px; }
.site-nav a.offers:hover { background: #e0b30f; color: var(--navy); }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { border-top: 1px solid var(--line); padding-block: 12px; }
  .site-nav a.offers { margin: 6px 0; border-top: 0; }
}

/* ============================================================= ship band */

.ship-band { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 18px; }
.ship-band .sb-title {
  margin: 0 0 11px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ship-band .sb-logos {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.ship-band .sb-logos li {
  border: 1px solid var(--line); border-radius: 4px; padding: 7px 14px;
  font-family: var(--head); font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy); background: var(--surface-alt);
}
.ship-band .sb-note { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* ============================================================= brand cta */

.brand-cta { background: var(--navy); color: #fff; padding-block: 34px; }
.brand-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.brand-cta .eyebrow { color: var(--yellow); }
.brand-cta h2 { font-size: clamp(21px, 3.2vw, 29px); text-transform: uppercase; margin-bottom: 9px; }
.brand-cta p { margin: 0; color: #cdd5e6; font-size: 13.5px; line-height: 1.65; max-width: 62ch; }
.brand-cta .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.brand-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.brand-cta .btn-ghost:hover { border-color: #fff; }

/* ========================================================= rating summary */

.rating-sum { display: flex; align-items: center; gap: 12px; }
.rating-sum .rs-score {
  font-family: var(--head); font-size: 36px; font-weight: 600; color: #fff; line-height: 1;
}
.rating-sum .rs-stars { display: block; color: var(--yellow); font-size: 14px; letter-spacing: 2px; }
.rating-sum small { display: block; font-size: 11.5px; color: #93a0bd; margin-top: 3px; }

/* ============================================================= offer strip */

.offer-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 22px;
}
.offer-strip > div { background: var(--surface); padding: 15px 17px; }
.offer-strip b {
  display: block; font-family: var(--head); font-size: 17px; font-weight: 600;
  color: var(--red); letter-spacing: .03em; margin-bottom: 3px;
}
.offer-strip span { font-size: 12.5px; color: var(--ink-mid); }
.offer-strip a { color: var(--red); font-weight: 600; }
@media (max-width: 860px) { .offer-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .offer-strip { grid-template-columns: 1fr; } }

/* ============================================================== trust strip */

.trust { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust .t-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 18px 20px; color: #fff;
}
.trust .t-item:nth-child(odd)  { background: var(--navy); }
.trust .t-item:nth-child(even) { background: var(--red); }
.trust .t-ico {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, .45);
  display: grid; place-items: center;
}
.trust .t-ico svg { width: 19px; height: 19px; }
.trust h4 { font-size: 13.5px; font-family: var(--body); font-weight: 700; margin-bottom: 3px; letter-spacing: .01em; }
.trust p { margin: 0; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .85); }

@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ================================================================== finder */

.finder { padding-block: 44px 8px; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 7px;
}
.finder h2 { font-size: clamp(27px, 4.4vw, 38px); color: var(--navy); text-transform: uppercase; }
.finder .sub { color: var(--ink-mid); margin: 4px 0 20px; font-size: 14.5px; }

.finder-box {
  background: var(--navy); border-radius: 8px; padding: 20px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px;
}
.finder-box select {
  appearance: none; width: 100%;
  padding: 12px 34px 12px 13px; border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px;
  color: #fff; font-size: 13.5px; font-family: inherit;
}
.finder-box select:disabled { opacity: .45; }
.finder-box select option { color: var(--ink); background: #fff; }
.finder-box button {
  background: var(--red); color: #fff; border: 0; border-radius: 4px;
  padding: 0 30px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.finder-box button:hover { background: var(--red-dark); }
.finder-box button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 900px) { .finder-box { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .finder-box { grid-template-columns: 1fr; } }

/* ================================================================ sections */

.section { padding-block: 44px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(22px, 3.2vw, 30px); color: var(--navy); text-transform: uppercase; }
.sec-head .link { font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .04em; text-transform: uppercase; }
.sec-head .link:hover { text-decoration: underline; }

/* ============================================================== cat cards */

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card .ci {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-alt); display: grid; place-items: center; color: var(--navy);
}
.cat-card .ci svg { width: 26px; height: 26px; }
.cat-card h4 { font-family: var(--body); font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.cat-card p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-soft); }

@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ============================================================ brand strip */

.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 14px;
  text-align: center; transition: border-color .15s, box-shadow .15s;
}
.brand-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.brand-card span {
  font-family: var(--head); font-size: 17px; font-weight: 600;
  color: var(--navy); letter-spacing: .03em; text-transform: uppercase;
}
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========================================================== brand listing */

.brand-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.brand-tile:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.brand-tile .bt-name {
  font-family: var(--head); font-size: 21px; font-weight: 600; color: var(--navy);
  letter-spacing: .03em; text-transform: uppercase; line-height: 1.1;
}
.brand-tile .bt-auth {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #e7f5ec; color: var(--ok); border: 1px solid #bfe3cd; border-radius: 3px;
  padding: 4px 9px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.brand-tile .bt-auth.flagship { background: #fff5e0; color: #8a6a00; border-color: #f0dca8; }
.brand-tile .bt-auth svg { width: 13px; height: 13px; flex-shrink: 0; }
.brand-tile p { margin: 0; font-size: 12.5px; color: var(--ink-mid); line-height: 1.6; }
.brand-tile .bt-count {
  margin-top: auto; padding-top: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--red);
  letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 900px) { .brand-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .brand-list { grid-template-columns: 1fr; } }

/* ============================================================ product card */

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.prod-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
/*
 * Absolutely positioned contents rather than a centred grid: the photos are a
 * mix of portrait and landscape, and an auto-sized grid item lets a tall one
 * override the aspect-ratio and stretch the whole card.
 */
.prod-thumb {
  aspect-ratio: 4 / 3; position: relative; display: block; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, var(--surface-alt) 72%);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.prod-thumb > svg,
.prod-thumb > .part-photo,
.prod-thumb > .part-fallback > svg {
  position: absolute; inset: 12px; margin: auto;
  width: calc(100% - 24px); height: calc(100% - 24px);
}
.prod-thumb svg { opacity: .62; }
.prod-card:hover .prod-thumb svg { opacity: .82; }

/* Photos are shot on varied backgrounds, so contain them rather than crop. */
.part-photo { object-fit: contain; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .part-photo { mix-blend-mode: normal; }
}
.badge-off {
  position: absolute; top: 9px; left: 9px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 3px; letter-spacing: .03em;
}
.badge-oos {
  position: absolute; top: 9px; right: 9px;
  background: var(--ink-mid); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 3px; text-transform: uppercase;
}
.prod-body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.prod-brand { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.prod-name {
  font-family: var(--body); font-size: 12.5px; font-weight: 600; line-height: 1.45;
  color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.prod-price .now { font-size: 16.5px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.prod-price .was { font-size: 12px; color: var(--ink-soft); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.btn-add {
  border: 1px solid var(--navy); background: var(--navy); color: #fff;
  border-radius: 4px; padding: 9px; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; width: 100%;
}
.btn-add:hover { background: var(--navy-deep); }
.btn-add:disabled { background: var(--surface-alt); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn-add.added { background: var(--ok); border-color: var(--ok); }

@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .prod-grid { grid-template-columns: 1fr 1fr; } }

/* ================================================================== about */

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.about-art {
  margin: 0; border-radius: 8px; overflow: hidden; position: relative;
  background: var(--surface-alt); box-shadow: var(--shadow-md);
}
.about-art img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.about-art figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 18px 13px;
  background: linear-gradient(transparent, rgba(10, 18, 38, .88));
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}

/* Facility photos — Rexauto's own shop and warehouse. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--surface-alt); border: 1px solid var(--line);
}
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 20px 14px 11px;
  background: linear-gradient(transparent, rgba(10, 18, 38, .85));
  color: #fff; font-size: 11.5px; font-weight: 600;
}
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gallery figure:hover img { transform: none; } }
.about-copy h2 { font-size: clamp(22px, 3.4vw, 31px); color: var(--navy); text-transform: uppercase; margin-bottom: 14px; }
.about-copy .lede {
  background: var(--red); color: #fff; display: inline-block;
  padding: 7px 13px; border-radius: 3px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px;
}
.about-copy p { color: var(--ink-mid); line-height: 1.75; margin: 0 0 12px; }
.about-copy strong { color: var(--ink); }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.about-facts div { background: var(--surface); padding: 13px 15px; }
.about-facts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 3px; }
.about-facts dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--navy); }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =============================================================== features */

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat h3 { font-size: 17px; color: var(--navy); text-transform: uppercase; margin-bottom: 10px; }
.feat .rule { width: 42px; height: 3px; background: var(--red); margin-bottom: 13px; }
.feat p { margin: 0; color: var(--ink-mid); line-height: 1.7; font-size: 13.5px; }
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; gap: 22px; } }

/* =========================================================== testimonials */

.testi-band { background: var(--navy); color: #fff; }
.testi-band .eyebrow { color: var(--yellow); }
.testi-band .sec-head h2 { color: #fff; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 11px;
}
.testi-card blockquote { margin: 0; flex: 1; }
.testi-card .stars { color: var(--yellow); font-size: 13px; letter-spacing: 2px; }
.testi-card p { margin: 0; color: #cdd5e6; font-size: 13.5px; line-height: 1.7; flex: 1; }
.testi-card .who { font-size: 12.5px; font-weight: 700; }
.testi-card .who span { display: block; font-weight: 400; color: #93a0bd; font-size: 11.5px; margin-top: 2px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ==================================================================== blog */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card .bc-art {
  aspect-ratio: 16 / 9; display: block; overflow: hidden; position: relative;
  background: var(--surface-alt); color: var(--navy);
}
.blog-card .bc-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover .bc-photo { transform: scale(1.04); }
.blog-card .bc-art svg {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; opacity: .35;
}
@media (prefers-reduced-motion: reduce) { .blog-card:hover .bc-photo { transform: none; } }
.blog-card .bc-body { padding: 16px 17px 19px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card h3 { font-family: var(--body); font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.blog-card p { margin: 0; font-size: 12.5px; color: var(--ink-mid); line-height: 1.6; flex: 1; }
.blog-card .more { font-size: 11.5px; font-weight: 700; color: var(--red); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ================================================================== footer */

.site-foot { background: var(--navy-deep); color: #93a0bd; padding-block: 42px 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-foot h5 { color: #fff; font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 15px; }
.site-foot p { margin: 0 0 12px; font-size: 13px; line-height: 1.75; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-foot li { font-size: 13px; }
.site-foot a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 9px; align-items: flex-start; }
.foot-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #6c7894;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

/* ================================================================ whatsapp */

.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; color: #fff; z-index: 60;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .45);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ================================================================== toast */

.toast-host { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--navy); color: #fff; border-radius: 5px;
  padding: 11px 18px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md); animation: toast-in .2s ease-out;
}
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .cat-card:hover, .wa-float:hover { transform: none; } }

/* ============================================================ page basics */

.post-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 24px; background: var(--surface-alt);
}

.crumbs { font-size: 12.5px; color: var(--ink-soft); padding-block: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--ink); }

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 26px; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); color: var(--navy); text-transform: uppercase; }
.page-head p { margin: 7px 0 0; color: var(--ink-mid); max-width: 62ch; }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding-block: 26px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 13px; }
.panel + .panel { margin-top: 16px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.filter-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 4px; font-size: 13px; color: var(--ink-mid); }
.filter-list a:hover { background: var(--surface-alt); color: var(--ink); }
.filter-list a[aria-current="true"] { background: var(--navy); color: #fff; font-weight: 600; }
.filter-list a[aria-current="true"] em { color: rgba(255, 255, 255, .7); }
.filter-list em { font-style: normal; font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .count { font-size: 13px; color: var(--ink-mid); }
.toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 13px; font-family: inherit; color: var(--ink); }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 44px 24px; text-align: center; color: var(--ink-mid); }
.empty h3 { font-family: var(--body); font-size: 16px; color: var(--navy); margin-bottom: 6px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager button {
  min-width: 36px; padding: 8px 11px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--ink-mid);
}
.pager button:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.pager button[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ================================================================== forms */

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mid); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 13px;
  font-size: 13.5px; font-family: inherit; background: var(--surface); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 4px; padding: 12px 24px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: var(--surface); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.form-msg { border-radius: 4px; padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.form-msg.ok  { background: #e7f5ec; color: var(--ok); border: 1px solid #bfe3cd; }
.form-msg.err { background: #fdeaec; color: var(--red); border: 1px solid #f6c6cc; }

/* ========================================================== product detail */

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; padding-block: 8px 30px; }
.pd-art {
  border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, var(--surface-alt) 75%);
  color: var(--navy);
}
.pd-art > svg,
.pd-art > .part-photo,
.pd-art > .part-fallback > svg {
  position: absolute; inset: 28px; margin: auto;
  width: calc(100% - 56px); height: calc(100% - 56px);
}
.pd-art svg { opacity: .7; }
.pd-info h1 { font-family: var(--body); font-size: clamp(19px, 2.6vw, 25px); font-weight: 700; line-height: 1.35; color: var(--navy); margin-bottom: 10px; }
.pd-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }
.pd-meta b { color: var(--ink); font-weight: 600; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pd-price .now { font-family: var(--head); font-size: 34px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.pd-price .was { font-size: 15px; color: var(--ink-soft); text-decoration: line-through; }
.pd-price .off { background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.pd-tax { font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; }
.stock-line { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.stock-line .dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-line.in  { color: var(--ok); }
.stock-line.in .dot { background: var(--ok); }
.stock-line.low { color: var(--warn); }
.stock-line.low .dot { background: var(--warn); }
.stock-line.out { color: var(--red); }
.stock-line.out .dot { background: var(--red); }

.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); }
.qty button { border: 0; background: transparent; width: 38px; height: 42px; font-size: 17px; color: var(--navy); }
.qty button:hover { background: var(--surface-alt); }
.qty input { width: 52px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; font-family: inherit; color: var(--ink); }
.qty input:focus { outline: none; }

.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.pd-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.pd-trust div { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink-mid); }
.pd-trust svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 12px 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft);
}
.tabs button[aria-selected="true"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); }

.fit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fit-table th, .fit-table td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.fit-table th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; background: var(--surface-alt); }
.fit-table tbody tr:hover { background: var(--surface-alt); }
.table-scroll { overflow-x: auto; }

@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; gap: 24px; } }

/* =================================================================== cart */

.cart-grid { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; padding-block: 26px; }
.cart-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 15px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row:last-child { border-bottom: 0; }
.cart-row .cr-art {
  aspect-ratio: 1; border-radius: 4px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #ffffff 0%, var(--surface-alt) 78%);
  border: 1px solid var(--line); color: var(--navy);
}
.cart-row .cr-art > svg,
.cart-row .cr-art > .part-photo,
.cart-row .cr-art > .part-fallback > svg {
  position: absolute; inset: 5px; margin: auto;
  width: calc(100% - 10px); height: calc(100% - 10px);
}
.cart-row .cr-art svg { opacity: .6; }
.cart-row h4 { font-family: var(--body); font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink); margin-bottom: 4px; }
.cart-row .cr-sku { font-size: 11.5px; color: var(--ink-soft); }
.cart-row .cr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.cart-row .cr-price { font-size: 15px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.cart-row .cr-del { border: 0; background: transparent; color: var(--ink-soft); font-size: 11.5px; text-decoration: underline; padding: 0; }
.cart-row .cr-del:hover { color: var(--red); }

.summary { position: sticky; top: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; font-size: 13.5px; color: var(--ink-mid); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 700; color: var(--navy); }
.sum-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ship-hint { background: #fff8e1; border: 1px solid #f3e3b0; border-radius: 4px; padding: 10px 12px; font-size: 12px; color: #8a6a00; margin-block: 12px; }

@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-row { grid-template-columns: 60px 1fr; } .cart-row .cr-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

/* ========================================================= platform layer */

code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }

.err-ref { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 500; opacity: .85; }
.err-ref code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 3px; }

/* incident banner */
.incident-bar { background: #fff4d6; border-bottom: 1px solid #f0d58a; color: #6b4a00; font-size: 13px; }
.incident-bar[data-sev="SEV1"], .incident-bar[data-sev="SEV2"] { background: #fde8ea; border-color: #f3b8bf; color: #7d0012; }
.incident-bar .wrap { display: flex; gap: 12px; align-items: center; padding-block: 9px; flex-wrap: wrap; }
.incident-bar b { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.incident-bar span { flex: 1; min-width: 200px; }
.incident-bar a { font-weight: 700; color: inherit; }

/* search autocomplete */
.searchbar { position: relative; overflow: visible; }
.searchbar input { border-radius: var(--radius) 0 0 var(--radius); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.sg-item { display: block; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sg-item:hover, .sg-item:focus { background: var(--surface-alt); }
.sg-name { display: block; font-size: 13px; font-weight: 600; }
.sg-meta { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.sg-note { padding: 9px 14px; font-size: 12.5px; color: var(--ink-mid); border-bottom: 1px solid var(--line); }
.sg-note.err { color: var(--red); }
.sg-foot { padding: 6px 14px; font-size: 10.5px; color: var(--ink-soft); background: var(--surface-alt); font-family: ui-monospace, Menlo, monospace; }

/* footer build strip */
.foot-build { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-block: 10px 16px; font-size: 11.5px; color: #8793ab; border-top: 1px solid var(--navy-line); }
.foot-build code { color: #b7c0d4; }
.sys-pill { display: inline-flex; align-items: center; gap: 8px; color: #cfd6e4; text-decoration: none; font-weight: 600; }
.sys-dot { width: 8px; height: 8px; border-radius: 50%; background: #8793ab; box-shadow: 0 0 0 3px rgba(135,147,171,.2); }
.sys-pill[data-state="operational"] .sys-dot { background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }
.sys-pill[data-state="degraded"] .sys-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.sys-pill[data-state="outage"] .sys-dot { background: #ff4757; box-shadow: 0 0 0 3px rgba(255,71,87,.25); }

/* state chips shared by status + admin */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; text-transform: capitalize; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.operational, .chip.success, .chip.ok, .chip.resolved, .chip.done { background: #e7f5ec; color: var(--ok); }
.chip.degraded, .chip.warn, .chip.investigating, .chip.identified, .chip.monitoring, .chip.running { background: #fff4d6; color: #9a6400; }
.chip.outage, .chip.failed, .chip.error { background: #fde8ea; color: var(--red); }
.chip.info { background: #e8eef9; color: var(--navy); }

/* product: live inventory, tiers, pincode, RC */
.pd-live { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); }
.pd-live > div { padding: 12px 14px; }
.pd-live > div + div { border-top: 1px solid var(--line); }
.pd-live h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 8px; }
.pd-live h4 small { letter-spacing: 0; text-transform: none; font-weight: 500; }
.wh-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; font-size: 13px; padding: 3px 0; align-items: center; }
.wh-row code { color: var(--navy); font-weight: 600; }
.wh-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.wh-bar i { display: block; height: 100%; background: var(--navy); }
.tier-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tier { flex: 1; min-width: 90px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 7px 10px; font-size: 12px; color: var(--ink-mid); }
.tier b { display: block; color: var(--ink); font-size: 14px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; font-size: 13px; text-transform: uppercase; }
.inline-form button { white-space: nowrap; }
.live-out { font-size: 12.5px; margin-top: 8px; color: var(--ink-mid); line-height: 1.6; }
.live-out table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.live-out td { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.live-out td:last-child { text-align: right; }
.live-out .tech { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--ink-soft); margin-top: 4px; }
.fit-ok { color: var(--ok); font-weight: 700; }
.fit-no { color: var(--red); font-weight: 700; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-fit { display: inline-flex; gap: 6px; align-items: center; background: #e7f5ec; color: var(--ok); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-top: 10px; }

/* checkout pipeline */
.pipeline { list-style: none; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); }
.pipeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; color: var(--ink-soft); }
.pipeline li .ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pipeline li.active { color: var(--ink); }
.pipeline li.done { color: var(--ink); }
.pipeline li.done .ic { background: var(--ok); border-color: var(--ok); color: #fff; }
.pipeline li.fail { color: var(--red); }
.pipeline li.fail .ic { background: var(--red); border-color: var(--red); color: #fff; }
.pipeline li small { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--ink-soft); }
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-methods label { flex: 1; min-width: 90px; border: 1px solid var(--line); border-radius: 4px; padding: 9px 10px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.pay-methods input:checked + span { color: var(--navy); }

/* order tracking */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: 13.5px; color: var(--ink-soft); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.timeline li.done { color: var(--ink); }
.timeline li.done::after { background: var(--ok); border-color: var(--ok); }
.timeline li.done::before { background: var(--ok); }
.timeline small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ops pages */
.ops-page { padding-block: 28px 48px; }
.ops-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.stat b { display: block; font-size: 26px; font-family: var(--head); color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11.5px; color: var(--ink-soft); }
.stat.bad b { color: var(--red); }
.ops-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ops-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ops-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ops-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ops-table code { color: var(--navy); }
.uptime-bars { display: flex; gap: 2px; height: 28px; margin-top: 8px; }
.uptime-bars i { flex: 1; border-radius: 1.5px; background: #2ecc71; }
.uptime-bars i.degraded { background: var(--yellow); }
.uptime-bars i.outage { background: #ff4757; }
.comp-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comp-row:last-child { border-bottom: 0; }
.comp-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.comp-head small { font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-left: 8px; }
.uptime-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }
.overall { padding: 18px 20px; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.overall[data-state="operational"] { background: var(--ok); }
.overall[data-state="degraded"] { background: #c77700; }
.overall[data-state="outage"] { background: var(--red); }
.overall small { font-weight: 500; font-size: 12px; opacity: .9; }
.feed { font-family: ui-monospace, Menlo, monospace; font-size: 12px; max-height: 420px; overflow: auto; background: #0f1d38; color: #cfd6e4; border-radius: var(--radius); padding: 10px 0; }
.feed div { padding: 3px 14px; display: grid; grid-template-columns: 70px 150px 1fr; gap: 10px; }
.feed div.new { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(245,197,24,.18); } to { background: transparent; } }
.feed .t { color: #6c7894; }
.feed .ok { color: #2ecc71; } .feed .info { color: #7fb2ff; } .feed .warn { color: var(--yellow); } .feed .error { color: #ff6b7a; }
.ops-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 16px; overflow-x: auto; }
.ops-tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-mid); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.ops-tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--red); }
.chart { width: 100%; height: 150px; display: block; }
.two-col { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 16px; }
.switch-t { position: relative; width: 38px; height: 22px; display: inline-block; }
.switch-t input { opacity: 0; width: 0; height: 0; }
.switch-t span { position: absolute; inset: 0; background: var(--line); border-radius: 11px; cursor: pointer; transition: .15s; }
.switch-t span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch-t input:checked + span { background: var(--ok); }
.switch-t input:checked + span::before { transform: translateX(16px); }
.ops-select { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font: inherit; font-size: 12.5px; background: var(--surface); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.code-block { background: #0f1d38; color: #cfd6e4; border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.6; margin: 10px 0 0; }
.code-block .k { color: #7fb2ff; } .code-block .s { color: #a5e3b5; } .code-block .c { color: #6c7894; }
.endpoint { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin-top: 14px; }
.endpoint h4 { margin: 0; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.endpoint p { margin: 8px 0 0; color: var(--ink-mid); font-size: 13.5px; }
.verb { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 3px; color: #fff; background: var(--ok); }
.verb.post { background: var(--navy); } .verb.patch { background: #c77700; }
.apikey { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.apikey code { background: var(--surface-alt); border: 1px solid var(--line); padding: 8px 10px; border-radius: 4px; flex: 1; min-width: 220px; }
@media (max-width: 600px) { .feed div { grid-template-columns: 60px 1fr; } .feed div .msg { grid-column: 1 / -1; } }

/* ======================================================== workshop tools */

.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.lab-hero { background: radial-gradient(ellipse at 80% 0%, #243e6e 0%, var(--navy-deep) 60%); color: #fff; padding-block: 38px; position: relative; overflow: hidden; }
.lab-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.lab-hero h1 { font-size: clamp(26px, 4.5vw, 40px); text-transform: uppercase; max-width: 22ch; margin: 6px 0 10px; }
.lab-hero p { color: #b7c0d4; max-width: 64ch; margin: 0; }
.lab-hero .eyebrow { color: var(--yellow); }
.lab-page { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding-block: 24px 48px; align-items: start; }
.lab-nav { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.lab-nav div + div { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.lab-nav small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 4px 8px; }
.lab-nav a { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.lab-nav a:hover { background: var(--surface-alt); }
.lab-nav a[aria-current="true"] { background: var(--navy); color: #fff; }
.lab-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.lab-tool header { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.lab-tool h2 { font-size: 22px; color: var(--navy); text-transform: uppercase; margin: 0; }
.lab-tool header p { margin: 6px 0 0; color: var(--ink-mid); font-size: 14px; }
@media (max-width: 860px) {
  .lab-page { grid-template-columns: 1fr; }
  .lab-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .lab-nav div { display: contents; }
  .lab-nav small { display: none; }
  .lab-nav a { white-space: nowrap; border: 1px solid var(--line); }
  .lab-nav div + div { border: 0; margin: 0; padding: 0; }
}
.lab-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lab-split.wide-left { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .lab-split, .lab-split.wide-left { grid-template-columns: 1fr; } }
.lab-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.lab-row > label, .lab-controls label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mid); min-width: 150px; }
.lab-row select, .lab-row input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), .lab-controls select { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 13px; background: var(--surface); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; }
.lab-controls { display: flex; flex-direction: column; gap: 12px; }
.lab-controls label b, .lab-row label b { color: var(--navy); font-family: ui-monospace, Menlo, monospace; float: right; }
input[type="range"] { accent-color: var(--red); width: 100%; }
.lab-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin: 8px 0 0; }
.lab-slider { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--ink-mid); min-width: 220px; }
.lab-big-input input { font-size: 16px !important; padding: 12px 14px !important; font-family: ui-monospace, Menlo, monospace; }
.lab-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--red); }
.readout { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 4px 0 0; font-size: 13px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.readout dt { color: var(--ink-soft); }
.readout dd { margin: 0; text-align: right; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.meter { display: inline-block; width: 70px; height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--ok); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip-row button { border: 0; cursor: pointer; font-family: ui-monospace, Menlo, monospace; }
.pill-check { display: inline-flex; }
.pill-check input { position: absolute; opacity: 0; }
.pill-check span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: var(--surface); text-transform: none; letter-spacing: 0; color: var(--ink); }
.pill-check input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill-check input:focus-visible + span { outline: 2px solid var(--red); }
.mini-list { display: grid; gap: 6px; margin-top: 8px; }
.mini-list a { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 13px; }
.mini-list a:hover { border-color: var(--navy); }
.mini-list small { display: block; color: var(--ink-soft); margin-top: 2px; }
.mini-in { width: 64px; border: 1px solid var(--line); border-radius: 4px; padding: 5px 6px; font: inherit; font-size: 12.5px; text-align: right; }
.mini-bars { display: grid; gap: 6px; margin-top: 12px; }
.mini-bars > div { display: grid; grid-template-columns: 110px 1fr 90px; gap: 8px; align-items: center; font-size: 12.5px; }
.mini-bars i { height: 10px; border-radius: 5px; background: var(--ok); display: block; }
.mini-bars .no i { background: #c9ced8; }
.mini-bars small { color: var(--ink-soft); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* beam */
.beam-canvas { width: 100%; aspect-ratio: 320 / 170; border-radius: var(--radius); background: #060912; display: block; }
.beam-legend { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--ink-soft); margin-top: 6px; }
.beam-legend i { width: 14px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; margin-right: 3px; }
.cct-strip { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ffa757, #ffd6aa, #fff4ea, #e3e9ff, #c9d9ff); }

/* spectrum */
.spectrum { width: 100%; height: auto; display: block; }

/* sockets */
.socket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.socket-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.socket-card b { font-size: 17px; color: var(--navy); }
.socket-card small { color: var(--ink-mid); font-size: 12px; }
.socket-card a { margin-top: 6px; font-size: 12.5px; color: var(--red); font-weight: 600; }
.socket-svg { width: 90px; height: 80px; color: var(--ink); align-self: center; }

/* load */
.fuse { display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 11.5px; padding: 2px 8px; border-radius: 3px; color: #222; background: #ddd; }
.fuse.f5 { background: #e0b87a; } .fuse.f75 { background: #9c6b3a; color: #fff; } .fuse.f10 { background: #e3342f; color: #fff; }
.fuse.f15 { background: #3490dc; color: #fff; } .fuse.f20 { background: #f6d55c; } .fuse.f25 { background: #f2f2f2; border: 1px solid #ccc; }
.fuse.f30 { background: #38c172; color: #fff; } .fuse.f40 { background: #f6993f; }
.load-bar { position: relative; height: 22px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; display: flex; margin-top: 18px; }
.load-bar i.base { background: #8fa0bf; }
.load-bar i.add.ok { background: var(--ok); } .load-bar i.add.warn { background: var(--warn); } .load-bar i.add.error { background: var(--red); }
.load-bar span { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--ink); font-size: 10px; padding-left: 4px; line-height: 22px; color: var(--ink); }

/* wiring */
.wiring { width: 100%; height: auto; }
.wiring .pin.on .wire { filter: drop-shadow(0 0 4px rgba(255, 200, 0, .7)); }
.wiring .pin.blink .wire { animation: blink 0.7s steps(2, jump-none) infinite; }
.wiring .pin:focus { outline: none; }
.wiring .pin:hover rect, .wiring .pin:focus rect { stroke: var(--red); stroke-width: 2; }
@keyframes blink { 50% { opacity: .15; } }
.wire-swatch { height: 12px; border-radius: 6px; margin-bottom: 10px; border: 1px solid var(--line); }

/* obd */
.dtc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.dtc div { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-align: center; background: var(--surface-alt); }
.dtc b { display: block; font-size: 26px; color: var(--navy); }
.dtc small { font-size: 11.5px; color: var(--ink-mid); }

/* exploded */
.exploded { width: 100%; height: auto; background: repeating-linear-gradient(0deg, transparent 0 19px, var(--surface-alt) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, var(--surface-alt) 19px 20px); border-radius: var(--radius); border: 1px solid var(--line); }
.exp-part:hover path, .exp-part:focus path { stroke: var(--red); stroke-width: 2.5; }
.exp-part:focus { outline: none; }
.exp-info tr { cursor: pointer; }
.exp-info tr.sel td { background: #fde8ea; }

/* jack */
.jack-svg { width: 100%; height: auto; }
.rec { margin-top: 12px; padding: 10px 12px; border: 1px solid #bfe3cd; background: #f1faf4; border-radius: var(--radius); font-size: 13px; }
.rec a { color: var(--ink); }

/* seals */
.caliper { width: 100%; height: auto; color: var(--navy); background: var(--surface-alt); border-radius: var(--radius); }

/* vin */
.vin-chars { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 16px; }
.vin-chars span { width: 38px; text-align: center; border-bottom: 4px solid var(--c); background: var(--surface-alt); border-radius: 4px 4px 0 0; padding: 6px 0 2px; }
.vin-chars span.bad { background: #fde8ea; }
.vin-chars b { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 20px; color: var(--c); }
.vin-chars small { font-size: 9px; color: var(--ink-soft); }
.vin-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.vin-legend div { border-left: 4px solid var(--c); padding: 6px 10px; background: var(--surface-alt); border-radius: 0 4px 4px 0; font-size: 12.5px; }
.vin-legend div.bad { background: #fde8ea; }
.vin-legend b { display: block; color: var(--c); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .vin-chars span { width: calc((100% - 30px) / 9); } .vin-chars b { font-size: 15px; } }

/* graph */
.graph-svg { width: 100%; height: auto; background: var(--surface-alt); border-radius: var(--radius); border: 1px solid var(--line); }
.graph-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 12px; }
.graph-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* verify */
.verdict { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); margin-top: 14px; }
.verdict b { font-size: 20px; font-family: var(--head); text-transform: uppercase; }
.verdict.good { background: #e7f5ec; color: var(--ok); border: 1px solid #bfe3cd; }
.verdict.bad { background: #fde8ea; color: var(--red); border: 1px solid #f3b8bf; }
.verdict span { color: var(--ink); font-size: 13.5px; }

/* certs + IP */
.cert-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cert { border: 1px solid #bfe3cd; background: #f1faf4; color: var(--ok); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 4px; }
.ip-demo { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; margin-top: 14px; }
.ip-box { position: relative; height: 110px; border: 2px solid var(--navy); border-radius: 8px; background: linear-gradient(#eef2f8, #dfe6f1); overflow: hidden; display: grid; place-items: center; }
.ip-box span { position: relative; z-index: 2; font-family: var(--head); font-size: 22px; color: var(--navy); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 4px; }
.ip-box i { position: absolute; top: -12px; width: 4px; height: 10px; border-radius: 2px; background: #3e8ede; animation: rain 1.1s linear infinite; }
.ip-box i:nth-child(1) { left: 12%; animation-delay: 0s; } .ip-box i:nth-child(2) { left: 30%; animation-delay: .3s; } .ip-box i:nth-child(3) { left: 48%; animation-delay: .6s; }
.ip-box i:nth-child(4) { left: 64%; animation-delay: .15s; } .ip-box i:nth-child(5) { left: 80%; animation-delay: .45s; } .ip-box i:nth-child(6) { left: 92%; animation-delay: .75s; }
.ip-box.ip-7 i { width: 100%; left: 0 !important; height: 100%; top: 100%; border-radius: 0; background: rgba(62,142,222,.35); animation: flood 3s ease-in-out infinite alternate; }
@keyframes rain { to { transform: translateY(130px); } }
@keyframes flood { from { top: 100%; } to { top: 10%; } }
@media (prefers-reduced-motion: reduce) { .ip-box i, .wiring .pin.blink .wire, .feed div.new { animation: none; } }

/* mtbf */
.mtbf-svg { width: 100%; height: auto; }

/* fit confidence */
.fit-score { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-top: 10px; }
.fit-score svg { width: 110px; height: 110px; }

/* supersession */
.supersede { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; }
.supersede > div { flex: 1; min-width: 150px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.supersede > div.superseded code { text-decoration: line-through; color: var(--ink-soft); }
.supersede > div.current { border-color: #bfe3cd; background: #f1faf4; }
.supersede .arrow { align-self: center; color: var(--ink-soft); font-weight: 700; }
.supersede small { color: var(--ink-mid); }

/* bom + identify */
.drop { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; background: var(--surface-alt); margin-bottom: 10px; }
.drop.over, .drop:hover { border-color: var(--navy); background: #eef2f8; }
.drop small { color: var(--ink-soft); font-size: 12px; }
.bom-text { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 10px; resize: vertical; }
.id-preview { width: 100%; border-radius: var(--radius); background: var(--surface-alt); }

/* garage */
.garage-card + .garage-card { margin-top: 16px; }

/* product engineering tab */
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.eng-grid .panel + .panel { margin-top: 0; }
.eng-wide { grid-column: 1 / -1; }
.eng-link { background: #e8eef9; color: var(--navy); text-decoration: none; margin-left: 6px; }
.lab-row > label.pill-check { min-width: 0; flex-direction: row; text-transform: none; letter-spacing: 0; }
.lab-big-input { flex-wrap: wrap; }
.lab-big-input input { flex: 1 1 260px; }
.exp-info td.mono { white-space: nowrap; font-size: 11px; }

/* ========================================================= numbers band */

.numbers { background: var(--navy-deep); color: #fff; padding-block: 46px 50px; }
.numbers .nb-lead { margin: 0 auto 34px; max-width: 56ch; text-align: center; font-size: clamp(15px, 2vw, 18px); line-height: 1.6; color: #c3cbdb; }
.numbers .nb-lead b { color: #fff; }
.nb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.nb-grid li { text-align: center; padding: 6px 18px; }
.nb-grid li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.nb-grid b { font-family: var(--head); font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.nb-grid .plus { font-family: var(--head); font-size: clamp(26px, 3.5vw, 38px); color: var(--yellow); vertical-align: top; margin-left: 2px; }
.nb-grid h3 { margin: 12px 0 6px; font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.nb-grid p { margin: 0; font-size: 13px; color: #9aa6bd; }
@media (max-width: 640px) {
  .nb-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .nb-grid li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; }
}

/* ========================================================== trade portal */

.tb-portal { font-size: 12.5px; font-weight: 600; color: var(--navy); text-decoration: none; }
.tb-portal:hover { color: var(--red); }

/* home page call to action */
.trade-cta { background: linear-gradient(100deg, var(--navy-deep) 0%, #173a6e 100%); color: #fff; padding-block: 40px; }
.trade-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.tc-copy { max-width: 640px; }
.tc-copy h2 { font-size: clamp(24px, 3.4vw, 34px); text-transform: uppercase; margin: 0 0 10px; }
.tc-copy p { margin: 0; color: #c3cbdb; font-size: 15.5px; line-height: 1.6; }
.tc-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 14px 0 0; font-size: 13px; font-weight: 600; }
.tc-points li::before { content: '✓'; color: var(--yellow); margin-right: 6px; }
.tc-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding: 16px 30px; border-radius: 999px; box-shadow: 0 10px 28px rgba(208, 2, 27, .45); transition: transform .15s, box-shadow .15s; }
.tc-btn svg { width: 22px; height: 22px; }
.tc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(208, 2, 27, .55); background: var(--red-dark); }

/* sign-in / register */
.tp-gate { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding-block: 40px 56px; }
.tp-gate-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .tp-gate-grid { grid-template-columns: 1fr; } }
.tp-pitch h1 { font-size: clamp(30px, 4.6vw, 46px); color: var(--navy); text-transform: uppercase; line-height: 1.05; margin: 6px 0 14px; }
.tp-sub { font-size: 16px; color: var(--ink-mid); line-height: 1.6; max-width: 48ch; margin: 0; }
.tp-steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.tp-steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
.tp-steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: 17px; }
.tp-steps b { font-size: 15px; color: var(--ink); }
.tp-steps span { font-size: 13.5px; color: var(--ink-mid); }
.tp-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.tp-proof div { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px; }
.tp-proof b { display: block; font-family: var(--head); font-size: 22px; color: var(--red); }
.tp-proof span { font-size: 12px; color: var(--ink-mid); }
.tp-auth { padding: 22px; box-shadow: var(--shadow-md); }
.tp-auth .tabs { margin-bottom: 16px; }
.tp-gstin { font-size: 17px !important; letter-spacing: .12em; }
.gst-read { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.gst-slot { font-size: 11.5px; text-align: center; padding: 5px 4px; border-radius: 4px; background: var(--surface-alt); color: var(--ink-soft); border: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gst-slot.ok { background: #e7f5ec; color: var(--ok); border: 1px solid #bfe3cd; font-weight: 600; }
.gst-slot.bad { background: #fde8ea; color: var(--red); border: 1px solid #f3b8bf; font-weight: 600; }
.tp-demo { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-mid); }

/* dashboard */
.tp-bar { background: var(--navy-deep); color: #fff; padding-block: 28px; }
.tp-bar-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
@media (max-width: 960px) { .tp-bar-grid { grid-template-columns: 1fr; } }
.tp-bar h1 { font-size: clamp(24px, 3.6vw, 34px); text-transform: uppercase; margin: 4px 0 6px; }
.tp-bar .eyebrow { color: var(--yellow); }
.tp-meta { margin: 0; color: #b7c0d4; font-size: 13.5px; }
.tier { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.tier-silver { background: #d7dce3; color: #39424f; }
.tier-gold { background: linear-gradient(90deg, #f5c518, #e0a800); color: #3b2c00; }
.tier-platinum { background: linear-gradient(90deg, #e9edf3, #b9c3d1); color: #1c2533; }
.tp-cards { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .tp-cards { grid-template-columns: 1fr; } }
.tp-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 12px 14px; }
.tp-card span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9aa6bd; font-weight: 700; }
.tp-card b { display: block; font-family: var(--head); font-size: 24px; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.tp-card small { font-size: 11.5px; color: #9aa6bd; }
.tp-meter { height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.tp-meter i { display: block; height: 100%; background: var(--yellow); }
.tp-meter i.hot { background: #ff4757; }
.tp-body { padding-block: 20px 50px; }
.tp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tp-tabs button { background: none; border: 0; padding: 12px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-mid); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tp-tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--red); }
.tp-tabs .tp-out { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.pip-n { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 11px; margin-left: 4px; }

.tp-pad-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .tp-pad-grid { grid-template-columns: 1fr; } }
.tp-pad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tp-pad-head h3 { margin: 0; }
.tp-pad-head small { color: var(--ink-soft); font-size: 12px; }
.tp-pad td { vertical-align: top; }
.tp-pad tr.short td { background: #fff6e0; }
.tp-part { position: relative; min-width: 240px; }
.tp-part input { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 13px; }
.tp-part input:focus, .tp-pad .mini-in:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 41, 77, .12); }
.tp-part small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-mid); }
.warn-t { color: var(--warn) !important; }
.tp-suggest { position: absolute; left: 0; right: 0; top: 40px; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-md); max-height: 260px; overflow: auto; }
.tp-suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; font: inherit; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid var(--line); }
.tp-suggest button:hover, .tp-suggest button:focus { background: var(--surface-alt); }
.tp-suggest small { display: block; color: var(--ink-soft); margin-top: 2px; }
.tp-suggest em { display: block; padding: 8px 10px; font-size: 12.5px; color: var(--ink-soft); }
.was { color: var(--ink-soft); text-decoration: line-through; font-size: 11px; }
.stock-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ok); }
.stock-dot.low { background: var(--warn); } .stock-dot.out { background: var(--red); }
.tp-summary { position: sticky; top: 12px; }
.tp-summary .kv dd { font-variant-numeric: tabular-nums; }

.tp-stock-bar input, .tp-stock-bar select { border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; font: inherit; font-size: 13.5px; background: var(--surface); }
.tp-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-mid); }
.tp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(26, 143, 76, .15); } }
.stock-bar { display: inline-block; width: 80px; height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.stock-bar i { display: block; height: 100%; background: var(--ok); }
.stock-bar i.low { background: var(--warn); } .stock-bar i.out { background: var(--red); }
.tp-stock tr.flash td { animation: flashrow 2s ease-out; }
@keyframes flashrow { from { background: #fff3b0; } }
.tp-stock small { color: var(--ink-mid); }

.tp-done { text-align: center; padding: 40px 20px; }
.tp-done h2 { color: var(--navy); text-transform: uppercase; margin: 12px 0 6px; }
.tp-done p { color: var(--ink-mid); margin: 0; }
.tp-tick { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #e7f5ec; color: var(--ok); display: grid; place-items: center; font-size: 32px; font-weight: 700; }
tr.current td { background: #f1faf4; }
@media (prefers-reduced-motion: reduce) { .tp-live i, .tp-stock tr.flash td { animation: none; } }
.pay-honest label { align-items: flex-start; min-width: 220px; padding: 12px; }
.pay-honest span { display: flex; flex-direction: column; gap: 2px; }
.pay-honest small { font-weight: 500; color: var(--ink-mid); font-size: 12px; }
.pay-honest input { margin-top: 3px; }

/* checkout coupon + cart stock notes */
.coupon-box { display: flex; gap: 8px; margin-top: 14px; }
.coupon-box input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 13px; text-transform: uppercase; }
.cr-warn { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 4px; }
.cr-low { color: var(--warn); font-size: 12px; margin-top: 4px; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 640px) {
  .brand-cta .cta-actions { flex-shrink: 1; width: 100%; }
  .brand-cta .cta-actions .btn { flex: 1 1 auto; }
}
