/* Explore Nation design system
   Brand colours extracted from the supplied logo: pink #EC1F7A, blue #02ADF2, yellow #FDC236, white.
   Darker variants are used wherever text sits on colour so contrast meets WCAG AA. */
:root {
  --pink: #EC1F7A;          /* logo pink — surfaces, large type */
  --pink-600: #D4126A;      /* primary buttons (white text 4.9:1) */
  --pink-700: #B30E59;      /* hover / small text on light */
  --pink-50: #FFF1F7;       /* soft pink sections */
  --pink-100: #FFE0EE;
  --blue: #02ADF2;          /* logo blue — icons, accents */
  --blue-700: #0369A1;      /* links (5.9:1 on white) */
  --blue-50: #E8F7FE;
  --yellow: #FDC236;        /* logo yellow — reward highlights, always with ink text */
  --yellow-50: #FFF7DD;
  --ink: #17223B;
  --ink-2: #3D4863;
  --muted: #5B6478;
  --line: #EDE3EA;
  --white: #FFFFFF;
  --black: #120D12;
  --ok: #0E7A4A; --ok-50: #E6F6EE;
  --warn: #8A5A00; --warn-50: #FFF4D6;
  --err: #B42318; --err-50: #FDECEA;
  --radius: 20px; --radius-sm: 12px; --radius-lg: 28px;
  --shadow: 0 6px 24px rgba(23, 34, 59, .08);
  --shadow-lg: 0 16px 48px rgba(236, 31, 122, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --header-h: 64px; --nav-h: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.section { padding: 28px 0; }
.wrap.section { padding-left: 16px; padding-right: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) { .scroller { grid-auto-columns: minmax(260px, 31%); } }
@media (min-width: 1200px) { .scroller { grid-auto-columns: minmax(260px, 23.5%); } }
main { min-height: calc(100vh - var(--header-h)); padding-bottom: calc(var(--nav-h) + 24px); }
@media (min-width: 900px) { main { padding-bottom: 40px; } }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--pink); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { height: 46px; width: auto; border-radius: 8px; }
.brand-text { font-weight: 800; letter-spacing: .02em; display: none; }
.search { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 0 6px 0 14px; min-width: 0; height: 42px; }
.topbar .search input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 8px; background: transparent; min-height: 0; border-radius: 0; width: auto; }
.search button { border: 0; background: var(--pink-600); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.top-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: .9rem; }
.pill-btn:hover { background: rgba(255,255,255,.12); }
.points-pill { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.points-pill:hover { background: #ffd35e; }
.loc-select { display: none; }
.topbar .loc-select select { border: 0; min-height: 0; padding: 0 4px; width: auto; outline-offset: 2px; }
@media (max-width: 599px) { .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; row-gap: 8px; } .topbar .search { order: 3; flex-basis: 100%; } .top-actions { margin-left: auto; } .brand img { height: 40px; } }
.desktop-nav { display: none; background: #fff; border-bottom: 1px solid var(--line); }
.desktop-nav .wrap { display: flex; gap: 4px; height: 52px; align-items: center; overflow-x: auto; }
.desktop-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.desktop-nav a[aria-current="page"], .desktop-nav a:hover { background: var(--pink-50); color: var(--pink-700); }
@media (min-width: 768px) { .brand-text { display: inline; } .loc-select { display: inline-flex; } }
@media (min-width: 900px) { .desktop-nav { display: block; } }

/* ---------- bottom nav (member, mobile) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(23,34,59,.06); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; min-height: 48px; }
.bottom-nav a svg { width: 24px; height: 24px; }
.bottom-nav a[aria-current="page"] { color: var(--pink-600); }
.bottom-nav a[aria-current="page"] .nav-ico { background: var(--pink-50); }
.nav-ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; min-height: 46px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--pink-600); color: #fff; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--pink-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--pink-50); color: var(--pink-700); }
.btn.secondary:hover { background: var(--pink-100); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--pink); color: var(--pink-700); }
.btn.dark { background: var(--black); color: #fff; }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.blue { background: var(--blue-700); color: #fff; }
.btn.danger { background: var(--err); color: #fff; }
.btn.sm { padding: 7px 14px; min-height: 38px; font-size: .9rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--blue-700); font-weight: 700; cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .85rem; color: var(--err); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; border: 1.5px solid #DCCFD7; border-radius: var(--radius-sm); padding: 11px 14px; background: #fff; min-height: 46px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: 3px solid rgba(236,31,122,.18); }
input[aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink-600); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; min-height: 40px; font-weight: 600; cursor: pointer; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--pink-600); border-color: var(--pink-600); color: #fff; }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #F3E8EE; }
.card.pad { padding: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.soft { background: var(--pink-50); border-radius: var(--radius); padding: 18px; }
.offer { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.offer:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--pink) 0%, #F76AA9 55%, var(--yellow) 140%); overflow: hidden; }
.thumb img, .detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; color: transparent; font-size: 0; }
.thumb .fallback, .detail-hero .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.95); z-index: 0; }
.detail-hero .fallback svg { width: 72px; height: 72px; }
.thumb .fallback svg { width: 56px; height: 56px; }
.thumb .badges { position: absolute; top: 10px; left: 10px; right: 56px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.thumb .save { position: absolute; top: 8px; right: 8px; }
.credit { z-index: 2; position: absolute; right: 8px; bottom: 6px; font-size: .66rem; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 6px; }
.offer-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.offer-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.offer-title { font-weight: 800; font-size: 1.02rem; line-height: 1.3; margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--pink-700); }
.ref-price { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.pts { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px; font-size: .74rem; font-weight: 700; background: #fff; color: var(--ink); line-height: 1.3; }
.badge.pink { background: var(--pink-600); color: #fff; }
.badge.yellow { background: var(--yellow); color: var(--ink); }
.badge.blue { background: var(--blue-50); color: var(--blue-700); }
.badge.dark { background: rgba(18,13,18,.82); color: #fff; }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.err { background: var(--err-50); color: var(--err); }
.badge.outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.92); color: var(--pink-600); }
.icon-btn:hover { background: #fff; }
.icon-btn[aria-pressed="true"] svg { fill: var(--pink-600); }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; color: #fff; background: var(--pink); margin-top: 16px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: grid; }
.hero-slide.on { opacity: 1; position: relative; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(236,31,122,.96) 0%, rgba(236,31,122,.82) 42%, rgba(236,31,122,.15) 100%); }
.hero-copy { position: relative; z-index: 1; padding: 34px 24px 56px; max-width: 620px; align-self: center; }
.hero-copy h1 { color: #fff; }
.hero-copy h1 .serif { color: var(--yellow); }
.hero-copy p { font-size: 1.05rem; opacity: .95; }
.hero-dots { position: absolute; z-index: 2; bottom: 16px; left: 24px; display: flex; gap: 6px; }
.hero-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
.hero-dots button span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); display: block; }
.hero-dots button[aria-current="true"] span { background: var(--yellow); width: 24px; border-radius: 6px; }
.hero-word { position: absolute; right: -10px; bottom: -30px; font-family: var(--serif); font-style: italic; font-size: 9rem; color: rgba(255,255,255,.1); z-index: 1; pointer-events: none; line-height: 1; }
@media (min-width: 768px) { .hero { min-height: 380px; } .hero-copy { padding: 48px 48px 64px; } }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; padding: 10px 4px; border-radius: var(--radius); min-height: 48px; }
.cat:hover { background: var(--pink-50); }
.cat-blob { width: 72px; height: 72px; position: relative; display: grid; place-items: center; }
.cat-blob svg.petal { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-blob svg.ico { position: relative; width: 30px; height: 30px; color: #fff; }
.cat.c-blue svg.ico { color: #fff; } .cat.c-yellow svg.ico { color: var(--ink); }

/* ---------- editorial blocks ---------- */
.block-dark { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: 28px 22px; position: relative; overflow: hidden; }
.block-dark h2 { color: #fff; }
.block-dark .serif { color: var(--pink); }
.block-pink { background: var(--pink); color: #fff; border-radius: var(--radius-lg); padding: 28px 22px; position: relative; overflow: hidden; }
.block-pink h2, .block-pink h3 { color: #fff; }
.block-pink .serif { color: var(--yellow); }
.watermark { position: absolute; right: 12px; top: -12px; font-family: var(--serif); font-style: italic; font-size: 6rem; opacity: .08; pointer-events: none; }
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--pink-50); border-radius: var(--radius); padding: 18px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 14px; right: 16px; font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--pink); opacity: .35; }
.step .ico-round { width: 44px; height: 44px; border-radius: 14px; background: var(--pink-600); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }

/* ---------- membership card ---------- */
.mcard { border-radius: 24px; padding: 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #F65A9F 0%, var(--pink) 45%, #B30E59 100%); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.mcard::after { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; border: 28px solid rgba(253,194,54,.35); }
.mcard .tier { display: inline-flex; gap: 6px; align-items: center; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .82rem; }
.mcard .bal { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.mcard .qr { background: #fff; border-radius: 14px; padding: 8px; width: 104px; }
.progress { height: 10px; background: rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }
.progress.light { background: var(--pink-100); }
.progress.light > span { background: var(--pink-600); }

/* ---------- tabs, tables, lists ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 10px 14px; min-height: 44px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--pink-700); border-bottom-color: var(--pink-600); }
.tabs .count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink-50); font-size: .75rem; margin-left: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #FCF7FA; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list li:last-child { border-bottom: 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .v { font-size: 1.55rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi.pink { background: var(--pink); color: #fff; border-color: var(--pink); } .kpi.pink .l { color: rgba(255,255,255,.85); }
.kpi.yellow { background: var(--yellow-50); border-color: #F6E2A4; }
.bar { height: 28px; background: var(--pink-50); border-radius: 8px; position: relative; overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; background: var(--pink); border-radius: 8px; }
.bar > b { position: relative; z-index: 1; padding: 0 10px; line-height: 28px; font-size: .85rem; }

/* ---------- notices, toasts, modals ---------- */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice.info { background: var(--blue-50); color: #073b5a; }
.notice.warn { background: var(--warn-50); color: #5b3b00; }
.notice.err { background: var(--err-50); color: var(--err); }
.notice.ok { background: var(--ok-50); color: var(--ok); }
.notice.pink { background: var(--pink-50); color: var(--pink-700); }
.toast-host { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px); display: grid; gap: 8px; width: min(92vw, 440px); }
@media (min-width: 900px) { .toast-host { bottom: 24px; } }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; animation: up .2s ease; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--err); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(94vw, 560px); max-height: 90vh; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(18,13,18,.55); }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-body { padding: 16px 20px 20px; overflow-y: auto; max-height: calc(90vh - 70px); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico-round { width: 64px; height: 64px; border-radius: 50%; background: var(--pink-50); color: var(--pink-600); display: grid; place-items: center; margin: 0 auto 12px; }
.skeleton { background: linear-gradient(90deg, #F6EEF2 25%, #FCF6F9 37%, #F6EEF2 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- offer detail ---------- */
.detail { display: grid; gap: 22px; padding-top: 16px; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; } .sticky { position: sticky; top: calc(var(--header-h) + 66px); } }
.detail-hero { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; position: relative; background: var(--pink); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fact { background: var(--pink-50); border-radius: var(--radius-sm); padding: 12px; }
.fact .l { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.fact .v { font-weight: 700; }
dl.terms { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
dl.terms dt { font-weight: 700; margin-top: 12px; }
dl.terms dd { margin: 2px 0 0; color: var(--ink-2); }
.qr-box { background: #fff; border-radius: var(--radius); padding: 16px; display: grid; place-items: center; border: 2px dashed var(--pink-100); }
.qr-box svg { width: min(72vw, 260px); height: auto; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; }

/* ---------- portals ---------- */
.portal { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.side { min-width: 0; }
@media (min-width: 1000px) { .portal { grid-template-columns: 250px minmax(0, 1fr); } }
.side { background: var(--black); color: #fff; padding: 16px 12px; }
.side .who { padding: 8px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.side .who b { display: block; }
.side nav { display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 1000px) { .side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; } .side nav { flex-direction: column; } }
.side nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 10px 12px; border-radius: 12px; display: flex; gap: 10px; align-items: center; white-space: nowrap; font-weight: 600; min-height: 44px; }
.side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side nav a[aria-current="page"] { background: var(--pink); color: #fff; }
.side nav a .count { margin-left: auto; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 800; }
.portal-main { padding: 20px 16px 40px; min-width: 0; background: #FCF8FA; }
@media (min-width: 768px) { .portal-main { padding: 28px 28px 48px; } }
.portal-main h1 { font-size: 1.6rem; }
.scanner { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 1; max-width: 360px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid var(--yellow); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.result { border-radius: var(--radius); padding: 18px; }
.result.ok { background: var(--ok-50); border: 2px solid var(--ok); }
.result.bad { background: var(--err-50); border: 2px solid var(--err); }
.footer { background: var(--black); color: rgba(255,255,255,.8); padding: 32px 0 calc(var(--nav-h) + 30px); margin-top: 32px; }
@media (min-width: 900px) { .footer { padding-bottom: 32px; } }
.footer a { color: #fff; }
.footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.footer h4 { color: var(--pink); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.env-banner { background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 700; text-align: center; padding: 4px 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 20px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.offer-wrap { position: relative; }
.save-btn { z-index: 3; }
.side nav a svg { flex-shrink: 0; }

/* ---------- 3 × 4 app grid tiles ---------- */
.grid-3x4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .grid-3x4 { gap: 16px; } }
.tile { position: relative; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.tile-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; transition: transform .15s ease; }
.tile-link:hover { transform: translateY(-2px); }
.tile-link:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 2px; border-radius: 14px; }
.tile-thumb { aspect-ratio: 1 / 1; }
.tile-thumb .fallback svg { width: 34px; height: 34px; }
.tile .credit { display: none; }
.tile-type, .tile-flag, .tile-state { position: absolute; z-index: 2; border-radius: 999px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.tile-type { left: 6px; bottom: 6px; font-size: .64rem; padding: 2px 7px; background: var(--pink-600); color: #fff; }
.tile-type.y { background: var(--yellow); color: var(--ink); }
.tile-type.b { background: var(--blue-700); }
.tile-type.d { background: rgba(18,13,18,.82); }
.tile-flag { left: 6px; top: 6px; font-size: .6rem; padding: 2px 6px; background: rgba(18,13,18,.8); color: #fff; max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; }
.tile-state { right: 6px; bottom: 6px; font-size: .6rem; padding: 2px 6px; background: #fff; color: var(--err); }
.tile-body { padding: 7px 8px 9px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tile-title { font-size: .78rem; font-weight: 800; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-merchant { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-merchant svg { vertical-align: -1px; }
.tile-price { margin-top: auto; padding-top: 2px; font-weight: 800; color: var(--pink-700); font-size: .84rem; display: inline-flex; align-items: center; gap: 3px; }
.tile-price small { font-size: .68rem; color: var(--ink-2); font-weight: 700; }
.tile-price.pts-text { color: var(--ink); }
.tile-price.pts-text svg { color: #B7860B; }
.tile-checked { margin-top: auto; font-size: .64rem; color: var(--muted); }
.tile-save { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; }
@media (min-width: 768px) {
  .tile-thumb { aspect-ratio: 4 / 3; }
  .tile-thumb .fallback svg { width: 52px; height: 52px; }
  .tile .credit { display: block; }
  .tile-type { font-size: .74rem; padding: 3px 9px; left: 10px; bottom: 10px; }
  .tile-flag { font-size: .7rem; padding: 3px 8px; left: 10px; top: 10px; }
  .tile-body { padding: 12px 14px 14px; gap: 4px; }
  .tile-title { font-size: 1rem; }
  .tile-merchant { font-size: .82rem; }
  .tile-price { font-size: 1.08rem; }
  .tile-checked { font-size: .76rem; }
  .tile-save { width: 40px; height: 40px; top: 8px; right: 8px; }
}
.block-pink .tile { box-shadow: none; }

/* ---------- search & filters page ---------- */
.search-link { display: none; }
@media (max-width: 899px) {
  .topbar form.search { display: none; }
  .topbar .search-link { display: flex; text-decoration: none; color: var(--muted); gap: 8px; font-size: .92rem; }
  .topbar .search-link span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.topbar .search .filter-link { color: var(--pink-600); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-right: 4px; }
.topbar .search .filter-link:hover { background: var(--pink-50); }
.search-page { padding-bottom: 120px; }
.search-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.search-top form { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--pink-600); border-radius: 999px; padding: 0 6px 0 14px; min-height: 52px; }
.search-top form svg { color: var(--pink-600); flex-shrink: 0; }
.search-top input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; min-height: 48px; padding: 0; font-size: 1rem; }
.search-top input:focus-visible { outline: 0; }
.search-top .icon-btn { width: 40px; height: 40px; background: var(--pink-50); }
.f-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.f-group legend, .f-group > .f-label { font-weight: 800; font-size: .95rem; margin-bottom: 8px; padding: 0; display: block; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip { position: relative; }
.chip:has(input:checked) { background: var(--pink-600); border-color: var(--pink-600); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--blue-700); outline-offset: 2px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chip.suggest { background: var(--pink-50); border-color: transparent; color: var(--pink-700); text-decoration: none; }
.filter-sheet { background: #fff; border-radius: 20px; padding: 18px 16px 4px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .filter-sheet { padding: 24px 24px 8px; } .f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
.apply-bar { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 39; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(23,34,59,.08); }
.apply-bar .wrap { display: flex; gap: 10px; align-items: center; padding: 0; }
.apply-bar .btn.grow { flex: 1; }
@media (min-width: 900px) { .apply-bar { bottom: 0; } }

/* results toolbar */
.results-bar { display: flex; gap: 8px; align-items: center; margin: 14px 0 10px; }
.search-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 46px; text-decoration: none; color: var(--ink); font-weight: 600; }
.search-pill span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill.empty span { color: var(--muted); font-weight: 500; }
.search-pill svg { color: var(--pink-600); flex-shrink: 0; }
.filter-btn { position: relative; min-height: 46px; }
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink-600); color: #fff; font-size: .72rem; font-weight: 800; }
.active-filters { margin-bottom: 10px; }
.active-filters .chip { min-height: 34px; padding: 4px 10px 4px 12px; font-size: .82rem; text-decoration: none; color: var(--ink); background: var(--pink-50); border-color: transparent; }
.active-filters .chip svg { color: var(--pink-700); }
.active-filters .chip.clear { background: transparent; color: var(--blue-700); text-decoration: underline; }

[hidden], img[hidden] { display: none !important; }
.f-label { font-weight: 800; font-size: .95rem; margin-bottom: 8px; display: block; }
@media (min-width: 1100px) { .tile-thumb { aspect-ratio: 16 / 10; } }

.biz-cover { aspect-ratio: 16 / 7; border-radius: 20px; margin-bottom: 14px; }
@media (max-width: 599px) { .biz-cover { aspect-ratio: 4 / 3; } }
