:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #15202b;
  --ink-2: #4a5663;
  --ink-3: #5f6b77;
  --line: #e4e6e1;
  --brand: #0f766e;
  --brand-ink: #0a5650;
  --brand-deep: #0b3f3b;
  --brand-soft: #e2f2ef;
  --gold: #f2b233;
  --gold-soft: #fff6df;
  --deal: #c2410c;
  --tg: #1677a8;
  --tg-ink: #0f5f88;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 32, 43, .05), 0 6px 18px rgba(21, 32, 43, .05);
  --wrap: 1180px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Type scale (Tajawal): 400 body text · 500 labels, pills, links, meta · 700 headings, coupon titles, buttons · 800 the page H1 and big numbers */
body { margin: 0; font-family: "Tajawal", system-ui, sans-serif; font-weight: 400; background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
h1 { font-weight: 800; letter-spacing: -.2px; }
h2, h3, h4, strong, b, th { font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 8px; flex: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 17px; }
.logo-img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; flex: none; }
.logo-full { height: 40px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 20px; color: var(--ink-2); font-size: 15px; }
.main-nav a, .header-tools > *, .logo { white-space: nowrap; }
/* "Categories" in the top menu: a link plus a button that opens the list (hover or click on desktop, tap in the phone menu) */
.nav-cats { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-cats-btn { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 6px; cursor: pointer; padding: 0; }
.nav-cats-btn svg { transition: transform .2s; }
.nav-cats.open .nav-cats-btn svg { transform: rotate(180deg); }
.nav-cats-btn:hover, .nav-cats-btn:focus-visible { background: var(--brand-soft); color: var(--brand); }
.nav-cats-panel { display: none; position: absolute; top: 100%; inset-inline-start: -16px; padding-top: 12px; z-index: 40; width: max-content; max-width: min(560px, calc(100vw - 32px)); }
.nav-cats-panel::before { content: ''; position: absolute; inset: 12px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: -1; }
.nav-cats-panel ul { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(190px, max-content)); gap: 2px 8px; }
.nav-cats-panel li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.nav-cats-panel li a:hover, .nav-cats-panel li a:focus-visible { background: var(--brand-soft); color: var(--brand-ink); }
.nc-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--bg, #f4f4f2); font-size: 16px; line-height: 1; }
.nav-cats-all { display: block; margin: 0 10px 10px; padding: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--brand) !important; }
@media (min-width: 1101px) and (hover: hover) { .nav-cats:hover .nav-cats-panel { display: block; } }
.nav-cats.open .nav-cats-panel { display: block; }
.main-nav a:hover { color: var(--brand); }
.header-tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.tg-head { display: inline-flex; align-items: center; gap: 6px; background: var(--tg); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.tg-head:hover { background: var(--tg-ink); }
.country-menu { position: relative; }
.country-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; background: var(--surface); }
.country-menu summary::-webkit-details-marker { display: none; }
.country-menu[open] summary { border-color: var(--brand); }
.country-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; min-width: 190px; z-index: 40; }
.country-menu li a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.country-menu li a:hover, .country-menu li a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }
.menu-btn { display: none; }
@media (max-width: 1240px) {
  .site-header .wrap { gap: 16px; }
  .main-nav { gap: 16px; }
  .tg-head span { display: none; }
  .tg-head { width: 40px; height: 40px; padding: 0; justify-content: center; }
}
/* Laptops and small desktops (901-1100px): the menu stays in one row, just tighter */
@media (max-width: 1100px) {
  .site-header .wrap { gap: 12px; }
  .main-nav { gap: 12px; font-size: 14px; }
  .header-tools { gap: 6px; }
  .country-menu summary .cm-name { display: none; }
  .header-tools .lang-btn .l-long { display: none; }
  .header-tools .lang-btn .l-short { display: inline; }
  .header-tools .lang-btn { min-width: 38px; padding-inline: 10px; text-align: center; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
}

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- store hero ---------- */
.store-hero { background: linear-gradient(135deg, var(--brand-deep), var(--brand-ink)); color: #fff; border-radius: 18px; padding: 22px 22px 0; position: relative; overflow: hidden; }
.store-hero::after { content: ""; position: absolute; inset-inline-start: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hero-top { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.hero-logo { width: 96px; height: 96px; flex: none; border-radius: 16px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.store-hero h1 { font-size: 26px; line-height: 1.4; margin: 0 0 8px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; opacity: .92; }
.hero-meta .dot { opacity: .5; }
.hero-visit { margin-inline-start: auto; flex: none; align-self: flex-start; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; font-size: 14px; }
.stars { display: flex; direction: ltr; }
.stars button { border: 0; background: none; padding: 2px 4px; font-size: 22px; line-height: 1; color: rgba(255, 255, 255, .3); transition: color .1s, transform .1s; }
.stars button.on { color: var(--gold); }
.stars:hover button { color: var(--gold); }
.stars button:hover ~ button { color: rgba(255, 255, 255, .3); }
.stars button:hover { transform: scale(1.15); }
.rating-text { opacity: .9; white-space: nowrap; }
.badge-hot { color: var(--deal); font-weight: 500; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }

.tabs-bar { position: sticky; top: var(--header-h); z-index: 20; margin-top: 20px; }
.store-hero .tabs-bar { position: relative; top: 0; }
.tabs { display: flex; gap: 8px; align-items: flex-end; position: relative; z-index: 1; }
.tab { border: 0; background: transparent; color: rgba(255, 255, 255, .8); padding: 10px 18px; border-radius: 12px 12px 0 0; font-size: 15px; font-weight: 500; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--bg); color: var(--brand-ink); }
.tab small { font-weight: 400; opacity: .8; }
.sticky-tabs .tab small, .tabs.light .tab small { opacity: 1; }

/* tabs pinned under the header once the hero scrolls away */
.sticky-tabs { position: fixed; top: var(--header-h); inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 25; transform: translateY(-110%); transition: transform .2s; box-shadow: var(--shadow); }
.sticky-tabs.show { transform: none; }
.sticky-tabs .wrap { display: flex; align-items: center; gap: 10px; height: 52px; }
.sticky-tabs img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); }
.sticky-tabs .tab { color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.sticky-tabs .tab[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.sticky-tabs strong { font-size: 15px; }
@media (max-width: 560px) { .sticky-tabs strong { display: none; } }

@media (max-width: 720px) {
  .store-hero { padding: 16px 16px 0; border-radius: 0; margin: 0 -16px; }
  .hero-top { flex-wrap: wrap; gap: 14px; }
  .hero-logo { width: 72px; height: 72px; }
  .store-hero h1 { font-size: 21px; }
  .hero-top > div:nth-child(2) { flex: 1; min-width: 0; }
  .store-hero .hero-visit { display: none; }
  .tab { padding: 9px 12px; font-size: 14px; }
}

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 20px 0 48px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.main-col { display: grid; gap: 22px; min-width: 0; }
.side-col { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .side-col { position: sticky; top: calc(var(--header-h) + 64px); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 22px; }
.section h2, .section > h3 { font-size: 20px; line-height: 1.5; margin: 0 0 14px; }
.section p { margin: 0 0 10px; color: var(--ink-2); }
.lead { padding: 18px 22px; color: var(--ink-2); }
.lead p { margin: 0; }
.list-title { display: flex; align-items: center; gap: 12px; font-size: 17px; margin: 6px 0 0; color: var(--ink-2); }
.list-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- coupon card ---------- */
.coupons { display: grid; gap: 14px; }
.coupon { overflow: hidden; }
.coupon.featured { border: 2px solid var(--gold); }
.coupon-ribbon { background: var(--gold-soft); color: #8a5a00; font-size: 13px; font-weight: 500; padding: 4px 16px; display: flex; gap: 6px; align-items: center; }
.coupon-main { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px; }
.coupon-value { text-align: center; color: var(--deal); border-inline-end: 2px dashed var(--line); padding-inline-end: 14px; }
.coupon-value strong { display: block; font-size: 32px; line-height: 1.1; font-weight: 800; direction: ltr; }
.coupon-value span { font-size: 14px; font-weight: 500; }
.coupon-value.deal strong { font-size: 24px; }
.coupon-title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0 0 8px; }
.title-reveal { cursor: pointer; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.title-reveal:hover, .title-reveal:focus-visible { text-decoration-line: underline; outline: none; }
.info-link { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.info-link:hover { text-decoration-thickness: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-3); }
.badge-ok { color: var(--brand); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.badge-new { background: #eef2ff; color: #4338ca; border-radius: 6px; padding: 0 8px; font-weight: 500; }

/* "show code" button with the end of the code peeking out */
.reveal { position: relative; width: 190px; height: 46px; border: 0; padding: 0; background: transparent; }
.reveal .peek { position: absolute; inset: 0; border: 2px dashed var(--brand); border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 16px; letter-spacing: 1px; display: flex; align-items: center; justify-content: flex-start; padding: 0 10px; direction: ltr; }
.reveal .cover { position: absolute; inset-block: 0; inset-inline-start: 0; inset-inline-end: 36px; background: var(--brand); color: #fff; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; transition: inset-inline-end .2s, background .15s; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
[dir="rtl"] .reveal .cover { clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%); }
[dir="ltr"] .reveal .peek { justify-content: flex-end; }
.lang-btn { font-size: 14px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.reveal:hover .cover { inset-inline-end: 44px; background: var(--brand-ink); }
.reveal.deal-btn .cover { inset-inline-end: 0; clip-path: none; }
.reveal.deal-btn .peek { display: none; }

/* after reveal: full code + copy */
.revealed { display: flex; align-items: center; gap: 8px; }
.code-box { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; font-weight: 700; letter-spacing: 1.5px; border: 2px dashed var(--brand); color: var(--brand-ink); background: var(--brand-soft); border-radius: 10px; padding: 8px 16px; direction: ltr; }

.coupon-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 8px 18px; font-size: 13.5px; color: var(--ink-3); }
.details-toggle { border: 0; background: none; color: var(--brand); font-weight: 500; padding: 4px 0; }
.foot-tools { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.foot-tools button { border: 0; background: none; width: 36px; height: 36px; border-radius: 8px; color: var(--ink-3); display: grid; place-items: center; }
.foot-tools button:hover { background: var(--bg); color: var(--ink); }
.foot-tools button.on { color: var(--brand); background: var(--brand-soft); }
.foot-tools .vote-q { font-size: 13px; margin-inline-end: 2px; }
.coupon-details { padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.det-text { margin: 0; line-height: 1.9; color: var(--ink-2); }
.proof { margin: 12px auto 0; max-width: 560px; text-align: center; }
.proof img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.proof figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.foot-tools .share-btn { display: inline-flex; }

@media (max-width: 640px) {
  .coupon-main { grid-template-columns: 78px 1fr; gap: 12px; padding: 14px; }
  .coupon-value { padding-inline-end: 10px; }
  .coupon-value strong { font-size: 24px; }
  .coupon-value.deal strong { font-size: 19px; }
  .coupon-action { grid-column: 1 / -1; }
  .reveal { width: 100%; }
  .revealed { width: 100%; }
  .revealed .code-box { flex: 1; text-align: center; }
  .coupon-foot { padding: 8px 14px; }
  .foot-tools .vote-q { display: none; }
}

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-ink); }
.btn.done { background: #15803d; }
.btn-block { width: 100%; }

/* ---------- telegram ---------- */
.tg-banner { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: linear-gradient(135deg, #e8f6fd, #f5fbff); border-color: #cfe9f6; }
.tg-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--tg); display: grid; place-items: center; }
.tg-banner h3, .tg-banner .tg-title { margin: 0; font-size: 16.5px; }
.tg-banner p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.tg-actions { margin-inline-start: auto; display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .tg-banner { flex-wrap: wrap; } .tg-actions { width: 100%; flex-direction: column; } }

/* ---------- info table ---------- */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th, .info-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { color: var(--ink-3); font-weight: 400; width: 38%; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.alt-stores { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.9; color: var(--ink-2); }
.alt-stores a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }

/* ---------- steps / faq ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 12px; color: var(--ink-2); }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps b { color: var(--ink); display: block; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; }
.faq summary h3 { font-size: inherit; margin: 0; font-weight: inherit; }

/* ---------- chips / tiles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.store-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14px; background: var(--surface); transition: border-color .15s, transform .15s; }
.store-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.store-tile img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; }
.store-tile small { color: var(--deal); font-weight: 500; }

/* ---------- sidebar ---------- */
.side-box { padding: 18px; }
.side-box h2, .side-box .box-title { font-size: 16px; margin: 0 0 10px; }
.side-stats { width: 100%; border-collapse: collapse; font-size: 14px; }
.side-stats th, .side-stats td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.side-stats th { font-weight: 400; color: var(--ink-3); }
.side-stats td { font-weight: 500; text-align: end; }
.side-stats tr:last-child th, .side-stats tr:last-child td { border-bottom: 0; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14.5px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; color: var(--ink-2); }
.side-links a:hover { background: var(--bg); color: var(--brand); }
.side-links img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); }
.side-links small { margin-inline-start: auto; color: var(--deal); font-weight: 500; }
.side-tg { padding: 18px; text-align: center; display: grid; gap: 10px; justify-items: center; background: linear-gradient(160deg, #e8f6fd, #fff); border-color: #cfe9f6; }
.side-tg h2, .side-tg .box-title { margin: 0; font-size: 16px; }
.side-tg p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c1c9; padding: 36px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.site-footer h3, .site-footer .f-title { color: #fff; font-size: 15px; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: #fff; }
.f-text { margin: 0; line-height: 1.8; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.f-social a { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 13px; }
.f-social a:hover { border-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 22, 30, .55); display: grid; place-items: center; padding: 16px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .18s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(460px, 100%); background: var(--surface); border-radius: 18px; padding: 26px 22px 22px; text-align: center; display: grid; gap: 14px; transform: translateY(10px); transition: transform .18s; position: relative; }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 10px; inset-inline-end: 10px; border: 0; background: transparent; font-size: 22px; color: var(--ink-3); width: 36px; height: 36px; border-radius: 50%; }
.modal-close:hover { background: var(--bg); }
.modal-logo { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); object-fit: contain; justify-self: center; }
.modal-title { font-weight: 700; font-size: 17px; margin: 0; }
.modal-code { display: flex; gap: 8px; justify-content: center; }
.modal-code .code-box { font-size: 22px; }
.modal-hint { color: var(--ink-2); font-size: 14px; margin: 0; }
.modal-tg { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.modal-tg p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.modal-tg strong { color: var(--ink); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- index ---------- */
.index-list { columns: 2 220px; font-size: 14px; }
.index-list a { display: block; padding: 3px 0; color: var(--ink-2); }
.index-list a:hover { color: var(--brand); }

/* coupon labels: where it works, exclusive, discount */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pills > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 999px; }
.pill-where { background: var(--bg, #f4f6f8); color: var(--ink-2, #374151); border: 1px solid var(--line); }
.pill-excl { background: var(--deal); color: #fff; }
.pill-pct { background: #fff7ed; color: var(--deal); border: 1px solid #fed7aa; }
.coupon-ribbon { justify-content: space-between; flex-wrap: wrap; }
.ribbon-date { font-weight: 500; color: #8a6a2a; }

/* ---------- homepage ---------- */
.home-hero { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; padding: 40px 0 32px; text-align: center; }
.home-hero h1 { font-size: 32px; margin: 0 0 8px; }
.home-hero p { margin: 0 auto 20px; max-width: 620px; opacity: .9; }
.search-box { position: relative; max-width: 620px; margin: 0 auto; background: #fff; border-radius: 14px; display: flex; align-items: center; gap: 8px; padding: 0 16px; color: var(--ink-3); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.search-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 15px 0; background: transparent; color: var(--ink); min-width: 0; }
.search-results { position: absolute; inset-inline: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); z-index: 20; text-align: start; max-height: 360px; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a.active { background: #f4f6f8; }
.search-results img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.search-results small { margin-inline-start: auto; color: var(--deal); font-weight: 500; }
.search-empty { margin-top: 10px !important; }
.home-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-stats span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 500; }
.home-body { padding-top: 20px; padding-bottom: 40px; display: grid; gap: 16px; }
.home-body > .coupons, main.wrap > .coupons { display: grid; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head a { font-size: 14px; font-weight: 500; color: var(--brand); text-decoration: none; white-space: nowrap; }
.coupon-store { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; margin-bottom: 6px; }
.coupon-store img { width: 24px; height: 24px; object-fit: contain; border-radius: 5px; border: 1px solid var(--line); background: #fff; }
.tile-letter { width: 64px; height: 64px; border-radius: 12px; background: #f4f6f8; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--brand); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-tile small { color: var(--ink-3); }
.cat-icon { font-size: 28px; line-height: 1; }
.cat-grid.big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 40px; }
.cat-names { font-size: 12.5px; color: var(--ink-3); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust-grid b { display: inline-flex; gap: 6px; align-items: center; color: var(--brand); }
.trust-grid p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- category & index pages ---------- */
.cat-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.cat-hero h1 { margin: 0 0 6px; font-size: 26px; }
.cat-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 6px; opacity: .92; font-size: 14px; }
.cat-icon.big { font-size: 40px; background: rgba(255,255,255,.15); width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; flex: none; }
main.wrap > .card, main.wrap > .coupons, main.wrap > aside { margin-bottom: 16px; }
.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.compare-table thead th { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.compare-table tbody th a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.compare-table tbody th img { width: 32px; height: 32px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.compare-table .num { font-weight: 700; color: var(--deal); }
.compare-table .yes { color: var(--brand); font-weight: 500; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.page-title { margin: 8px 0 4px; font-size: 26px; }
.page-sub { color: var(--ink-2); margin: 0 0 16px; }
.root-page { padding: 32px 16px 48px; }
.country-pick + .country-pick { margin-top: 20px; }
@media (max-width: 720px) {
  .home-hero { padding: 28px 0 24px; }
  .home-hero h1 { font-size: 24px; }
  .cat-hero { padding: 18px; }
  .cat-hero h1 { font-size: 21px; }
  .cat-icon.big { width: 56px; height: 56px; font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table td:nth-child(3), .compare-table th:nth-child(3), .compare-table td:nth-child(4), .compare-table th:nth-child(4) { display: none; }
  .compare-table th, .compare-table td { padding: 10px 4px; }
  .country-menu summary .cm-name { display: none; }
}
.country-menu summary { white-space: nowrap; }

/* ---------- homepage (banner slider layout) ---------- */
.home { padding-bottom: 40px; }
.home-top { display: grid; grid-template-columns: 1fr 300px; gap: 16px; padding-top: 18px; padding-bottom: 6px; }
.hero-slider { position: relative; overflow: hidden; border-radius: 18px; min-height: 300px; }
.slides { display: flex; height: 100%; transition: transform .5s ease; }
.slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 44px; color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.slide::before, .slide::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.slide::before { width: 320px; height: 320px; inset-inline-end: -80px; top: -120px; }
.slide::after { width: 180px; height: 180px; inset-inline-start: 30%; bottom: -110px; }
.slide.teal { background: linear-gradient(135deg, #0b3f3b, #0f766e 60%, #14b8a6); }
.slide.ink { background: linear-gradient(135deg, #111827, #1f2937 55%, #0f766e); }
.slide.sunset { background: linear-gradient(135deg, #9a3412, #c2410c 55%, #f59e0b); }
.slide.plum { background: linear-gradient(135deg, #3b0764, #6d28d9 60%, #a855f7); }
.slide-text { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }
.slide-store { background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; }
.slide-up { margin-top: 14px; font-size: 22px; font-weight: 700; }
.slide-pct { font-size: 84px; line-height: 1; font-weight: 800; color: var(--gold); direction: ltr; text-shadow: 0 4px 18px rgba(0,0,0,.18); }
.slide-on { font-size: 17px; opacity: .92; margin-top: 4px; }
.slide-btn { margin-top: 18px; background: #fff; color: var(--brand-deep); font-weight: 700; padding: 10px 22px; border-radius: 12px; }
.slide-logo { position: relative; z-index: 1; background: #fff; border-radius: 22px; width: 230px; height: 170px; display: grid; place-items: center; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.22); transform: rotate(-4deg); flex: none; }
/* The logo fills the white card and keeps its shape (the card's size, not the image's, decides the height). */
.slide-logo { overflow: hidden; }
.slide-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 10px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.slider-btn.prev { inset-inline-start: 10px; }
.slider-btn.next { inset-inline-end: 10px; }
.slider-dots { position: absolute; bottom: 4px; inset-inline: 0; display: flex; justify-content: center; gap: 0; z-index: 2; }
/* 24px touch target, 8px dot drawn inside it */
.slider-dots button { box-sizing: border-box; width: 24px; height: 24px; padding: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); background-clip: content-box; cursor: pointer; transition: width .2s; }
.slider-dots button.on { width: 42px; background-color: var(--gold); }

.top-pick { background: #e0f2f1; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tp-label { align-self: flex-start; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.top-pick .mini-coupon { flex: 1; box-shadow: none; }
.top-pick .mc-all { display: none; }
.tp-btn { font-size: 16px; padding: 12px; }

.h1-pill { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 22px 0 16px; position: relative; }
.h1-pill::before { content: ""; position: absolute; top: 24px; inset-inline: 0; border-top: 1px solid var(--line); }
.h1-pill h1 { position: relative; margin: 0; font-size: 22px; background: var(--bg, #f6f7f9); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 26px; }
.h1-pill p { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }
.home .search-box { box-shadow: 0 4px 16px rgba(15,23,42,.08); border: 1px solid var(--line); margin-bottom: 8px; }

.home-sec { margin-top: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font-size: 22px; position: relative; padding-bottom: 8px; }
.sec-head h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--brand); }
.sec-head a { font-size: 14px; font-weight: 500; color: var(--brand); text-decoration: none; }

.pop-stores { display: grid; grid-template-columns: 240px 1fr; gap: 14px; }
.store-month { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-decoration: none; color: var(--ink); text-align: center; }
.sm-logo { height: 100px; display: grid; place-items: center; }
.sm-logo img { max-width: 160px; max-height: 100px; object-fit: contain; }
.sm-label { font-weight: 700; color: var(--brand); }
.sm-count { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; width: 100%; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 92px; display: grid; place-items: center; padding: 10px; position: relative; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.logo-tile img { max-width: 75%; max-height: 56px; object-fit: contain; transition: opacity .15s; }
.logo-tile > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.96); font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .15s; }
.logo-tile small { color: var(--brand); font-weight: 500; }
.logo-tile:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(15,118,110,.12); }
.logo-tile:hover > span, .logo-tile:focus > span { opacity: 1; }

.today-sec { background: #eef5f4; padding: 26px 0 30px; margin-top: 30px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-coupon { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.mini-coupon:hover { box-shadow: 0 10px 26px rgba(15,23,42,.1); transform: translateY(-2px); }
.mc-body { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo pct" "excl excl" "title title"; gap: 10px; padding: 16px; cursor: pointer; flex: 1; align-content: start; }
.mc-logo { grid-area: logo; height: 56px; display: flex; align-items: center; }
.mc-logo img { max-width: 120px; max-height: 52px; object-fit: contain; }
.mc-pct { grid-area: pct; background: #fff7ed; border: 1.5px dashed #fdba74; border-radius: 12px; min-width: 72px; padding: 6px 10px; text-align: center; color: var(--deal); }
.mc-pct b { font-weight: 800; display: block; font-size: 24px; line-height: 1.1; direction: ltr; }
.mc-pct small { font-weight: 500; }
.mc-pct.deal b { font-size: 16px; }
.mc-excl { grid-area: excl; justify-self: start; background: var(--deal); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.mini-coupon .coupon-title { grid-area: title; margin: 0; font-size: 15px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc-all { border-top: 1px solid var(--line); padding: 10px 16px; font-size: 13.5px; font-weight: 500; color: var(--brand); text-decoration: none; background: #f8fbfb; }

.tg-block { margin-top: 30px; display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, #e0f2fe, #f0f9ff); border: 1px solid #bae6fd; border-radius: 20px; padding: 26px 30px; }
.tgb-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--tg); display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px rgba(34,158,217,.35); }
.tgb-icon svg { width: 44px; height: 44px; }
.tgb-text { flex: 1; }
.tgb-text h2 { margin: 0 0 6px; font-size: 22px; }
.tgb-text p { margin: 0; color: var(--ink-2); }

.cat-cols { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.cat-cols li { break-inside: avoid; }
.cat-cols a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); font-weight: 500; }
.cat-cols a:hover { color: var(--brand); }
.cat-cols small { margin-inline-start: auto; color: var(--ink-3); font-weight: 500; }
.home > .wrap > .card { margin-top: 24px; }

@media (max-width: 900px) {
  .home-top { grid-template-columns: 1fr; }
  .top-pick { display: none; }
  .pop-stores { grid-template-columns: 1fr; }
  .store-month { flex-direction: row; justify-content: space-between; padding: 12px 16px; }
  .sm-logo { height: 50px; }
  .sm-logo img { max-width: 110px; max-height: 46px; }
  .sm-count { display: none; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-slider { min-height: 200px; border-radius: 14px; }
  .slide { padding: 18px 18px 30px; gap: 10px; }
  .slide-up { font-size: 15px; margin-top: 8px; }
  .slide-pct { font-size: 52px; }
  .slide-on { font-size: 13px; }
  .slide-btn { margin-top: 10px; padding: 7px 14px; font-size: 13px; }
  .slide-logo { width: 120px; height: 92px; padding: 10px; border-radius: 14px; }
  .slider-btn { display: none; }
  .h1-pill h1 { font-size: 17px; padding: 7px 16px; }
  .h1-pill::before { top: 20px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-tile { height: 70px; }
  .logo-tile > span { display: none; }
  .mini-grid { grid-template-columns: 1fr; }
  .mc-body { grid-template-columns: 96px 1fr auto; grid-template-areas: "logo title pct" "logo excl pct"; }
  .mini-coupon .coupon-title { font-size: 14px; }
  .tg-block { flex-direction: column; text-align: center; padding: 22px 18px; }
  .tgb-icon { width: 64px; height: 64px; }
  .cat-cols { columns: 2; column-gap: 14px; }
}

/* ---------- deals, all stores, site pages ---------- */
.page-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 16px; }
.page-hero h1 { margin: 0 0 4px; font-size: 26px; }
.page-hero p { margin: 0; opacity: .9; }
.countdown { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px 16px; }
.countdown b { font-size: 26px; letter-spacing: 1px; direction: ltr; font-variant-numeric: tabular-nums; color: var(--gold); }
.tabs.light { margin-bottom: 14px; gap: 6px; }
.tabs.light .tab { color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; }
.tabs.light .tab[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.logo-grid.six { grid-template-columns: repeat(6, 1fr); }
.logo-tile.tall { height: 110px; display: flex; flex-direction: column; gap: 8px; }
.logo-tile em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.az-bar a, .az-bar span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; font-size: 14px; padding: 0 8px; }
.az-bar a { background: #eef5f4; color: var(--brand); text-decoration: none; }
.az-bar a:hover, .az-bar a.on { background: var(--brand); color: #fff; }
.az-bar span { color: #cbd5e1; }
.az-group { scroll-margin-top: 80px; }
.az-group h3 { margin: 18px 0 8px; font-size: 18px; color: var(--brand); border-bottom: 2px solid #eef5f4; padding-bottom: 4px; }
.az-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.az-list a { display: flex; flex-direction: column; padding: 8px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px dashed var(--line); }
.az-list a:hover b { color: var(--brand); }
.az-list small { color: var(--ink-3); font-size: 12.5px; }
.side-more { display: inline-block; margin-top: 10px; font-weight: 500; color: var(--brand); text-decoration: none; font-size: 14px; }
.prose { line-height: 1.9; font-size: 16px; margin-bottom: 40px; }
.prose h2 { font-size: 20px; margin: 26px 0 8px; }
.prose ul { padding-inline-start: 22px; }
.prose a:not(.btn) { color: var(--brand); font-weight: 500; }
.prose a.btn { text-decoration: none; }
.prose .muted { color: var(--ink-3); font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; text-align: center; text-decoration: none; color: var(--ink) !important; border: 1px solid var(--line); }
.contact-card svg { width: 40px; height: 40px; background: var(--tg); border-radius: 50%; padding: 8px; }
.contact-card .cc-icon { font-size: 34px; }
.contact-card span { color: var(--ink-3); font-weight: 400; font-size: 14px; }
@media (max-width: 720px) {
  .page-hero { padding: 18px; }
  .page-hero h1 { font-size: 21px; }
  .countdown b { font-size: 20px; }
  .logo-grid.six { grid-template-columns: repeat(3, 1fr); }
  .az-list { grid-template-columns: 1fr 1fr; gap: 2px 12px; }
}

/* ---------- mobile menu, back to top, 404 ---------- */
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0; cursor: pointer; flex: none; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .site-header .wrap { gap: 10px; }
  .menu-open .main-nav { display: flex; position: absolute; top: var(--header-h); inset-inline: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,23,42,.1); padding: 6px 16px 12px; }
  .menu-open .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
  .menu-open .main-nav > a:last-child { border-bottom: 0; }
  .menu-open .main-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; align-items: stretch; }
  .menu-open .nav-cats { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu-open .nav-cats-link { flex: 1; border-bottom: 0 !important; }
  .menu-open .nav-cats-btn { width: 40px; height: 40px; }
  .nav-cats-panel { position: static; width: 100%; max-width: none; padding: 0 0 8px; }
  .nav-cats-panel::before { content: none; }
  .nav-cats-panel ul { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); padding: 0; }
  .nav-cats-panel li a { white-space: normal; min-width: 0; }
  .menu-open .main-nav .nav-cats-panel a { border-bottom: 0; padding: 8px 6px; font-weight: 500; }
  .nav-cats-all { margin: 4px 0 0; padding: 10px 6px 4px; }
}
.to-top { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(15,118,110,.35); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 25; }
.to-top.show { opacity: 1; pointer-events: auto; }
.not-found { text-align: center; padding: 40px 16px 60px; }
.nf-code { font-weight: 800; font-size: 96px; line-height: 1; color: var(--brand); }
.not-found h1 { margin: 8px 0; }
.not-found p { color: var(--ink-2); }
.not-found .chips { justify-content: center; margin: 18px 0 28px; }
.home-top > *, .layout > *, .pop-stores > *, .mc-body > * { min-width: 0; }
.hero-slider { width: 100%; }

.lang-btn .l-short { display: none; }
@media (max-width: 480px) {
  .lang-btn .l-long { display: none; }
  .lang-btn .l-short { display: inline; }
  .lang-btn { min-width: 38px; padding-inline: 10px; text-align: center; }
  .site-header .wrap { gap: 8px; }
  .header-tools { gap: 6px; }
  .logo { font-size: 18px; }
}

/* small phones (320-380px) */
.nav-search { display: none; }
.card, .coupon, .store-tile { overflow-wrap: anywhere; }
.store-grid { grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); }
@media (max-width: 380px) {
  .header-tools .icon-btn { display: none; }
  .menu-open .main-nav .nav-search { display: block; }
  .logo { font-size: 17px; gap: 6px; }
}
.main-col { grid-template-columns: minmax(0, 1fr); }
.main-col > * { min-width: 0; }

/* titles that look like headings but stay out of the page outline (footer, sidebar, banners) */
.tg-title, .box-title, .f-title { font-weight: 700; line-height: 1.4; }
h2.coupon-title { font-size: 17px; }

/* The store's square coupon image, in its own section (also og:image and the page's main image in schema) */
.code-img figure { margin: 0; text-align: center; }
.code-img img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; border-radius: 16px; }
.code-img figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
/* Image banner uploaded from the dashboard */
.slide.slide-img { padding: 0; background: #0b3f3b; }
.slide.slide-img::before, .slide.slide-img::after { content: none; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Store page "quick answer" block, byline, expired codes */
.qf-title { font-size: 17px; margin: 16px 0 8px; color: var(--ink); }
.quick-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.quick-facts > div { background: var(--bg, #f6f8f8); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.quick-facts dt { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.quick-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; font-size: 15px; }
.byline { margin: 12px 0 0 !important; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.byline a { color: var(--brand, #0f766e); text-decoration: underline; text-underline-offset: 3px; }
.badge-app { color: var(--ink-2); }
.expired .info-table th { width: auto; }
.expired td { color: var(--ink-3); }
.muted-note { color: var(--ink-3); font-size: 14px; margin: 0 0 8px; }
@media (max-width: 600px) {
  .quick-facts { grid-template-columns: 1fr 1fr; gap: 6px; }
  .quick-facts > div { padding: 8px 10px; }
  .quick-facts > div:first-child { grid-column: 1 / -1; }
  .quick-facts dt { font-size: 12px; }
  .quick-facts dd { font-size: 14px; }
  .qf-title { font-size: 16px; margin-top: 12px; }
}

/* Category page: editor's pick, guide, tips, seasons */
.pick-card { margin-top: 16px; padding: 18px 20px; border: 2px solid #fbbf24; background: linear-gradient(180deg, #fffbeb, #fff); }
.pick-badge { display: inline-block; background: #fbbf24; color: #78350f; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 99px; }
.pick-body { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.pick-body img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 6px; flex: none; }
.pick-body h2 { font-size: 19px; margin: 0 0 4px; }
.pick-body h2 small { font-size: 14px; color: var(--accent, #c2410c); font-weight: 700; }
.pick-body p { margin: 0; color: var(--ink-2); }
.pick-body .btn { margin-inline-start: auto; flex: none; }
.guide h3 { font-size: 17px; margin: 18px 0 6px; }
.guide p { color: var(--ink-2); line-height: 1.9; margin: 0 0 10px; }
.guide ul { margin: 0 0 10px; padding-inline-start: 20px; color: var(--ink-2); line-height: 1.9; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col > .section { margin-top: 16px; }
.tips, .seasons { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.8; }
.seasons b { color: var(--ink); }
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .pick-body { flex-wrap: wrap; }
  .pick-body .btn { width: 100%; margin: 4px 0 0; }
}

/* Breathing room around store logos: many logos touch their own edges (text right on the border),
   so every logo sits inside a white frame with a little padding. */
.hero-logo { padding: 10px; }
.hero-logo img { border-radius: 10px; }
.store-tile img, .sticky-tabs img, .side-links img, .search-results img, .coupon-store img,
.compare-table tbody th img, .logo-tile img, .mc-logo img, .sm-logo img, .slide-logo img { box-sizing: border-box; background: #fff; }
.store-tile img { padding: 6px; border: 1px solid var(--line); }
.sticky-tabs img, .side-links img, .search-results img, .compare-table tbody th img { padding: 3px; }
.coupon-store img { padding: 2px; }
.logo-tile img { padding: 6px; border-radius: 8px; }
.mc-logo img, .sm-logo img { padding: 6px; border-radius: 10px; }
.slide-logo { padding: 8px; box-sizing: border-box; }
@media (max-width: 600px) { .hero-logo { padding: 8px; } }

/* Share sheet: pick where to share. Bottom sheet on phones, dialog on desktop. */
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px !important; width: auto !important; font-weight: 500; font-size: 13.5px; }
.share-btn.nudge { animation: nudge 1s ease-in-out 3; background: #dcfce7 !important; color: #166534 !important; border-color: #86efac !important; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }
.btn-share { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-share:hover { background: #d1fae5; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); display: inline-flex; align-items: center; gap: 8px; }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.hero-actions { display: grid; gap: 8px; margin-inline-start: auto; align-self: center; }
.hero-actions .hero-visit { margin: 0; }
.cat-hero { position: relative; }
.cat-share { margin-inline-start: auto; align-self: center; }
.share-sheet .modal-box { gap: 12px; text-align: start; }
.share-sheet .modal-title { text-align: center; font-size: 19px; }
.sh-sub { margin: -6px 0 0; text-align: center; color: var(--ink-3); font-size: 14px; }
.sh-preview { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); }
.sh-preview img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 3px; box-sizing: border-box; flex: none; }
.sh-preview span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.sh-grid button { border: 0; background: none; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; padding: 4px 0; cursor: pointer; font-family: inherit; }
.sh-grid button svg { width: 52px; height: 52px; padding: 13px; box-sizing: border-box; border-radius: 50%; color: #fff; transition: transform .12s; }
.sh-grid button:hover svg { transform: translateY(-2px); }
.sh-wa svg { background: #25d366; } .sh-snap svg { background: #fffc00; color: #111 !important; } .sh-tg svg { background: #229ed9; }
.sh-x svg { background: #111; } .sh-fb svg { background: #1877f2; } .sh-mail svg { background: #64748b; } .sh-sms svg { background: #10b981; } .sh-more svg { background: #e5e7eb; color: #374151 !important; }
.sh-copy { display: flex; gap: 8px; }
.sh-copy input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 13px; color: var(--ink-3); background: var(--bg); font-family: inherit; }
.sh-copy .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sh-copy .btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .share-sheet { place-items: end stretch; padding: 0; }
  .share-sheet .modal-box { width: 100%; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .share-sheet.open .modal-box { transform: none; }
  .share-sheet .modal-box::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--line); justify-self: center; margin-top: -12px; }
  .hero-actions { grid-template-columns: 1fr 1fr; width: 100%; }
  .cat-share { margin: 10px 0 0; }
}
@media (max-width: 600px) {
  .hero-actions { display: flex; width: auto; margin: 4px 0 0; }
  .hero-actions .btn { padding: 8px 16px; min-height: 0; }
}

/* ---------- articles ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.art-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; color: inherit; text-decoration: none; }
.art-card img, .art-card-ph { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: grid; place-items: center; background: var(--brand-soft); font-size: 40px; }
.art-card-body { display: grid; gap: 6px; padding: 14px 16px; align-content: start; }
.art-card-body b { font-size: 17px; line-height: 1.5; color: var(--ink); }
.art-card-body small { color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card-body em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.art-card:hover b { color: var(--brand); }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.art { padding: 24px 28px; }
.art-header h1 { font-size: 30px; line-height: 1.5; margin: 0 0 8px; }
.art-byline { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-3); font-size: 14px; margin: 0 0 16px; }
.art-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.art-tldr { background: var(--brand-soft); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.art-tldr h2 { font-size: 17px; margin: 0 0 6px; }
.art-tldr ul { margin: 0; padding-inline-start: 20px; line-height: 1.9; }
.art-toc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; }
.art-toc ol { margin: 6px 0 0; padding-inline-start: 20px; line-height: 2; }
.art-toc a { color: var(--ink-2); }
.art-body h2 { scroll-margin-top: 80px; font-size: 22px; margin-top: 30px; }
.art-body h3 { font-size: 18px; margin: 20px 0 6px; }
.art-body figure { margin: 18px 0; text-align: center; }
.art-body figure img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.art-body figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.art-body .tip { background: #fff8e6; border-inline-start: 4px solid #f5b301; border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.art-body ol { padding-inline-start: 22px; }
.art-store { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 18px 0; background: var(--bg); }
.art-store img { border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--line); }
.art-store div { display: grid; gap: 2px; }
.art-store small { color: var(--brand); font-weight: 600; }
.art-store span { font-size: 14px; color: var(--ink-2); }
.art-faq { margin-top: 24px; }
.art-share { margin: 20px 0 0; }
@media (max-width: 900px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art { padding: 18px 16px; }
  .art-header h1 { font-size: 24px; }
  .art-store { grid-template-columns: auto 1fr; }
  .art-store .btn { grid-column: 1 / -1; }
}
.prose .art-store .btn, .art-store .btn, .prose .btn-primary { color: #fff; text-decoration: none; }
.prose p > .btn { display: inline-flex; align-items: center; gap: 8px; }
.art-body figure img { max-height: 640px; width: auto; }

/* Button labels stay on one line (white-space: nowrap above) and shrink a little on small screens instead of wrapping. */
@media (max-width: 480px) { .btn { font-size: 14px; padding-inline: 14px; gap: 6px; } }
@media (max-width: 360px) { .btn { font-size: 13px; padding-inline: 10px; } }

/* "Didn't work" report form under a coupon */
.report-box { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: grid; gap: 12px; background: var(--bg); }
.rb-title { margin: 0; font-weight: 700; }
.rb-title small { font-weight: 400; color: var(--ink-3); margin-inline-start: 6px; }
.rb-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-reasons button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.rb-reasons button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.report-box textarea { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; width: 100%; box-sizing: border-box; background: var(--surface); }
.rb-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer: install the site as an app + our app store links (set in the dashboard) */
.f-apps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 18px 0 4px; }
.app-badge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: inherit; font: 600 14px/1.2 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; }
.app-badge:hover { background: rgba(255,255,255,.16); }
.app-badge[hidden], .pwa-ios[hidden] { display: none; }
.pwa-ios { flex-basis: 100%; text-align: center; font-size: 14px; margin: 4px 0 0; opacity: .9; }

/* Articles: product cards, comparison tables, store introduction */
.prod-list { display: grid; gap: 14px; margin: 18px 0; }
.prod-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface); scroll-margin-top: 80px; }
.prod-img { background: #fff; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.prod-brand { margin: 0; font-size: 13px; color: var(--ink-3); font-weight: 700; letter-spacing: .02em; }
.art-body h3.prod-name { margin: 0; font-size: 18px; line-height: 1.4; }
.prod-for { margin: 0; font-size: 14px; color: var(--ink-2); }
.prod-price { margin: 2px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.prod-price b { font-size: 20px; color: var(--brand-ink, var(--brand)); }
.prod-price small { font-size: 12px; color: var(--ink-3); }
.prod-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px 16px; font-size: 14px; }
.prod-pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.prod-pc li { padding-inline-start: 20px; position: relative; }
.prod-pc div:first-child li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: #15803d; font-weight: 700; }
.prod-pc div + div li::before { content: '✕'; position: absolute; inset-inline-start: 0; color: #b91c1c; font-weight: 700; }
.pc-t { margin: 0 0 4px; font-weight: 700; font-size: 13px; }
.pc-t.good { color: #15803d; } .pc-t.bad { color: #b91c1c; }
.prod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.prod-code { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .prod-card { grid-template-columns: 1fr; } .prod-img { max-width: 260px; width: 100%; margin: 0 auto; } .prod-actions .btn { width: 100%; justify-content: center; } }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
table.compare caption { text-align: start; font-weight: 700; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
table.compare th, table.compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
table.compare thead th { background: var(--brand-soft); color: var(--brand-ink, var(--ink)); }
table.compare tbody th { background: var(--bg); white-space: nowrap; position: sticky; inset-inline-start: 0; }
table.compare tr:last-child > * { border-bottom: 0; }
.art-about { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 18px 0; background: var(--bg); display: grid; gap: 10px; }
.aa-head { display: flex; align-items: center; gap: 12px; }
.aa-head img { border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--line); }
.aa-name { margin: 0; font-weight: 800; font-size: 18px; }
.art-about p { margin: 0; }
.art-about dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.art-about dl div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.art-about dt { font-weight: 700; } .art-about dd { margin: 0; color: var(--ink-2); }
.art-about .btn { justify-self: start; }
@media (max-width: 480px) { .art-about dl div { grid-template-columns: 1fr; gap: 0; } }

/* Pop-up from the dashboard: tall image on phones, wide on computers */
.pop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .6); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.pop.open { opacity: 1; }
.pop-box { position: relative; max-width: min(420px, 100%); }
.pop-box img { display: block; max-width: 100%; max-height: calc(100vh - 48px); width: auto; height: auto; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pop-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 700 24px/1 system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; z-index: 1; }
@media (min-width: 768px) { .pop-box { max-width: min(860px, 100%); } }

/* Install sheet at the bottom of the screen (phones): icon, name, address, then the steps for this phone */
.pwa-sheet { position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; max-width: 460px; margin-inline: auto;
  padding: 18px 16px 14px; background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 18px 48px rgba(15, 23, 42, .28); border: 1px solid rgba(15, 23, 42, .06);
  transform: translateY(calc(100% + 24px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.pwa-sheet.open { transform: none; }
.pwa-sheet[hidden] { display: none; }
.pwa-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f4f3; color: var(--ink-2); font: 700 21px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; }
.pwa-head { display: flex; align-items: center; gap: 14px; padding-inline-end: 38px; }
.pwa-head img { width: 60px; height: 60px; flex: none; border-radius: 15px; box-shadow: 0 3px 10px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06); background: #fff; }
.pwa-head > div { min-width: 0; display: grid; gap: 1px; }
.pwa-head b { font-size: 17px; line-height: 1.35; }
.pwa-host { font-size: 13px; color: var(--ink-3); }
.pwa-why { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.pwa-steps { list-style: none; margin: 14px 0 0; padding: 12px; display: grid; gap: 10px; background: #f6f8f7; border-radius: 14px; counter-reset: st; }
.pwa-steps[hidden] { display: none; }
.pwa-steps li { counter-increment: st; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; line-height: 1.7; position: relative; padding-inline-start: 34px; }
.pwa-steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 13px/24px system-ui, sans-serif; text-align: center; }
.pwa-steps small { flex-basis: 100%; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.pwa-k { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; min-height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--line, #e3e7e5); font-weight: 700; font-size: 13px; vertical-align: middle; }
.pwa-k svg { color: #0a84ff; flex: none; }
.pwa-go { margin-top: 14px; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.pwa-go[hidden] { display: none; }
.pwa-free { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* Opened from the home screen as an app: no browser bar, so respect the notch, drop install prompts, show the tab bar */
.app-tabs { display: none; }
.is-app .pwa-install, .is-app .pwa-ios, .is-app .pwa-sheet { display: none !important; }
.is-app .site-header { padding-top: env(safe-area-inset-top); position: sticky; top: 0; }
@media (max-width: 899px) {
  .is-app body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .is-app .app-tabs { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; padding: 4px 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid rgba(15, 23, 42, .08); }
  .app-tabs a { flex: 1 1 0; min-width: 0; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.2; -webkit-tap-highlight-color: transparent; border-radius: 12px; }
  .app-tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-tabs a[aria-current="page"] { color: var(--brand); }
  .app-tabs a[aria-current="page"] svg { transform: translateY(-1px); }
  .app-tabs a:active { background: rgba(15, 118, 110, .08); }
  .app-tabs .tab-search svg { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(15, 118, 110, .35); margin-top: -14px; }
  .app-tabs .tab-search { color: var(--ink-2); }
  /* things that sat at the bottom of the screen move above the tab bar */
  .is-app .to-top, .is-app .copy-toast, .is-app .toast { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  /* the menu button is replaced by the tabs; app users do not need the long footer */
  .is-app .site-footer { padding-bottom: 8px; }
}

/* ---------- search window (opens from the header search on every page and from the homepage box) ---------- */
html.sx-open { overflow: hidden; }
.sx { position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.55); display: flex; justify-content: center; align-items: flex-start; padding: 6vh 16px 16px; }
.sx[hidden] { display: none; }
.sx-panel { width: 100%; max-width: 640px; max-height: 84vh; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.sx-bar { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
[dir="rtl"] .sx-bar { padding: 0 16px 0 10px; }
.sx-bar svg { flex: none; width: 20px; height: 20px; }
.sx-input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 17px 0; background: transparent; color: var(--ink); }
.sx-input::-webkit-search-cancel-button { display: none; }
.sx-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f1f3f6; color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sx-body { overflow: auto; padding: 8px 8px 14px; overscroll-behavior: contain; }
.sx-sec { padding: 6px 4px; }
.sx-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 6px 8px; }
.sx-clear { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }
.sx-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sx-item:hover, .sx-item.active { background: #f4f6f8; }
.sx-item img, .sx-ph { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 3px; }
.sx-ico { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #f4f6f8; display: grid; place-items: center; font-size: 20px; }
.sx-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sx-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-main small { color: var(--ink-3); font-size: 12.5px; }
.sx-pct { margin-inline-start: auto; flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--deal); background: #fff3ec; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 8px; }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.sx-chip:hover { border-color: var(--brand); }
.sx-pop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 8px; }
.sx-tile { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; text-align: center; }
.sx-tile img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.sx-tile:hover { border-color: var(--brand); }
.sx-none { text-align: center; color: var(--ink-3); padding: 18px 10px 6px; margin: 0; }
@media (max-width: 640px) {
  .sx { padding: 0; background: #fff; }
  .sx-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; padding-top: env(safe-area-inset-top); }
  .sx-pop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sx-cp .sx-main b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.45; }
.sx-cp .sx-main small { display: flex; align-items: center; gap: 6px; }
.sx-kind { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: #f1f3f6; color: var(--ink-2); }
.sx-kind.is-code { background: var(--brand-soft); color: var(--brand); }
.sx-note { margin: 4px 12px 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- ⭐ saved stores ---------- */
.save-store .ss-star { font-size: 18px; line-height: 1; }
.save-store .ss-on, .save-store[aria-pressed="true"] .ss-off { display: none; }
.save-store[aria-pressed="true"] .ss-on { display: inline; }
.save-store[aria-pressed="true"] { background: #fff; color: var(--brand-deep, #0b3f3b); }
.save-store[aria-pressed="true"] .ss-star { color: #f5a524; }
.saved-page { padding-top: 18px; padding-bottom: 32px; }
.saved-page h1 { margin: 0 0 4px; }
[data-saved-list] { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.saved-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.saved-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding-inline-end: 40px; }
.saved-head img, .saved-ph { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; border: 1px solid var(--line); background: #fff; flex: none; display: grid; place-items: center; font-weight: 800; }
.saved-head span { display: grid; gap: 2px; min-width: 0; }
.saved-head small { color: var(--ink-3); font-size: 13px; }
.saved-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #f5a524; font-size: 18px; cursor: pointer; }
.saved-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.saved-card li a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #f6f8f7; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.5; }
.sv-kind { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e9eeec; color: var(--ink-2); }
.sv-kind.is-code { background: #dcf3ee; color: var(--brand); }
.saved-empty { text-align: center; padding: 30px 16px; background: #fff; border: 1px dashed var(--line); border-radius: 16px; margin-top: 16px; }
.saved-empty[hidden] { display: none; }
.se-star { font-size: 44px; color: #f5a524; line-height: 1; }
/* store page on phones: share + save sit in their own row under the title */
@media (max-width: 600px) {
  .hero-actions:has(.save-store) { width: 100%; margin: 0; }
  .hero-actions:has(.save-store) .btn:not(.hero-visit) { flex: 1 1 0; justify-content: center; }
}

/* ---------- the last copied code (pill at the bottom, phones) ---------- */
.code-pill { position: fixed; inset-inline: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; max-width: 460px; margin-inline: auto;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: var(--brand-deep, #0b3f3b); color: #fff; border-radius: 16px; box-shadow: 0 10px 28px rgba(15, 23, 42, .3); animation: cp-in .3s ease; }
[dir="rtl"] .code-pill { padding: 8px 12px 8px 8px; }
@keyframes cp-in { from { transform: translateY(120%); } }
.cp-info { flex: 1; min-width: 0; display: grid; color: inherit; text-decoration: none; line-height: 1.3; }
.cp-info small { opacity: .8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-info b { font-size: 16px; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-self: start; }
.cp-copy { flex: none; border: 0; border-radius: 12px; padding: 0 16px; min-height: 40px; background: #fff; color: var(--brand-deep, #0b3f3b); font: inherit; font-weight: 800; cursor: pointer; }
.cp-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: 700 18px/1 system-ui, sans-serif; cursor: pointer; }
.is-app .code-pill { bottom: calc(74px + env(safe-area-inset-bottom)); }
.to-top { z-index: 25; }

/* ---------- 🔔 notifications card (before the browser's own question) ---------- */
.push-card { position: fixed; inset-inline: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 70; max-width: 460px; margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 14px; background: #fff; color: var(--ink); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .25); border: 1px solid rgba(15, 23, 42, .06); transform: translateY(calc(-100% - 30px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.push-card.open { transform: none; }
.pc-bell { width: 44px; height: 44px; border-radius: 12px; background: #fff3ec; display: grid; place-items: center; font-size: 22px; }
.pc-text { display: grid; gap: 2px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.pc-text b { font-size: 15px; color: var(--ink); }
.pc-btns { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.pc-btns button { flex: 1; min-height: 42px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.pc-btns .pc-yes { background: var(--brand); border-color: var(--brand); color: #fff; }
.push-switch { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.push-switch[hidden] { display: none; }
.push-switch[aria-pressed="true"] { background: #dcf3ee; border-color: #bfe6dd; color: var(--brand); }
