@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-v20.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-latin-v20.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin-v20.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-700-latin-v20.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #070706;
  --bg-soft: #0e0e0c;
  --panel: rgba(16, 16, 14, 0.94);
  --panel-strong: #151511;
  --line: rgba(255, 236, 74, 0.14);
  --text: #f7f6f0;
  --muted: #d0ccc2;
  --lime: #ffe500;
  --lime-strong: #ffd100;
  --cyan: #ffe500;
  --orange: #ffb800;
  --danger: #ff6b75;
  --success: #71df93;
  --radius-control: 12px;
  --radius-panel: 16px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --motion: 160ms cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 48% -10%, rgba(255, 229, 0, 0.08), transparent 34%), #070706;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 78px 0 auto;
  height: 560px;
  pointer-events: none;
  opacity: .62;
  background-image: linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 100%);
  mask-image: linear-gradient(#000 45%, transparent 100%);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(90px); opacity: .22; pointer-events: none; }
.ambient-one { width: 320px; height: 320px; right: -100px; top: 300px; background: #ffe500; opacity: .1; }
.ambient-two { width: 240px; height: 240px; left: -120px; top: 760px; background: #ffe500; opacity: .08; }

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, .86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: -.45px; }
.brand-logo { width: 54px; height: 34px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy small { color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.brand-copy strong { font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; }
.rate-status { display: flex; align-items: center; gap: 8px; }
.rate-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(113,223,147,.7); }
.rate-status.warning { color: #ffc796; }
.rate-status.warning i { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.ghost-link { transition: color .2s; }
.ghost-link { padding: 8px 12px; border: 1px solid rgba(255,229,0,.2); border-radius: 99px; }
.ghost-link:hover { border-color: rgba(255,229,0,.5); color: var(--lime); }

.shell { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 86px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.intro p { width: 380px; margin: 0 0 8px; padding-left: 18px; border-left: 2px solid var(--lime); color: var(--muted); font-size: 15px; line-height: 1.65; }
.eyebrow, .section-kicker { display: block; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
h1 { margin: 0; font-family: 'Manrope', system-ui, sans-serif; font-size: clamp(43px, 5.6vw, 70px); line-height: .98; letter-spacing: -3.4px; font-weight: 800; }
h1 em { color: var(--lime); font-style: normal; }

.market-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; perspective: 1000px; }
.market-tab {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(25, 25, 22, .98), rgba(10, 10, 9, .98));
  box-shadow: 0 7px 0 rgba(0, 0, 0, .34), 0 12px 24px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .05);
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.market-tab::before { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: 11px; background: linear-gradient(125deg, rgba(255,255,255,.09), transparent 34%); pointer-events: none; }
.market-tab:hover { transform: translateY(-3px) rotateX(2deg); border-color: rgba(255, 229, 0, .48); box-shadow: 0 9px 0 rgba(0, 0, 0, .3), 0 17px 30px rgba(0, 0, 0, .24), inset 0 1px rgba(255,255,255,.07); }
.market-tab:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(0, 0, 0, .34), 0 7px 14px rgba(0, 0, 0, .18); }
.market-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.market-tab.active { border-color: #fff04a; background: linear-gradient(145deg, #fff04a, #ffd900); color: #080807; box-shadow: 0 6px 0 #ad9300, 0 15px 30px rgba(255,229,0,.14), inset 0 1px rgba(255,255,255,.6); }
.market-tab.active small { color: rgba(8,8,7,.62); }
.market-tab.active .market-icon { transform: translateZ(14px) translateY(-1px); box-shadow: 0 7px 0 rgba(0,0,0,.2), 0 11px 20px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.55); }
.market-tab > span:last-child { display: grid; gap: 3px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-tab small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-icon { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; transform: translateZ(10px); box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 10px 18px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.42); transition: transform .2s ease, box-shadow .2s ease; }
.market-icon::after { content: ''; position: absolute; inset: 1px; border-radius: 9px; background: linear-gradient(145deg, rgba(255,255,255,.22), transparent 42%); pointer-events: none; }
.market-icon img { position: relative; z-index: 1; display: block; max-width: 29px; max-height: 29px; object-fit: contain; }
.market-tab:hover .market-icon { transform: translateZ(16px) translateY(-2px) rotate(-2deg); }
.market-icon.ml { background: linear-gradient(145deg, #fff, #e9e9e9); }
.market-icon.ml img { width: 31px; }
.market-icon.tt { background: linear-gradient(145deg, #1c1c1c, #050505); }
.market-icon.tt img { width: 24px; height: 27px; }
.market-icon.sh { background: linear-gradient(145deg, #fff, #eaeaea); }
.market-icon.sh img { width: 26px; height: 26px; }
.market-icon.sn { background: linear-gradient(145deg, #fff, #e8e8e8); border-color: rgba(0,0,0,.16); }
.market-icon.sn img { width: 25px; height: 25px; filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)); }
.market-icon.am { background: linear-gradient(145deg, #fff, #e8e8e8); border-color: rgba(0,0,0,.16); }
.market-icon.am img { width: 34px; max-width: 34px; height: 25px; }
.amazon-logistics-note { margin-top: 12px; padding: 11px 12px; border: 1px solid rgba(255,153,0,.24); border-radius: 10px; background: rgba(255,153,0,.055); color: #d8d3c9; font-size: 11px; line-height: 1.5; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(390px, .91fr); gap: 16px; align-items: start; }
.calculator-card, .results-panel { position: relative; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.calculator-card::before, .results-panel::before { content: ''; position: absolute; z-index: 2; top: -1px; left: 24px; width: 72px; height: 2px; background: var(--lime); box-shadow: 0 0 18px rgba(255,229,0,.38); }
.calculator-card { padding: 28px; }
.results-panel { position: sticky; top: 94px; overflow: hidden; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.card-heading h2 { margin: 2px 0 0; font-family: 'Manrope', system-ui, sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.card-heading .section-kicker { margin: 0; }
.rule-pill { padding: 8px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 5px; border: 1px solid rgba(255,255,255,.06); border-radius: 11px; background: #090908; margin-bottom: 26px; }
.mode-btn { padding: 11px 9px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; }
.mode-btn b, .mode-btn small { display: block; }
.mode-btn b { font-size: 13px; }
.mode-btn small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.mode-btn.active { border-color: rgba(255, 229, 0, .45); background: rgba(255, 229, 0, .1); }
.mode-btn.active b { color: var(--lime); }

.experience-switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border: 1px solid rgba(255,229,0,.2); border-radius: 11px; background: linear-gradient(145deg, rgba(255,229,0,.075), rgba(255,229,0,.025)); }
.experience-switch > div { display: grid; gap: 3px; }
.experience-switch strong { color: #fff5a1; font-size: 13px; }
.experience-switch small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.advanced-toggle { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,229,0,.32); border-radius: 9px; background: #0a0a09; color: var(--lime); font-size: 11px; font-weight: 700; cursor: pointer; }
.advanced-toggle:hover, .advanced-toggle:focus-visible { border-color: var(--lime); outline: none; }
.advanced-toggle span { margin-left: 5px; font-size: 15px; }
.saved-settings-summary { margin: 8px 3px 0; color: #aaa69d; font-size: 10px; line-height: 1.45; }
.calculator-card:not(.show-advanced) .advanced-only { display: none !important; }
.calculator-card:not(.show-advanced) .quick-fill { grid-column: 1 / -1; }

.form-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-title > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255,229,0,.36); border-radius: 6px; background: rgba(255,229,0,.08); color: var(--lime); font-size: 10px; font-weight: 800; }
.section-title h3 { margin: 0; font-size: 14px; letter-spacing: -.1px; }
.fields { display: grid; gap: 12px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.freight-dimensions { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.freight-settings { margin-top: 12px; align-items: end; }
.field { display: grid; gap: 8px; color: #dedbd2; font-size: 12px; font-weight: 500; }
.field-error { display: block; color: #ffabb2; font-size: 10px; font-weight: 600; line-height: 1.4; }
.field-invalid input, .field-invalid select, input[aria-invalid="true"], select[aria-invalid="true"] { border-color: rgba(255,107,117,.75); box-shadow: 0 0 0 3px rgba(255,107,117,.08); }
.input-wrap { position: relative; }
.input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa69d; font-size: 11px; font-style: normal; font-weight: 700; pointer-events: none; }
input, select {
  width: 100%;
  height: 43px;
  padding: 0 12px 0 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  outline: none;
  background: #0a0a09;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
select { padding-left: 12px; }
input:focus, select:focus { border-color: rgba(255, 229, 0, .72); box-shadow: 0 0 0 3px rgba(255, 229, 0, .08); }
input::-webkit-inner-spin-button { opacity: .35; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 43px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: #0b0b0a; }
.toggle-row span { display: grid; gap: 3px; font-size: 12px; font-weight: 600; }
.toggle-row small { color: var(--muted); font-size: 11px; font-weight: 400; }
.switch { appearance: none; width: 37px; height: 21px; padding: 0; flex: 0 0 auto; border: 0; border-radius: 99px; background: #393831; cursor: pointer; position: relative; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #9aacbd; transition: .2s; }
.switch:checked { background: var(--lime); }
.switch:checked::after { transform: translateX(16px); background: #090908; }
.helper { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 9px 0 0; }
.margin-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.margin-presets button { min-width: 0; height: 31px; padding: 0 6px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: #0b0b0a; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.margin-presets button:hover, .margin-presets button:focus-visible { border-color: rgba(255,229,0,.55); color: var(--text); outline: none; }
.margin-presets button.active { border-color: var(--lime); background: var(--lime); color: #090908; }
.item-import-card { margin-bottom: 15px; padding: 13px; border: 1px solid rgba(255,229,0,.24); border-radius: 11px; background: rgba(255,229,0,.045); }
.item-import-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.item-import-row input { padding-left: 12px; }
.item-import-row button { min-width: 93px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--lime); color: #090908; font-size: 11px; font-weight: 800; cursor: pointer; }
.item-import-row button:hover { background: #fff04a; }
.item-import-row button:disabled { opacity: .65; cursor: wait; }
.item-import-status { margin-top: 10px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: var(--muted); background: #0b0b0a; font-size: 11px; line-height: 1.45; }
.item-import-status.loading { color: #fff2a0; border-color: rgba(255,229,0,.26); }
.item-import-status.success { color: #d8ffbe; border-color: rgba(157,255,87,.3); background: rgba(157,255,87,.06); }
.item-import-status.error { color: #ffc1c6; border-color: rgba(255,107,117,.3); background: rgba(255,107,117,.07); }
.imported-price-option { margin-top: 10px; }
.imported-price-option .toggle-row { border-color: rgba(255,229,0,.32); background: linear-gradient(145deg, rgba(255,229,0,.09), rgba(255,229,0,.025)); cursor: pointer; }
.imported-price-option strong { color: #fff5a1; }
.import-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--lime); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.import-divider::before, .import-divider::after { content: ''; height: 1px; flex: 1; background: rgba(255,229,0,.22); }
.ml-category-field > span { color: var(--lime); font-weight: 700; }
.freight-auto-card { display: flex; align-items: center; gap: 10px; min-height: 49px; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255,229,0,.22); border-radius: 10px; background: linear-gradient(145deg, rgba(255,229,0,.08), rgba(255,229,0,.025)); color: #f6f1c9; }
.freight-auto-card > i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(255,229,0,.65); }
.freight-auto-card > span { display: grid; gap: 3px; }
.freight-auto-card strong { font-size: 12px; color: #fff6a8; }
.freight-auto-card small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.freight-auto-card.calculated { border-color: rgba(157,255,87,.38); background: rgba(157,255,87,.07); }
.freight-auto-card.calculated > i { background: #9dff57; box-shadow: 0 0 12px rgba(157,255,87,.6); }
.freight-auto-card.calculated strong { color: #cfffaa; }
.ml-contingency-card { margin-top: 12px; padding: 14px; border: 1px solid rgba(255,229,0,.18); border-radius: 12px; background: rgba(255,229,0,.035); }
.ml-contingency-card > strong { display: block; margin-bottom: 4px; color: #fff6a8; font-size: 12px; }
.ml-contingency-card > .helper { margin: 0 0 12px; }
.ml-category-field { margin-bottom: 12px; }
.category-search-wrap { position: relative; }
.category-search-wrap input { padding-left: 13px; }
.category-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(255, 229, 0, .26);
  border-radius: 11px;
  background: #11110f;
  color: var(--muted);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
  font-size: 12px;
}
.category-option { width: 100%; display: grid; gap: 3px; padding: 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.category-option:hover, .category-option:focus { outline: none; background: rgba(255, 229, 0, .09); }
.category-option strong { color: var(--text); font-size: 13px; }
.category-option small { color: var(--muted); font-size: 11px; }
.selected-category { margin: -2px 0 12px; padding: 10px 11px; border: 1px solid rgba(255, 229, 0, .28); border-radius: 9px; background: rgba(255, 229, 0, .07); color: #fff27a; font-size: 11px; line-height: 1.45; }
.official-source { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 10px 12px; border: 1px solid rgba(255, 229, 0, .18); border-radius: 9px; background: rgba(255, 229, 0, .05); color: #f1edc7; font-size: 11px; line-height: 1.45; }
.official-source i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px rgba(255, 229, 0, .55); }
.form-error { margin-top: 16px; padding: 11px 12px; border: 1px solid rgba(255,107,117,.3); border-radius: 9px; background: rgba(255,107,117,.09); color: #ffc5ca; font-size: 12px; line-height: 1.45; }
.calculate-btn { width: 100%; height: 52px; margin-top: 24px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; background: var(--lime); color: #090908; font-weight: 800; font-size: 13px; letter-spacing: .45px; text-transform: uppercase; cursor: pointer; box-shadow: 0 14px 32px rgba(255,229,0,.1); transition: background .2s, transform .2s; }
.calculate-btn:hover { background: #fff04a; transform: translateY(-1px); }
.calculate-btn:disabled { opacity: .68; cursor: wait; transform: none; }
.calculate-btn b { font-size: 20px; }

.result-hero { padding: 27px 29px 24px; background: linear-gradient(145deg, rgba(255,229,0,.11), rgba(255,229,0,.015)); border-bottom: 1px solid var(--line); }
.result-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #dedad0; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.health { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; letter-spacing: 0; text-transform: none; }
.health i { width: 6px; height: 6px; border-radius: 50%; }
.health.healthy { color: #fff27a; background: rgba(255,229,0,.1); }
.health.healthy i { background: var(--lime); }
.health.tight { color: #ffd394; background: rgba(255,166,75,.11); }
.health.tight i { background: #ffad55; }
.health.low { color: #ffb7bd; background: rgba(255,107,117,.11); }
.health.low i { background: var(--danger); }
.health.neutral { color: #d0ccc2; background: rgba(255,255,255,.07); }
.health.neutral i { background: #8f8b83; }
.price { margin-top: 12px; font-size: clamp(44px, 5vw, 58px); font-weight: 800; letter-spacing: -3px; line-height: 1; }
.rounding { margin-top: 11px; color: var(--muted); font-size: 11px; }
.rounding strong { color: var(--lime); }

.profit-highlight { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 29px; border-bottom: 1px solid var(--line); }
.profit-highlight > div:first-child { display: grid; gap: 5px; }
.profit-highlight span { color: var(--muted); font-size: 11px; }
.profit-highlight strong { font-size: 23px; }
.margin-ring { --margin: 20; width: 66px; height: 66px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at center, #11110f 58%, transparent 60%), conic-gradient(var(--lime) calc(var(--margin) * 1%), rgba(255,255,255,.12) 0); }
.margin-ring b, .margin-ring small { display: block; }
.margin-ring b { font-size: 13px; }
.margin-ring small { color: var(--muted); font-size: 9px; }

.ml-comparison { padding: 22px 29px; border-bottom: 1px solid var(--line); background: rgba(255, 229, 0, .015); }
.comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.comparison-heading > div { display: grid; gap: 3px; }
.comparison-heading > div > span { color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.comparison-heading h3 { margin: 0; font-size: 15px; letter-spacing: -.2px; }
.official-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(255, 229, 0, .2); border-radius: 99px; color: #f1edc7; background: rgba(255, 229, 0, .05); font-size: 11px; white-space: nowrap; }
.official-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(255, 229, 0, .55); }
.official-badge.manual { border-color: rgba(255, 173, 85, .28); color: #ffd394; background: rgba(255, 166, 75, .08); }
.official-badge.manual i { background: #ffad55; box-shadow: 0 0 8px rgba(255, 173, 85, .5); }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.comparison-option { min-width: 0; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #0b0b0a; transition: border-color .2s, background .2s; }
.comparison-option.winner { border-color: rgba(255, 229, 0, .58); background: rgba(255, 229, 0, .07); box-shadow: inset 0 0 0 1px rgba(255, 229, 0, .05); }
.comparison-option.unavailable { opacity: .58; }
.comparison-option-title { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.comparison-option-title strong { font-size: 13px; }
.winner-badge { padding: 5px 7px; border-radius: 99px; color: #090908; background: var(--lime); font-size: 9px; font-weight: 800; white-space: nowrap; }
.comparison-price { display: grid; gap: 2px; margin: 11px 0 8px; }
.comparison-price small { color: var(--muted); font-size: 11px; }
.comparison-price b { overflow: hidden; color: var(--text); font-size: 19px; letter-spacing: -.75px; text-overflow: ellipsis; }
.comparison-option dl { display: grid; gap: 5px; margin: 0; }
.comparison-option dl div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comparison-option dt, .comparison-option dd { margin: 0; font-size: 11px; }
.comparison-option dt { color: var(--muted); }
.comparison-option dd { color: #e5e2d8; font-weight: 600; }
.comparison-option.winner [data-value="profit"] { color: var(--lime); }
.comparison-insight { margin: 12px 0 0; color: #dedad0; font-size: 11px; line-height: 1.55; }
.comparison-source { margin-top: 12px; }

.breakdown { padding: 22px 29px 18px; }
.breakdown h3 { margin: 0 0 14px; font-size: 13px; }
.bar { width: 100%; height: 7px; display: flex; overflow: hidden; border-radius: 99px; background: #2b2a25; margin-bottom: 15px; }
.bar i { display: block; min-width: 0; transition: width .45s ease; }
.bar-cost { background: #77746b; }
.bar-market { background: #ff9f00; }
.bar-tax { background: #f7f6f0; }
.bar-profit { background: var(--lime); }
.breakdown ul { list-style: none; margin: 0; padding: 0; }
.breakdown li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; color: var(--muted); font-size: 11px; }
.breakdown li span { display: flex; align-items: center; gap: 8px; }
.breakdown li strong { color: #e5e2d8; font-weight: 600; }
.breakdown .profit-line { margin-top: 5px; padding-top: 11px; border-top: 1px dashed var(--line); color: var(--text); }
.breakdown .profit-line strong { color: var(--lime); }
.dot { width: 7px; height: 7px; display: block; border-radius: 2px; }
.dot.cost { background: #77746b; }
.dot.market { background: #ff9f00; }
.dot.shipping { background: #b28cff; }
.dot.tax { background: #f7f6f0; }
.dot.profit { background: var(--lime); }

.monthly-card { margin: 0 29px 15px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; background: #0b0b0a; }
.monthly-card > div { padding: 14px 16px; display: grid; gap: 4px; }
.monthly-card > div + div { border-left: 1px solid var(--line); }
.monthly-card span { color: var(--muted); font-size: 11px; letter-spacing: .7px; }
.monthly-card strong { font-size: 16px; }
.monthly-card small { color: var(--muted); font-size: 11px; }
.share-actions { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; margin: 0 29px; }
.share-btn { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.share-btn:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.45); }
.whatsapp-btn { border-color: var(--lime); background: var(--lime); color: #090908; }
.whatsapp-btn:hover { background: #fff04a; }
.copy-btn { background: transparent; color: #d0ccc0; }
.copy-btn:hover { border-color: rgba(255,229,0,.45); color: var(--lime); }
.result-note { margin: 13px 29px 21px; color: #c5c1b7; font-size: 11px; line-height: 1.55; text-align: center; }

.decision-center { padding: 22px 29px; border-bottom: 1px solid var(--line); background: #0d0d0b; }
.decision-heading { display: grid; gap: 3px; margin-bottom: 14px; }
.decision-heading span, .market-comparison-heading small { color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.decision-heading h3 { margin: 0; font-size: 15px; }
.break-even-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 13px 14px; border: 1px solid rgba(255,229,0,.2); border-radius: var(--radius-control); background: linear-gradient(145deg, rgba(255,229,0,.075), rgba(255,229,0,.018)); }
.break-even-card > div { display: grid; gap: 3px; }
.break-even-card small { color: #d7d2c7; font-size: 9px; letter-spacing: .7px; }
.break-even-card strong { color: var(--lime); font-size: 20px; font-variant-numeric: tabular-nums; }
.break-even-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.smart-alerts { display: grid; gap: 7px; margin: 10px 0 20px; padding: 0; list-style: none; }
.smart-alerts li { display: grid; grid-template-columns: 8px 1fr; gap: 9px; align-items: start; padding: 9px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: #090908; color: #d8d4ca; font-size: 10px; line-height: 1.5; }
.smart-alerts li::before { content: ''; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(255,184,0,.38); }
.smart-alerts li.positive::before { background: var(--success); box-shadow: 0 0 8px rgba(113,223,147,.38); }
.smart-alerts li.danger::before { background: var(--danger); box-shadow: 0 0 8px rgba(255,107,117,.38); }
.market-comparison-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.market-comparison-heading > div { display: grid; gap: 3px; }
.market-comparison-heading strong { font-size: 13px; }
.market-comparison-heading > span { color: var(--muted); font-size: 9px; }
.market-comparison-grid { display: grid; gap: 7px; }
.market-compare-row { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(116px, 1fr) minmax(188px, 1.25fr); gap: 9px 14px; align-items: center; padding: 11px 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: #090908; color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--motion), transform var(--motion), background var(--motion); }
.market-compare-row:hover { transform: translateY(-1px); border-color: rgba(255,229,0,.38); background: #0c0c0a; }
.market-compare-row:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.market-compare-row.winner { border-color: rgba(255,229,0,.68); background: linear-gradient(110deg, rgba(255,229,0,.095), rgba(255,229,0,.025) 62%, #090908); box-shadow: inset 3px 0 0 var(--lime); }
.market-compare-row.unavailable { opacity: .72; }
.market-compare-brand { min-width: 0; display: flex; align-items: center; gap: 9px; }
.market-compare-brand > span:last-child { min-width: 0; display: grid; gap: 2px; }
.market-compare-brand strong, .market-compare-brand small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.market-compare-brand strong { font-size: 10px; }
.market-compare-brand small { color: var(--muted); font-size: 8px; }
.market-compare-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: #f7f7f4; box-shadow: 0 5px 12px rgba(0,0,0,.26); }
.market-compare-icon img { width: 23px; height: 23px; object-fit: contain; }
.market-compare-values { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.market-compare-values > span { min-width: 0; display: grid; gap: 2px; }
.market-compare-values small { color: var(--muted); font-size: 8px; }
.market-compare-values strong { overflow: hidden; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.market-compare-values > span:last-child strong { color: var(--lime); }
.market-compare-row.negative .market-compare-values > span:last-child strong { color: var(--danger); }
.market-profit-track { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.market-profit-track i { display: block; width: var(--profit-width, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ab9900, var(--lime)); box-shadow: 0 0 10px rgba(255,229,0,.24); transition: width 320ms ease; }
.market-compare-row.negative .market-profit-track i { background: linear-gradient(90deg, #7d2930, var(--danger)); box-shadow: 0 0 10px rgba(255,107,117,.2); }
.market-profit-track.unavailable-track i { width: 30%; background: repeating-linear-gradient(90deg, #3a3833 0 5px, transparent 5px 9px); box-shadow: none; }
.market-compare-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.market-compare-footer small, .market-compare-footer span, .market-compare-action { color: var(--muted); font-size: 8px; }
.market-compare-footer strong { padding: 3px 6px; border-radius: 99px; background: var(--lime); color: #090908; font-size: 7px; font-weight: 900; letter-spacing: .35px; }
.market-compare-action { grid-column: 1 / -1; text-align: right; }
.market-comparison-note { margin: 9px 0 0; color: #9f9b92; font-size: 9px; line-height: 1.45; }

.onboarding { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.onboarding-card { width: min(520px, 100%); overflow: hidden; border: 1px solid rgba(255,229,0,.32); border-radius: 18px; background: #11110f; box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.onboarding-top, .onboarding-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; }
.onboarding-top { border-bottom: 1px solid var(--line); }
.onboarding-top > span { color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.onboarding-top button { padding: 6px 8px; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.onboarding-step { min-height: 260px; display: grid; align-content: center; gap: 16px; padding: 32px 34px; }
.onboarding-step .onboarding-number { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.onboarding-step h2 { max-width: 410px; margin: 0; font-family: 'Manrope', system-ui, sans-serif; font-size: 34px; font-weight: 800; line-height: 1.02; }
.onboarding-step p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.onboarding-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.onboarding-choice { padding: 11px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #090908; color: #dedbd2; font-size: 10px; font-weight: 700; text-align: center; }
.onboarding-footer { border-top: 1px solid var(--line); }
.onboarding-dots { display: flex; gap: 5px; }
.onboarding-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3b3933; }
.onboarding-dots i.active { width: 18px; border-radius: 99px; background: var(--lime); }
.onboarding-footer button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--lime); color: #090908; font-size: 11px; font-weight: 800; cursor: pointer; }
.onboarding-footer button span { margin-left: 10px; }

.how-it-works { margin-top: 70px; padding-top: 54px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; content-visibility: auto; contain-intrinsic-size: auto 420px; }
.how-it-works h2 { margin: 0; font-family: 'Manrope', system-ui, sans-serif; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.02; letter-spacing: -2px; }
.how-it-works ol { list-style: none; margin: 0; padding: 0; display: grid; }
.how-it-works li { display: flex; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.how-it-works li:first-child { padding-top: 4px; }
.how-it-works li b { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 9px; border: 1px solid rgba(255,229,0,.24); color: var(--lime); font-size: 10px; }
.how-it-works li span { display: grid; gap: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.how-it-works li strong { color: var(--text); font-size: 14px; }

footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 25px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 30px; color: var(--muted); }
footer .compact { font-size: 14px; }
footer .compact .brand-logo { width: 46px; height: 29px; }
footer p { margin: 0; font-size: 11px; line-height: 1.5; text-align: right; }

/* Refinamento visual: superfícies limpas, dados nítidos e movimento discreto. */
.market-tab {
  border-radius: var(--radius-control);
  background: #11110f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2), inset 0 1px rgba(255,255,255,.035);
  transform: none;
  transition: transform var(--motion), border-color var(--motion), background var(--motion), box-shadow var(--motion);
}
.market-tab::before { opacity: .45; }
.market-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(255,229,0,.42);
  box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.05);
}
.market-tab:active { transform: translateY(0) scale(.99); box-shadow: 0 5px 14px rgba(0,0,0,.22); }
.market-tab.active {
  border-color: rgba(255,229,0,.78);
  background: linear-gradient(145deg, rgba(255,229,0,.11), rgba(255,229,0,.035));
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,229,0,.07);
}
.market-tab.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(255,229,0,.5);
}
.market-tab.active small { color: var(--muted); }
.market-icon {
  transition: transform var(--motion), box-shadow var(--motion);
}
.market-tab.active .market-icon,
.market-tab:hover .market-icon {
  transform: translateZ(12px) translateY(-2px) rotate(-1.5deg);
  box-shadow: 0 8px 0 rgba(0,0,0,.22), 0 13px 22px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.5);
}

.calculator-card,
.results-panel {
  border-radius: var(--radius-panel);
  border-color: rgba(255,255,255,.095);
  background: #10100e;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
.calculator-card::before,
.results-panel::before { width: 64px; box-shadow: 0 0 12px rgba(255,229,0,.24); }

.mode-switch,
.experience-switch,
input,
select,
.toggle-row,
.advanced-toggle,
.calculate-btn,
.monthly-card,
.share-btn { border-radius: var(--radius-control); }

.mode-btn,
.advanced-toggle,
.calculate-btn,
.share-btn,
.margin-presets button { transition: color var(--motion), background var(--motion), border-color var(--motion), transform var(--motion), box-shadow var(--motion); }

input,
select,
.price,
.result-metric strong,
.monthly-card strong,
.comparison-price b,
.comparison-option dd,
.breakdown li strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
}
input,
select { border-radius: var(--radius-control); font-size: 15px; letter-spacing: -.1px; }
input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.field { font-size: 13px; }
.helper,
.saved-settings-summary,
.result-note { font-size: 12px; }
.saved-settings-summary { color: #b9b5ac; }

.calculate-btn { box-shadow: 0 10px 24px rgba(255,229,0,.1); }
.calculate-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,229,0,.15); }

.result-empty {
  min-height: 360px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 42px 34px;
  text-align: center;
  background: radial-gradient(circle at 50% 34%, rgba(255,229,0,.075), transparent 34%);
}
.result-empty-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255,229,0,.34);
  border-radius: 17px;
  background: #161611;
  color: var(--lime);
  font-weight: 800;
  letter-spacing: -1px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.05);
  transform: perspective(300px) rotateX(5deg) rotateY(-7deg);
}
.result-empty strong { font-size: 18px; letter-spacing: -.3px; }
.result-empty p { max-width: 330px; margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.result-empty-hint { display: inline-flex; align-items: center; gap: 7px; color: #bdb9af; font-size: 11px; }
.result-empty-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 9px rgba(113,223,147,.6); }
.results-panel.is-empty .result-content { display: none; }
.results-panel:not(.is-empty) .result-empty { display: none; }
.results-panel:not(.is-empty) .result-content { animation: resultReveal 220ms cubic-bezier(.2,.8,.2,1) both; }

.result-hero { background: linear-gradient(145deg, rgba(255,229,0,.085), rgba(255,229,0,.012)); }
.price { font-family: 'DM Sans', system-ui, sans-serif; font-size: clamp(44px, 5vw, 58px); font-weight: 700; letter-spacing: -2.8px; }
.health.healthy { color: #b9f3c9; background: rgba(113,223,147,.1); }
.health.healthy i { background: var(--success); }

.result-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.result-metric {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: var(--radius-control);
  background: #0b0b0a;
}
.result-metric span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.result-metric strong { overflow: hidden; font-size: 17px; letter-spacing: -.5px; text-overflow: ellipsis; }
.result-metric:first-child strong { color: var(--lime); }
.margin-ring { position: absolute; width: 4px; height: 4px; overflow: hidden; opacity: 0; pointer-events: none; }

.breakdown { padding: 0; border-bottom: 1px solid var(--line); }
.breakdown summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 29px;
  color: #dedbd2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color var(--motion), background var(--motion);
}
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary:hover { color: var(--lime); background: rgba(255,229,0,.025); }
.breakdown summary span { color: var(--lime); font-size: 18px; transition: transform var(--motion); }
.breakdown[open] summary span { transform: rotate(45deg); }
.breakdown-content { padding: 4px 29px 20px; animation: resultReveal 180ms ease-out both; }
.breakdown-content h3 { margin-top: 0; }

.trial-banner {
  margin: -10px 0 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(255,229,0,.34);
  border-radius: var(--radius-card);
  background: linear-gradient(125deg, rgba(255,229,0,.12), rgba(255,229,0,.025));
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.trial-banner[hidden], .trial-result-cta[hidden], .trial-paywall[hidden], .trial-product-section[hidden] { display: none; }
.trial-banner div { display: grid; gap: 4px; }
.trial-banner span, .trial-result-cta span, .trial-paywall-kicker { color: var(--lime); font-size: 9px; font-weight: 950; letter-spacing: 1.4px; }
.trial-banner strong { color: #fffdf5; font-size: 16px; }
.trial-banner p, .trial-result-cta p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.trial-banner > a { flex: 0 0 auto; color: #eeeae0; font-size: 11px; font-weight: 800; text-decoration: none; }
.trial-banner > a:hover { color: var(--lime); }
.trial-product-section { padding-top: 18px; border-top: 1px solid rgba(255,229,0,.2); }
.trial-product-section .input-wrap i { min-width: 49px; }
.trial-result-cta { margin: 20px 28px 28px; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid rgba(255,229,0,.28); border-radius: var(--radius-control); background: rgba(255,229,0,.055); }
.trial-result-cta div { display: grid; gap: 5px; }
.trial-result-cta strong { font-size: 15px; }
.trial-result-cta > a, .trial-paywall-action { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 0 17px; border-radius: 10px; background: var(--lime); color: #111; font-size: 11px; font-weight: 950; text-decoration: none; box-shadow: 0 9px 26px rgba(255,229,0,.13); }
.trial-paywall { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.8); backdrop-filter: blur(9px); }
.trial-paywall-card { position: relative; width: min(470px, 100%); padding: 34px; border: 1px solid rgba(255,229,0,.33); border-radius: 20px; background: #11110e; box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.trial-paywall-card h2 { margin: 12px 0; color: #fffdf5; font-size: clamp(28px, 6vw, 40px); line-height: 1; letter-spacing: -1.4px; }
.trial-paywall-card > p { margin: 0; color: #a9a69c; font-size: 14px; line-height: 1.55; }
.trial-paywall-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.trial-paywall-card li { color: #ddd9ce; font-size: 11px; }
.trial-paywall-card li::before { content: '✓'; margin-right: 7px; color: var(--lime); font-weight: 950; }
.trial-paywall-action { min-height: 54px; font-size: 12px; }
.trial-paywall-login { display: block; margin-top: 16px; color: #aaa79d; font-size: 11px; text-align: center; text-decoration: none; }
.trial-paywall-login:hover { color: var(--lime); }
.trial-paywall-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #090908; color: #bbb8ae; font-size: 20px; cursor: pointer; }
.trial-paywall-close:hover { border-color: rgba(255,229,0,.45); color: var(--lime); }
.calculator-consent-banner { position: fixed; z-index: 120; right: 18px; bottom: 18px; width: min(430px, calc(100% - 36px)); display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px solid rgba(255,229,0,.24); border-radius: 13px; background: rgba(20,20,16,.98); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.calculator-consent-banner[hidden] { display: none; }
.calculator-consent-banner p { display: grid; gap: 3px; flex: 1; margin: 0; }
.calculator-consent-banner strong { color: #f4f1e8; font-size: 12px; }
.calculator-consent-banner span { color: #929087; font-size: 10px; line-height: 1.35; }
.calculator-consent-banner div { display: flex; gap: 7px; }
.calculator-consent-banner button { padding: 9px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: transparent; color: #c9c7bd; font-size: 10px; font-weight: 800; cursor: pointer; }
.calculator-consent-banner button.accept { border-color: var(--lime); background: var(--lime); color: #111; }

@keyframes resultReveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .market-tabs { grid-template-columns: repeat(3, 1fr); }
  .workspace { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .how-it-works { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 680px) {
  .topbar { height: 68px; padding: 0 18px; }
  .top-actions { gap: 12px; }
  .ghost-link { display: none; }
  .shell { width: min(100% - 28px, 620px); padding-top: 30px; }
  .intro { display: grid; gap: 14px; margin-bottom: 26px; }
  .intro p { width: auto; font-size: 14px; }
  .trial-banner { align-items: flex-start; flex-direction: column; margin-top: 0; }
  h1 { font-size: 40px; letter-spacing: -.4px; }
  .market-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 0; }
  .market-tab { min-height: 74px; gap: 9px; padding: 11px 10px; }
  .market-tab > span:last-child { font-size: 12px; }
  .market-tab small { font-size: 9px; }
  .market-icon { width: 38px; height: 38px; border-radius: 10px; }
  .market-icon img { max-width: 26px; max-height: 26px; }
  .calculator-card { padding: 20px 17px; }
  .card-heading { align-items: flex-start; }
  .rule-pill { display: none; }
  .mode-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .mode-btn { text-align: center; }
  .mode-btn b { font-size: 11px; line-height: 1.25; }
  .mode-btn small { display: none; }
  .experience-switch { align-items: flex-start; flex-direction: column; }
  .advanced-toggle { width: 100%; }
  .item-import-row { grid-template-columns: 1fr; }
  .item-import-row button { height: 41px; }
  .two-cols, .freight-dimensions { grid-template-columns: 1fr; }
  .result-hero { padding-left: 20px; padding-right: 20px; }
  .result-empty { min-height: 310px; padding: 36px 24px; }
  .result-metrics { padding-left: 14px; padding-right: 14px; gap: 6px; }
  .result-metric { padding: 10px 8px; }
  .result-metric span { font-size: 9px; }
  .result-metric strong { font-size: 14px; }
  .breakdown summary { padding-left: 20px; padding-right: 20px; }
  .breakdown-content { padding-left: 20px; padding-right: 20px; }
  .decision-center { padding-left: 20px; padding-right: 20px; }
  .ml-comparison { padding-left: 20px; padding-right: 20px; }
  .monthly-card { margin-left: 20px; margin-right: 20px; }
  .share-actions { margin-left: 20px; margin-right: 20px; }
  .result-note { margin-left: 20px; margin-right: 20px; }
  .trial-result-cta { grid-template-columns: 1fr; margin-left: 20px; margin-right: 20px; }
  .trial-paywall-card { padding: 30px 22px 24px; }
  .trial-paywall-card ul { grid-template-columns: 1fr; }
  .calculator-consent-banner { align-items: stretch; flex-direction: column; }
  .calculator-consent-banner div { justify-content: flex-end; }
  .comparison-grid { grid-template-columns: 1fr; }
  .onboarding-step { min-height: 245px; padding: 28px 22px; }
  .onboarding-step h2 { font-size: 29px; }
  .onboarding-choice-grid { grid-template-columns: 1fr; }
  .share-actions { grid-template-columns: 1fr; }
  .calculate-btn { position: sticky; bottom: 10px; z-index: 8; box-shadow: 0 12px 34px rgba(0,0,0,.52), 0 8px 22px rgba(255,229,0,.12); }
  footer { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 480px) {
  .topbar { gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-logo { width: 44px; height: 30px; }
  .brand-copy { min-width: 0; }
  .brand-copy small { display: none; }
  .brand-copy strong { display: block; overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
  .top-actions { min-width: 0; }
  .rate-status { max-width: 108px; font-size: 10px; line-height: 1.25; }
  .market-comparison-heading { align-items: start; flex-direction: column; }
  .market-compare-row { grid-template-columns: 1fr; }
  .market-compare-values, .market-profit-track, .market-compare-footer, .market-compare-action { grid-column: 1; }
  .market-compare-values { padding-left: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
