/* ClickenSave — warm orange + deep indigo, Plus Jakarta Sans */
:root {
  --bg: #fffaf5; --surface: #ffffff; --surface-2: #fff4ea;
  --ink: #1d1b33; --ink-2: #47445f; --muted: #75718c; --line: #efe4d8;
  --brand: #ff6b2c; --brand-2: #e8531a; --brand-soft: #fff0e5; --brand-ink: #b23c0c;
  --mint: #0b8f63; --mint-soft: #e5f6ef; --sun: #ffc83d; --red: #d23149; --blue: #3a5bd9;
  --solid: #1d1b33; --solid-ink: #ffffff;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29,27,51,.06), 0 6px 20px rgba(29,27,51,.06);
  --shadow-lg: 0 12px 40px rgba(29,27,51,.14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13111d; --surface: #1c1929; --surface-2: #241f33; --ink: #f4f2fb; --ink-2: #cfcbe2; --muted: #a39fbb; --line: #2e2942;
    --brand-soft: #3a2117; --brand-ink: #ffb08a; --mint: #3ccf98; --mint-soft: #15342a; --solid: #2b2642; --solid-ink: #ffffff; color-scheme: dark;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #13111d; --surface: #1c1929; --surface-2: #241f33; --ink: #f4f2fb; --ink-2: #cfcbe2; --muted: #a39fbb; --line: #2e2942;
  --brand-soft: #3a2117; --brand-ink: #ffb08a; --mint: #3ccf98; --mint-soft: #15342a; --solid: #2b2642; --solid-ink: #ffffff; color-scheme: dark;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: transform .08s, background .15s, box-shadow .15s; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(255,107,44,.35); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); }
.btn-small { padding: 7px 14px; font-size: .85rem; }
.btn-big { padding: 15px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 22px; height: 22px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn.danger, .danger { color: var(--red); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none !important; flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 1.42rem; letter-spacing: -.03em; }
.logo-a { color: var(--ink); }
.logo-b { color: var(--brand); }
.searchbox { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; padding: 4px 4px 4px 16px; max-width: 640px; transition: border-color .15s, background .15s; }
.searchbox:focus-within { border-color: var(--brand); background: var(--surface); }
.searchbox .ico { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 8px 0; outline: none; }
.btn-search { background: var(--solid); color: var(--solid-ink); padding: 9px 18px; }
.top-actions { display: flex; gap: 4px; margin-left: auto; }
.badge-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.menu-btn { display: none; }
.mainnav { border-top: 1px solid var(--line); }
.mainnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav-wrap { position: relative; }
/* When the bar is wider than the screen: fade the cut-off edge and show an arrow, so it's clear there's more */
.mainnav.fade-r .mainnav-inner { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
.mainnav.fade-l .mainnav-inner { -webkit-mask-image: linear-gradient(to right, transparent, #000 72px); mask-image: linear-gradient(to right, transparent, #000 72px); }
.mainnav.fade-l.fade-r .mainnav-inner { -webkit-mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.3rem; line-height: 1; display: none; place-items: center; padding: 0 0 2px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav-arrow:hover { border-color: var(--brand); color: var(--brand-2); }
.nav-arrow-l { left: 10px; }
.nav-arrow-r { right: 10px; }
.mainnav.fade-l .nav-arrow-l, .mainnav.fade-r .nav-arrow-r { display: grid; }
.mainnav a { white-space: nowrap; color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.mainnav a:hover { background: var(--surface-2); color: var(--ink); }
.mainnav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav-sep { width: 1px; background: var(--line); margin: 4px 6px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255,200,61,.35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(255,107,44,.18), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--brand-2); margin-bottom: .8em; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 span { color: var(--brand); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow-lg); max-width: 580px; margin: 22px 0 18px; border: 1.5px solid var(--line); }
.hero-search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ink); padding: 10px 0; }
.hero-search.small { margin: 16px auto; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none !important; }
.chip:hover { border-color: var(--brand); color: var(--brand-2); }
.chip.active { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.chip.small { padding: 4px 10px; font-size: .8rem; }
.hero-art { position: relative; height: 340px; }
.hero-mark { position: absolute; width: 120px; height: 120px; right: 6%; bottom: -6px; filter: drop-shadow(0 18px 30px rgba(255,107,44,.35)); }
.hero-card { position: absolute; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); width: 250px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); }
.hero-card b { font-size: .98rem; }
.hero-card i { font-style: normal; color: var(--muted); font-size: .82rem; }
.hero-card .tag { align-self: flex-start; }
.hero-card.c1 { top: 0; left: 4%; transform: rotate(-3deg); }
.hero-card.c2 { top: 112px; right: 0; transform: rotate(2.5deg); }
.hero-card.c3 { top: 232px; left: 6%; transform: rotate(-1deg); }

.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; padding-bottom: 18px; text-align: center; }
.trust b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.trust span { color: var(--muted); font-size: .88rem; }

/* ---------- Sections ---------- */
.section { padding-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: .92rem; }
.page-head { padding-top: 28px; padding-bottom: 8px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); }
.noimg span { font-size: 2.6rem; }
.noimg b { font-size: 1.15rem; font-weight: 800; color: var(--brand-ink); letter-spacing: .02em; }
.noimg.big { aspect-ratio: 1; border-radius: var(--radius); }
.noimg.big span { font-size: 4rem; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 1.3em; }
.card-meta a { color: var(--ink-2); font-weight: 700; }
.dot { color: var(--line); }
.ends { color: var(--red); font-weight: 600; }
.card-title { font-size: .97rem; font-weight: 700; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.asof { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.asof a { color: inherit; text-decoration: underline; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--mint); }
.price.big { font-size: 2rem; }
.was { color: var(--muted); font-size: .9rem; }
.card-actions { margin-top: auto; display: flex; gap: 6px; align-items: center; padding-top: 6px; }
.btn-cta { flex: 1; background: var(--brand-soft); color: var(--brand-ink); padding: 9px 12px; font-size: .9rem; }
.btn-cta:hover { background: var(--brand); color: #fff; }
.save-toggle.on, .save-toggle.on svg { color: var(--red); fill: var(--red); }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; line-height: 1.4; background: var(--surface-2); color: var(--ink-2); }
.tag-off { background: var(--red); color: #fff; }
.tag-code { background: var(--solid); color: var(--solid-ink); }
.tag-sale { background: var(--sun); color: #3d2a00; }
.tag-drop { background: var(--mint); color: #fff; }
.tag-time { background: var(--brand-soft); color: var(--brand-ink); }
.tag-type { background: var(--surface-2); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-weight: 700; }
.cat-count { font-size: .8rem; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.guide-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-cover { display: grid; place-items: center; height: 130px; background: linear-gradient(135deg, #ffd9c2, #ffe9a8); text-decoration: none !important; }
.guide-cover span { font-size: 3rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.guide-cover.cat-electronics, .guide-cover.cat-computers { background: linear-gradient(135deg, #cfd8ff, #e8dcff); }
.guide-cover.cat-home-kitchen { background: linear-gradient(135deg, #c9f0e0, #fff1c4); }
.guide-cover.cat-sports-outdoors, .guide-cover.cat-travel { background: linear-gradient(135deg, #c6ecff, #d6f5d6); }
.guide-cover.cat-fashion, .guide-cover.cat-beauty-health { background: linear-gradient(135deg, #ffd3e2, #ffe3c9); }
:root[data-theme="dark"] .guide-cover { filter: saturate(.8) brightness(.75); }
.guide-body { padding: 16px 18px 18px; }
.guide-meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.guide-meta a { color: var(--brand-2); font-weight: 700; }
.guide-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.guide-body h3 a { color: var(--ink); }
.guide-body p { color: var(--ink-2); font-size: .92rem; margin: 0; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.store-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.store-card:hover { border-color: var(--brand); }
.store-card img { width: 64px; height: 64px; object-fit: contain; }
.store-initial { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 1.5rem; }
.store-name { font-weight: 700; }
.store-sub { font-size: .8rem; color: var(--muted); }

.notice-card { display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border: 1px dashed var(--brand); border-radius: var(--radius); padding: 26px; }
.notice-icon { font-size: 2.6rem; }
.how { background: var(--solid); color: var(--solid-ink); border-radius: 24px; padding: 36px; }
.how h2 { color: #fff; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 18px 0; }
.how-grid p { color: rgba(255,255,255,.75); margin: 0; }
.how-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); font-weight: 800; margin-bottom: 8px; }
.how .muted, .how .muted a { color: rgba(255,255,255,.65); }
.how a { color: var(--sun); }

/* ---------- Browse ---------- */
.browse { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-top: 12px; }
.browse > * { min-width: 0; }
.filters { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.filter-form { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-form label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input:not([type]), textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%;
}
select:focus, input:focus, textarea:focus { border-color: var(--brand); outline: none; }
.filter-cats { display: flex; flex-direction: column; gap: 2px; }
.filter-cats h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px 10px; }
.filter-cats a { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.filter-cats a i { margin-left: auto; font-style: normal; color: var(--muted); font-size: .8rem; }
.filter-cats a:hover { background: var(--surface-2); }
.filter-cats a.active { background: var(--brand-soft); color: var(--brand-ink); }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.results-bar p { margin: 0; color: var(--ink-2); }
.grid-results { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.page { padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none !important; }
.page.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 3rem; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 52ch; margin-left: auto; margin-right: auto; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 12px; }
.letters a { padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.letter { margin: 26px 0 12px; font-size: 1.3rem; }

/* ---------- Deal page ---------- */
.deal-top { display: grid; grid-template-columns: minmax(280px, 460px) minmax(0, 1fr); gap: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.deal-media { background: #fff; border-radius: var(--radius); display: grid; place-items: center; }
.deal-media img { max-height: 440px; object-fit: contain; padding: 10px; }
.deal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.deal-info h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.deal-store { color: var(--muted); font-weight: 600; }
.deal-store a { font-weight: 800; }
.deal-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.save { background: var(--mint-soft); color: var(--mint); font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: .88rem; }
.code-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 2px dashed var(--brand); border-radius: var(--radius); padding: 10px; background: var(--brand-soft); margin-bottom: 8px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; padding: 6px 12px; flex: 1; color: var(--ink); }
.deal-actions { display: flex; gap: 8px; margin: 16px 0 10px; }
.checked { margin-top: 10px; }
.ended-banner { background: #fff1d6; color: #6b4a00; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; }
:root[data-theme="dark"] .ended-banner { background: #3b2e0e; color: #ffe1a1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 22px; }
.chart { width: 100%; height: auto; }
.chart-line { stroke: var(--brand); stroke-width: 3; fill: none; }
.chart-low { stroke: var(--mint); stroke-dasharray: 5 5; stroke-width: 1.5; }
.chart-label { font-size: 12px; fill: var(--muted); stroke: none; font-family: var(--font); }

/* ---------- Articles ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px clamp(20px, 4vw, 48px); }
.article-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.025em; }
.article-cat { display: inline-block; font-weight: 800; font-size: .85rem; margin-bottom: 10px; }
.article-dek { font-size: 1.15rem; color: var(--ink-2); }
.article-byline { color: var(--muted); font-size: .88rem; }
.article-disclosure { font-size: .82rem; color: var(--muted); background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; color: var(--ink); margin: 1.8em 0 .6em; scroll-margin-top: 130px; }
.prose h3 { font-size: 1.15rem; color: var(--ink); margin: 1.5em 0 .5em; scroll-margin-top: 130px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.inline-deals { margin: 1.6em 0; padding: 16px; background: var(--surface-2); border-radius: var(--radius); }
.inline-deals-head { font-weight: 800; color: var(--ink); margin-bottom: 10px; display: flex; justify-content: space-between; font-size: .95rem; }
.inline-store { margin: 1.2em 0; max-width: 240px; }
.amazon-shop { margin: 1.2em 0; }
.suggestion { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.suggestion p { margin: 0 0 6px; }
.card-note { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.45; }
.card-pick .noimg b { font-size: .8rem; letter-spacing: .02em; }
.sources { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.sources h2 { font-size: 1rem; }
.sources a { word-break: break-word; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.article-foot { margin-top: 16px; }
.article-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 18px; }
.toc, .side-deals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc h2, .side-deals h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); font-size: .92rem; border-bottom: 1px solid var(--line); }
.toc a:last-child { border: 0; }
.side-deal { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--ink); text-decoration: none !important; border-bottom: 1px solid var(--line); }
.side-deal img, .side-deal .noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; flex-shrink: 0; }
.side-deal b { display: block; font-size: .86rem; line-height: 1.3; }
.side-deal i { font-style: normal; color: var(--mint); font-weight: 800; font-size: .85rem; }
.preview-bar { background: var(--sun); color: #3d2a00; text-align: center; padding: 8px; font-weight: 700; }
.info-page { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px clamp(20px, 4vw, 44px); }
.contact-card { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 1.4em; }
.contact-card p { margin: 0 0 4px; }

/* ---------- Store page ---------- */
.store-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-bottom: 14px; }
.store-hero h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 2rem); }
.store-hero > div { flex: 1; min-width: 220px; }
.store-hero p { margin: 0; }
.store-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 18px; }
.store-about { margin-bottom: 14px; font-size: .98rem; }
.store-note { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--ink-2); font-size: .92rem; margin-top: 10px; max-width: 42ch; }
.footer nav { display: flex; flex-direction: column; gap: 6px; }
.footer nav h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.footer nav a { color: var(--ink-2); font-size: .92rem; }
.disclosure { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; padding-bottom: 28px; font-size: .8rem; color: var(--muted); }
.disclosure p { margin: 0 0 8px; max-width: 110ch; }

/* ---------- Drawer & toast ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(20,18,32,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; }
.saved-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.saved-item img, .saved-item .noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; }
.saved-item a { color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.3; }
.saved-item .p { color: var(--mint); font-weight: 800; font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--solid); color: var(--solid-ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.is-admin .mainnav, .is-admin .searchbox { display: none; }
.admin { padding-top: 24px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 12px 0 16px; }
.admin-tabs a { padding: 9px 14px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; text-decoration: none; }
.admin-tabs a.active { color: var(--brand-2); border-color: var(--brand); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 12px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat span { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat b { font-size: 1.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--ink); white-space: nowrap; }
.admin-table .actions { white-space: nowrap; }
.admin-table .actions form { display: inline; margin-left: 10px; }
.row-hidden { opacity: .55; }
.h-dot { width: 28px; }
.settings-form { display: flex; flex-direction: column; gap: 14px; }
.setting { display: flex; flex-direction: column; gap: 4px; }
.setting-label { font-weight: 700; font-size: .9rem; }
.setting-help { font-size: .8rem; color: var(--muted); }
.setting.check { flex-direction: row; align-items: center; gap: 8px; }
.setting.check input { width: auto; }
.settings-form .btn { align-self: flex-start; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid-form .wide { grid-column: 1 / -1; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.5; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.btn-row form { margin: 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; }
.pill-ok { background: var(--mint); }
.pill-warn { background: var(--sun); color: #3d2a00; }
.flash { padding: 10px 14px; border-radius: 10px; }
.form-ok { background: var(--mint-soft); color: var(--mint); font-weight: 700; }
.form-error { background: #fde8eb; color: var(--red); font-weight: 700; padding: 8px 12px; border-radius: 10px; }
:root[data-theme="dark"] .form-error { background: #3a1820; }
pre.cmd, pre.log { background: #15131f; color: #e9e6f5; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .82rem; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 5px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.mini-search { display: flex; gap: 6px; }
.mini-search input { width: 200px; }
.login-form { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.login-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.inline-edit { background: var(--surface-2); padding: 16px; border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .browse { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .filter-form { flex-direction: row; flex-wrap: wrap; }
  .filter-form label { flex: 1 1 140px; }
  .filter-cats { flex-direction: row; overflow-x: auto; gap: 6px; }
  .filter-cats h2 { display: none; }
  .filter-cats a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
  .deal-top { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .how-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .menu-btn { display: inline-grid; }
  .searchbox { order: 5; flex-basis: 100%; max-width: none; }
  .btn-search { display: none; }
  .mainnav { display: none; }
  .mainnav.open { display: block; }
  .mainnav.open .mainnav-inner { flex-direction: column; -webkit-mask-image: none; mask-image: none; }
  .nav-arrow { display: none !important; }
  .nav-sep { height: 1px; width: auto; margin: 4px 0; }
  .logo-text { font-size: 1.25rem; }
  .grid, .grid-results { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-3 { grid-template-columns: 1fr; }
  .card-body { padding: 10px; }
  .card-title { font-size: .9rem; }
  .price { font-size: 1.05rem; }
  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  .notice-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .article { padding: 22px 18px; border-radius: 18px; }
  .admin-table { font-size: .84rem; }
}
