/* INDUCLOC Website V2 — Prototype V0.3 (UI Refinement pass)
   Consumes INDUCLOC Design System (css/design-system/)
   Font: Inter (unified Heading + Body, no serif) · Theme: Light / Dark / System
   Không hard-code màu · Không invert media · Không WordPress */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');
@import url('./design-system/inducloc-ds.css');
@import url('./v1-dna.css');

/* Page shell — tokens from Design System · DNA from v1-dna.css */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background:
    radial-gradient(1100px 480px at 8% -8%, var(--page-glow-1) 0%, transparent 55%),
    radial-gradient(800px 360px at 100% 0%, var(--page-glow-2) 0%, transparent 42%),
    var(--bg-page);
  line-height: 1.65;
  padding-bottom: var(--sticky-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.15s ease;
}
img, svg, video, .product-photo, .gallery img, .logo-img {
  max-width: 100%;
  display: block;
  filter: none !important; /* Never invert media */
}
a { color: var(--brand-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cta-primary); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, .display {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
[hidden] { display: none !important; }

/* Prototype banner */
.proto-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
}
.proto-banner strong { color: #ffd39a; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 46px; padding: 0.7rem 1.25rem; border-radius: 8px;
  border: 1.5px solid transparent; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: 0.18s ease; font-size: 0.95rem;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.page-hero .btn-secondary,
.section .btn-secondary,
.finder-shell .btn-ghost,
.form .btn-ghost {
  border-color: var(--sea); color: var(--sea-deep);
}
.page-hero .btn-secondary:hover,
.section .btn-secondary:hover,
.finder-shell .btn-ghost:hover {
  background: var(--sea-soft); color: var(--sea-deep);
}
.wire.ph-lg, .wire.wire-lg { min-height: 280px; }
.btn-outline {
  background: transparent; border-color: var(--header-bg); color: var(--header-bg);
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--header-bg) 8%, transparent);
  color: var(--header-bg);
}
.btn-soft {
  background: var(--surface); border-color: var(--line); color: var(--ink);
}
.btn-soft:hover { border-color: var(--sea); color: var(--sea-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-cta-header {
  min-height: 48px; padding: 0.7rem 1.4rem; font-size: 0.98rem;
  box-shadow: 0 8px 22px var(--accent-glow);
}

/* Utility bar — Deep Navy */
.utility {
  background: var(--utility-bg);
  color: var(--header-text);
  font-size: 0.82rem;
  padding: 0.42rem 0;
}
.utility .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; justify-content: space-between; }
.utility a { color: var(--header-text); text-decoration: none; }
.utility a:hover { color: var(--header-hover); }
.utility .note { opacity: 0.88; color: var(--header-muted); }

/* Header — Deep Navy · white text · Champagne hover */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
}
.header-inner {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: var(--header-h);
  padding-block: 0.25rem;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none; color: var(--header-text); flex-shrink: 0;
  padding-right: 0.25rem;
}
.brand.has-logo {
  flex-direction: row; align-items: center; gap: 0.65rem;
}
.brand.has-logo .brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand .brand-logo,
.footer-brand .brand-logo {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block;
  background: rgba(255, 255, 255, 0.12); flex-shrink: 0;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.35rem;
}
.footer-brand-row .name { margin-bottom: 0; }
.brand .name {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--header-text);
  letter-spacing: -0.015em; line-height: 1.05; white-space: nowrap;
}
.brand .tag {
  font-size: 0.66rem; color: var(--header-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.15rem; white-space: nowrap;
}
.nav-desktop {
  display: none; flex: 1 1 auto; align-items: center; justify-content: center;
  gap: 0.05rem; min-width: 0;
}
.nav-item { position: relative; flex-shrink: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.55rem 0.6rem; border: 0; background: transparent;
  color: var(--header-text); font-weight: 500; cursor: pointer; border-radius: 8px;
  text-decoration: none; font-size: 0.88rem; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-item:hover > .nav-link {
  background: rgba(255, 255, 255, 0.06); color: var(--header-hover);
}
.header-actions { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; flex-shrink: 0; }
.finder-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 44px; padding: 0 0.75rem; border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  color: var(--header-text); font-weight: 500; font-size: 0.85rem;
  text-decoration: none; white-space: nowrap; transition: 0.15s ease;
}
.finder-cta svg { width: 17px; height: 17px; flex-shrink: 0; }
.finder-cta:hover {
  border-color: var(--header-hover); color: var(--header-hover);
  background: rgba(201, 168, 124, 0.12);
}
.finder-cta .finder-cta-label { display: none; }
@media (min-width: 1240px) {
  .finder-cta .finder-cta-label { display: inline; }
}
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 8px;
  background: rgba(255, 255, 255, 0.06); cursor: pointer; flex-shrink: 0;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--header-text); position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--header-text);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.site-header .theme-control,
.site-header .lang-switch,
.site-header .theme-btn,
.site-header .lang-switch button {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--header-text) !important;
}
.site-header .lang-switch button.is-active {
  background: rgba(201, 168, 124, 0.22) !important;
  color: var(--header-hover) !important;
}

/* Mega menu — hover + click */
.mega {
  display: none; position: absolute; left: 50%; transform: translateX(-36%);
  top: calc(100% + 0.2rem); width: min(94vw, 940px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-hover); padding: 1.35rem; z-index: 120;
}
.nav-item.is-open .mega,
.nav-item:hover .mega { display: grid; grid-template-columns: 210px 1fr; gap: 1.25rem; }
.mega-groups { display: flex; flex-direction: column; gap: 0.25rem; border-right: 1px solid var(--line); padding-right: 0.85rem; }
.mega-group-btn {
  text-align: left; border: 0; background: transparent; padding: 0.6rem 0.7rem;
  border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 0.92rem;
}
.mega-group-btn:hover, .mega-group-btn.is-active { background: var(--sea-soft); color: var(--sea-deep); }
.mega-panel { display: none; }
.mega-panel.is-active { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1rem; }
.mega-panel h3 { margin-bottom: 0.25rem; }
.mega-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.85rem; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.mega-cols strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.35rem; font-family: var(--font); }
.mega-cols a { display: block; text-decoration: none; color: var(--ink); padding: 0.25rem 0; font-size: 0.92rem; }
.mega-cols a:hover { color: var(--sea); }
.mega-side { display: flex; flex-direction: column; gap: 0.75rem; }
.mega-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.9rem;
}
.industry-mega {
  display: none; position: absolute; left: 0; top: calc(100% + 0.2rem);
  width: min(88vw, 520px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-hover); padding: 1rem; z-index: 120;
}
.nav-item.is-open .industry-mega,
.nav-item:hover .industry-mega { display: block; }
.industry-mega a {
  display: block; padding: 0.5rem 0.6rem; text-decoration: none; color: var(--ink);
  border-radius: 8px; font-size: 0.92rem;
}
.industry-mega a:hover { background: var(--sea-soft); color: var(--sea-deep); }
.badge-soft {
  display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--warning) 18%, var(--bg-elevated));
  color: var(--warning); margin-left: 0.25rem;
  font-family: var(--font);
}

/* Mobile drawer */
.drawer-backdrop {
  display: none; position: fixed; inset: 0; background: var(--overlay); z-index: 200;
}
.drawer-backdrop.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; width: min(100%, 380px); height: 100%;
  background: var(--bg-elevated); z-index: 210; transform: translateX(100%);
  transition: transform 0.22s ease; overflow-y: auto; padding: 1rem 1rem 5rem;
  visibility: hidden; pointer-events: none;
  border-left: 1px solid var(--border-default);
}
.drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-close {
  width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); cursor: pointer; font-size: 1.25rem;
}
.drawer a, .drawer button.acc-trigger {
  display: flex; width: 100%; text-align: left; align-items: center; justify-content: space-between;
  padding: 0.9rem 0.4rem; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); font-weight: 500; text-decoration: none; cursor: pointer;
}
.acc-panel { display: none; padding: 0.35rem 0.35rem 0.85rem 0.75rem; }
.acc-panel.is-open { display: block; }
.acc-panel a {
  font-weight: 500; border-bottom: 0; padding: 0.45rem 0; color: var(--ink-soft); font-size: 0.92rem;
}
.drawer-cta { display: grid; gap: 0.5rem; margin-top: 1rem; }
.drawer-cta .btn-secondary,
.drawer-cta .btn-ghost {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.drawer-cta .btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-primary-deep);
}

/* Wireframe / illustration blocks — NO gray flat placeholders */
.wire {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background:
    linear-gradient(165deg, var(--bg-muted) 0%, var(--bg-surface) 45%, var(--bg-muted) 100%);
  min-height: 140px;
}
.wire::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand-primary) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 10%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.wire-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; text-align: center; font-size: 0.82rem; font-weight: 600;
  color: var(--brand-primary-deep); background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  padding: 0.45rem 0.75rem; border-radius: 999px; border: 1px solid var(--border-default);
  white-space: nowrap;
}
.skeleton-card {
  border: 1px solid var(--border-default); border-radius: var(--radius); background: var(--bg-surface);
  padding: 1rem; display: grid; gap: 0.65rem;
}
.skeleton-line {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--bg-muted) 0%, var(--bg-elevated) 50%, var(--bg-muted) 100%);
  background-size: 200% 100%; animation: shimmer 1.6s ease infinite;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-thumb {
  height: 96px; border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-muted), var(--brand-soft));
  border: 1px dashed var(--border-strong);
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.25rem 0; }
.section-alt { background: color-mix(in srgb, var(--bg-surface) 70%, transparent); border-block: 1px solid var(--border-default); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
#finder .section-head { margin-bottom: 1.1rem; }
.section-head p { margin-bottom: 0; }
.kicker {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--sea); margin-bottom: 0.45rem; font-family: var(--font);
}

/* Hero 600–700px */
.hero {
  position: relative; color: #fff;
  min-height: clamp(600px, 68vh, 700px);
  display: flex; align-items: center;
  background:
    linear-gradient(118deg, rgba(6,83,112,0.95) 0%, rgba(10,111,143,0.82) 48%, rgba(15,28,40,0.55) 100%),
    linear-gradient(160deg, #0a6f8f, #163849);
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: 2rem; width: min(100% - 2rem, var(--max)); margin-inline: auto;
  padding: 2.25rem 0; align-items: center;
}
.hero .local { font-size: 0.9rem; color: #b8d8e4; margin-bottom: 0.75rem; }
.hero .brand-signal {
  font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700; line-height: 1.02; margin: 0 0 0.7rem; color: #fff;
}
.hero h1 {
  color: #fff; font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  font-family: var(--font); font-weight: 500; max-width: 36ch; line-height: 1.4;
}
.hero .lede { color: #d5ebf2; max-width: 48ch; margin-bottom: 1.35rem; }
.hero-art {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  min-height: 280px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.hero-art svg { width: 100%; height: auto; min-height: 280px; }

/* Product Groups — compact category grid (max 2 rows on Homepage) */
.groups-section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 700px) {
  .groups-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
}
.group-card {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 0.75rem; align-items: start;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: 0.2s ease;
  min-height: 128px;
}
.group-card:hover {
  border-color: var(--sea);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.group-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--sea-soft);
  color: var(--sea-deep);
  flex-shrink: 0;
}
.group-icon svg { width: 22px; height: 22px; }
.group-body h3 {
  margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600;
  font-family: var(--font); letter-spacing: 0; text-transform: none;
}
.group-body p { margin: 0 0 0.4rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.group-cta {
  font-size: 0.78rem; font-weight: 500; color: var(--sea-deep);
  white-space: nowrap; opacity: 0.85;
}
.group-card:hover .group-cta { color: var(--accent); opacity: 1; }
.groups-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.groups-more .btn { font-size: 0.9rem; }

/* Grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.tile {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: inherit;
  min-height: 100%; transition: 0.18s ease;
}
.tile:hover { border-color: var(--sea); box-shadow: var(--shadow); color: inherit; }
.tile h3 { margin: 0; font-size: 1.08rem; }
.tile p { margin: 0; font-size: 0.88rem; }
.tile-minimal { gap: 0.55rem; text-align: center; align-items: center; }
.tile-minimal h3 { font-size: 0.98rem; font-weight: 600; }

/* Process */
.process-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .process-layout { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.process-trust-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1.1rem;
  box-shadow: var(--shadow-xs, none);
}
.process-trust-card .ph { margin-bottom: 0.85rem; }
.process-trust-card h3 { margin: 0.15rem 0 0.4rem; font-size: 1.02rem; }
.process-trust-card p { font-size: 0.88rem; margin-bottom: 0.75rem; }
.process-proof-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.process { display: grid; gap: 0.75rem; counter-reset: step; }
.process-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 0.85rem; align-items: start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.process-step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sea-soft); color: var(--sea-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-family: var(--font);
}
.process-step h3 { margin-bottom: 0.2rem; }
.process-step p { margin: 0; font-size: 0.92rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  justify-content: space-between; gap: 1rem; min-height: 44px; align-items: center;
  font-family: var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sea); font-size: 1.25rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.5rem 0 0.25rem; }

/* Forms + Finder */
.form {
  display: grid; gap: 0.9rem; max-width: 640px;
  padding: 1.35rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border-default); border-radius: 8px;
  background: var(--bg-elevated); color: var(--text-primary);
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-muted); opacity: 0.9; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand-accent); box-shadow: var(--focus-ring);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.form-note {
  font-size: 0.85rem; color: var(--muted); padding: 0.65rem 0.75rem;
  background: var(--sand); border-radius: 8px;
}
.finder-shell {
  max-width: 780px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.finder-progress { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.finder-progress span {
  flex: 1; min-width: 70px; height: 7px; border-radius: 999px; background: var(--line);
}
.finder-progress span.done { background: var(--sea); }
.finder-progress span.current { background: var(--accent); }
.option-grid { display: grid; gap: 0.7rem; margin: 1rem 0 1.25rem; }
.option-btn {
  text-align: left; padding: 0.95rem 1.05rem; min-height: 50px;
  border: 1.5px solid var(--border-default); border-radius: 10px;
  background: var(--bg-elevated); color: var(--text-primary);
  cursor: pointer; font-weight: 500; transition: 0.15s ease;
}
.option-btn:hover, .option-btn.is-selected {
  border-color: var(--sea); background: var(--sea-soft); color: var(--sea-deep);
}
.finder-nav { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: space-between; }
.result-list { display: grid; gap: 0.85rem; margin-top: 1rem; }
.result-item { padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; }
.result-item h3 { margin-bottom: 0.35rem; }
.result-item .why { font-size: 0.9rem; margin-bottom: 0.75rem; }

/* Page hero */
.page-hero { padding: 2.1rem 0 1.35rem; border-bottom: 1px solid var(--border-default); background: color-mix(in srgb, var(--bg-surface) 65%, transparent); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.product-layout { display: grid; gap: 1.5rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2.75rem 0 6rem; }
.site-footer a { color: var(--text-on-brand); text-decoration: none; }
.site-footer a:hover { color: var(--brand-accent); text-decoration: underline; }
.site-footer p { color: var(--footer-text); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-grid h3 {
  font-family: var(--font); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--footer-heading); margin-bottom: 0.65rem; font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-brand .name { font-family: var(--display); font-size: 1.55rem; color: var(--text-on-brand); margin-bottom: 0.35rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--footer-border);
  font-size: 0.82rem; color: var(--footer-heading); display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
}
/* Keyword Hub */
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.keyword-chip {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--sea-deep); font-size: 0.83rem; font-weight: 500;
  text-decoration: none; transition: 0.15s ease;
}
.keyword-chip:hover { background: var(--sea-soft); border-color: var(--sea); color: var(--sea-deep); transform: translateY(-1px); }

.status-note {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600; color: var(--warning);
  background: color-mix(in srgb, var(--warning) 18%, var(--bg-elevated));
  padding: 0.25rem 0.55rem; border-radius: 999px;
  font-family: var(--font);
}

/* ========== Quote Form V2 ========== */
.qf {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.qf-progress { margin-bottom: 1.5rem; }
.qf-progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qf-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sea), var(--accent));
  border-radius: 999px;
  transition: width 0.25s ease;
}
.qf-progress-text {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.qf-step h2 { margin-bottom: 0.35rem; }
.qf-step h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 700;
}
.qf-lead { color: var(--muted); margin-bottom: 1.1rem; }
.qf-optional { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.qf-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.qf-field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.qf-field-full { grid-column: 1 / -1; }
.qf-field input,
.qf-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 400;
}
.qf-field input::placeholder,
.qf-field textarea::placeholder { color: var(--text-muted); opacity: 0.92; }
.qf-field input:focus,
.qf-field textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: var(--focus-ring);
}
.qf-field textarea { min-height: 120px; resize: vertical; }
.qf-field input.is-invalid,
.qf-field textarea.is-invalid { border-color: var(--danger); }
.qf-field abbr { color: var(--cta-primary); text-decoration: none; }

.qf-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.qf-card {
  display: grid;
  gap: 0.25rem;
  text-align: left;
  padding: 1rem 1.1rem;
  min-height: 72px;
  border: 1.5px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: 0.15s ease;
  color: var(--text-primary);
}
.qf-card:hover {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
}
.qf-card.is-selected {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
  box-shadow: var(--focus-ring);
}
.qf-card-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--sea-deep);
  margin-bottom: 0.15rem;
}
.qf-card-icon svg { width: 24px; height: 24px; }
.qf-card-title { font-weight: 700; font-size: 0.98rem; }
.qf-card-desc { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.qf-card-sm { min-height: 52px; padding: 0.85rem 1rem; place-content: center; }

.qf-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.qf-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0.35rem 0 0.5rem;
  cursor: pointer;
}
.qf-checkbox input { margin-top: 0.2rem; width: 16px; height: 16px; flex-shrink: 0; }
.qf-erp-error {
  border: 1px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}
.qf-erp-error p { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--danger); }
.qf-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.qf-conditional {
  margin: 1rem 0 0.5rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--sand);
}
.qf-upload { display: block; cursor: pointer; }
.qf-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-upload-box {
  display: grid; gap: 0.25rem; place-items: center; text-align: center;
  min-height: 120px; padding: 1.25rem;
  border: 1.5px dashed var(--brand-primary);
  border-radius: 12px; background: var(--bg-elevated);
  color: var(--text-secondary);
}
.qf-upload.is-drag .qf-upload-box {
  background: var(--sea-soft);
  border-color: var(--accent);
}
.qf-file-list {
  list-style: none; margin: 0.75rem 0 0; padding: 0;
  display: grid; gap: 0.35rem; font-size: 0.88rem;
}
.qf-file-list em { color: var(--muted); }
.qf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.85rem;
}
.qf-chip {
  appearance: none;
  border: 1px solid var(--line, var(--border));
  background: var(--bg-elevated, var(--card, var(--bg)));
  color: var(--ink, var(--text));
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.qf-chip:hover { border-color: var(--brand-primary, var(--cta-primary)); }
.qf-chip.is-selected {
  border-color: var(--brand-primary, var(--cta-primary));
  background: var(--sea-soft, color-mix(in srgb, var(--brand-primary, #0b6e4f) 12%, transparent));
}
.qf-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.85rem;
  margin: 0.5rem 0 0.85rem;
}
.qf-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.qf-check input { width: 16px; height: 16px; }
.qf-summary {
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line, var(--border));
  border-radius: 14px;
  background: var(--bg-elevated, var(--card, var(--bg)));
}
.qf-summary-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.qf-summary-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.qf-summary-list dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.qf-summary-list dd { margin: 0; font-weight: 600; }
@media (min-width: 720px) {
  .qf-checks { grid-template-columns: repeat(3, 1fr); }
  .qf-summary-list > div { grid-template-columns: 180px 1fr; }
}
.btn-quote-submit {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
.qf-microcopy {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  line-height: 1.55;
}

/* Success screen */
.qf-success {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.qf-success-check {
  width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--success) 18%, var(--bg-elevated));
  color: var(--success);
  font-size: 2rem; font-weight: 700;
}
.qf-success-lead { font-size: 1.05rem; }
.qf-success-channels {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem auto 0;
  max-width: 420px;
}
.qf-success-channel {
  display: grid; gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sand);
}
.qf-success-channel strong { color: var(--ink); }
.qf-success-channel span { font-size: 0.88rem; color: var(--muted); }
.qf-success-or {
  font-weight: 700; color: var(--muted); font-size: 0.85rem;
}
.qf-pipeline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.45rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}

.qf-entry {
  display: grid; gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 720px;
}
.qf-entry-points { display: grid; gap: 0.75rem; }
.qf-entry-point {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: 0.15s ease;
}
.qf-entry-point:hover {
  border-color: var(--sea);
  background: var(--sea-soft);
  color: inherit;
}
.qf-entry-point strong { display: block; margin-bottom: 0.15rem; }
.qf-entry-point span { font-size: 0.88rem; color: var(--muted); }

@media (min-width: 700px) {
  .qf-fields { grid-template-columns: 1fr 1fr; }
  .qf-cards { grid-template-columns: 1fr 1fr; }
  .qf-cards-3 { grid-template-columns: repeat(3, 1fr); }
  .qf-cards-row { grid-template-columns: repeat(3, 1fr); }
  .qf-success-channels {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}
@media (min-width: 900px) {
  .qf { padding: 2rem; }
  .qf-cards-row { grid-template-columns: repeat(5, 1fr); }
  .qf-entry-points { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   QUOTE GATEWAY — Khối A (Yêu cầu báo giá) / Khối B (Báo giá dự kiến)
   ============================================================ */
.qg-hero { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.qg-hero-check {
  width: 64px; height: 64px; margin: 0 auto 0.85rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--success-soft); color: var(--success);
  font-size: 1.8rem; font-weight: 700;
}
.qg-request-id {
  display: inline-block; margin-bottom: 0.75rem;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  color: var(--brand-primary-deep); background: var(--brand-soft);
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
  border: 1px solid var(--border-default); letter-spacing: 0.02em;
}
.qg-hero h1 { margin-bottom: 0.5rem; }
.qg-hero-lead { color: var(--text-secondary); max-width: 580px; margin: 0 auto; }

.qg-empty {
  max-width: 480px; margin: 0 auto; text-align: center; padding: 2rem;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-xl);
}
.qg-empty p { margin-bottom: 1rem; }

.qg-blocks { display: grid; gap: 1.5rem; align-items: start; max-width: 640px; margin: 0 auto; }

/* Cards — customer-facing only (request info, quote status, Zalo, estimate) */
.qg-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
  margin-bottom: 0;
  background: var(--bg-card, var(--bg-elevated));
  box-shadow: var(--shadow-soft);
}
.qg-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.qg-card-note { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.75rem; }
.qg-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.03em; }
.qg-badge-warning { background: var(--warning-soft); color: var(--warning); }
.qg-badge-success { background: var(--success-soft); color: var(--success); }
.qg-badge-info { background: var(--info-soft); color: var(--info); }

.qg-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.85rem; margin: 0; font-size: 0.86rem; }
.qg-dl dt { color: var(--text-muted); font-weight: 600; }
.qg-dl dd { margin: 0; color: var(--text-primary); }

.qg-card-pdf { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.qg-pdf-status { font-size: 0.85rem; color: var(--success); font-weight: 600; margin: 0; }
.qg-copy-status { font-size: 0.85rem; color: var(--success); font-weight: 600; margin: 0.6rem 0 0; }

.qg-payload {
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.55;
  background: var(--bg-inverse); color: var(--text-inverse);
  padding: 0.9rem 1rem; border-radius: var(--radius-lg); overflow-x: auto;
  white-space: pre; margin: 0 0 1rem;
}
.qg-hotlines { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.qg-hotline-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem;
  border: 1.5px solid var(--border-default); border-radius: var(--radius-lg);
  background: var(--bg-elevated); color: var(--text-primary); font-weight: 600; font-size: 0.86rem;
  text-decoration: none; transition: 0.15s ease;
}
.qg-hotline-btn:hover { border-color: var(--brand-primary); background: var(--brand-soft); color: var(--brand-primary-deep); }
.qg-hotline-btn span { font-weight: 400; font-size: 0.76rem; color: var(--text-muted); }

/* Disabled button state — used by "Đang chờ báo giá" until ERP has a real quotation */
.btn[disabled] {
  background: var(--bg-muted); border-color: var(--line); color: var(--text-muted);
  box-shadow: none; cursor: not-allowed; transform: none; opacity: 0.85;
}
.btn[disabled]:hover { background: var(--bg-muted); color: var(--text-muted); transform: none; }

/* Báo giá dự kiến (AI, tham khảo) */
.qg-estimate { min-height: 160px; }
.qg-estimate-loading { display: flex; align-items: center; gap: 0.6rem; color: var(--text-secondary); font-size: 0.92rem; }
.qg-estimate-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border-default); border-top-color: var(--brand-primary);
  animation: qgSpin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes qgSpin { to { transform: rotate(360deg); } }

.qg-estimate-result { display: grid; gap: 0.9rem; }
.qg-estimate-badge {
  justify-self: start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--warning); background: var(--warning-soft); padding: 0.3rem 0.65rem; border-radius: var(--radius-pill);
}
.qg-estimate-card { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.25rem; background: var(--bg-elevated); }
.qg-estimate-product { font-weight: 700; font-size: 1.02rem; margin: 0 0 0.85rem; }
.qg-estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; margin: 0 0 0.5rem; }
.qg-estimate-metric { display: flex; flex-direction: column; gap: 0.2rem; }
.qg-estimate-metric-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.qg-estimate-metric-value { font-size: 1.02rem; font-weight: 700; color: var(--brand-primary-deep); }
.qg-estimate-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
}
.qg-estimate-note p { margin: 0 0 0.35rem; color: var(--text-muted); }
.qg-estimate-note-title { font-weight: 600; margin-bottom: 0.4rem !important; }
.qg-estimate-note ul {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}
.qg-estimate-note li { margin: 0.1rem 0; }
.qg-estimate-empty {
  display: grid; gap: 0.6rem; text-align: center; padding: 1.5rem 1rem;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-xl); color: var(--text-secondary);
}
.qg-estimate-empty p { margin: 0; font-size: 0.92rem; }
.qg-estimate-empty strong { color: var(--text-primary); font-size: 1rem; }

@media (min-width: 640px) {
  .qg-estimate-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sticky mobile CTA — 4 FAB actions (styles refined in design-system/fab.css) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--header-bg); border-top: 1px solid var(--header-border);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  color: var(--header-text); text-decoration: none; font-weight: 600;
  font-size: 0.72rem; background: var(--header-bg);
}
.sticky-cta a.accent { background: var(--cta-primary); color: var(--text-on-cta); }
.sticky-cta a:hover { color: var(--header-hover); filter: none; }

/* Desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; }
  .sticky-cta { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
  .hero-art { min-height: 340px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .process-step { grid-template-columns: 1fr; border: 0; padding: 0; }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .form.two-col { grid-template-columns: 1fr 1fr; }
  .form.two-col .full { grid-column: 1 / -1; }
  .product-layout { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
}

@media (max-width: 899px) {
  .header-actions .hide-mobile { display: none; }
  .brand .name { font-size: 1.35rem; }
}

/* ========== Theme toggle ========== */
.theme-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.theme-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.theme-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft);
}
.theme-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--brand-accent);
}
.theme-btn svg { width: 20px; height: 20px; display: none; }
html[data-theme-preference="light"] .theme-btn .icon-sun { display: block; }
html[data-theme-preference="dark"] .theme-btn .icon-moon { display: block; }
html[data-theme-preference="system"] .theme-btn .icon-system { display: block; }
.theme-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 130;
}
.theme-control:hover .theme-tooltip,
.theme-control:focus-within .theme-tooltip { opacity: 1; }
@media (max-width: 899px) {
  .theme-tooltip { display: none; }
}
.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
  z-index: 140;
  display: grid;
  gap: 0.2rem;
}
.theme-menu[hidden] { display: none !important; }
.theme-menu button {
  display: flex; align-items: center; gap: 0.55rem;
  width: 100%; text-align: left;
  padding: 0.65rem 0.7rem;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500; font-size: 0.9rem;
  cursor: pointer;
}
.theme-menu button:hover { background: var(--brand-soft); color: var(--brand-primary); }
.theme-menu button.is-active {
  background: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 700;
}
.theme-menu button svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-menu button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.drawer-theme {
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-muted);
}
.drawer-theme-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.drawer-theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
}
.drawer-theme-options button {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 56px;
  padding: 0.5rem 0.35rem;
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.drawer-theme-options button svg { width: 18px; height: 18px; }
.drawer-theme-options button.is-active {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft);
}
.drawer-theme-options button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Elevation layers in dark */
[data-theme="dark"] .mega,
[data-theme="dark"] .industry-mega,
[data-theme="dark"] .finder-shell,
[data-theme="dark"] .qf,
[data-theme="dark"] .qf-success,
[data-theme="dark"] .tile,
[data-theme="dark"] .group-card {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  box-shadow: none;
}
[data-theme="dark"] .group-card:hover,
[data-theme="dark"] .tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
[data-theme="dark"] .hero {
  background:
    linear-gradient(118deg, rgba(12, 26, 36, 0.96) 0%, rgba(30, 62, 78, 0.86) 48%, rgba(16, 23, 32, 0.7) 100%),
    linear-gradient(160deg, #1a4456, #101720);
}
[data-theme="dark"] .proto-banner {
  background: #0C141C;
  border-bottom: 1px solid var(--border-default);
}
[data-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
}
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="light"] a:focus-visible,
[data-theme="light"] button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Gallery stays neutral — no image color shift */
.gallery, .product-gallery {
  background: var(--bg-muted);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.gallery img, .product-gallery img {
  filter: none !important;
}
