/* ==========================================================================
   CouponBuzz — Design System
   Palette: Rich emerald + dark slate with a warm gold accent. Professional,
   glossy, modern.
   ========================================================================== */

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-deep: #065F46;
  --primary-soft: #E7FBF4;
  --primary-softer: #F2FDF9;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-soft: #FEF3C7;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --surface: #FFFFFF;
  --bg: #F5F8F7;
  --bg-2: #EAF1EE;
  --line: #E2EAE7;
  --line-strong: #C9D6D1;
  --danger: #EF4444;
  --warning: #F59E0B;
  --grad: linear-gradient(135deg, #047857 0%, #10B981 60%, #059669 100%);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 16px 40px -12px rgba(6,95,70,.26);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.section-head { margin-bottom: 28px; }
.section-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 6px; }
.section-head p { color: var(--muted); max-width: 640px; }
.section-head .row, .section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; line-height: 1; border-radius: var(--radius-sm);
  padding: 12px 20px; border: 1px solid transparent; transition: all .18s ease;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -6px rgba(16,185,129,.55); position: relative; overflow: hidden; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 8px 22px -6px rgba(5,150,105,.55); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-softer); }
.btn--accent { background: var(--accent); color: #33260A; box-shadow: 0 6px 18px -8px rgba(245,158,11,.65); position: relative; overflow: hidden; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--lg { padding: 15px 26px; font-size: 15.5px; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; border-radius: var(--radius-xs); }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* Glossy sheen sweep across primary/accent buttons */
.btn--primary::after, .btn--accent::after {
  content: ''; position: absolute; top: -60%; left: -80%; width: 55%; height: 220%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(20deg); pointer-events: none;
  animation: btnSheen 4.5s infinite ease-in-out;
}
@keyframes btnSheen {
  0%, 55% { left: -80%; }
  85%, 100% { left: 130%; }
}
.btn--ghost::after { display: none; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong);
  transition: all .18s ease; cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px -4px rgba(16,185,129,.5); }
.chip--soft { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 650; border-radius: 999px; padding: 4px 10px; line-height: 1.4;
}
.badge--verified { background: var(--accent-soft); color: var(--accent-dark); }
.badge--new { background: var(--accent-soft); color: var(--accent-dark); }
.badge--expiring { background: #FFF4E5; color: #C2410C; }
.badge--usd { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Fields ---------- */
.field { position: relative; }
.input, .select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.input::placeholder { color: #94A3B8; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.label { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }

.hero-search { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.hero-search .input--search { border: 0; padding: 16px 18px 16px 52px; font-size: 16px; border-radius: 14px; box-shadow: var(--shadow-md); width: auto; flex: 1 1 auto; min-width: 0; }
.hero-search .input--search:focus { box-shadow: var(--shadow-lg); }
.hero-search .search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo .logo-mark { width: 36px; height: 36px; flex: none; }
.logo .logo-buzz { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 9px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  transition: all .15s ease;
}
.nav a:hover { color: var(--primary); background: var(--primary-softer); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.country-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  background: var(--primary-softer); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 650; color: var(--ink); transition: all .15s ease;
}
.country-pill:hover { border-color: var(--primary); background: var(--primary-soft); }
.country-pill .flag { font-size: 17px; line-height: 1; }
.country-pill .cur { color: var(--muted); font-weight: 600; }

.nav-burger { display: none; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--ink); }
.nav-burger:hover { background: var(--bg-2); }

/* Mobile nav — collapsed menu + dropdown */
.nav.is-open {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 59;
  background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 18px; box-shadow: var(--shadow-md);
}
.nav.is-open a { padding: 12px 10px; border-radius: 10px; font-size: 15.5px; }
@media (max-width: 1024px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .nav-burger { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-left: 2px; }
}
@media (max-width: 720px) {
  .header-inner { gap: 12px; }
  .country-pill { padding: 7px 10px 7px 9px; gap: 6px; }
  .country-pill .name { display: none; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .container { padding: 0 16px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo .logo-mark { width: 30px; height: 30px; }
  .country-pill .cur { display: none; }
  .country-pill .flag { font-size: 15px; }
  .nav.is-open { padding: 10px 16px 16px; }
}
@media (max-width: 400px) {
  .logo span { display: none; }
  .hero-stats { gap: 8px; }
  .hero-stat b { font-size: 17px; }
  .hero-stat span { font-size: 9.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(52,211,153,.55), transparent 60%),
    radial-gradient(900px 420px at -10% 120%, rgba(52,211,153,.28), transparent 55%),
    linear-gradient(135deg, #059669 0%, #047857 55%, #10B981 100%);
}
.hero-inner { padding: 88px 0 104px; max-width: 820px; margin: 0 auto; text-align: center; }
.hero .tagline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); letter-spacing: -.025em; margin-bottom: 14px; }
.hero h1 .em { color: #A7F3D0; }
.hero .lead { font-size: 17px; opacity: .92; max-width: 620px; margin: 0 auto 28px; }
.hero-stats { display: flex; gap: 16px; margin-top: 38px; }
.hero-stat { flex: 1 1 0; min-width: 0; text-align: center; }
.hero-stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.hero-stat span { font-size: 12.5px; opacity: .85; line-height: 1.35; display: block; }
.hero-trust { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; opacity: .9; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) and (min-width: 621px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .2s ease; color: var(--ink);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: var(--ink); }
.cat-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.cat-tile b { font-size: 16px; }
.cat-tile span { font-size: 13px; color: var(--muted); }

/* ---------- Coupon cards ---------- */
.coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .coupon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .coupon-grid, .cat-grid { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .2s ease; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

/* --- Banner (top color-field with big brand logo) --- */
.card-banner {
  position: relative; height: 108px; overflow: hidden;
  display: grid; place-items: center; flex: none;
  border-bottom: 1px solid var(--line);
  background-size: cover; background-position: center;
}
.card-banner-hasimg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,95,70,.25) 0%, rgba(6,95,70,.05) 55%, rgba(2,44,34,.6) 100%);
}
.card-banner-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(240px 110px at 82% -20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(260px 120px at 8% 120%, rgba(0,0,0,.18), transparent 60%);
}
.card-banner-logo { position: relative; z-index: 1; height: 58px; width: auto; max-width: 62%; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(0,0,0,.28)); }
.card-banner-logo.is-fallback { display: none; }
.card-banner-logo.logo-on-chip { background: #fff; padding: 7px; border-radius: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.26); }
.card-banner-logo:not(.is-fallback) ~ .card-banner-letter { display: none; }
.card-banner-letter {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px; font-weight: 800; font-size: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.25);
}

/* --- Card body --- */
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-tile {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.01em; overflow: hidden;
  position: relative; box-shadow: 0 3px 10px -3px rgba(15,23,42,.35);
}
.brand-tile svg { width: 30px; height: 30px; }
.card-headline { min-width: 0; }
.card-title { display: block; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

.card-rating { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; }
.card-rating .stars { color: #F5B301; font-size: 13px; letter-spacing: 1px; line-height: 1; }
.card-rating .stars i { display: none; }
.card-rating em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); }
.card-uses { font-size: 10.5px; color: var(--muted); font-weight: 600; }

.card-value { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 8px; flex-wrap: wrap; }
.card-value .local { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.card-value .usd { font-size: 13px; color: var(--muted); font-weight: 600; }
.card-offer {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800;
  color: var(--primary-deep); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid rgba(16,185,129,.28); border-radius: 999px; padding: 5px 14px; letter-spacing: -.01em;
}
.card-offer .tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.card-desc { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; min-height: 42px; }

/* --- Masked code row ("BN8•••" + Get Code) --- */
.card-code-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 12px; }
.code-box {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 14px; min-width: 0;
}
.code-mask { font-size: 16px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); font-family: 'SF Mono', Consolas, monospace; }
.code-box .code-v { display: none; }

.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; margin-bottom: 14px; }
.meta-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.meta-pill .flags { display: inline-flex; }
.meta-pill .flags .flag { font-size: 14px; line-height: 1; letter-spacing: -3px; }
.count-label { font-size: 12px; color: var(--muted); font-weight: 600; }

.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; }
.card-actions .btn--primary { background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 55%, var(--accent) 100%); background-size: 200% 200%; box-shadow: 0 6px 18px -6px rgba(245,158,11,.7); color: #33260A; }
.card-actions .btn--primary:hover { background-position: 100% 50%; transform: translateY(-1px); }
.card-get-code { animation: getPulse 2.2s infinite ease-in-out; position: relative; z-index: 1; }
.card-get-code::after {
  content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, rgba(245,158,11,.5), rgba(251,191,36,.25), rgba(245,158,11,.5));
  filter: blur(6px); opacity: .7; animation: getPulse 2.2s infinite ease-in-out;
}
@keyframes getPulse {
  0%, 100% { box-shadow: 0 6px 18px -6px rgba(245,158,11,.55); transform: scale(1); }
  50% { box-shadow: 0 8px 26px -4px rgba(245,158,11,.9); transform: scale(1.035); }
}
.card-actions .btn--ghost { color: var(--ink-2); }
.clickable { cursor: pointer; }

.card-popular { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--accent-dark); }

/* ---------- Toolbar / filters ---------- */
.toolbar {
  display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 12px; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  margin-bottom: 26px;
}
@media (max-width: 860px) { .toolbar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .toolbar { grid-template-columns: 1fr; } }
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.results-line b { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step .num { font-size: 13px; font-weight: 800; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.step .ico { position: absolute; right: 20px; top: 20px; font-size: 26px; opacity: .35; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.why .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 14px; }
.why h3 { font-size: 16.5px; }
.why p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 22px; color: #fff; padding: 48px 40px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #059669, #10B981 70%, #34D399);
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-banner p { opacity: .9; margin-bottom: 22px; max-width: 560px; }
.cta-banner .btn--accent { background: #fff; color: var(--primary-deep); }
.cta-banner .btn--accent:hover { background: #FEF3C7; color: var(--accent-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: none; border: 0; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.faq-q .chev { transition: transform .2s ease; color: var(--muted); flex: none; }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq-item.is-open .faq-a { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1220; color: #9FB0C8; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; font-size: 21px; }
.footer-brand p { color: #8EA0BB; max-width: 300px; margin-top: 14px; }
.foot-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col a { color: #9FB0C8; }
.foot-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1B2940; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-soc { display: flex; gap: 10px; }
.footer-soc a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #24324B; color: #9FB0C8; transition: all .15s ease; }
.footer-soc a:hover { border-color: var(--primary); color: #fff; background: var(--primary); }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { opacity: .5; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(11,18,32,.55);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  width: 100%; max-width: 520px; max-height: min(680px, 88vh); background: #fff;
  border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; margin: 0; }
.modal-close { border: 0; background: var(--bg-2); width: 32px; height: 32px; border-radius: 9px; color: var(--ink-2); font-size: 16px; display: grid; place-items: center; }
.modal-close:hover { background: var(--line); }
.modal-search { padding: 14px 22px 6px; }
.modal-search .input { padding: 11px 14px; }
.country-list { overflow-y: auto; padding: 10px 12px 16px; }
.country-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px;
  background: none; border: 0; border-radius: 11px; font-size: 14.5px; text-align: left; color: var(--ink);
}
.country-item:hover { background: var(--primary-softer); }
.country-item .flag { font-size: 20px; line-height: 1; }
.country-item b { font-weight: 650; }
.country-item .cur { margin-left: auto; color: var(--muted); font-size: 13px; }
.country-item.is-active { background: var(--primary-soft); }
.country-item.is-active b { color: var(--primary-dark); }
.country-item .check { margin-left: 10px; color: var(--accent); display: none; }
.country-item.is-active .check { display: inline; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px; background: #0B1220; color: #fff; font-size: 14px; font-weight: 600;
  padding: 13px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
}
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Pages: coupon detail ---------- */
.coup-banner {
  position: relative; padding: 34px 0 30px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-size: cover; background-position: center;
}
.coup-banner-hasimg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,95,70,.32) 0%, rgba(6,95,70,.1) 50%, rgba(2,44,34,.7) 100%);
}
.coup-banner-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 180px at 85% -40%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(460px 200px at 5% 130%, rgba(0,0,0,.2), transparent 60%);
}
.coup-banner-logo-link { position: relative; z-index: 1; display: inline-block; }
.coup-banner-logo { height: 64px; width: auto; max-width: 260px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.coup-banner-logo.is-fallback { display: none; }
.coup-banner-logo.logo-on-chip { background: #fff; padding: 8px; border-radius: 16px; box-shadow: 0 5px 16px rgba(0,0,0,.26); }
.coup-banner-logo:not(.is-fallback) ~ .coup-banner-letter { display: none; }
.coup-banner-letter {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  font-weight: 800; font-size: 28px;
  box-shadow: 0 5px 16px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.25);
}

.coup-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.coup-hero .crumbs { color: var(--muted); }
.coup-topbar { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.coup-topbar .brand-tile { width: 60px; height: 60px; font-size: 24px; }
.coup-topbar .brand-tile svg { width: 38px; height: 38px; }
.coup-topbar h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; color: var(--ink); }
.coup-topbar .sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 14px; color: var(--muted); }
.coup-rating { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.coup-rating .stars { color: #F5B301; font-size: 15px; letter-spacing: 2px; }
.coup-rating b { color: var(--ink); font-weight: 800; }

.coup-shell { margin-top: -24px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) { .coup-shell { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel--main { padding: 26px; }
.panel--side { padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.value-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.value-big .local { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.value-big .usd { font-size: 15px; color: var(--muted); font-weight: 600; }

.code-reveal {
  border: 2px dashed var(--line-strong); background: var(--primary-softer); border-radius: 14px;
  padding: 18px; text-align: center; margin: 20px 0;
}
.code-reveal .code-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.code-reveal .code { font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--primary-deep); font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace; word-break: break-all; }

.spec-list { margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid #F1F5F9; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 650; text-align: right; }
.spec-row .flags { display: inline-flex; gap: 3px; font-size: 16px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 12px; }
.empty h3 { color: var(--ink); font-size: 20px; }

/* ---------- Misc ---------- */
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.u-center { text-align: center; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 42px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; }
.small { font-size: 13px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #E8EDF5 25%, #F4F7FB 50%, #E8EDF5 75%); background-size: 200% 100%; animation: shine 1.3s infinite; border-radius: var(--radius-sm); }
@keyframes shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .input, .select { font-size: 16px; }
}
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .hero-inner { padding: 52px 0 64px; }
  .hero h1 { font-size: clamp(26px, 7vw, 34px); margin-bottom: 10px; }
  .hero .tagline { font-size: 12px; gap: 6px; padding: 5px 12px; margin-bottom: 16px; }
  .hero .lead { font-size: 15px; margin-bottom: 22px; }
  .hero-search { flex-direction: column; align-items: stretch; width: 92%; max-width: 400px; margin: 0 auto; }
  .hero-search .input--search { width: 100%; flex: none; padding: 13px 14px 13px 44px; font-size: 15px; }
  .hero-search .search-ico { left: 14px; width: 18px; height: 18px; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 10px; margin-top: 28px; }
  .hero-stat b { font-size: 19px; }
  .hero-stat span { font-size: 10.5px; }
  .card-actions { flex-direction: column; }
  .card-body { padding: 14px 14px 16px; }
  .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
  .card-value .local { font-size: 21px; }
  .panel--main, .panel--side { padding: 18px; }
  .coup-shell { margin-top: -16px; }
  .coup-topbar { flex-wrap: wrap; }
  .coup-topbar h1 { overflow-wrap: anywhere; }
  .value-big .local { font-size: 30px; }
  .code-reveal .code { font-size: 18px; }
  .crumbs { overflow-wrap: anywhere; min-width: 0; }
  .section-head h1 { font-size: clamp(26px, 7.5vw, 32px) !important; }
  .cta-banner { padding: 34px 24px; border-radius: 18px; }
  .cta-banner .btn--lg { width: 100%; }
  .modal-backdrop { padding: 12px; }
  .why, .step { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
}