/* ==========================================================================
   TradeBioIndia — application stylesheet
   Light theme. Single source for every page of the app.
   ========================================================================== */

:root {
  --ink: #0b1f2a;
  --body: #37475a;
  --muted: #6b7f92;
  --faint: #93a4b3;
  --line: #e3e9ef;
  --line-strong: #cfd9e3;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-alt: #fbfcfd;

  --brand: #0d6b7a;
  --brand-dark: #0a5361;
  --brand-light: #e7f4f6;
  --brand-ring: rgba(13, 107, 122, 0.18);

  --accent: #12704a;
  --accent-light: #e7f5ee;

  --warn: #9a6200;
  --warn-light: #fdf5e6;
  --warn-line: #f0dcb4;

  --danger: #b3261e;
  --danger-light: #fdecea;
  --danger-line: #f3c9c5;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 42, 0.05), 0 1px 3px rgba(11, 31, 42, 0.04);
  --shadow: 0 2px 6px rgba(11, 31, 42, 0.06), 0 8px 24px rgba(11, 31, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(11, 31, 42, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 64px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  font-weight: 650;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); }
h3 { font-size: 1.075rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
img { max-width: 100%; display: block; }
strong { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code { font-family: var(--mono); font-size: .875em; background: var(--bg); padding: .1em .35em; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
.card > :last-child, .panel > :last-child, .section-head > :last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo {
  font-weight: 750; font-size: 1.16rem; color: var(--ink);
  letter-spacing: -.02em; white-space: nowrap; flex-shrink: 0;
}
.logo span { color: var(--brand); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--body); font-size: .925rem; font-weight: 500;
  padding: 8px 11px; border-radius: var(--radius-sm); white-space: nowrap;
}
.main-nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--brand); background: var(--brand-light); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.search-trigger {
  display: flex; align-items: center; gap: 9px;
  min-width: 240px; padding: 9px 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--muted); font-size: .9rem;
  cursor: pointer; font-family: inherit; text-align: left;
}
.search-trigger:hover { border-color: var(--line-strong); background: #fff; }
.search-trigger svg { flex-shrink: 0; }
.search-trigger kbd {
  margin-left: auto; font-family: var(--font); font-size: .68rem;
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; color: var(--faint); background: #fff;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .93rem; font-weight: 600; line-height: 1;
  padding: 12px 18px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); padding: 10px 12px; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0d5a3b; }
.btn-sm { padding: 8px 13px; font-size: .85rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .62; pointer-events: none; }
.btn-link {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--brand); cursor: pointer; text-decoration: underline;
}

/* ---------- Global search overlay ---------- */
.search-layer {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(11, 31, 42, .38); padding: 84px 20px 20px;
}
.search-layer.open { display: block; }
.search-panel {
  max-width: 660px; margin: 0 auto; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-panel input {
  width: 100%; border: 0; outline: 0; font-family: inherit; font-size: 1.05rem;
  padding: 20px 22px; color: var(--ink); border-bottom: 1px solid var(--line);
}
.search-panel input::placeholder { color: var(--faint); }
.search-hint {
  padding: 9px 22px; font-size: .78rem; color: var(--faint);
  display: flex; gap: 14px; border-bottom: 1px solid var(--line); background: var(--surface-alt);
}
.search-results { max-height: 52vh; overflow-y: auto; }
.search-group-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); font-weight: 700; padding: 12px 22px 6px;
}
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 22px; cursor: pointer; border-left: 3px solid transparent;
}
.search-item:hover, .search-item.active { background: var(--brand-light); border-left-color: var(--brand); }
.search-item .si-main { flex: 1; min-width: 0; }
.search-item .si-name { color: var(--ink); font-weight: 600; font-size: .95rem; }
.search-item .si-meta { color: var(--muted); font-size: .8rem; }
.search-item mark { background: #fff3c4; color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 26px 22px; color: var(--muted); font-size: .92rem; }
.search-foot {
  border-top: 1px solid var(--line); padding: 11px 22px;
  font-size: .82rem; background: var(--surface-alt); display: flex; justify-content: space-between; gap: 10px;
}

/* ---------- Shell / sections ---------- */
main { display: block; min-height: 50vh; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { margin-bottom: 26px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-light); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 1.02rem; margin: 0; }
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #cfdae2; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-brand { background: linear-gradient(150deg, #0d6b7a 0%, #0a5361 100%); color: #d8ecf0; }
.band-brand h2, .band-brand h3 { color: #fff; }
.band-brand a { color: #fff; }

/* ---------- Free band ---------- */
.free-band {
  background: var(--accent-light); color: #0d5a3b;
  border-bottom: 1px solid #cfe9dd;
  font-size: .855rem; font-weight: 600; text-align: center; padding: 9px 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #eef6f8 60%, #e6f1f4 100%);
  border-bottom: 1px solid var(--line);
  padding: 62px 0 54px;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,107,122,.10) 0%, rgba(13,107,122,0) 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: 14px; }
.hero p.lead { font-size: 1.08rem; color: var(--body); margin-bottom: 26px; }
.hero-search { display: flex; gap: 10px; margin-bottom: 16px; }
.hero-search input {
  flex: 1; font-family: inherit; font-size: 1rem; padding: 15px 17px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
}
.hero-search input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 13px; font-size: .85rem; color: var(--body); cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 34px; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.hero-stats div span { font-size: .84rem; color: var(--muted); }
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.page-hero h1 { margin-bottom: 8px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.card-flush { padding: 0; overflow: hidden; }
.card h2 { font-size: 1.2rem; }
.card h3 { font-size: 1rem; }
.card-head {
  padding: 15px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-alt);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px 22px; }

.product-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 17px;
  box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0d6b7a, #3ba7b8);
}
.product-card.is-b::before { background: linear-gradient(90deg, #a8760a, #e0a82e); }
.product-card:hover {
  text-decoration: none; border-color: var(--brand);
  box-shadow: var(--shadow); transform: translateY(-2px);
}
.product-card h3 { margin: 0; font-size: 1.02rem; }
.product-card .pc-sub { font-size: .845rem; color: var(--muted); margin: 0; }
.product-card .pc-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .8rem; color: var(--muted);
}
.wedge-tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-light);
  padding: 4px 8px; border-radius: 5px;
}
.wedge-tag.tag-b { color: #6b4b00; background: #fdf3dd; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  background: var(--bg); color: var(--body); border: 1px solid var(--line);
}
.badge-free { background: var(--accent-light); color: var(--accent); border-color: #cfe9dd; }
.badge-verified { background: var(--brand-light); color: var(--brand-dark); border-color: #c9e5e9; }
.badge-rx { background: var(--danger-light); color: var(--danger); border-color: var(--danger-line); }
.badge-warn { background: var(--warn-light); color: var(--warn); border-color: var(--warn-line); }
.badge-featured { background: #fff6e0; color: #8a5a00; border-color: #f2e0b4; }
.badge-plain { background: transparent; }

/* ---------- Notices ---------- */
.notice {
  display: flex; gap: 12px; padding: 15px 17px; border-radius: var(--radius);
  font-size: .9rem; border: 1px solid; margin-bottom: 18px;
}
.notice > div { flex: 1; }
.notice strong { display: block; margin-bottom: 2px; }
.notice-info { background: var(--brand-light); border-color: #c9e5e9; color: #0b4a55; }
.notice-warn { background: var(--warn-light); border-color: var(--warn-line); color: var(--warn); }
.notice-danger { background: var(--danger-light); border-color: var(--danger-line); color: var(--danger); }
.notice-ok { background: var(--accent-light); border-color: #cfe9dd; color: var(--accent); }
.notice p:last-child { margin-bottom: 0; }
.notice .notice-icon { flex-shrink: 0; font-size: 1.05rem; line-height: 1.4; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .82rem; color: var(--muted); padding: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--faint); }

/* ---------- Product page ---------- */
.product-head { padding: 14px 0 6px; }
.product-head h1 { margin-bottom: 12px; }
.product-head .meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; padding: 22px 0 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
.kv { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 0; }
.kv dt {
  font-size: .86rem; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line);
}
.kv dd {
  margin: 0; padding: 10px 0; border-top: 1px solid var(--line);
  font-size: .91rem; color: var(--ink);
}
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tr:first-child td { border-top: 0; }
.spec-table td:first-child { color: var(--muted); width: 42%; padding-right: 16px; }
.spec-table td:last-child { color: var(--ink); }
.price-or { font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.price-note { font-size: .84rem; color: var(--muted); }
.prose { font-size: .95rem; }
.prose h3 { margin-top: 18px; font-size: .98rem; }
.prose ul { padding-left: 1.1em; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; font-family: inherit;
  font-size: .9rem; font-weight: 600; color: var(--muted); padding: 11px 14px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; padding: 20px 0 0; }
.tab-panel.active { display: block; }

/* faq */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink);
  font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-weight: 600; font-size: 1.1rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 16px; font-size: .92rem; color: var(--body); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Supplier / listing rows ---------- */
.supplier-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.supplier-row:first-child { border-top: 0; }
.supplier-avatar {
  width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem;
}
.supplier-row .sr-main { flex: 1; min-width: 0; }
.supplier-row h4 { margin: 0 0 3px; font-size: .96rem; }
.supplier-row .sr-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.placeholder-row {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 18px; background: var(--surface-alt); font-size: .9rem; color: var(--muted);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="password"], .field select, .field textarea {
  font-family: inherit; font-size: .94rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7f92' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fffafa; }
.field .err { font-size: .78rem; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .89rem; }
.check-row input { margin-top: 3px; flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 8px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset > legend { font-size: .86rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }

.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step-pill {
  display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted);
  padding: 7px 13px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
}
.step-pill .num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--line-strong); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}
.step-pill.active { background: var(--brand-light); border-color: #bfe0e5; color: var(--brand-dark); font-weight: 600; }
.step-pill.active .num { background: var(--brand); }
.step-pill.done .num { background: var(--accent); }
.step { display: none; }
.step.active { display: block; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }
.form-summary {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: .87rem; margin-bottom: 18px;
}
.form-summary dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.form-summary dt { color: var(--muted); }
.form-summary dd { margin: 0; color: var(--ink); }

/* ---------- Modal ---------- */
.modal-layer {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(11, 31, 42, .45); padding: 24px 16px; overflow-y: auto;
}
.modal-layer.open { display: block; }
.modal {
  max-width: 620px; margin: 40px auto; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal-head h2 { margin: 0 0 3px; font-size: 1.15rem; }
.modal-head p { margin: 0; font-size: .86rem; color: var(--muted); }
.modal-close {
  background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 20px 22px; max-height: 62vh; overflow-y: auto; }
.modal-foot {
  padding: 15px 22px; border-top: 1px solid var(--line); background: var(--surface-alt);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

/* ---------- Submit success ---------- */
.success-box { text-align: center; padding: 12px 6px 4px; }
.success-mark {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent-light);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem;
}
.ref-code {
  font-family: var(--mono); font-size: 1.02rem; font-weight: 700; color: var(--ink);
  background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 10px 14px; display: inline-block; margin: 6px 0 14px; letter-spacing: .02em;
}

/* ---------- Toasts ---------- */
.toast-host { position: fixed; bottom: 22px; right: 22px; z-index: 130; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 17px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: .9rem; max-width: 360px;
  animation: toast-in .22s ease-out;
}
.toast.err { background: #8f1d17; }
.toast.ok { background: #0d5a3b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-alt); white-space: nowrap; font-weight: 700;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
table.data tbody tr:hover { background: var(--surface-alt); }
table.data td.wrap { max-width: 320px; white-space: normal; }
.cell-sub { font-size: .8rem; color: var(--muted); display: block; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Admin ---------- */
.admin-bar {
  background: var(--ink); color: #b9c9d4; font-size: .84rem;
  padding: 8px 0;
}
.admin-bar .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-bar strong { color: #fff; }
.admin-bar .spacer { flex: 1; }
.admin-bar a, .admin-bar button { color: #cfe0e8; }
.auth-card { max-width: 440px; margin: 48px auto; }
.tabs-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs-bar button {
  background: none; border: 0; border-bottom: 2px solid transparent; font-family: inherit;
  font-size: .9rem; font-weight: 600; color: var(--muted); padding: 11px 14px; cursor: pointer; white-space: nowrap;
}
.tabs-bar button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs-bar .count {
  font-size: .72rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; color: var(--body);
}
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.stat-card span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.stat-card strong { display: block; font-size: 1.7rem; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9bcc8; margin-top: 0; padding: 48px 0 26px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-grid a { display: block; color: #a9bcc8; margin-bottom: 7px; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-grid .logo { color: #fff; margin-bottom: 10px; }
.footer-grid p { margin-bottom: 10px; }
.footer-muted { font-size: .84rem; color: #8296a4; line-height: 1.6; }
.footer-disclaimer {
  border-top: 1px solid #1d3646; padding-top: 20px; font-size: .79rem;
  color: #7d919f; line-height: 1.65; margin: 0;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: .8rem; color: #7d919f; }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .78rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 26px; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hide { display: none !important; }
.hr-soft { border-top: 1px solid var(--line); margin: 22px 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.list-plain { list-style: none; padding: 0; }
.list-plain li { padding: 9px 0; border-top: 1px solid var(--line); }
.list-plain li:first-child { border-top: 0; }
.link-arrow::after { content: " →"; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid, .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .split, .product-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 42px 0; }
  .mobile-nav {
    display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 20px 20px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .product-grid, .form-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 40px 0 36px; }
  .hero-search { flex-direction: column; }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .kv, .form-summary dl { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-top: 1px solid var(--line); padding-bottom: 2px; }
  .kv dd { border-top: 0; padding-top: 0; }
  .modal-layer { padding: 0; }
  .modal { margin: 0; border-radius: 0; min-height: 100vh; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media print {
  .site-header, .site-footer, .free-band, .sidebar { display: none; }
}
