/* PromoCodely — public site styles. Light theme by default, dark theme via [data-theme="dark"]. */
:root {
  --bg: #f8f7fc;
  --bg-tint: #f1ecfd;
  --surface: #ffffff;
  --surface-2: #f5f2fc;
  --text: #191430;
  --text-2: #3b3557;
  --muted: #676281;
  --border: #e6e1f2;
  --border-strong: #d4cce9;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-soft: #efe8ff;
  --primary-text: #6d28d9;
  --on-primary: #ffffff;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff1e8;
  --on-accent: #ffffff;
  --ok: #047857; --ok-soft: #e6f6ef;
  --warn: #a16207; --warn-soft: #fdf6e3;
  --danger: #b91c1c; --danger-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(25, 20, 48, .06);
  --shadow: 0 1px 2px rgba(25, 20, 48, .05), 0 6px 20px -8px rgba(76, 29, 149, .14);
  --shadow-lg: 0 20px 50px -20px rgba(76, 29, 149, .35);
  --radius: 14px;
  --radius-sm: 9px;
  --hero-a: rgba(124, 58, 237, .20);
  --hero-b: rgba(249, 115, 22, .14);
  --hero-c: rgba(167, 139, 250, .22);
  --dot: rgba(109, 40, 217, .10);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e0b19;
  --bg-tint: #151029;
  --surface: #16122a;
  --surface-2: #1e1838;
  --text: #ece9f8;
  --text-2: #cfc9e6;
  --muted: #a49ec0;
  --border: #2a2347;
  --border-strong: #3a3160;
  --primary: #7c3aed;
  --primary-hover: #8b5cf6;
  --primary-soft: #251c45;
  --primary-text: #b9a2fd;
  --on-primary: #ffffff;
  --accent: #fb923c;
  --accent-hover: #fdba74;
  --accent-soft: #2e1d14;
  --on-accent: #1b0f05;
  --ok: #34d399; --ok-soft: #0f2a22;
  --warn: #fbbf24; --warn-soft: #2a2310;
  --danger: #f87171; --danger-soft: #2d1416;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --hero-a: rgba(124, 58, 237, .32);
  --hero-b: rgba(249, 115, 22, .13);
  --hero-c: rgba(91, 33, 182, .35);
  --dot: rgba(185, 162, 253, .07);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -200px, var(--bg-tint), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
[data-theme="dark"] a:hover { color: #d5c7ff; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
.h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.ico { width: 1em; height: 1em; vertical-align: -.14em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: .75em 1.2em; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -8px rgba(109, 40, 217, .7); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -8px rgba(194, 65, 12, .7); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-text); }
.btn-sm { padding: .5em .9em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .3em; }
.link-btn:hover { color: var(--primary-text); }
.link-btn[aria-pressed="true"] { color: var(--accent); }
[data-theme="dark"] .link-btn[aria-pressed="true"] { color: var(--accent); }
.link-btn[aria-pressed="true"] svg { fill: currentColor; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary-text); }
.icon-btn svg { width: 20px; height: 20px; }
.saved-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.theme-toggle .when-dark { display: none; }
[data-theme="dark"] .theme-toggle .when-dark { display: block; }
[data-theme="dark"] .theme-toggle .when-light { display: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.header-top { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-word { font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.brand-accent { color: var(--primary-text); }
.header-search { position: relative; flex: 1; max-width: 520px; }
.header-search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.header-search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .93rem; }
.header-search input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.country-form { position: relative; display: flex; align-items: center; }
.country-form .ico { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.country-form select { height: 40px; padding: 0 30px 0 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; max-width: 170px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.menu-toggle { display: none; }
.main-nav { border-top: 1px solid var(--border); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { padding: 11px 12px; font-size: .9rem; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-inner a:hover { color: var(--primary-text); }
.nav-inner a.active { color: var(--primary-text); border-bottom-color: var(--primary-text); }

@media (max-width: 860px) {
  .header-top { height: 60px; gap: 10px; }
  .header-search { display: none; }
  .country-form select { max-width: 120px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav.open .nav-inner { flex-direction: column; padding: 8px 20px 16px; }
  .main-nav.open .nav-inner a { border-bottom: 1px solid var(--border); padding: 13px 4px; }
  .main-nav.open .nav-inner a.active { border-bottom-color: var(--border); }
}
@media (max-width: 480px) {
  .brand-word { font-size: 1.15rem; }
  .country-form select { max-width: 84px; padding: 0 20px 0 28px; background-position: calc(100% - 12px) 17px, calc(100% - 7px) 17px; }
  .country-form .ico { left: 9px; }
  .header-actions { gap: 5px; }
  .header-actions a.icon-btn[href="/saved/"] { display: none; }
  .container { padding: 0 16px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 340px at 12% 20%, var(--hero-a), transparent 70%),
    radial-gradient(520px 300px at 88% 10%, var(--hero-b), transparent 70%),
    radial-gradient(700px 380px at 60% 110%, var(--hero-c), transparent 70%),
    radial-gradient(var(--dot) 1.2px, transparent 1.3px) 0 0 / 22px 22px;
}
.hero-inner { text-align: center; max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.eyebrow .ico { color: var(--ok); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); }
.grad { background: linear-gradient(100deg, #7c3aed 10%, #c026d3 55%, #f97316 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.1rem; color: var(--text-2); max-width: 640px; margin: 0 auto 26px; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 0 auto; padding: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-search .ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 12px 10px 12px 44px; color: var(--text); }
.hero-search input:focus { outline: none; }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.quick-links a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.quick-links a:hover { border-color: var(--primary); color: var(--primary-text); }
@media (max-width: 560px) {
  .hero { padding: 40px 0 36px; }
  .hero-search { flex-direction: column; padding: 8px; }
  .hero-search .ico { top: 30px; }
  .hero-search .btn { width: 100%; }
}

.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-grid > div { padding: 18px 16px; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.trust-grid > div:first-child { border-left: 0; }
.trust-grid strong { font-size: .95rem; color: var(--primary-text); }
.trust-grid span { font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr 1fr; } .trust-grid > div:nth-child(3) { border-left: 0; } .trust-grid > div { border-top: 1px solid var(--border); } }

/* ---------- Sections ---------- */
.section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.see-all { font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.section-note { margin-top: 14px; }
.page-head { margin: 26px 0 26px; max-width: 820px; }
.page-head .lead, .lead { font-size: 1.08rem; color: var(--text-2); }
.page-head.with-icon { display: flex; gap: 18px; align-items: flex-start; max-width: none; }
.breadcrumbs { margin-top: 18px; font-size: .84rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-text); }

/* ---------- Offer cards (coupon-ticket style) ---------- */
.offer-list { display: grid; gap: 14px; }
.offer-card {
  position: relative; display: grid; grid-template-columns: 118px 1fr 176px; grid-template-areas: "left body cta" "details details details";
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.offer-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow), 0 0 0 4px var(--primary-soft); }
.oc-left { grid-area: left; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; border-right: 2px dashed var(--border); background: linear-gradient(160deg, var(--primary-soft), transparent 80%); border-radius: var(--radius) 0 0 0; }
.oc-left::before, .oc-left::after { content: ''; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); }
.oc-left::before { top: -11px; border-top-color: transparent; border-left-color: transparent; transform: rotate(45deg); }
.oc-left::after { bottom: -11px; border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.offer-card .oc-left { border-bottom-left-radius: 0; }
.oc-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.oc-mono { --h: 265; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: hsl(var(--h) 60% 32%); background: hsl(var(--h) 85% 93%); border: 1px solid hsl(var(--h) 60% 85%); flex: none; }
[data-theme="dark"] .oc-mono { color: hsl(var(--h) 85% 82%); background: hsl(var(--h) 40% 20%); border-color: hsl(var(--h) 35% 30%); }
.oc-mono.sm { width: 38px; height: 38px; font-size: .9rem; border-radius: 10px; }
.oc-mono.xl { width: 88px; height: 88px; font-size: 1.8rem; border-radius: 22px; }
.oc-badge { font-weight: 800; font-size: .92rem; text-align: center; line-height: 1.15; color: var(--primary-text); text-transform: uppercase; letter-spacing: .01em; }
.oc-body { grid-area: body; padding: 16px 18px; min-width: 0; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; border: 1px solid transparent; }
.tag-type { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.tag-verified { background: var(--ok-soft); color: var(--ok); }
.tag-unverified { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.tag-expired { background: var(--danger-soft); color: var(--danger); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.oc-merchant { font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.oc-merchant:hover { color: var(--primary-text); }
.oc-title { margin: 2px 0 4px; font-size: 1.07rem; }
.oc-plan { margin: 0 0 4px; font-size: .86rem; font-weight: 600; color: var(--text-2); }
.oc-price { margin: 0 0 4px; font-size: .95rem; }
.oc-price s { color: var(--muted); margin-left: 4px; }
.oc-terms { margin: 0 0 6px; font-size: .86rem; color: var(--muted); }
.oc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; color: var(--muted); }
.oc-facts li { background: var(--surface-2); border-radius: 6px; padding: 1px 8px; }

.oc-cta { grid-area: cta; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 18px 16px 0; }
.oc-cta .btn { width: 100%; }
.oc-mini { display: flex; justify-content: center; gap: 14px; }
.btn-code { position: relative; overflow: hidden; padding: 0; height: 46px; background: var(--primary); color: var(--on-primary); border-radius: 10px; display: flex; }
.btn-code-label { flex: 1; display: grid; place-items: center; padding: 0 12px; position: relative; z-index: 1; background: var(--primary); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: background-color .15s; }
.btn-code-peek { width: 52px; display: grid; place-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; letter-spacing: .08em; background: var(--surface-2); color: var(--text); border: 2px dashed var(--primary); border-left: 0; border-radius: 0 10px 10px 0; margin-left: -14px; padding-left: 14px; }
.btn-code:hover .btn-code-label { background: var(--primary-hover); }
.oc-details { grid-area: details; border-top: 1px solid var(--border); }
.oc-details summary { cursor: pointer; padding: 9px 18px; font-size: .8rem; font-weight: 600; color: var(--muted); list-style: none; }
.oc-details summary::-webkit-details-marker { display: none; }
.oc-details summary::after { content: ' +'; }
.oc-details[open] summary::after { content: ' –'; }
.oc-details summary:hover { color: var(--primary-text); }
.oc-details dl { margin: 0; padding: 0 18px 14px; display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .86rem; }
.oc-details dt { font-weight: 700; color: var(--text-2); }
.oc-details dd { margin: 0; color: var(--muted); }
.offer-card.is-expired { opacity: .72; }
.offer-card.is-expired .oc-left { filter: grayscale(1); }
@media (max-width: 720px) {
  .offer-card { grid-template-columns: 1fr; grid-template-areas: "left" "body" "cta" "details"; }
  .oc-left { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 2px dashed var(--border); padding: 12px 16px; border-radius: var(--radius) var(--radius) 0 0; }
  .oc-left::before, .oc-left::after { display: none; }
  .oc-mono { width: 44px; height: 44px; font-size: 1rem; }
  .oc-badge { text-align: left; }
  .oc-body { padding: 12px 16px 4px; }
  .oc-cta { padding: 8px 16px 14px; }
  .oc-details dl { grid-template-columns: 1fr; }
  .oc-details dt { margin-top: 6px; }
}

/* ---------- Tiles & grids ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.store-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s; }
.store-tile:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.st-name { font-weight: 700; font-size: .95rem; }
.st-count { font-size: .78rem; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-grid-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--text); }
.cat-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 6px; flex: none; }
.cat-ico svg { width: 22px; height: 22px; }
.cat-ico.lg { width: 64px; height: 64px; border-radius: 18px; }
.cat-ico.lg svg { width: 32px; height: 32px; }
.cat-name { font-weight: 700; }
.cat-desc { font-size: .86rem; color: var(--text-2); }
.cat-meta { font-size: .78rem; color: var(--muted); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.country-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); }
.country-tile:hover { border-color: var(--primary); color: var(--text); }
.country-tile small { display: block; color: var(--muted); font-size: .78rem; }
.cc { display: inline-grid; place-items: center; width: 40px; height: 30px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; font-size: .78rem; letter-spacing: .05em; color: var(--text-2); flex: none; }
.cc-lg { width: 72px; height: 54px; font-size: 1.2rem; border-radius: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: inherit; font-size: .82rem; font-weight: 600; color: var(--text-2); text-decoration: none; cursor: pointer; }
.chip:hover, .chip-active { border-color: var(--primary); color: var(--primary-text); background: var(--primary-soft); }
.chip-lg { padding: 8px 14px; font-size: .9rem; }
.chip .count { background: var(--primary-soft); color: var(--primary-text); border-radius: 999px; padding: 0 7px; font-size: .75rem; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.event { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; }
.event span { font-size: .85rem; color: var(--muted); }
.changed-list { padding-left: 1.1em; }
.changed-list li { margin-bottom: 6px; }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gc-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); overflow: hidden; }
.gc-media img { width: 100%; height: 100%; object-fit: cover; }
.gc-placeholder { display: grid; place-items: center; height: 100%; color: var(--primary-text); }
.gc-placeholder svg { width: 48px; height: 48px; opacity: .6; }
.gc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gc-body h3 { font-size: 1.08rem; margin: 6px 0 8px; }
.gc-body h3 a { color: var(--text); text-decoration: none; }
.gc-body h3 a:hover { color: var(--primary-text); }
.gc-body p { font-size: .9rem; color: var(--text-2); margin-bottom: 10px; }
.gc-meta { margin-top: auto; font-size: .8rem !important; color: var(--muted) !important; margin-bottom: 0 !important; }
.gc-topic { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); text-decoration: none; }
[data-theme="dark"] .gc-topic { color: var(--accent); }

/* ---------- Article / prose ---------- */
.article { margin-bottom: 40px; }
.article-head { max-width: 780px; margin: 20px 0 24px; }
.article-head h1 { margin-top: 8px; }
.article-meta { font-size: .88rem; color: var(--muted); }
.article-hero { margin: 0 0 30px; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.article-hero figcaption, .post-figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 40px; align-items: start; }
.article-layout > .prose:only-child { grid-column: 1 / -1; max-width: 760px; }
.toc { position: sticky; top: 130px; font-size: .88rem; }
.toc summary { font-weight: 800; cursor: pointer; margin-bottom: 8px; }
.toc ol { padding-left: 1.1em; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--primary-text); }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; } .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; } }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); }
.prose h2 { margin: 1.8em 0 .6em; scroll-margin-top: 130px; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--primary); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose img { border-radius: 12px; border: 1px solid var(--border); }
.prose figure { margin: 1.6em 0; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.callout { padding: 16px 18px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--border); margin: 1.4em 0; }
.callout-tip { background: var(--ok-soft); }
.callout-warn { background: var(--warn-soft); }
.callout > :last-child { margin-bottom: 0; }
.article-disclosure { margin-top: 32px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); line-height: 1.6; }
.author-box { display: flex; gap: 14px; margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.tags { margin-top: 18px; }

/* ---------- Listing layout & filters ---------- */
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; margin-bottom: 40px; }
.listing-filters { position: sticky; top: 130px; }
.filters-toggle > summary { display: none; }
.filters { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.f-field label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.f-field select, .f-field input { width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; }
.f-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.f-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.f-actions { display: flex; gap: 8px; }
.result-count { font-weight: 700; color: var(--text-2); margin-bottom: 12px; }
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .listing-filters { position: static; }
  .filters-toggle > summary { display: block; cursor: pointer; font-weight: 700; padding: 11px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
  .filters-toggle[open] > summary { margin-bottom: 10px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .f-wide, .f-actions, .f-check { grid-column: 1 / -1; }
}
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0; justify-content: center; }
.pagination a, .pagination span { min-width: 40px; padding: 8px 12px; text-align: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text-2); }
.pagination span[aria-current] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Store page ---------- */
.store-head { display: flex; align-items: center; gap: 20px; padding: 22px; margin: 18px 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
  background-image: radial-gradient(400px 160px at 100% 0, var(--primary-soft), transparent 70%); }
.store-head h1 { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); margin: 0 0 4px; }
.store-logo { width: 88px; height: 88px; object-fit: contain; border-radius: 20px; background: #fff; padding: 8px; border: 1px solid var(--border); }
.store-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.store-head-text { flex: 1; min-width: 0; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.store-side { position: sticky; top: 130px; display: grid; gap: 14px; margin-top: 44px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .9rem; margin: 0 0 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.kv-wide { grid-template-columns: 180px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.plan-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.plan-table th, .plan-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.plan-table th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.plan-table tr:last-child td { border-bottom: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq details p { color: var(--text-2); }
@media (max-width: 960px) {
  .store-layout { grid-template-columns: minmax(0, 1fr); }
  .store-side { position: static; margin-top: 0; }
}
@media (max-width: 640px) {
  .store-head { flex-wrap: wrap; padding: 18px; }
  .store-visit { width: 100%; }
  .oc-mono.xl { width: 64px; height: 64px; font-size: 1.3rem; }
  .kv-wide { grid-template-columns: 1fr; }
  .kv-wide dt { margin-top: 6px; font-weight: 700; }
}

/* ---------- A–Z ---------- */
.az-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; position: sticky; top: 112px; z-index: 5; background: var(--bg); padding: 8px 0; }
.az-nav a { min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .85rem; }
.az-group { margin-bottom: 26px; scroll-margin-top: 170px; }
.az-group h2 { font-size: 1.3rem; color: var(--primary-text); border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.az-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.az-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); }
.az-list a:hover { border-color: var(--primary); color: var(--text); }
.az-list small { display: block; color: var(--muted); font-size: .76rem; }
@media (max-width: 860px) { .az-nav { top: 60px; } }

/* ---------- Empty, notices, forms ---------- */
.empty-state { text-align: center; padding: 38px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-ico { width: 56px; height: 56px; color: var(--primary-text); opacity: .7; margin: 0 auto 10px; }
.empty-state p { color: var(--muted); max-width: 560px; margin: 0 auto 16px; }
.empty-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.notice { padding: 13px 16px; border-radius: 12px; background: var(--primary-soft); border: 1px solid var(--border); margin: 0 0 18px; }
.notice-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-weight: 600; }
.notice-err { background: var(--danger-soft); color: var(--danger); border-color: transparent; font-weight: 600; }
.notice-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.form-row { margin-bottom: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row.two { grid-template-columns: 1fr; } }
.form-card label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 5px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.inline-form { margin: 20px 0 40px; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.inline-form p { margin: 0; }

/* ---------- How band ---------- */
.how-band { padding: 30px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  background-image: radial-gradient(500px 200px at 0 0, var(--primary-soft), transparent 70%), radial-gradient(400px 200px at 100% 100%, var(--accent-soft), transparent 70%); }
.how-steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-steps li { counter-increment: s; position: relative; padding-top: 44px; color: var(--text-2); font-size: .95rem; }
.how-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; }
.how-steps strong { display: block; color: var(--text); margin-bottom: 4px; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }

/* ---------- Ads ---------- */
.ad-slot { margin: 30px 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }

/* ---------- Newsletter & footer ---------- */
.newsletter-band { margin-top: 56px; background: linear-gradient(120deg, #4c1d95, #6d28d9 55%, #7c3aed); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.newsletter-band h2 { color: #fff; margin-bottom: 6px; }
.newsletter-band p { color: #e5dcff; margin: 0; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; height: 48px; border-radius: 11px; border: 0; padding: 0 14px; font: inherit; background: #fff; color: #191430; }
.newsletter-band .btn-accent { background: #fb923c; color: #1b0f05; height: 48px; }
.newsletter-band .btn-accent:hover { background: #fdba74; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .82rem; color: #e5dcff; }
.consent input { margin-top: 3px; accent-color: #fb923c; }
.consent a { color: #fff; }
.form-msg { margin-top: 8px !important; font-weight: 700; color: #fff !important; min-height: 1.2em; }
@media (max-width: 760px) { .newsletter-inner { grid-template-columns: minmax(0, 1fr); } }
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 44px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--primary-text); }
.footer-brand p { margin-top: 10px; color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; padding-bottom: 28px; color: var(--muted); }
.footer-bottom p { margin-bottom: 6px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Code modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 10, 30, .55); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px 22px; box-shadow: var(--shadow-lg); text-align: center; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; }
.cm-merchant { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.modal-card h2 { font-size: 1.2rem; }
.cm-code-wrap { display: flex; gap: 8px; margin: 16px 0 10px; }
.cm-code { flex: 1; display: grid; place-items: center; padding: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .1em; border: 2px dashed var(--primary); border-radius: 11px; background: var(--primary-soft); color: var(--text); word-break: break-all; }
.cm-terms { color: var(--muted); margin-bottom: 14px; }
.cm-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: var(--muted); }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 50px 20px 20px; }
.error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(100deg, #7c3aed, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .hero-search { margin: 24px auto; }

@media print { .site-header, .site-footer, .newsletter-band, .ad-slot, .oc-cta { display: none !important; } }

/* Compact two-column offer grid (homepage) */
@media (min-width: 900px) {
  .offer-list.two-col { grid-template-columns: 1fr 1fr; }
  .offer-list.two-col .offer-card { grid-template-columns: 96px 1fr; grid-template-areas: "left body" "left cta" "details details"; }
  .offer-list.two-col .oc-body { padding-bottom: 6px; }
  .offer-list.two-col .oc-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 4px 18px 14px; }
  .offer-list.two-col .oc-cta .btn { width: auto; }
  .offer-list.two-col .oc-mono { width: 48px; height: 48px; font-size: 1rem; }
  .offer-list.two-col .oc-badge { font-size: .82rem; }
}
