:root {
  color-scheme: light dark;

  --bg-page-light: #f6f8fa;
  --bg-page-dark: #0b1117;
  --bg-surface-light: #ffffff;
  --bg-surface-dark: #131c24;
  --bg-subtle-light: #eef2f6;
  --bg-subtle-dark: #1b2631;

  --text-main-light: #0f172a;
  --text-main-dark: #f1f5f9;
  --text-muted-light: #475569;
  --text-muted-dark: #94a3b8;

  --border-light: #dce3ea;
  --border-dark: #253341;

  --brand-light: #059669;
  --brand-dark: #10b981;
  --brand-soft-light: #d1fae5;
  --brand-soft-dark: #064e3b;

  --danger-light: #dc2626;
  --danger-dark: #f87171;
  --danger-soft-light: #fee2e2;
  --danger-soft-dark: #450a0a;

  --secondary-warn-light: #ea580c;
  --secondary-warn-dark: #fb923c;
  --secondary-soft-light: #ffedd5;
  --secondary-soft-dark: #431407;

  --suspect-light: #ca8a04;
  --suspect-dark: #facc15;
  --suspect-soft-light: #fef9c3;
  --suspect-soft-dark: #422006;

  /* Default light tokens + media fallback */
  --bg-page: var(--bg-page-light);
  --bg-surface: var(--bg-surface-light);
  --bg-subtle: var(--bg-subtle-light);
  --text-main: var(--text-main-light);
  --text-muted: var(--text-muted-light);
  --border-color: var(--border-light);
  --brand: var(--brand-light);
  --brand-soft: var(--brand-soft-light);
  --danger: var(--danger-light);
  --danger-soft: var(--danger-soft-light);
  --secondary-warn: var(--secondary-warn-light);
  --secondary-soft: var(--secondary-soft-light);
  --suspect: var(--suspect-light);
  --suspect-soft: var(--suspect-soft-light);

  @media (prefers-color-scheme: dark) {
    --bg-page: var(--bg-page-dark);
    --bg-surface: var(--bg-surface-dark);
    --bg-subtle: var(--bg-subtle-dark);
    --text-main: var(--text-main-dark);
    --text-muted: var(--text-muted-dark);
    --border-color: var(--border-dark);
    --brand: var(--brand-dark);
    --brand-soft: var(--brand-soft-dark);
    --danger: var(--danger-dark);
    --danger-soft: var(--danger-soft-dark);
    --secondary-warn: var(--secondary-warn-dark);
    --secondary-soft: var(--secondary-soft-dark);
    --suspect: var(--suspect-dark);
    --suspect-soft: var(--suspect-soft-dark);
  }

  @supports (color: light-dark(white, black)) {
    --bg-page: light-dark(var(--bg-page-light), var(--bg-page-dark));
    --bg-surface: light-dark(var(--bg-surface-light), var(--bg-surface-dark));
    --bg-subtle: light-dark(var(--bg-subtle-light), var(--bg-subtle-dark));
    --text-main: light-dark(var(--text-main-light), var(--text-main-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --border-color: light-dark(var(--border-light), var(--border-dark));
    --brand: light-dark(var(--brand-light), var(--brand-dark));
    --brand-soft: light-dark(var(--brand-soft-light), var(--brand-soft-dark));
    --danger: light-dark(var(--danger-light), var(--danger-dark));
    --danger-soft: light-dark(var(--danger-soft-light), var(--danger-soft-dark));
    --secondary-warn: light-dark(var(--secondary-warn-light), var(--secondary-warn-dark));
    --secondary-soft: light-dark(var(--secondary-soft-light), var(--secondary-soft-dark));
    --suspect: light-dark(var(--suspect-light), var(--suspect-dark));
    --suspect-soft: light-dark(var(--suspect-soft-light), var(--suspect-soft-dark));
  }

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  accent-color: var(--brand);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s;
}

.btn-icon-label:hover {
  border-color: var(--brand);
  background: var(--bg-subtle);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 1.1rem;
}

/* Theme toggle icon visibility */
.theme-icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-light { display: none; }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-icon-dark { display: inline; }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-light { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-icon-dark { display: inline; }
:root:has(> head > meta[name="color-scheme"][content="light"]) .theme-icon-light { display: inline; }
:root:has(> head > meta[name="color-scheme"][content="light"]) .theme-icon-dark { display: none; }

/* Hero */
.hero {
  padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 45%),
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--danger) 9%, transparent), transparent 40%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 2.25rem;
  }
}

.hero-copy {
  text-align: left;
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.text-accent {
  color: var(--brand);
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.06rem);
}

/* Hero Spotlight Card */
.hero-spotlight {
  min-width: 0;
  max-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-md);
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.spotlight-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.btn-next-swap {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-next-swap:hover {
  border-color: var(--brand);
}

.spotlight-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 400px) {
  .spotlight-pair {
    grid-template-columns: 1fr;
  }
}

.spotlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.spotlight-item.is-alt {
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}

.spotlight-item.is-boycott {
  background: color-mix(in srgb, var(--danger-soft) 45%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}

.spotlight-item strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Visual Thumbnail */
.product-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.product-thumb.lg {
  width: 76px;
  height: 76px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-thumb svg.thumb-art {
  width: 100%;
  height: 100%;
  display: block;
}

.target-with-thumb {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.results-meta p {
  margin: 0;
}

.impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Search Bar */
.search-box-wrap {
  max-width: 680px;
  width: 100%;
  min-width: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--brand);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.55rem 0.25rem;
  font-size: 1rem;
  outline: none;
}

.search-bar input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.btn-clear-search {
  border: none;
  background: var(--bg-subtle);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-barcode-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: filter 0.15s;
}

.btn-barcode-hero:hover {
  filter: brightness(1.08);
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.quick-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chip-quick {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s;
}

.chip-quick:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

/* Workspace & Tabs */
.workspace {
  padding-block: 1.75rem 3.5rem;
}

.view-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.view-tab {
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.view-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.view-tab.active {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Filters */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.category-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}

.cat-pill:hover {
  border-color: var(--brand);
}

.cat-pill.active {
  background: var(--text-main);
  color: var(--bg-page);
  border-color: var(--text-main);
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill.active {
  outline: 2px solid var(--text-main);
  outline-offset: 1px;
}

.status-pill.status-boykot { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.status-pill.status-ikincil { color: var(--secondary-warn); background: var(--secondary-soft); border-color: transparent; }
.status-pill.status-supheli { color: var(--suspect); background: var(--suspect-soft); border-color: transparent; }
.status-pill.status-uygun { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

.results-meta {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Comparison Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1.1rem;
}

.compare-card-wrap {
  container-type: inline-size;
}

.compare-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.compare-card:hover {
  border-color: color-mix(in srgb, var(--brand) 50%, var(--border-color));
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.boykot { background: var(--danger-soft); color: var(--danger); }
.status-badge.ikincil { background: var(--secondary-soft); color: var(--secondary-warn); }
.status-badge.supheli { background: var(--suspect-soft); color: var(--suspect); }
.status-badge.uygun { background: var(--brand-soft); color: var(--brand); }

.group-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Side-by-side comparison box inside card */
.comparison-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

@container (min-width: 390px) {
  .comparison-split.has-alts {
    grid-template-columns: 1fr auto 1.15fr;
    align-items: center;
  }
}

.side-box {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.side-target {
  background: var(--bg-subtle);
}

.side-target.is-boykot {
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  background: color-mix(in srgb, var(--danger-soft) 55%, var(--bg-surface));
}

.side-target.is-uygun {
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--bg-surface));
}

.side-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.swap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
}

.side-alts {
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}

.alt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.alt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border-color));
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  transition: background-color 0.15s;
}

.alt-chip:hover {
  background: var(--brand);
  color: #fff;
}

.card-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.store-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  font-size: 0.77rem;
  color: var(--text-muted);
}

.store-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-main);
}

.market-filters {
  margin-bottom: 1.1rem;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1rem;
}

.market-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left-width: 5px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.market-card.uygun { border-left-color: var(--brand); }
.market-card.boykot { border-left-color: var(--danger); }
.market-card.supheli { border-left-color: var(--suspect); }

.market-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.market-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.market-ownership {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
}

.market-card.boykot .market-ownership { color: var(--danger); }
.market-card.supheli .market-ownership { color: var(--suspect); }

.market-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.btn-detail {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-detail:hover {
  border-color: var(--brand);
}

.btn-add-alt {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-add-alt:hover {
  filter: brightness(1.08);
}

/* Quick Guide & Checklist */
.section-intro {
  margin-bottom: 1.25rem;
}

.section-intro h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.section-intro p {
  margin: 0;
  color: var(--text-muted);
}

.quick-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.9rem;
}

.quick-guide-card {
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.quick-guide-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.check-card {
  padding: 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.check-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--brand);
}

.check-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.disclaimer-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.disclaimer-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.disclaimer-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.disclaimer-box a {
  color: var(--brand);
  font-weight: 700;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-surface);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Native Modal Dialogs */
dialog.modal-dialog {
  width: min(640px, 100% - 1.5rem);
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 2;
}

.dialog-eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
  letter-spacing: 0.04em;
}

.dialog-header h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
}

.btn-close-dialog {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-weight: 700;
}

.dialog-body {
  padding: 1.25rem;
}

/* Compare Modal Details */
.modal-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .modal-compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-panel {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modal-panel.target-panel {
  background: var(--bg-subtle);
}

.modal-panel.alt-panel {
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
}

.modal-alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

/* Barcode Scanner */
.barcode-scanner-box {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.camera-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-reticle {
  position: absolute;
  inset: 22% 14%;
  border: 2px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.btn-stop-camera {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.barcode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.scanner-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.manual-barcode-form {
  display: flex;
  gap: 0.5rem;
}

.manual-barcode-form input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.sample-barcodes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.barcode-result {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.barcode-caveat {
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--suspect-soft);
  color: var(--text-main);
  font-size: 0.82rem;
}

/* Shopping List */
.shopping-list-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.shopping-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.shopping-item label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  cursor: pointer;
  font-weight: 600;
}

.shopping-item.checked label span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding-block: 1.5rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--text-main);
  color: var(--bg-page);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  z-index: 50;
}

@media (max-width: 560px) {
  .hide-sm {
    display: none;
  }
  .btn-barcode-hero span {
    display: none;
  }
}
