:root {
  --bad: rgba(235, 87, 87, 1);
  --bg: #0b0f1a;
  --border: rgba(255, 255, 255, 0.12);
  --good: rgba(31, 157, 85, 1);
  --muted: rgba(255, 255, 255, 0.7);
  --panel: rgba(18, 24, 42, 0.78);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-tight: 0 10px 26px rgba(0, 0, 0, 0.28);
  --text: rgba(255, 255, 255, 0.92);
  --warn: rgba(242, 201, 76, 1);
  --font-header: "Asap Condensed", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --bottom-tabs-height: 104px;
}

* {
  box-sizing: border-box;
}

html,
body { height: 100%; }
body { min-height: 100vh; }

html {
  overflow-x: hidden;
}

/* Base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
  padding: 24px 24px calc(var(--bottom-tabs-height) + 24px) 24px;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(900px 600px at 20% 0%, rgba(90, 115, 255, 0.18), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(255, 120, 120, 0.14), transparent 60%);
  transform: translateZ(0);
}


body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("bg_noshade.svg");
  background-repeat: no-repeat;
  background-position: 5% center;
  background-size: 520px auto;
  opacity: 0.95;
  mix-blend-mode: overlay;
  filter: blur(0px);
}

.app {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 920px;
  position: relative;
  z-index: 2;
}

.app-header {
  display: grid;
  gap: 12px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand-logo {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow-tight);
  height: 64px;
  padding: 8px;
  width: 64px;
}

.brand-text h1 {
  font-family: var(--font-header);
  font-size: 30px;
  margin: 0;
}

.brand-text .muted {
  font-size: 13px;
  letter-spacing: 0.12em;
margin: 0;
  text-transform: uppercase;
}

.app-header h1 {
  font-family: var(--font-header);
  font-size: 28px;
  margin: 10px 0 0 0;
}

.is-hidden {
  display: none;
}

.muted {
  color: var(--muted);
}

/* Panels */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.panel h2 {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 14px 0;
}

.saved-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.saved-note {
  font-size: 12px;
  margin: -6px 0 10px 0;
}

.community-note {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 10px;
}

.sort-toggle {
  display: inline-flex;
  gap: 8px;
}

.sort-badge {
  background: #d6a93b;
  border: 1px solid #f2d17b;
  border-radius: 999px;
  color: #1b1400;
  font-family: var(--font-header);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.product-link.instacart-text {
  color: #6fe07b;
}

.sort-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.sort-btn.is-active {
  background: rgba(77, 115, 255, 0.2);
  border-color: rgba(105, 152, 255, 0.65);
  color: #d7e3ff;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  overflow: hidden;
}

.saved-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.saved-title {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.saved-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.saved-link {
  border-bottom: 1px solid rgba(160, 185, 255, 0.35);
  color: rgba(160, 185, 255, 0.95);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.saved-link:hover {
  border-bottom-color: rgba(160, 185, 255, 0.75);
}

.saved-link.buy {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 4px;
  text-decoration: none;
}

.saved-link.buy:hover {
  color: rgba(255, 255, 255, 0.95);
}

.saved-link.buy svg {
  display: block;
  fill: currentColor;
  height: 14px;
  width: 14px;
}

.affiliate-row {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.affiliate-link {
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
}

.affiliate-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.affiliate-link.disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.45;
}

.affiliate-link.instacart {
  color: #0AAD0A;
}

.affiliate-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.affiliate-label {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ic-btn {
  align-items: center;
  background: #003D29;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font: 600 14px/1.1 var(--font-body);
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.ic-btn:hover {
  background: #2f8f1b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.ic-btn:active {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
}

.ic-btn:focus-visible {
  outline: 3px solid rgba(67, 176, 42, 0.35);
  outline-offset: 3px;
}

.ic-btn__icon {
  display: block;
  height: 20px;
  width: auto;
}

.ic-btn__text {
  letter-spacing: 0.2px;
}

.affiliate-icon {
  display: block;
  fill: currentColor;
  height: 14px;
  width: 14px;
}

.scan-count {
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}

.scan-count svg {
  display: block;
  fill: currentColor;
  height: 14px;
  width: 14px;
}

#communityPanel .saved-header {
  align-items: flex-end;
}

.saved-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.report-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.vote-btn {
  align-items: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 2px 4px;
  transition: color 140ms ease;
}

.vote-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.vote-btn.up.active {
  color: rgba(31, 157, 85, 0.95);
}

.vote-btn.down.active {
  color: rgba(235, 87, 87, 0.95);
}

.vote-icon svg {
  display: block;
  fill: currentColor;
  height: 14px;
  width: 14px;
  transition: transform 140ms ease;
}

.vote-count {
  font-variant-numeric: tabular-nums;
}

.vote-btn.voted .vote-icon svg {
  animation: votePop 220ms ease;
}

.vote-btn.active .vote-icon svg {
  transform: scale(1.08);
}

.vote-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.vote-help {
  display: inline-flex;
  position: relative;
}

.vote-help::after {
  background: rgba(12, 14, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  content: "Vote to keep this list accurate";
  font-size: 11px;
  left: 0;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  top: -12px;
  transform: translateY(-100%);
  transition: opacity 120ms ease;
  white-space: nowrap;
  z-index: 6;
}

.vote-help:focus::after,
.vote-help:hover::after,
.vote-btn:hover .vote-help::after,
.vote-btn:focus-visible .vote-help::after {
  opacity: 1;
}

@keyframes votePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1.08); }
}

.top100-hero {
  display: grid;
  gap: 6px;
}

.top100-hero h1 {
  font-size: 24px;
  margin: 0;
}

.back-link {
  color: rgba(160, 185, 255, 0.95);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  border-bottom: 1px solid rgba(160, 185, 255, 0.75);
}

/* Form */
label {
  display: block;
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 12px 0 6px 0;
}

input,
textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgb(255 255 255 / 27%);
  font-family: var(--font-body);
}

textarea {
  resize: vertical;
}

.barcode-row {
  display: flex;
  gap: 8px;
}

.barcode-row input {
  flex: 1;
}

.primary-action {
  display: grid;
  gap: 6px;
  margin: 4px 0 12px 0;
}

.scan-cta {
  background: linear-gradient(135deg, rgba(96, 118, 255, 0.6), rgba(74, 40, 125, 0.95));
  border: 1px solid rgba(160, 185, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  padding: 14px 16px;
  text-transform: uppercase;
}

.scan-cta:hover {
  background: linear-gradient(135deg, rgba(120, 140, 255, 0.7), rgba(112, 48, 162, 1));
}

.scan-subtext {
  font-size: 12px;
  margin: 0 0 2px 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Buttons */
button {
  align-items: center;
  background: rgba(90, 115, 255, 0.22);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-tight);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 10px 12px;
  text-transform: uppercase;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

button:hover {
  background: rgba(90, 115, 255, 0.3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Button icons */
.btn-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.btn-icon svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.btn-label {
  display: inline-block;
  line-height: 1;
  position: relative;
  top: 0.5px;
}

/* Button - Lookup */
#lookupBtn {
  background: rgb(38 51 102);
  border: 1px solid rgba(160, 185, 255, 0.4);
  box-shadow: var(--shadow-tight);
  min-width: 120px;
  text-shadow: -1px 2px 1px rgb(23 31 63);
}

#lookupBtn:hover {
  background: rgb(51 68 138);
}

/* Lookup loading indicator */
.lookup-status {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.lookup-spinner {
  animation: spin 0.9s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  border-top-color: rgba(255, 255, 255, 0.9);
  height: 14px;
  width: 14px;
  flex: 0 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Button - Scan */
#scanBtn:focus-visible {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(160, 185, 255, 0.3),
    0 0 30px rgba(90, 115, 255, 0.32);
  outline: none;
}



/* Backup actions */
#checkBtn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-tight);
  font-weight: 800;
}

#checkBtn:hover {
  background: rgba(255, 255, 255, 0.16);
}

#clearBtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  padding: 10px 14px;
}

#clearBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Analysis header */
.analysis-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.analysis-title h2 {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.analysis-source {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin: 6px 0 0 0;
}

.analysis-source a, .disclaimer a {
  border-bottom: 1px solid rgba(160, 185, 255, 0.35);
  color: rgba(160, 185, 255, 0.95);
  text-decoration: none;
}

.analysis-source a:hover {
  border-bottom-color: rgba(160, 185, 255, 0.75);
}

.analysis-meta {
  align-items: center;
  display: flex;
  gap: 12px;
}

.confidence {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #383c47;
    background: #161824;
    border-radius: 8px;
}

/* Status pill */
.pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow-tight);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.pill.good {
  background: rgba(31, 157, 85, 0.14);
  border-color: rgba(31, 157, 85, 0.35);
}

.pill.warn {
  background: rgba(242, 201, 76, 0.12);
  border-color: rgba(242, 201, 76, 0.35);
}

.pill.bad {
  background: #a22615;
  border-color: #ea290b;
}

/* Product summary */
.product-summary {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 14px;
  margin: 12px 0 14px 0;
  padding: 12px;
}

.product-thumb {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.product-title {
Font-family: var(--font-header);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
Text-transform: Capitalize;
}

.product-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.product-link {
  border-bottom: 1px solid rgba(160, 185, 255, 0.35);
  color: rgba(160, 185, 255, 0.95);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  text-decoration: none;
}

.product-link + .product-link {
  margin-top: 12px;
}

.product-link:hover {
  border-bottom-color: rgba(160, 185, 255, 0.75);
}

/* Findings */
.findings-icons {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0 14px 0;
}

.finding {
  animation: popIn 220ms ease both;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(10, 12, 22, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  filter: saturate(1.15) brightness(1.05);
  gap: 10px;
  min-height: 112px;
  padding: 14px;
  transform: translateY(0);
  transition: filter 160ms ease, transform 160ms ease;
}

.findings-icons .finding:nth-child(2) { animation-delay: 40ms; }
.findings-icons .finding:nth-child(3) { animation-delay: 80ms; }
.findings-icons .finding:nth-child(4) { animation-delay: 120ms; }

.finding-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.finding-title {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.finding-state {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.015em;
}

.finding svg {
  color: rgba(255, 255, 255, 0.92);
  height: 44px;
  opacity: 0.95;
  width: 44px;
}

.finding.present {
  background: #a22615;
  border-color: #ea290b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(235, 87, 87, 0.22),
    0 0 0 3px rgba(235, 87, 87, 0.16);
}

.finding.uncertain {
  background: #a97504;
  border-color: #ebaf2d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(242, 201, 76, 0.2),
    0 0 0 3px rgba(242, 201, 76, 0.14);
}

.finding.absent {
  background: #254F22;
  border-color: #357231;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(31, 157, 85, 0.18),
    0 0 0 3px rgba(31, 157, 85, 0.12);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chips */
.findings-label {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 8px 0 6px 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  align-items: center;
  background: rgba(15, 18, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 0 2px rgba(255, 255, 255, 0.04);
  display: inline-flex;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 24px;
  text-shadow: 0px 2px 1px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.chip.match {
  background: #c42b17;
  border-color: #ea290b;
}

.chip.uncertain {
  background: #d89604;
  border-color: rgba(242, 201, 76, 0.8);
}

p#noMatchChips, p#noUncertainChips {
    font-size: 14px;
    font-style: italic;
    padding-top: 4px;
    margin: 0 8px 20px 0;
}

/* Divider + details */
.analysis-divider {
  background: rgba(255, 255, 255, 0.12);
  height: 1px;
  margin: 16px 0;
}

.result-section h4 {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.result-split {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  margin-top: 12px;
}

.result-header {
  margin: 0 0 10px 0;
}

.result-note {
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  margin: 4px 0 0 0;
}



/* Highlighted Ingredients  */
.highlighted {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  box-shadow: none;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.45;
  padding: 14px;
  text-transform: uppercase;
}
.highlighted::before {
  content: "Ingredients: ";
  font-weight: 800;
}


mark.match {
  background: rgba(235, 87, 87, 0.6);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

mark.uncertain {
  background: rgba(242, 201, 76, 0.6);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.highlighted mark.match,
.highlighted mark.uncertain {
  color: #000000;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 0px;
  box-shadow: none;
}

/* Red highlight (match) */
.highlighted mark.match {
  background: rgba(235, 87, 87, 0.4);
  border: none;
}

/* Yellow highlight (uncertain) */
.highlighted mark.uncertain {
  background: rgba(242, 201, 76, 0.5);
  border: none;
}



/* Nutrition sidebar */
.nutrition-wrap {
  align-self: start;
  display: flex;
  justify-content: center;
}

.nutrition-card {
  max-width: 340px;
  width: 100%;
}

.nutrition-header {
  margin: 0 0 10px 0;
}

.nutrition-title {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px 0;
}

.nutrition-note {
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* Nutrition label */
.nutrition-label {
  background: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
  max-width: 340px;
  padding: 12px;
}

.nf-title {
  border-bottom: 8px solid #000;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
  padding-bottom: 4px;
}

.nf-row {
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 2px 0;
}

.nf-row.calories {
  font-size: 20px;
  font-weight: 700;
}

.nf-row.indent {
  font-size: 12.5px;
  padding-left: 14px;
}

.nf-divider {
  border-top: 1px solid #000;
  margin: 4px 0;
}

.nf-divider.thick {
  border-top: 6px solid #000;
}

/* Disclaimers */
.disclaimer {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  margin: 14px 0 0 0;
}

/* Scan panel */
.scan-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  margin-top: 12px;
  padding: 12px;
}

.scan-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.scan-title {
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scan-video {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: block;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

.scan-hint {
  font-size: 13px;
  margin: 10px 0 0 0;
}

/* Ingredients accordion */
.ingredients-details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin-top: 14px;
  padding: 10px 12px;
}

.ingredients-details summary {
  cursor: pointer;
  font-family: var(--font-header);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.ingredients-details summary::-webkit-details-marker {
  display: none;
}

.ingredients-details summary::after {
  content: "+";
  float: right;
  font-size: 16px;
  margin-top: -2px;
}

.ingredients-details[open] summary::after {
  content: "–";
}

.ingredients-body {
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 760px) {
  .findings-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-split {
    grid-template-columns: 1fr;
  }

  .nutrition-wrap {
    justify-content: flex-start;
  }

  .nutrition-card {
    max-width: 340px;
  }
}

@media (max-width: 600px) {
  .product-summary {
    align-items: flex-start;
  }

  .product-thumb {
    height: 64px;
    width: 64px;
  }
}


.app-footer {
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  justify-content: center;
  margin: 12px 0 4px 0;
  text-align: center;
}

.footer-line {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.affiliate-disclaimer {
  color: rgba(255, 255, 255, 0.28);
  font-size: 11px;
}

.bottom-tabs {
  backdrop-filter: blur(10px);
  background: rgba(10, 12, 22, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  bottom: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 0;
  padding: 10px 16px 14px 16px;
  position: fixed;
  width: 100%;
  z-index: 5;
}

.tab-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px 8px;
  transition: color 120ms ease;
}

.tab-btn.is-active {
  color: rgba(160, 185, 255, 0.95);
}

.tab-btn.is-active::after {
  background: rgba(160, 185, 255, 0.9);
  border-radius: 999px;
  content: "";
  height: 2px;
  margin-top: 6px;
  width: 22px;
}

.tab-icon {
  font-size: 16px;
}

.tab-icon svg {
  display: block;
  fill: currentColor;
  height: 32px;
  width: 32px;
}

.tab-label {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  min-width: 20px;
  padding: 4px 8px;
  text-align: center;
}

.tab-badge.is-hidden {
  display: none;
}

.heart-icon {
  display: inline-flex;
  line-height: 1;
}

.heart-icon svg {
  fill: currentColor;
  height: 32px;
  width: 32px;
}
.heart-icon {
  color: rgba(242, 201, 76, 0.85);
}
