/* ==========================================================================
   WebCoupons.site — HTML template
   Brand: original Coups "lightblue" skin + logo red. Display: Oswald.
   ========================================================================== */

:root {
  /* Brand (unchanged from the live site) */
  --sky: #32B7DE;        /* header / footer band */
  --ocean: #2994B4;      /* links, primary buttons, top bar */
  --deep: #247F9D;       /* hover, bottom bar */
  --ice: #BEEEFC;        /* light tint used by old skin */
  --redeem: #CC0000;     /* "Click to Redeem" */
  --redeem-dark: #A30000;
  --logo-red: #CA0000;
  --lime: #9ACD32;       /* coupon code button */
  --leaf: #5C9425;       /* success % / vote up */

  /* Neutrals, biased toward the brand blue */
  --ink: #15303A;
  --ink-2: #3E5963;
  --muted: #6F8790;
  --line: #D9E6EB;
  --line-2: #E8F0F3;
  --ground: #F2F7F9;
  --paper: #FFFFFF;
  --tint: #E7F6FB;

  --danger-bg: #FDECEC;
  --warn: #B86E00;
  --warn-bg: #FFF4E0;

  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(21, 48, 58, .06), 0 2px 8px rgba(21, 48, 58, .05);
  --shadow-2: 0 10px 30px -10px rgba(21, 48, 58, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --base-size: 16px;
  --heading-scale: 1;
  --logo-width: 190px;
  --heading-transform: uppercase;
  --footer-text: #FFFFFF;
  --paper: #FFFFFF;
  --gutter: 20px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--base-size)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color .2s; }
a:hover { color: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 500 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--ocean); color: #fff; }
.btn--primary:hover { background: var(--deep); color: #fff; }
.btn--redeem { background: var(--redeem); color: #fff; box-shadow: 0 4px 0 var(--redeem-dark); }
.btn--redeem:hover { background: #DB0F0F; color: #fff; }
.btn--ghost { background: transparent; color: var(--ocean); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ocean); background: var(--tint); }
.btn--white { background: #fff; color: var(--deep); }
.btn--white:hover { color: var(--redeem); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar ---------- */
.topbar { background: var(--deep); color: #DDF3FA; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; }
.topbar nav { display: flex; gap: 18px; }
.topbar a { color: #DDF3FA; text-transform: uppercase; letter-spacing: .08em; font: 400 12px/1 var(--font-display); }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__live { display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(154,205,50,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(154,205,50,0); } 100% { box-shadow: 0 0 0 0 rgba(154,205,50,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 90;
  background: var(--sky);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -12px rgba(21,48,58,.5); background: rgba(50,183,222,.96); backdrop-filter: saturate(1.2) blur(8px); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-stuck .container { height: 60px; }
.logo { flex: none; display: block; background: #fff; padding: 6px 12px 6px 8px; border-radius: 0 999px 999px 0; margin-left: calc(-1 * var(--gutter)); padding-left: var(--gutter); box-shadow: 4px 0 0 rgba(255,255,255,.35); }
.logo img { width: var(--logo-width); max-width: 100%; height: auto; transition: width .3s var(--ease); }
.site-header.is-stuck .logo img { width: calc(var(--logo-width) * .85); }

.header-search { position: relative; flex: 1; max-width: 460px; }
.header-search input {
  width: 100%; height: 44px; border: 0; border-radius: 999px; padding: 0 52px 0 20px;
  background: #fff; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s;
}
.header-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--deep); }
.header-search .search-submit { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ocean); color: #fff; display: grid; place-items: center; }
.header-search .search-submit:hover { background: var(--redeem); }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px;
  color: #fff; font: 500 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-open > a { background: rgba(255,255,255,.18); color: #fff; }
.main-nav > ul > li > a[aria-current="page"] { background: #fff; color: var(--deep); }
.main-nav .caret { width: 12px; height: 12px; transition: transform .2s; }
.main-nav li.is-open .caret { transform: rotate(180deg); }

.mega {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(640px, 90vw);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 20px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.main-nav li.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mega__head h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 16px; }
/* Large mega panels span the header width and scroll inside. */
.site-header .container { position: relative; }
.main-nav > ul > li.has-mega-wide { position: static; }
.mega--lg, .mega--xl { left: var(--gutter); right: var(--gutter); width: auto; top: calc(100% - 4px); }
.mega--lg .mega__grid, .mega--xl .mega__grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); max-height: min(60vh, 520px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.mega__grid a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.mega__grid a:hover { background: var(--tint); color: var(--deep); }
.mega__grid small { color: var(--muted); font-variant-numeric: tabular-nums; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; place-items: center; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(21,48,58,.5); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.drawer__logo img { width: 150px; height: auto; }
.drawer__close { flex: none; border: 0; background: var(--ground); color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s; }
.drawer__close:hover { background: var(--redeem); color: #fff; }
.drawer nav { padding-top: 4px; }
.drawer nav a:hover { color: var(--ocean); padding-left: 6px; }
.drawer nav a { transition: color .2s, padding .2s; }
.drawer nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font: 500 18px/1.2 var(--font-display); text-transform: uppercase; color: var(--ink); }
.drawer .header-search { display: block; max-width: none; margin: 16px 0 8px; }
.drawer .header-search input { background: var(--ground); }

/* Autocomplete */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-2); overflow: hidden; z-index: 5; max-height: 360px; overflow-y: auto;
}
.suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--ink); font-size: 14px; }
.suggest a:hover, .suggest a.is-active { background: var(--tint); }
.suggest mark { background: none; color: var(--redeem); font-weight: 600; }
.suggest small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.suggest__group { padding: 8px 14px 4px; font: 500 11px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
.suggest__empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--ocean) 100%);
  padding-block: 44px 0;
}
.hero__confetti { position: absolute; inset: 0; pointer-events: none; }
.hero .hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .hero__grid--single { grid-template-columns: minmax(0, 820px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-size: calc(clamp(2.3rem, 5.2vw, 4rem) * var(--heading-scale)); margin: 16px 0 12px; text-transform: var(--heading-transform); letter-spacing: .01em; }
.nowrap { white-space: nowrap; }
.hero h1 .scissor-line { display: inline-block; position: relative; color: #fff; }
.hero h1 .scissor-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 3px;
  background: repeating-linear-gradient(90deg, #fff 0 10px, transparent 10px 18px);
  transform-origin: left; animation: cut 1.2s .4s var(--ease) both;
}
@keyframes cut { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__lead { font-size: 18px; max-width: 52ch; color: #E9F8FD; }
.hero-search { position: relative; margin-top: 24px; max-width: 580px; }
.hero-search input { width: 100%; height: 60px; border: 0; border-radius: 14px; padding: 0 150px 0 54px; font-size: 17px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.45); }
.hero-search input:focus { outline: 3px solid var(--lime); }
.hero-search .icon { position: absolute; left: 20px; top: 21px; color: var(--muted); }
.hero-search .btn { position: absolute; right: 8px; top: 8px; min-height: 44px; }
.hero__popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; }
.hero__popular a { color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 3px 12px; border-radius: 999px; font-size: 13px; transition: background .2s, border-color .2s; }
.hero__popular a:hover { background: #fff; color: var(--deep); border-color: #fff; }

.hero__stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero__stats div { display: grid; }
.hero__stats b { font: 500 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #D5F1FA; }

/* Hero art: stacked tickets */
.hero__art { position: relative; height: 330px; }
.float-ticket {
  position: absolute; width: min(280px, 88%); background: #fff; color: var(--ink); border-radius: 12px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); display: grid; grid-template-columns: 1fr 92px; overflow: hidden;
  animation: bob 6s ease-in-out infinite;
}
.float-ticket:nth-child(1) { top: 10px; left: 8%; transform: rotate(-6deg); --r: -6deg; }
.float-ticket:nth-child(2) { top: 118px; left: 30%; z-index: 2; --r: 3deg; animation-delay: -2s; }
.float-ticket:nth-child(3) { top: 222px; left: 4%; --r: -2deg; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-10px) rotate(var(--r)); } }
.float-ticket__main { padding: 14px 16px; }
.float-ticket__main small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.float-ticket__main b { font: 500 22px/1.1 var(--font-display); color: var(--ink); }
.float-ticket__stub { position: relative; display: grid; place-items: center; background: var(--lime); color: #20380B; font: 600 12px/1.2 var(--font-mono); text-align: center; padding: 8px; border-left: 2px dashed rgba(255,255,255,.9); }
.float-ticket__stub.is-red { background: var(--redeem); color: #fff; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; }
.scissors { position: absolute; right: 6%; top: 40px; width: 64px; color: #fff; opacity: .9; animation: snip 3s ease-in-out infinite; }
@keyframes snip { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateX(-6px); } }

/* Hero bottom: store marquee */
.marquee { margin-top: 40px; background: rgba(21,48,58,.18); overflow: hidden; }
.marquee__track { display: flex; gap: 12px; width: max-content; padding: 14px 0; animation: marquee 60s linear infinite; }
.marquee__track > a { flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; white-space: nowrap; transition: background .2s; }
.marquee a:hover { background: #fff; color: var(--ink); }

/* ---------- Store monogram ---------- */
.mark {
  --h: 195;
  flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 60% 30%);
  font: 600 16px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase;
  border: 1px solid hsl(var(--h) 50% 85%);
}
.mark--sm { width: 30px; height: 30px; border-radius: 50%; font-size: 12px; }
.mark--lg { width: 96px; height: 96px; border-radius: 20px; font-size: 34px; }
.mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: 44px; }
.section--tight { padding-block: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: calc(clamp(1.6rem, 3vw, 2.1rem) * var(--heading-scale)); text-transform: var(--heading-transform); }
.section-head h2 em { font-style: normal; color: var(--ocean); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { font: 500 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: .16em; color: var(--redeem); display: block; margin-bottom: 8px; }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font: 500 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Category chips */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chip {
  scroll-snap-align: start; flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font-weight: 500; transition: transform .25s var(--ease), border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}
.chip__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--ocean); transition: background .2s, color .2s; }
.chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { transform: translateY(-3px); border-color: var(--ocean); box-shadow: var(--shadow-1); color: var(--ink); }
.chip:hover .chip__ico { background: var(--ocean); color: #fff; }

/* Category chip marquee (home) */
.chip-marquee {
  overflow: hidden; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.chip-marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 50s) linear infinite; }
.chip-marquee:hover .chip-marquee__track, .chip-marquee:focus-within .chip-marquee__track { animation-play-state: paused; }
.chip-marquee__set { display: flex; gap: 10px; padding-right: 10px; }
.chip-marquee .chip { scroll-snap-align: none; }

/* Featured carousel */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__btns { display: flex; gap: 8px; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.round-btn:hover { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.round-btn[disabled] { opacity: .35; pointer-events: none; }

.feature-card {
  scroll-snap-align: start; position: relative; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature-card__top { position: relative; padding: 18px; background: linear-gradient(135deg, hsl(var(--h) 75% 94%), hsl(var(--h) 70% 86%)); display: flex; gap: 12px; align-items: center; min-height: 96px; }
.feature-card__top .mark { background: #fff; }
.feature-card__top b { font: 500 14px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--h) 55% 25%); }
.feature-card__deal { position: absolute; right: 14px; top: 14px; font: 600 26px/1 var(--font-display); color: hsl(var(--h) 60% 28%); }
.feature-card__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feature-card__body h3 { font-size: 18px; }
.feature-card__body h3 a { color: var(--ink); }
.feature-card__body h3 a:hover { color: var(--ocean); }
.feature-card__body .btn { margin-top: auto; }
.feature-card::after { content: ""; position: absolute; left: 0; right: 0; top: 96px; border-top: 2px dashed rgba(255,255,255,.95); }

/* ---------- Layout: content + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }

/* Toolbar: tabs + view toggle */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tab { position: relative; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; white-space: nowrap; font: 500 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); transition: color .2s, background-color .25s; }
.tab:hover { color: var(--ocean); }
.tab[aria-selected="true"] { background: var(--ocean); color: #fff; }
.tab .count { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(21,48,58,.08); font-size: 11px; }
.tab[aria-selected="true"] .count { background: rgba(255,255,255,.25); }
.toolbar__right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.toolbar__right b { color: var(--ink); font-variant-numeric: tabular-nums; }
.view-toggle { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-toggle button { width: 38px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.select { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px; }

/* ==========================================================================
   TICKET — the coupon card
   ========================================================================== */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tickets.is-list { grid-template-columns: 1fr; }
.tab-panel[hidden] { display: none; }

.ticket {
  --notch: 11px;
  --cut: 150px;                /* grid: height from top where the perforation sits (set by JS if needed) */
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  transform-style: preserve-3d; will-change: transform;
  animation: rise .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes rise { from { opacity: .001; transform: translateY(14px); } }
.ticket:hover { box-shadow: var(--shadow-2); border-color: #C3DDE6; }
.ticket.is-featured { border-color: #F2C2C2; }
.ticket__ribbon { position: absolute; top: 12px; left: -6px; z-index: 2; background: var(--redeem); color: #fff; font: 500 11px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px 5px 12px; border-radius: 0 4px 4px 0; }
.ticket__ribbon::after { content: ""; position: absolute; left: 0; bottom: -6px; border-top: 6px solid var(--redeem-dark); border-left: 6px solid transparent; }
.ticket__ribbon--new { background: var(--leaf); }
.ticket__ribbon--new::after { border-top-color: #3F6A17; }

.ticket__main { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ticket__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket__head > div:not(.vote) { min-width: 0; flex: 1 1 120px; }
.ticket.is-featured .ticket__head, .ticket.is-new .ticket__head { padding-top: 16px; }
.ticket__store { display: block; font: 500 13px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ticket__store:hover { color: var(--ocean); }
.ticket__type { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ticket__type .icon { width: 13px; height: 13px; }
.ticket__title { font-size: 19px; line-height: 1.2; }
.ticket__title a { color: var(--ink); background-image: linear-gradient(var(--ocean), var(--ocean)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease), color .2s; }
.ticket__title a:hover { color: var(--deep); background-size: 100% 2px; }
.ticket__desc { font-size: 14px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket__meta { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.ticket__meta li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ground); color: var(--ink-2); }
.ticket__meta a { color: inherit; }
.ticket__meta .icon { width: 12px; height: 12px; }

/* Vote widget */
.vote { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.vote__pct { font: 600 13px/1 var(--font-display); color: #fff; background: var(--leaf); padding: 5px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; min-width: 46px; text-align: center; transition: background-color .3s; }
.vote__pct.is-low { background: var(--warn); }
.vote__pct small { display: block; font-size: 8px; letter-spacing: .12em; font-weight: 400; margin-top: 2px; opacity: .85; }
.vote__btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s, background-color .2s, transform .2s; }
.vote__btn .icon { width: 14px; height: 14px; }
.vote__btn--up:hover, .vote__btn--up[aria-pressed="true"] { color: #fff; background: var(--leaf); border-color: var(--leaf); }
.vote__btn--down:hover, .vote__btn--down[aria-pressed="true"] { color: #fff; background: var(--redeem); border-color: var(--redeem); }
.vote__btn.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* Stub (perforated part) */
.ticket__stub {
  position: relative; padding: 16px 18px; display: grid; gap: 12px;
  border-top: 2px dashed var(--line);
}
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; top: calc(-1 * var(--notch) - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--ground); border: 1px solid var(--line);
}
.ticket__stub::before { left: calc(-1 * var(--notch) - 1px); clip-path: inset(0 0 0 50%); }
.ticket__stub::after { right: calc(-1 * var(--notch) - 1px); clip-path: inset(0 50% 0 0); }
.ticket__foot { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.ticket__foot button, .ticket__foot a { border: 0; background: none; padding: 0; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.ticket__foot button:hover, .ticket__foot a:hover { color: var(--ocean); }
.ticket__foot .icon { width: 14px; height: 14px; }
.ticket__foot .spacer { margin-left: auto; }
.vote--compact { margin-left: 0; }
.vote--compact .vote__pct { padding: 4px 6px; min-width: 42px; font-size: 12px; }
.vote--compact .vote__btn { width: 26px; height: 26px; }
.ticket__foot .vote__btn { border: 1px solid var(--line); }
.ticket__foot .vote__btn--up:hover, .ticket__foot .vote__btn--up[aria-pressed="true"] { color: #fff; }
.ticket__foot .vote__btn--down:hover, .ticket__foot .vote__btn--down[aria-pressed="true"] { color: #fff; }
.ticket__foot > button { width: 28px; height: 28px; justify-content: center; border-radius: 6px; }
.ticket__foot > button:hover { background: var(--tint); }

/* Countdown chip */
.countdown { font-variant-numeric: tabular-nums; }
.countdown.is-soon { background: var(--warn-bg) !important; color: var(--warn) !important; font-weight: 600; }
.countdown.is-soon .icon { animation: tick 1s steps(2) infinite; }
@keyframes tick { 50% { transform: rotate(20deg); } }

/* ---- Reveal (Show code) ---- */
.reveal {
  position: relative; width: 100%; height: 48px; border: 0; padding: 0; background: transparent; border-radius: 8px;
  perspective: 600px;
}
.reveal__code {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px;
  border: 2px dashed var(--leaf); border-radius: 8px; background: #F4FAEA; color: #2C4A10;
  font: 600 17px/1 var(--font-mono); letter-spacing: .08em;
}
.reveal__cover {
  position: absolute; inset: 0; right: 42px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px 0 0 8px; background: var(--lime); color: #1D330A;
  font: 500 15px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  transform-origin: left center; transition: right .3s var(--ease), background-color .2s, transform .7s var(--ease), opacity .5s .2s;
  box-shadow: 4px 0 0 rgba(0,0,0,.08);
}
.reveal__cover::after { /* torn edge */
  content: ""; position: absolute; top: 0; bottom: 0; right: -6px; width: 6px;
  background: radial-gradient(circle at 0 6px, var(--lime) 3px, transparent 3.5px) 0 0 / 6px 10px repeat-y;
}
.reveal:hover .reveal__cover { right: 56px; background: #A9DB44; }
.reveal:hover .reveal__cover::after { background-image: radial-gradient(circle at 0 6px, #A9DB44 3px, transparent 3.5px); }
.reveal.is-torn .reveal__cover { transform: rotateY(-75deg) rotateZ(-8deg) translateY(12px); opacity: 0; pointer-events: none; }
.reveal.is-torn .reveal__code { justify-content: space-between; cursor: copy; animation: glow 1.2s var(--ease); }
.reveal__copy { display: none; font: 500 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); align-items: center; gap: 4px; }
.reveal.is-torn .reveal__copy { display: inline-flex; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(154,205,50,.6); } 100% { box-shadow: 0 0 0 14px rgba(154,205,50,0); } }

.deal-btn { height: 48px; width: 100%; }
.deal-btn .icon { transition: transform .2s; }
.deal-btn:hover .icon { transform: translate(2px, -2px); }

/* Expired */
.ticket.is-expired { background: #FBFCFD; }
.ticket.is-expired .ticket__title a, .ticket.is-expired .ticket__store { color: var(--muted); }
.ticket.is-expired .mark { filter: grayscale(1); opacity: .7; }
.ticket.is-expired .reveal__cover { background: #C9D4D8; color: var(--ink-2); }
.ticket.is-expired .reveal__cover::after { background-image: radial-gradient(circle at 0 6px, #C9D4D8 3px, transparent 3.5px); }
.ticket.is-expired .reveal__code { border-color: #C9D4D8; background: var(--ground); color: var(--muted); }
.ticket.is-expired .btn--redeem { background: #D98C8C; box-shadow: 0 4px 0 #BD6F6F; }
.expired-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--redeem); background: var(--danger-bg); padding: 3px 8px; border-radius: 999px; }

/* List view: stub on the right */
@media (min-width: 720px) {
  .tickets.is-list .ticket { flex-direction: row; }
  .tickets.is-list .ticket__main { padding-right: 24px; }
  .tickets.is-list .ticket__stub { width: 270px; flex: none; border-top: 0; border-left: 2px dashed var(--line); align-content: center; }
  .tickets.is-list .ticket__stub::before { top: calc(-1 * var(--notch) - 1px); left: calc(-1 * var(--notch) - 2px); clip-path: inset(50% 0 0 0); }
  .tickets.is-list .ticket__stub::after { top: auto; bottom: calc(-1 * var(--notch) - 1px); right: auto; left: calc(-1 * var(--notch) - 2px); clip-path: inset(0 0 50% 0); }
  .tickets.is-list .ticket__desc { -webkit-line-clamp: 3; }
}

/* Inline ad inside grid */
.ad-slot {
  display: grid; place-items: center; text-align: center; gap: 6px;
  background: repeating-linear-gradient(-45deg, #F6FAFB 0 10px, #EEF4F6 10px 20px);
  border: 1px dashed #C6D6DC; border-radius: 12px; color: var(--muted); font-size: 12px;
}
.ad-slot b { font: 500 11px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; }
.ad-slot--300x250 { width: 100%; max-width: 300px; aspect-ratio: 300 / 250; margin-inline: auto; }
.ad-slot--728x90 { width: 100%; max-width: 728px; aspect-ratio: 728 / 90; margin-inline: auto; }
.ad-slot--grid { min-height: 300px; }
.tickets.is-list .ad-slot--grid { min-height: 0; aspect-ratio: 728 / 90; max-width: 728px; width: 100%; margin-inline: auto; }

/* Expired drawer */
.expired-block { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.expired-block summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font: 500 16px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.expired-block summary::-webkit-details-marker { display: none; }
.expired-block summary .count { color: var(--muted); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 14px; }
.expired-block summary .icon { margin-left: auto; transition: transform .3s var(--ease); }
.expired-block[open] summary .icon { transform: rotate(180deg); }
.expired-block .tickets { padding: 4px 20px 20px; }
.expired-block p.note { padding: 0 20px; color: var(--muted); font-size: 14px; }

.load-more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- Widgets (sidebar) ---------- */
.widget { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.widget__title { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget__title::before { content: ""; width: 14px; height: 2px; background: var(--redeem); }

.share-cta {
  position: relative; overflow: hidden; display: block; border-radius: 14px; padding: 20px; color: #fff;
  background: linear-gradient(135deg, var(--ocean), var(--deep));
}
.share-cta:hover { color: #fff; }
.share-cta b { display: block; font: 500 22px/1.1 var(--font-display); text-transform: uppercase; }
.share-cta span { font-size: 14px; color: #D5F1FA; }
.share-cta svg { position: absolute; right: -10px; bottom: -14px; width: 96px; height: 96px; opacity: .25; transition: transform .5s var(--ease), opacity .3s; }
.share-cta:hover svg { transform: rotate(-12deg) scale(1.1); opacity: .45; }

.subscribe p { font-size: 14px; color: var(--ink-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(41,148,180,.18); }
.subscribe form { display: grid; gap: 10px; }
.form-msg { font-size: 13px; color: var(--leaf); min-height: 1em; margin: 0; }

.cat-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 14px; transition: padding .2s, color .2s; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover { padding-left: 10px; color: var(--ocean); }
.cat-list small { background: var(--ground); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.cat-list--scroll { max-height: 340px; overflow-y: auto; padding-right: 6px; }

.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.store-list a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; }
.store-list a:hover { color: var(--ocean); }
.store-list small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- Popular stores grid ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.store-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.store-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--ink); border-color: #C3DDE6; }
.store-tile:hover .mark { transform: rotate(-6deg) scale(1.06); }
.store-tile .mark { width: 60px; height: 60px; border-radius: 14px; font-size: 22px; transition: transform .35s var(--ease); }
.store-tile b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.store-tile small { color: var(--muted); font-size: 12px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--ocean); margin-bottom: 14px; }
.step__ico .icon { width: 26px; height: 26px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }
.step::after { counter-increment: step; content: counter(step); position: absolute; right: 18px; top: 12px; font: 600 48px/1 var(--font-display); color: var(--line-2); }

/* Newsletter band */
.news-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.news-band h2 { font-size: calc(clamp(1.6rem, 3vw, 2.3rem) * var(--heading-scale)); text-transform: var(--heading-transform); }
.news-band p { color: #B9CCD3; margin: 8px 0 0; }
.news-band form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-band .input { flex: 1; min-width: 200px; border: 0; height: 52px; }
.news-band .btn { height: 52px; }
.news-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.12); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-card__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, hsl(var(--h) 70% 88%), hsl(calc(var(--h) + 30) 70% 80%)); display: grid; place-items: center; color: hsl(var(--h) 50% 35%); overflow: hidden; }
.post-card__img .icon { width: 48px; height: 48px; stroke-width: 1.4; transition: transform .5s var(--ease); }
.post-card:hover .post-card__img .icon { transform: scale(1.15) rotate(-6deg); }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.post-card h3 { font-size: 20px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--ocean); }
.post-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- Page header (archives) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky), var(--ocean)); color: #fff; padding-block: 30px 34px; }
.page-hero h1 { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--heading-scale)); text-transform: var(--heading-transform); }
.page-hero p { color: #E4F6FC; margin: 8px 0 0; max-width: 60ch; }
.breadcrumbs { font-size: 13px; margin-bottom: 12px; color: #D5F1FA; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; opacity: .6; }
.breadcrumbs li[aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs a { color: #fff; }
.breadcrumbs span[aria-hidden] { opacity: .6; }

/* Store hero */
.store-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.store-hero .mark--lg { background: #fff; border: 0; box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(.6) rotate(-10deg); opacity: 0; } }
.store-hero__url { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; margin-top: 6px; }
.store-hero__url:hover { color: var(--ice); }
.store-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.store-stats div { background: rgba(255,255,255,.15); border-radius: 12px; padding: 10px 16px; min-width: 96px; }
.store-stats b { display: block; font: 500 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.store-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #D5F1FA; }

.about-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-top: 28px; }
.about-box h2 { font-size: 22px; margin-bottom: 10px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-display); color: var(--ocean); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 0 0 12px; }

/* ---------- Stores A–Z ---------- */
.az-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 20; background: rgba(242,247,249,.94); backdrop-filter: blur(8px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.az-bar .container { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.az-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.az-letters a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font: 500 14px/1 var(--font-display); color: var(--ink); background: #fff; border: 1px solid var(--line); transition: background .2s, color .2s, transform .2s; }
.az-letters a:hover, .az-letters a.is-active { background: var(--ocean); color: #fff; border-color: var(--ocean); transform: translateY(-2px); }
.az-letters a.is-empty { opacity: .35; pointer-events: none; }
.az-filter { position: relative; margin-left: auto; min-width: 240px; flex: 1; max-width: 320px; }
.az-filter .input { padding-left: 38px; }
.az-filter .icon { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.az-group { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.az-group h2 { font-size: 56px; line-height: .9; color: var(--ocean); }
.az-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.az-items a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); background: #fff; border: 1px solid transparent; transition: border-color .2s, transform .2s; font-size: 14px; }
.az-items a:hover { border-color: var(--ocean); transform: translateX(3px); }
.az-items small { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.az-items a.is-zero small { color: #B8C7CD; }
.az-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Categories page */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cat-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--ocean), var(--sky)); transform: translateX(-101%); transition: transform .45s var(--ease); }
.cat-card > * { position: relative; }
.cat-card:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--ocean); }
.cat-card:hover::before { transform: none; }
.cat-card .chip__ico { width: 46px; height: 46px; border-radius: 12px; }
.cat-card:hover .chip__ico { background: rgba(255,255,255,.2); color: #fff; }
.cat-card b { display: block; font-weight: 600; }
.cat-card small { color: var(--muted); transition: color .3s; }
.cat-card:hover small { color: #E4F6FC; }
.cat-card.is-zero { opacity: .6; }

/* ---------- Single coupon ---------- */
.coupon-single { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.coupon-single__top { display: grid; grid-template-columns: 1fr 320px; }
.coupon-single__main { padding: 28px; display: grid; gap: 14px; align-content: start; }
.coupon-single__main h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.coupon-single__stub { position: relative; padding: 28px; background: var(--ground); border-left: 2px dashed var(--line); display: grid; gap: 14px; align-content: center; }
.coupon-single__stub::before, .coupon-single__stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground); border: 1px solid var(--line); }
.coupon-single__stub::before { top: -13px; background: var(--ground); }
.coupon-single__stub::after { bottom: -13px; }
.coupon-single .reveal { height: 58px; }
.coupon-single .reveal__code { font-size: 22px; }
.stub-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.detail-list li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.detail-list .icon { color: var(--ocean); }
.coupon-single__body { padding: 0 28px 24px; border-top: 1px solid var(--line-2); }
.coupon-single__body h2 { font-size: 22px; margin: 22px 0 10px; }
.prose { max-width: 70ch; color: var(--ink-2); overflow-wrap: anywhere; }
.prose--card { max-width: none; }
.prose--card > * { max-width: 80ch; }
.prose ul { padding-left: 20px; }
.coupon-single__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 28px; background: var(--ground); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.share-btns { display: flex; gap: 6px; margin-left: auto; }
.share-btns a, .share-btns button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, color .2s, transform .2s; }
.share-btns a:hover, .share-btns button:hover { background: var(--ocean); color: #fff; transform: translateY(-2px); }
.share-btns .icon { width: 15px; height: 15px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.notice--expired { background: var(--danger-bg); color: #7A1010; }
.notice--info { background: var(--tint); color: var(--deep); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--ground); color: var(--ink-2); }
.tag-list a:hover { background: var(--ocean); color: #fff; }

/* ---------- Forms / auth / dashboard ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--muted); }
.req { color: var(--redeem); }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-picker label { position: relative; display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.type-picker input { position: absolute; opacity: 0; }
.type-picker b { font-family: var(--font-display); font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.type-picker span { font-size: 12px; color: var(--muted); }
.type-picker label:has(input:checked) { border-color: var(--ocean); background: var(--tint); }
.type-picker label:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }
.dropzone { display: grid; place-items: center; gap: 6px; text-align: center; padding: 24px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); cursor: pointer; transition: border-color .2s, background-color .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ocean); background: var(--tint); }
.dropzone img { max-height: 120px; border-radius: 8px; }
.counter-hint { text-align: right; }
.preview-wrap { position: sticky; top: 90px; }
.preview-wrap h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.auth__art { position: relative; background: linear-gradient(160deg, var(--sky), var(--deep)); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth__art h2 { font-size: 36px; text-transform: var(--heading-transform); }
.auth__art ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.auth__art li { display: flex; gap: 10px; align-items: center; }
.auth__form { padding: 40px; display: grid; align-content: center; gap: 18px; }
.auth__form form { display: grid; gap: 14px; }
.auth__form form[hidden] { display: none; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--ocean); }
.strength { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--redeem); transition: width .3s var(--ease), background-color .3s; }

.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; position: sticky; top: 90px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dash-user small { display: block; color: var(--muted); }
.dash-nav button, .dash-nav a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); text-align: left; font-weight: 500; }
.dash-nav button:hover, .dash-nav a:hover { background: var(--ground); color: var(--ink); }
.dash-nav button[aria-selected="true"] { background: var(--tint); color: var(--deep); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kpi b { display: block; font: 500 30px/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font: 500 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--ground); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--leaf); background: #EDF6E3; }
.status--pending { color: var(--warn); background: var(--warn-bg); }
.status--expired { color: var(--redeem); background: var(--danger-bg); }
.row-actions { display: flex; gap: 6px; }
.row-actions a { font-size: 13px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 18px; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-2); }
.modal::backdrop { background: rgba(21,48,58,.55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal__head h3 { font-size: 20px; }
.modal__body { padding: 20px 22px; display: grid; gap: 12px; }
.modal__foot { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.radio-list { display: grid; gap: 6px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--ocean); background: var(--tint); }
.radio-list input { accent-color: var(--ocean); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ground); display: grid; place-items: center; }

/* Code modal (after reveal on single) */
.code-modal .big-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px dashed var(--leaf); background: #F4FAEA; border-radius: 12px; padding: 14px 16px; font: 600 24px/1 var(--font-mono); color: #2C4A10; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-2); font-size: 14px; animation: toast-in .4s var(--ease) both; }
.toast .icon { color: var(--lime); }
.toast.is-leaving { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: var(--sky); color: var(--footer-text); position: relative; }
.site-footer.has-perforation::before { /* perforated top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 18px;
  background: radial-gradient(circle at 12px 9px, var(--ground) 7px, transparent 7.5px) 0 0 / 24px 18px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.site-footer .footer-title { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--ink); }
.site-footer li small { color: #D5F1FA; display: block; font-size: 12px; }
.footer-logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-logo img { width: calc(var(--logo-width) * 1.05); max-width: 100%; height: auto; }
.footer-brand p { color: #E4F6FC; font-size: 14px; margin-top: 14px; max-width: 34ch; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; transition: background .2s, transform .2s; }
.social a:hover { background: #fff; color: var(--deep); transform: translateY(-2px); }
.footer-bottom { background: var(--deep); font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom a { color: #DDF3FA; font: 400 12px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.footer-bottom p { margin: 0; color: #C6E9F5; }
.disclosure { font-size: 12px; color: #D5F1FA; border-top: 1px solid rgba(255,255,255,.2); padding-block: 14px; }

.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--redeem); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top > .icon { transform: rotate(180deg); }
.to-top svg.ring { position: absolute; inset: -3px; width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--redeem); stroke-width: 2; stroke-dasharray: 157; stroke-dashoffset: 157; }

/* Scroll reveal (only applied by JS to below-the-fold elements) */
.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.will-reveal.is-in { opacity: 1; transform: none; }

/* Template index (dev only) */
.tpl-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tpl-index a { display: grid; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.tpl-index a:hover { border-color: var(--ocean); }
.tpl-index small { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .site-header .header-search { display: none; }
  .hero .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .coupon-single__top { grid-template-columns: minmax(0, 1fr); }
  .coupon-single__stub { border-left: 0; border-top: 2px dashed var(--line); }
  .coupon-single__stub::before { top: -13px; left: -13px; }
  .coupon-single__stub::after { top: -13px; bottom: auto; left: auto; right: -13px; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .news-band { grid-template-columns: 1fr; padding: 26px; }
  .store-hero { grid-template-columns: auto 1fr; }
  .store-hero .store-stats { grid-column: 1 / -1; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { padding: 28px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .dash-user { display: none; }
  .dash-nav button, .dash-nav a { width: auto; white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .logo img { width: min(var(--logo-width), 150px); }
  .topbar nav { display: none; }
  .hero { padding-top: 30px; }
  .hero-search input { padding-right: 16px; height: 56px; }
  .hero-search .btn { position: static; width: 100%; margin-top: 10px; }
  .hero__stats { gap: 18px; }
  .hero__stats b { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .type-picker { grid-template-columns: 1fr; }
  .az-group { grid-template-columns: 1fr; gap: 8px; }
  .az-group h2 { font-size: 40px; }
  .az-filter { min-width: 0; max-width: none; margin-left: 0; }
  .card, .auth__form { padding: 20px; }
  .coupon-single__main, .coupon-single__stub { padding: 20px; }
  .coupon-single__body { padding: 0 20px 20px; }
  .coupon-single__bar { padding: 14px 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .chip-marquee__track { animation: none; }
  .chip-marquee { overflow-x: auto; }
  .will-reveal { opacity: 1; transform: none; }
}

.layout > *, .dash > * { min-width: 0; }

/* ---------- Mobile polish ---------- */
@media (max-width: 860px) {
  .table--stack { min-width: 0; }
  .table--stack thead { display: none; }
  .table--stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .table--stack tr:last-child { border-bottom: 0; }
  .table--stack td { display: block; padding: 0; border: 0; }
  .table--stack td:first-child, .table--stack td[colspan] { grid-column: 1 / -1; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; font: 500 10px/1.4 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 560px) {
  .section { padding-block: 32px; }
  .section--tight { padding-block: 20px; }
  .page-hero { padding-block: 22px 26px; }
  .hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
  .store-hero { grid-template-columns: 64px 1fr; gap: 14px 16px; }
  .store-hero .mark--lg { width: 64px; height: 64px; border-radius: 14px; font-size: 22px; align-self: start; }
  .store-hero h1 { font-size: 1.8rem; }
  .store-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .store-stats div { min-width: 0; padding: 10px; }
  .store-stats b { font-size: 22px; }
  .store-stats span { font-size: 10px; }
  .toolbar { gap: 10px; }
  .toolbar__right { width: 100%; justify-content: space-between; }
  .expired-block summary { flex-wrap: wrap; }
  .expired-block summary .count { order: 3; flex-basis: 100%; padding-left: 30px; }
  .expired-block .tickets { padding: 4px 14px 14px; }
  .coupon-single__main h1 { font-size: 1.7rem; }
  .coupon-single .ticket__head .vote { order: 3; flex-basis: 100%; margin-left: 0; }
  .dash-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .coupon-single__bar { gap: 10px; }
  .share-btns { margin-left: 0; }
  .news-band { padding: 22px; border-radius: 16px; }
  .news-band .input, .news-band .btn { width: 100%; }
  .section-head h2 { font-size: 1.5rem; }
  .carousel__track { grid-auto-columns: 82%; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .store-tile { padding: 16px 8px; }
  .cat-grid { grid-template-columns: 1fr; }
  .post-grid, .tickets { grid-template-columns: minmax(0, 1fr); }
  .kpi b { font-size: 24px; }
  .auth__art { padding: 22px; }
  .auth__art h2 { font-size: 26px; }
  .auth__art .float-ticket { display: none; }
  .footer-grid { gap: 24px; padding-block: 36px 24px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .az-bar { top: calc(env(safe-area-inset-top, 0px) + 60px); }
  .az-letters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .az-letters a { flex: none; }
  .ad-slot--728x90 { aspect-ratio: 320 / 100; max-width: 320px; }
  .to-top { right: 12px; }
}
@media (max-width: 360px) {
  .logo img { width: min(var(--logo-width), 130px); }
  .topbar__right { gap: 10px; }
  .topbar__live span:last-child { display: none; }
  .hero h1 { font-size: 2rem; }
  .vote--compact .vote__btn { width: 24px; height: 24px; }
}
@media (hover: none) {
  .reveal:hover .reveal__cover { right: 42px; }
}

/* ==========================================================================
   WordPress integration
   ========================================================================== */
.no-motion { --ease: linear; }
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
body:not(.headings-upper) { --heading-transform: none; }
.wcc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.logo__text { font: 600 22px/1 var(--font-display); color: var(--ink); text-transform: uppercase; }
.center { text-align: center; }
.narrow { max-width: 720px; }
.lead { font-size: 1.1em; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.hide-mobile { }
.bg-white { background: var(--paper); }
.bg-tint { background: var(--tint); }
.bg-brand { background: linear-gradient(180deg, var(--sky), var(--ocean)); color: #fff; }
.bg-brand .section-head h2, .bg-brand .section-head h2 em, .bg-brand .eyebrow { color: #fff; }
.space-tight { padding-block: 24px; }
.space-none { padding-block: 0; }
.section.space-none + .section.space-none { margin-top: 0; }
.section + .section.bg-white, .section.bg-white + .section { border-top: 0; }

/* Menus */
.main-nav__list, .topbar__list, .footer-bottom__list, .drawer__list, .footer-list { list-style: none; margin: 0; padding: 0; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: #fff; color: var(--deep); }
.main-nav .sub-menu {
  position: absolute; left: 0; top: calc(100% + 12px); min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.main-nav .sub-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.main-nav .sub-menu a:hover { background: var(--tint); color: var(--deep); }
.main-nav .has-mega .sub-menu { display: none; }
.topbar__list { display: flex; gap: 18px; }
.topbar__list a { color: #DDF3FA; text-transform: uppercase; letter-spacing: .08em; font: 400 12px/1 var(--font-display); }
.topbar__right a .icon { width: 16px; height: 16px; }
.drawer__list li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font: 500 18px/1.2 var(--font-display); text-transform: uppercase; color: var(--ink); transition: color .2s, padding .2s; }
.drawer__list li a:hover { color: var(--ocean); padding-left: 6px; }
.drawer__list .sub-menu { list-style: none; padding-left: 14px; margin: 0; }
.drawer__list .sub-menu a { font-size: 15px; text-transform: none; }
.drawer__list--secondary li a { font-size: 15px; color: var(--ink-2); }
.site-footer .footer-bottom__list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-list { display: grid; gap: 8px; font-size: 14px; }
.footer-list small { display: block; color: #D5F1FA; font-size: 12px; }
.footer-list .countdown, .footer-list .expired-flag { display: flex; gap: 4px; align-items: center; background: none; padding: 0; color: #D5F1FA; font-weight: 400; }
.footer-list .countdown .icon, .footer-list .expired-flag .icon { width: 12px; height: 12px; }
.footer-text .prose { color: #E4F6FC; }
.disclosure a { color: inherit; text-decoration: underline; }

/* Search */
.hero-search .search-icon { position: absolute; left: 20px; top: 21px; color: var(--muted); width: 18px; height: 18px; }
.hero-search--light input { border: 1px solid var(--line); }
.page-hero .hero-search { margin-top: 18px; }
.header-search--inline { max-width: none; }
.header-search--inline input { background: var(--ground); }
.page-hero .notice { margin-top: 16px; }

/* Hero */
.hero .float-ticket__stub .icon { width: 22px; height: 22px; stroke: #fff; }
.float-ticket--static { position: relative; margin: 10px auto 28px; animation: none; transform: rotate(-3deg); }
.scissors { stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Sections */
.carousel-wrap .section-head { margin-bottom: 14px; }
.feature-card .reveal, .feature-card .deal-btn { margin-top: auto; }
.steps { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.steps--plain .step::after { content: none; }
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.image-text--reverse .image-text__media { order: 2; }
.image-text__media img { border-radius: 18px; width: 100%; height: auto; }
.image-text__body { display: grid; gap: 14px; justify-items: start; }
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 36px; border-radius: 20px; background: linear-gradient(120deg, var(--ocean), var(--sky)); color: #fff; }
.cta-banner h2 { font-size: calc(1.8rem * var(--heading-scale)); text-transform: var(--heading-transform); }
.cta-banner p { margin: 6px 0 0; color: #E4F6FC; }
.spacer-block { width: 100%; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.card h2 { font-size: 24px; margin-bottom: 14px; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.az-bar .az-letters span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font: 500 14px/1 var(--font-display); color: var(--muted); opacity: .4; }
.az-top { padding-block: 24px 8px; }
.az-list { padding-block: 8px 24px; }
.section--stores-az { padding-top: 0; }
.ad-area { display: flex; justify-content: center; margin-block: 16px; }
.ad-area img { height: auto; }
.ad-slot--grid { padding: 10px; overflow: hidden; }
.ad-slot--grid img { max-width: 100%; height: auto; }
.widget--ad { display: flex; justify-content: center; padding: 12px; overflow: hidden; }
.widget--ad img { height: auto; }
.related { margin-top: 36px; }

/* Toolbar */
.toolbar__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.toolbar__title { font-size: 22px; text-transform: var(--heading-transform); }
.toolbar__count b { color: var(--ink); }
.rss-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--redeem); }
.rss-link:hover { background: var(--danger-bg); color: var(--redeem); }
.tab[aria-pressed="true"] { background: var(--ocean); color: #fff; }
.tab[aria-pressed="true"] .count { background: rgba(255,255,255,.25); }
.page-hero--overlap { padding-bottom: 76px; }
.section--overlap { margin-top: -70px; padding-top: 0; }
.page-hero__text { color: #E4F6FC; max-width: 70ch; }
.page-hero__text p { margin: 8px 0 0; }
.expired-block__title { font: inherit; }
.expired-block summary .count { margin-left: 4px; }
.expired-block summary > .icon:last-child { margin-left: auto; }
.expired-block > .tickets { padding: 4px 20px 20px; }
.expired-flag--block { display: flex; justify-content: center; margin: 0; }
.empty-state { color: var(--muted); padding: 30px 20px; text-align: center; }
.empty-state .icon { width: 36px; height: 36px; margin: 0 auto 8px; }
.tag-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 18px; }
.tag-list a { margin: 2px; }
.store-hero .mark--lg { flex: none; }
.store-hero__url .icon { width: 14px; height: 14px; }
.reveal--lg { height: 58px; }
.reveal--lg .reveal__code { font-size: 22px; }
.reveal__cover { font-size: 13px; letter-spacing: .03em; padding-inline: 8px; }
.reveal__cover span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.reveal--lg .reveal__cover { font-size: 15px; }
.coupon-single .detail-list .countdown, .coupon-single .detail-list .expired-flag { background: none; padding: 0; }
.coupon-single__stub .btn--ghost { background: #fff; }
.mark--logo { background: #fff; padding: 3px; }
.mark--logo img { width: 100%; height: 100%; object-fit: contain; }

/* Notices */
.notice--success { background: #EDF6E3; color: #2F5214; }
.notice--error { background: var(--danger-bg); color: #7A1010; }
.notice .icon { flex: none; margin-top: 2px; }
.card > .notice, .auth__form > .notice, .dash + .notice { margin-bottom: 16px; }

/* Forms */
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn--danger { color: var(--redeem); }
.btn--danger:hover { border-color: var(--redeem); background: var(--danger-bg); }
input.input[type="date"] { height: 46px; }
.input--sm { min-height: 34px; padding: 4px 8px; width: auto; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend, .field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: block; }
.type-picker b { display: flex; align-items: center; gap: 6px; }
.layout--form { grid-template-columns: minmax(0, 1fr) 320px; }
.strength i[data-score="0"], .strength i[data-score="1"] { background: var(--redeem); }
.strength i[data-score="2"] { background: var(--warn); }
.strength i[data-score="3"] { background: var(--lime); }
.strength i[data-score="4"] { background: var(--leaf); }
.auth--single { min-height: 0; grid-template-columns: minmax(0, 520px); justify-content: center; background: none; border: 0; }
.auth--single .auth__form { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.auth-form { display: grid; gap: 14px; }
.auth-form h2 { font-size: 26px; }
.auth__icon { width: 120px; height: 120px; opacity: .25; stroke: #fff; align-self: flex-end; }
.dash-user img { border-radius: 50%; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.mini-list a { color: var(--ink); font-weight: 500; }
.mini-list a:hover { color: var(--ocean); }
.mini-list small { display: block; color: var(--muted); font-size: 12px; }
.cat-list a[aria-current] { color: var(--ocean); font-weight: 600; }

/* Newsletter plugin forms */
.newsletter-form form, .newsletter-form .tnp-form { display: grid; gap: 10px; }
.newsletter-form input[type="email"], .newsletter-form input[type="text"] {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; font: inherit;
}
.newsletter-form input[type="submit"], .newsletter-form button {
  min-height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--ocean); color: #fff; cursor: pointer;
  font: 500 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em; width: 100%;
}
.newsletter-form input[type="submit"]:hover, .newsletter-form button:hover { background: var(--deep); }
.newsletter-form .tnp-field { margin: 0; }
.newsletter-form .tnp.tnp-subscription-minimal { margin: 0; padding: 0; background: none; max-width: none; }
.newsletter-form .tnp.tnp-subscription-minimal form { text-align: left !important; }
.newsletter-form .tnp.tnp-subscription-minimal input.tnp-email {
  display: block; width: 100%; max-width: none; min-height: 44px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; font: inherit; color: var(--ink);
}
.newsletter-form .tnp.tnp-subscription-minimal input.tnp-submit {
  display: block; width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 0 22px; border: 0; border-radius: var(--radius-sm); background: var(--ocean); color: #fff; cursor: pointer;
  font: 500 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
}
.newsletter-form .tnp.tnp-subscription-minimal input.tnp-submit:hover { background: var(--deep); }
.newsletter-form--band .tnp.tnp-subscription-minimal input.tnp-email { flex: 1 1 220px; width: auto; height: 52px; border: 0; }
.newsletter-form--band .tnp.tnp-subscription-minimal input.tnp-submit { flex: 0 0 auto; width: auto; height: 52px; background: var(--redeem); }
.newsletter-form--band .tnp.tnp-subscription-minimal input.tnp-submit:hover { background: var(--redeem-deep, var(--redeem)); filter: brightness(.92); }
.newsletter-form label { font-size: 13px; }
.newsletter-form--band form, .newsletter-form--band .tnp-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form--band input[type="email"] { flex: 1; min-width: 200px; height: 52px; border: 0; }
.newsletter-form--band input[type="submit"], .newsletter-form--band button { width: auto; height: 52px; padding: 0 22px; background: var(--redeem); }

/* Pagination */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 28px 0 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font: 500 14px/1 var(--font-display); }
.pagination a:hover { border-color: var(--ocean); color: var(--ocean); }
.pagination .current { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.pagination .dots { background: none; border: 0; }

/* Entries */
.entry > * + * { margin-top: 1em; }
.entry img { border-radius: 12px; }
.entry__image { margin: 0 0 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #E4F6FC; margin: 10px 0 0; }
.post-meta a { color: #fff; }
.post-meta .icon { width: 14px; height: 14px; vertical-align: -2px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.word-count { font-weight: 600; margin-right: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { font-size: 26px; margin: 1.2em 0 .5em; }
.prose h3 { font-size: 21px; margin: 1.1em 0 .4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--ocean); background: var(--tint); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image figcaption { font-size: 13px; color: var(--muted); }
.page-links { display: flex; gap: 6px; margin-top: 20px; }
.comments { margin-top: 32px; border-top: 1px solid var(--line-2); padding-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-respond input:not([type="submit"]):not([type="checkbox"]), .comment-respond textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.comment-respond input[type="submit"] { border: 0; border-radius: var(--radius-sm); background: var(--ocean); color: #fff; padding: 12px 20px; cursor: pointer; }
.sticky, .bypostauthor, .gallery-caption { }

@media (max-width: 1100px) {
  .layout--form { grid-template-columns: minmax(0, 1fr); }
  .preview-wrap { position: static; }
  .main-nav .sub-menu { display: none; }
}
@media (max-width: 860px) {
  .image-text, .contact { grid-template-columns: minmax(0, 1fr); }
  .image-text--reverse .image-text__media { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hide-mobile { display: none !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-banner { padding: 22px; }
  .toolbar__left { width: 100%; }
  .reveal__cover { font-size: 14px; }
  .newsletter-form--band input[type="submit"], .newsletter-form--band button { width: 100%; }
}
@media (max-width: 1100px) and (min-width: 561px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
