/* DaicoDeals theme — bright marketplace look: royal blue chrome, yellow accents, green prices, soft tinted panels.
   Typeface: Outfit (SIL Open Font License), self-hosted in /fonts. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0a5fd6;
  --blue-deep: #0848a6;
  --blue-soft: #e6effc;
  --yellow: #ffcb2b;
  --red: #e5254f;
  --red-soft: #fde8ed;
  --green: #12a05a;
  --green-ink: #0b7a43;
  --green-soft: #e3f4ea;
  --ink: #0f1b2d;
  --ink-2: #44546a;
  --ink-3: #6d7c91;
  --line: #e1e7ef;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --hot-bg: #fff1cc;
  --hot-ink: #7a4b00;
  --bad: #b4232c;
  --bad-bg: #fbe4e5;
  --warn-bg: #fff1cc;
  --run-bg: #e6effc;
  --paid: #0f1b2d;
  --saved: #12a05a;
  --saved-ink: #0b7a43;
  --saved-bg: #e3f4ea;
  --accent: var(--blue);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 27 45 / .05), 0 6px 20px rgb(15 27 45 / .06);
  --pop: 0 12px 40px rgb(15 27 45 / .16);
  --wrap: 1500px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); }
p { margin: 0 0 .75em; }
a { color: var(--blue); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .35em; border-radius: 6px; }
s { color: var(--ink-3); }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 200; background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: 8px; }
.skip:focus { top: .5rem; }
.muted { color: var(--ink-2); }
.num, .right { text-align: right; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 2.5vw, 2.5rem); }

/* ================= Header ================= */
.promo-bar { background: var(--blue); color: #fff; display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .8rem 1rem; text-align: center; font-weight: 500; }
.promo-bar p { margin: 0; }
.promo-btn { background: #0d1423; color: #fff; padding: .35rem .9rem; border-radius: 8px; font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.promo-btn:hover { background: #000; }

.site-head { position: relative; z-index: 50; background: var(--bg); }
.util { display: flex; justify-content: space-between; align-items: center; padding-block: .7rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.util nav, .util-right { display: flex; gap: 1.6rem; align-items: center; }
.util a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.util a:hover { color: var(--blue); }
.util-right span { color: var(--ink-2); }

.mid { display: flex; align-items: center; gap: 1.6rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 2rem; letter-spacing: -.04em; }
.brand svg { color: var(--yellow); }
.head-badge { display: flex; align-items: center; gap: .6rem; color: var(--ink-3); }
.head-badge svg { width: 38px; height: 38px; fill: #dbe3f1; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.head-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.head-badge strong { color: var(--ink-2); font-size: 1.2rem; font-weight: 800; }
.head-badge small { font-size: .85rem; }

.search { flex: 1; display: flex; align-items: stretch; min-width: 0; border: 2px solid var(--blue); border-radius: 12px; overflow: hidden; background: #fff; }
.search select { flex: none; width: auto; min-width: 5.5rem; max-width: 11rem; border: 0; border-radius: 8px; margin: .35rem; background: var(--surface-2); font-weight: 500; color: var(--ink); padding: .55rem .8rem; min-height: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .9rem 1rem; font-size: 1rem; border-radius: 0; min-height: 0; }
.search input:focus-visible, .search select:focus-visible { outline-offset: -2px; }
.search button { border: 0; background: var(--blue); color: #fff; width: 4.2rem; display: grid; place-items: center; cursor: pointer; }
.search button:hover { background: var(--blue-deep); }
.search button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.head-actions { display: flex; gap: 1.2rem; align-items: center; }
.act { display: inline-flex; align-items: center; gap: .65rem; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.act svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.act span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.05rem; text-align: left; }
.act small { font-size: .82rem; font-weight: 400; color: var(--ink-3); }
.act:hover { color: var(--blue); }

/* ---- nav row ---- */
.navrow { display: flex; align-items: center; gap: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.navrow > * { padding-block: .35rem; }
.allcats { position: relative; padding-right: 1.5rem; border-right: 1px solid var(--line); }
.allcats-btn { display: flex; align-items: center; gap: .8rem; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: .55rem .2rem; text-align: left; }
.allcats-btn > svg:first-child { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.allcats-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.allcats-btn strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.allcats-btn small { color: var(--ink-3); font-size: .85rem; }
.chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-left: .6rem; }

.allcats-panel {
  position: absolute; left: 0; top: 100%; z-index: 60; width: 22rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--pop); padding: .6rem; display: none;
}
.allcats:hover .allcats-panel, .allcats:focus-within .allcats-panel { display: block; }
.cats { list-style: none; margin: 0; padding: 0; }
.cats > li { position: static; }
.cat-link { display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.cat-link > svg:first-child { width: 22px; height: 22px; fill: none; stroke: #8fa1bd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-link span { flex: 1; }
.arrow { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cats > li:hover > .cat-link, .cats > li:focus-within > .cat-link { background: var(--surface-2); }
.cats > li:hover > .cat-link > svg:first-child { stroke: var(--blue); }
.fly {
  position: absolute; left: 100%; top: 0; bottom: 0; width: 20rem; background: #fff; border: 1px solid var(--line); border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--pop); padding: 1.2rem 1.6rem; display: none; flex-direction: column; gap: .15rem; margin-left: -1px;
}
.fly a { padding: .5rem 0; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.fly a:hover { color: var(--blue); }
.fly-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem; font-weight: 600; }
.cats > li:hover > .fly, .cats > li:focus-within > .fly { display: flex; }
.cats:not(:hover):not(:focus-within) > li:first-child > .fly { display: flex; }
.cats-extra { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .4rem; }
.cats-extra a { display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 10px; }
.cats-extra a:hover { background: var(--surface-2); }
.mini { font-style: normal; font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.mini.best { background: #dbe9ff; color: var(--blue-deep); }
.mini.sale { background: var(--red-soft); color: var(--red); }

.primary { display: flex; align-items: center; gap: .4rem; flex: 1; }
.primary > a, .drop-trigger { display: inline-flex; align-items: center; gap: .35rem; padding: .85rem 1rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; border-radius: 10px; }
.primary > a:hover, .drop:hover > .drop-trigger, .drop:focus-within > .drop-trigger { color: var(--blue); }
.primary > a.active { color: var(--blue); }
.drop-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.drop:hover > .drop-trigger svg, .drop:focus-within > .drop-trigger svg { transform: rotate(180deg); }
.drop { position: static; }
.drop-panel { position: absolute; z-index: 60; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--pop); display: none; }
.drop:hover > .drop-panel, .drop:focus-within > .drop-panel { display: grid; }
.mega-panel { left: clamp(1rem, 2.5vw, 2.5rem); right: clamp(1rem, 2.5vw, 2.5rem); padding: 1.6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.6rem; }
.mega-panel-sm { right: auto; width: min(44rem, 92vw); left: 16rem; grid-template-columns: repeat(3, 1fr); }
.mega-col { display: flex; flex-direction: column; gap: .1rem; }
.mega-col a { padding: .35rem 0; color: var(--ink-2); text-decoration: none; }
.mega-col a:hover { color: var(--blue); }
.mega-col .mega-head { color: var(--ink); font-weight: 700; font-size: 1.05rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.todays { position: relative; }
.todays .drop-panel { right: 0; left: auto; }
.list-panel { min-width: 15rem; padding: .5rem; flex-direction: column; }
.drop:hover > .list-panel, .drop:focus-within > .list-panel { display: flex; }
.list-panel a { padding: .7rem .9rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.list-panel a:hover { background: var(--surface-2); color: var(--blue); }

/* mobile menu */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.mobile-panel { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 70; width: min(20rem, 88vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--pop); padding: .5rem; display: flex; flex-direction: column; }
.mobile-panel a { padding: .75rem .9rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-panel a:hover { background: var(--surface-2); }
.mobile-panel hr { border: 0; border-top: 1px solid var(--line); margin: .4rem 0; width: 100%; }

@media (max-width: 1180px) {
  .head-badge { display: none; }
  .primary > a, .drop-trigger { padding-inline: .6rem; font-size: 1.05rem; }
}
@media (max-width: 980px) {
  .util nav a:nth-child(n+3) { display: none; }
  .mobile-menu { display: block; }
  .navrow { display: none; }
  .mid { flex-wrap: wrap; gap: .8rem; }
  .brand { font-size: 1.6rem; }
  .search { order: 5; flex-basis: 100%; }
  .head-actions { margin-left: auto; }
  .act span { display: none; }
}
@media (max-width: 560px) {
  .promo-bar { flex-direction: column; gap: .4rem; font-size: .92rem; }
  .util-right span { display: none; }
  .search select { display: none; }
}

/* ================= Footer ================= */
main#content { display: block; max-width: var(--wrap); margin: 0 auto; padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 2.5vw, 2.5rem) 3rem; }
.site-foot { background: var(--blue); color: #dbe8ff; margin-top: 2rem; padding-top: 3rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; }
.site-foot h2 { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: -.01em; }
.site-foot a { display: block; color: #cfe0ff; text-decoration: none; padding: .3rem 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-about p { font-size: .95rem; color: #cfe0ff; }
.foot-base { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.2rem; border-top: 1px solid rgb(255 255 255 / .18); font-size: .9rem; color: #b5cdf5; }

/* ================= Page furniture ================= */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sub { color: var(--ink-2); margin: .3rem 0 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.section { margin-top: 3rem; }
.section-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.section-head .more { margin-left: auto; font-weight: 600; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.15rem; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; border-radius: 9px; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: #14213d; }
.btn-yellow:hover { background: #ffd95c; }
.btn-ghost { background: transparent; border-color: rgb(20 33 61 / .35); color: #14213d; }
.btn-ghost:hover { background: rgb(255 255 255 / .55); }
.btn-green { background: var(--green); border-color: var(--green); }
.btn-green:hover { background: var(--green-ink); }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: #c81a41; }
.btn-dark { background: #0d1423; }

/* panels & tables & forms (admin, detail, filters) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.panel-head a { font-size: .95rem; font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; color: var(--ink-3); font-size: .85rem; }
.meta.hint { max-width: 26rem; margin-top: .2rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: .55rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--saved-bg); color: var(--saved-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--hot-ink); }
.pill.run { background: var(--run-bg); color: var(--blue); }
.switch { position: relative; display: inline-block; width: 2.7rem; height: 1.55rem; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-ui { position: absolute; inset: 0; background: #cbd5e3; border-radius: 999px; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: .16rem; left: .16rem; width: 1.23rem; height: 1.23rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(1.15rem); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--blue); outline-offset: 2px; }

.notice { padding: .75rem 1rem; border-radius: 10px; background: var(--run-bg); color: var(--ink); border: 1px solid var(--line); margin-bottom: 1rem; }
.notice.warn { background: var(--warn-bg); color: var(--hot-ink); border-color: transparent; }
.notice.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--surface-2); border: 1px dashed #c8d3e3; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty p { color: var(--ink-2); max-width: 32rem; }
.skeleton { height: 22rem; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface-2) 30%, #fff 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.login { max-width: 25rem; margin: 5vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.login .sub { margin-bottom: 1.25rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: end; background: var(--surface-2); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 9rem; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field-wide { flex: 1 1 14rem; }
.field-narrow { min-width: 6.5rem; width: 7.5rem; }
input, input[type=text], input[type=search], input[type=number], input[type=email], input[type=password], select, textarea.form-control {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; min-height: 2.6rem; width: 100%;
}
input:hover, select:hover { border-color: #b7c4d8; }
.check { display: inline-flex; gap: .5rem; align-items: center; min-height: 2.6rem; font-weight: 500; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .92rem; font-weight: 500; padding: .35rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue); }
.chip-clear { background: transparent; border-style: dashed; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; color: var(--ink-2); }

/* ================= Home ================= */
.home { display: block; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 3rem); border-radius: 22px; background:
  radial-gradient(60% 90% at 88% 20%, #ffe9a8 0%, rgb(255 233 168 / 0) 60%),
  radial-gradient(50% 70% at 5% 100%, #cfe0fb 0%, rgb(207 224 251 / 0) 65%), #eef3fb; }
.eyebrow { font-weight: 600; color: var(--blue-deep); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .8rem; }
.hero h1 { color: #14213d; max-width: 16ch; }
.lede { color: #3a4a66; font-size: 1.15rem; max-width: 34rem; margin: 1rem 0 1.5rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin: 2rem 0 0; }
.hero-stats dt { font-size: .85rem; color: #52627e; }
.hero-stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: #14213d; }
.spot { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; background: #fff; border-radius: 20px; box-shadow: var(--pop); text-decoration: none; color: var(--ink); transform: rotate(1.2deg); transition: transform .2s; }
.spot:hover { transform: rotate(0) translateY(-3px); }
.spot .thumb-lg { border-radius: 14px; aspect-ratio: 16 / 10; }
.spot-tag { align-self: flex-start; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .02em; }
.spot-title { font-weight: 600; font-size: 1.1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.spot-price strong { font-size: 1.9rem; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.spot-price em { font-style: normal; font-weight: 700; background: var(--red-soft); color: var(--red); padding: .1rem .55rem; border-radius: 8px; }
.spot-store { color: var(--ink-3); font-size: .95rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .spot { transform: none; } }

.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.4rem; }
.promo-tile { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 1.8rem; border-radius: 18px; }
.promo-tile h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.promo-tile p { margin: 0; color: var(--ink-2); }
.promo-green { background: #eaf3e6; } .promo-green h2 { color: #0b6b3a; }
.promo-pink { background: #fbe9e4; } .promo-pink h2 { color: #a3213c; }
@media (max-width: 820px) { .promos { grid-template-columns: 1fr; } .promo-tile { flex-direction: column; align-items: flex-start; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin-top: 2.2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.ficon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; }
.ficon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-yellow { background: #ffefb8; color: #9a6a00; } .f-blue { background: var(--blue-soft); color: var(--blue); }
.f-green { background: var(--green-soft); color: var(--green-ink); } .f-red { background: var(--red-soft); color: var(--red); }

.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab { font: inherit; font-size: 1rem; font-weight: 500; padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tab:hover { border-color: var(--blue); }
.tab[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px var(--blue); }

.rail-wrap { position: relative; }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .4rem .2rem 1rem; scrollbar-width: thin; }
.rail > .card { flex: 0 0 min(15.5rem, 72vw); scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.rail-btn:hover { border-color: var(--blue); }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn.prev { left: -.9rem; } .rail-btn.next { right: -.9rem; }
@media (max-width: 700px) { .rail-btn { display: none; } }

/* deal cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.1rem; transition: opacity .15s; }
.grid.is-loading { opacity: .55; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card:hover { box-shadow: var(--pop); border-color: transparent; transform: translateY(-3px); }
.card-media { position: relative; display: block; padding: .9rem .9rem 0; }
.card-media .thumb-lg { border: 0; border-radius: 12px; }
.card-media img.thumb-lg { object-fit: contain; aspect-ratio: 1 / 1; height: auto; background: #fff; }
.off-badge { position: absolute; top: 1.3rem; right: 1.3rem; background: var(--red-soft); color: var(--red); font-weight: 700; font-size: .9rem; padding: .2rem .6rem; border-radius: 8px; }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem 1rem; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--green); }
.was { font-size: 1rem; }
.price-row-lg .price { font-size: 2.6rem; }
.price-row-lg .was { font-size: 1.2rem; }
.card-title { font-size: 1.02rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.stars { margin: 0; color: var(--ink-2); font-size: .95rem; }
.stars span { color: #f5a300; }
.card-store { margin: 0; color: var(--ink-3); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.card-store strong { color: var(--ink); font-weight: 600; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .3rem; }
.save-amt { font-size: .9rem; font-weight: 600; color: var(--green-ink); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.hot { background: var(--hot-bg); color: var(--hot-ink); }
.tag.save { background: var(--saved-bg); color: var(--saved-ink); }

/* depth bar */
.depth { width: 100%; }
.depth-track { display: flex; height: .4rem; border-radius: 999px; overflow: hidden; background: #e8edf5; }
.depth-paid { background: #f0a6b5; }
.depth-saved { background: var(--red); }
.depth-label { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .9rem; color: var(--ink-2); }
.depth-label strong { color: var(--green-ink); }
.detail .depth-track { height: .6rem; }
.detail .depth-paid { background: var(--ink); }
.detail .depth-saved { background: var(--green); }

/* thumbs */
.thumb { width: 3.4rem; height: 3.4rem; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.thumb.ph { display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: hsl(var(--h) 45% 28%); background: hsl(var(--h) 60% 92%); border-color: hsl(var(--h) 45% 84%); }
.thumb-lg { width: 100%; height: auto; aspect-ratio: 4 / 3; font-size: 2.8rem; }

/* category tiles, retailers */

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1rem; }

.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; padding: 1.2rem .8rem 1rem; background: var(--surface-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: background .15s, transform .15s; }
.cat-tile:hover { background: var(--blue-soft); transform: translateY(-2px); }
.cat-tile .thumb-lg { width: 6.5rem; aspect-ratio: 1; margin-bottom: .6rem; border-radius: 12px; font-size: 1.6rem; }
.cat-tile strong { font-size: 1.05rem; font-weight: 600; }
.cat-tile span { color: var(--ink-3); font-size: .92rem; }
.retailers { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.retailer { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; background: var(--surface-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: background .15s; }
.retailer:hover { background: var(--blue-soft); }
.r-badge { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff; background: hsl(var(--h) 55% 42%); }
.r-main { display: flex; flex-direction: column; flex: 1; }
.r-main strong { font-size: 1.25rem; font-weight: 700; }
.r-main span { color: var(--ink-2); font-size: .95rem; }
.retailer > svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* editorial tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; margin-top: 3rem; }
.tile { position: relative; overflow: hidden; min-height: 17rem; padding: 1.6rem; border-radius: 18px; text-decoration: none; color: #3d2f24; display: flex; flex-direction: column; }
.tile p { margin: 0 0 .4rem; font-size: .98rem; opacity: .85; }
.tile h3 { font-size: 1.6rem; line-height: 1.1; max-width: 11ch; }
.tile-link { margin-top: 1.1rem; align-self: flex-start; font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.tile > svg { position: absolute; right: -1rem; bottom: -1.2rem; width: 10rem; height: 10rem; fill: rgb(255 255 255 / .35); stroke: rgb(61 47 36 / .55); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.tile:hover > svg { transform: scale(1.06) rotate(-3deg); }
.t-beige { background: #ece4da; } .t-mint { background: #e2ecd8; } .t-peach { background: #fbe0cf; } .t-sky { background: #d8e7ef; color: #1e3a4a; }

/* sale block */
.sale { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.sale-panel { background: var(--surface-2); border-radius: 18px; padding: 1.6rem 1.3rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; }
.sale-flag { display: inline-flex; flex-direction: column; align-items: flex-start; font-weight: 900; font-size: 1.5rem; line-height: 1; transform: rotate(-3deg); margin-bottom: .6rem; }
.flag-blue { background: #1a9bf0; color: #fff; padding: .3rem .7rem; }
.flag-red { background: #f0335f; color: #fff; padding: .3rem .7rem; margin-left: -.9rem; margin-top: -.05rem; transform: rotate(1deg); }
.sale-panel p { color: var(--ink-2); margin: 0; }
.sale-note { font-size: .9rem; color: var(--ink-3); }
.sale-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .sale { grid-template-columns: 1fr; } }

.notice-strip { margin-top: 3rem; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--blue-soft); display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: start; }
.notice-strip > strong { color: var(--blue-deep); font-size: 1.15rem; }
.strip-bars .bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem 1.6rem; }
@media (max-width: 800px) { .notice-strip { grid-template-columns: 1fr; } }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.bars-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; font-weight: 600; }
.bars-head a { color: var(--ink); text-decoration: none; }
.bars-head a:hover { text-decoration: underline; }
.bars-val { color: var(--ink-2); font-weight: 400; }
.bars-track { height: .5rem; background: rgb(255 255 255 / .8); border-radius: 999px; overflow: hidden; margin-top: .3rem; }
.bars-fill { display: block; height: 100%; border-radius: 999px; background: hsl(var(--h) 60% 45%); }

/* ================= Deal detail ================= */
.crumbs { display: flex; gap: .5rem; font-size: .95rem; margin-bottom: 1.2rem; }
.crumbs a + a::before { content: "/"; margin-right: .5rem; color: var(--ink-3); }
.detail { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.detail-media { background: var(--surface-2); border-radius: 18px; padding: 1.2rem; }
.detail-media .thumb-lg { border: 0; }
.detail-main { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.detail-main .depth { max-width: 28rem; }
.detail-title { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .9rem 1.6rem; margin: .6rem 0 0; width: 100%; padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 1.2rem; } }
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .orig { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linejoin: round; }
.chart .dot { fill: #fff; stroke: var(--green); stroke-width: 2; }

/* ================= Blazor UI ================= */
#blazor-error-ui { display: none; position: fixed; inset: auto 0 0 0; z-index: 1000; padding: .75rem 1.25rem; background: var(--hot-bg); color: var(--hot-ink); box-shadow: 0 -2px 8px rgb(0 0 0 / .2); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .9rem; top: .7rem; }
#blazor-error-ui .reload { margin-left: .5rem; }
.blazor-error-boundary { background: var(--bad-bg); color: var(--bad); padding: 1rem; border-radius: 10px; }
.blazor-error-boundary::after { content: "An error has occurred."; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print { .promo-bar, .site-head, .site-foot, .btn { display: none; } }

/* ================= Analytics dashboard ================= */
.an-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

    .an-controls .chips {
        flex-basis: auto;
    }

.an-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.an-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: .9rem;
    margin-bottom: 1.25rem;
}

.kpi {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .9rem 1rem;
}

    .kpi dt {
        font-size: .78rem;
        font-weight: 600;
        color: var(--ink-3);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .kpi dd {
        margin: .25rem 0 0;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

    .kpi small {
        display: block;
        margin-top: .15rem;
        font-size: .82rem;
        color: var(--ink-2);
        font-weight: 500;
    }

    .kpi .up {
        color: var(--green-ink);
    }

    .kpi .down {
        color: var(--bad);
    }

.an-bars-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--blue);
}

.an-bars .bars-track {
    background: var(--surface-2);
    height: .45rem;
    border-radius: 4px;
}

.an-legend {
    display: flex;
    gap: 1.1rem;
    font-size: .85rem;
    color: var(--ink-2);
    margin: 0 0 .5rem;
}

    .an-legend span {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
    }

.an-key-bar {
    width: .8rem;
    height: .8rem;
    border-radius: 3px;
    background: var(--blue);
}

.an-key-line {
    width: 1rem;
    height: 2px;
    background: var(--ink);
}

.chart .an-bar {
    fill: var(--blue);
}

.chart .an-line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart .an-dot {
    fill: var(--ink);
    stroke: var(--surface);
    stroke-width: 2;
}

.chart .an-hit {
    fill: transparent;
}

    .chart .an-hit:hover {
        fill: rgb(10 95 214 / .07);
    }

.chart .baseline {
    stroke: var(--ink-3);
    stroke-width: 1;
}

.an-table td.num, .an-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.an-table td {
    padding: .55rem .75rem;
}

.an-sub {
    font-size: .82rem;
    color: var(--ink-3);
}

.an-session {
    border-left: 3px solid var(--blue-soft);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

    .an-session h3 {
        font-size: 1rem;
        margin: 0 0 .35rem;
    }

    .an-session ol {
        margin: 0;
        padding-left: 1.1rem;
    }

    .an-session li {
        margin: .3rem 0;
    }

.an-pill {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .05rem .45rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-2);
    vertical-align: middle;
}

    .an-pill.click {
        background: var(--green-soft);
        color: var(--green-ink);
    }

    .an-pill.new {
        background: var(--blue-soft);
        color: var(--blue-deep);
    }

    /* ================= Admin deal list ================= */
.th-sort { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.th-sort:hover { color: var(--ink);}
.th-sort:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.deal-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem 1.25rem; }
.deal-form .span-all { grid-column: 1 / -1; }
.deal-form textarea { font: inherit; width: 100%; min-height: 4.5rem; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.deal-form .validation-message { color: var(--bad); font-size: .85rem; }
.status-choice { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: .25rem 0 .75rem; }

.anchor-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

    .anchor-pill:hover {
        background-color: #0056b3;
    }

.link-preview {
    display: inline;
}

.lp-card {
    display: none;
    position: fixed;
    z-index: 1000;
    width: 22rem;
    max-width: calc(100vw - 16px);
    gap: .75rem;
    padding: .8rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgb(15 27 45 / .18);
    font-size: .85rem;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

    .link-preview.lp-open .lp-card, .lp-card.is-measuring {
        display: flex;
    }

    .lp-card.is-measuring {
        visibility: hidden;
    }

.lp-img {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface-2);
}

.lp-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.lp-title {
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-price {
    font-weight: 700;
    color: var(--green-ink);
}

.lp-host {
    color: var(--ink-2);
    font-weight: 600;
}

.lp-label {
    margin-top: .3rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-3);
}

.lp-url {
    font-size: .75rem;
    word-break: break-all;
    color: var(--ink-2);
    background: var(--surface-2);
    border-radius: 6px;
    padding: .2rem .35rem;
}

.lp-final {
    color: var(--blue-deep);
    background: var(--blue-soft);
}

.lp-note {
    font-size: .78rem;
    color: var(--ink-3);
    margin-top: .3rem;
}

.lp-bad {
    color: var(--bad);
}

/* ---------- Admin menu (Components/Shared/AdminNav.razor) ---------- */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    padding: .45rem;
    margin-bottom: 2rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.admin-nav-group {
    display: flex;
    align-items: center;
    gap: .2rem;
}

    .admin-nav-group + .admin-nav-group {
        padding-left: 1.25rem;
        border-left: 1px solid var(--line);
    }

.admin-nav-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 .45rem 0 .35rem;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: .95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

    .admin-nav-link:hover {
        background: var(--surface);
        color: var(--ink);
    }

    .admin-nav-link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    .admin-nav-link.active {
        background: var(--surface);
        color: var(--ink);
        font-weight: 650;
        box-shadow: 0 1px 2px rgba(15, 27, 45, .08), inset 0 -2px 0 var(--accent);
    }

.admin-nav-badge {
    min-width: 1.35rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
}

/* Phones: one row that scrolls sideways instead of wrapping into a tall block */
@media (max-width: 720px) {
    .admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        .admin-nav::-webkit-scrollbar {
            display: none;
        }

    .admin-nav-group {
        flex: none;
    }

        .admin-nav-group + .admin-nav-group {
            padding-left: .75rem;
        }
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: #ffcb2b70;
    color: #724141;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 27, 45, .15);
    transition: transform .15s, box-shadow .15s;
}

    .bmc-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(15, 27, 45, .18);
    }

    .bmc-btn:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.util .bmc-btn:hover {
    background: #ffcb2b80;
    color: #682b2b;
}


/* ================= Ads ================= */
.ad-slot {
    margin: 1.5rem auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

    .ad-slot.ad-banner {
        min-height: 100px;
    }

    .ad-slot.ad-box {
        min-height: 280px;
    }

.ad-label {
    display: block;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: .25rem;
}

.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none;
}

.wrap > .ad-slot, main > .ad-slot {
    padding: 0 1rem;
}


/* ---------- About / Contact / Privacy pages ---------- */
.legal {
    max-width: 46rem;
    padding-block: 2rem 3rem;
    line-height: 1.65;
}

    .legal h1 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
        letter-spacing: -.02em;
        margin: 0 0 .6rem;
    }

    .legal h2 {
        font-size: 1.25rem;
        margin: 2rem 0 .6rem;
        letter-spacing: -.01em;
    }

    .legal p, .legal li {
        color: var(--ink-2);
    }

    .legal ul {
        padding-left: 1.25rem;
    }

    .legal li {
        margin-bottom: .4rem;
    }

    .legal a {
        color: var(--accent);
    }

.legal-lead {
    font-size: 1.15rem;
    color: var(--ink) !important;
}

.legal-note {
    font-size: .9rem;
    color: var(--ink-3) !important;
}

.legal-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: 1.5rem 0;
}

    .legal-card h2 {
        margin-top: 0;
    }

    .legal-card p {
        margin: .25rem 0;
    }

.legal-email {
    font-size: 1.15rem;
    font-weight: 700;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
}

    .foot-links a {
        display: inline;
        padding: 0;
    }
