/* ==========================================================================
   CodesBuddy — style.css
   1. Tokens        6. Hero
   2. Reset/base    7. Sections & cards
   3. Utilities     8. Pages
   4. Buttons       9. Footer / banner / toast
   5. Header       10. Animations
   ========================================================================== */

/* ============================================================ 1. TOKENS  */
:root {
  --primary: #0f4c81;
  --primary-light: #3a7bb8;
  --primary-dark: #0a3560;
  --secondary: #1a6b5c;
  --secondary-light: #26907c;
  --accent: #f59e0b;
  --accent-dark: #d97e06;

  --hero-from: #0a2a4a;
  --hero-to: #0f4c81;
  --hero-gradient: linear-gradient(135deg, #0a2a4a 0%, #0f4c81 100%);
  --brand-gradient: linear-gradient(135deg, #0f4c81, #f59e0b);
  --primary-gradient: linear-gradient(135deg, #0f4c81, #3a7bb8);
  --teal-gradient: linear-gradient(135deg, #0f4c81 0%, #1a6b5c 100%);

  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --footer-bg: #0a2a4a;

  --success: #10b981;
  --danger: #e11d48;

  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --sh-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --sh-xl: 0 26px 60px rgba(10, 42, 74, 0.22);
  --sh-glow: 0 18px 46px rgba(15, 76, 129, 0.28);

  --header-h: 64px;
  --wrap: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ======================================================== 2. RESET/BASE  */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .font-head {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

p { color: var(--muted); }
a { color: var(--primary); text-decoration: none; transition: color 0.22s var(--ease); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { flex-shrink: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--surface);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  box-shadow: var(--sh-md);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================================== 3. UTILITIES  */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: 940px; }

.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--bg); }
.section--tight { padding: 60px 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.section-head p { margin-top: 12px; font-size: 1.03rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(15, 76, 129, 0.08);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.head-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--sh-glow);
  flex-shrink: 0;
}
.head-icon svg { width: 21px; height: 21px; }

.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ========================================================== 4. BUTTONS  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 76, 129, 0.28);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.38);
}
.btn--primary:active { transform: translateY(0); }

.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #3b2400;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.34);
}
.btn--accent:hover { color: #3b2400; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45); }
.btn--accent:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; transform: translateY(-2px); }

.btn--outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--sh-xs);
}
.btn--outline:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.btn--sm { padding: 9px 16px; font-size: 0.86rem; border-radius: var(--r-sm); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* =========================================================== 5. HEADER  */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 120;
  background: rgba(10, 42, 74, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 14px rgba(10, 42, 74, 0.16);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 42, 74, 0.94);
  box-shadow: 0 8px 28px rgba(10, 42, 74, 0.32);
}

.header-inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo:hover { color: inherit; }
.logo__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.42);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo:hover .logo__mark {
  transform: scale(1.08) rotate(6deg);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.5);
}
.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.logo--footer .logo__text { color: #fff; }
.logo--dark .logo__text { color: var(--text); }

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.28s var(--ease);
}
.nav__link.is-active { color: #fff; font-weight: 600; }
.nav__link.is-active::after { width: 20px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Header search */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search__icon {
  position: absolute;
  left: 11px;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.header-search__icon .icon { width: 16px; height: 16px; }
.header-search input {
  width: 215px;
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.88rem;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease), width 0.24s var(--ease);
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
.header-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.lang__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lang__flag { font-size: 1.05rem; line-height: 1; }
.lang__chev { width: 15px; height: 15px; transition: transform 0.26s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 208px;
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.24s var(--ease-out), visibility 0.22s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text);
  text-align: left;
  transition: background 0.16s var(--ease);
}
.lang__option:hover { background: var(--bg); }
.lang__option.is-active { background: rgba(15, 76, 129, 0.09); color: var(--primary); font-weight: 600; }
.lang__option .icon { width: 16px; height: 16px; margin-left: auto; color: var(--primary); }

/* Hamburger */
.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  place-items: center;
}
.burger:hover { background: rgba(255, 255, 255, 0.24); }
.burger svg { width: 21px; height: 21px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 115;
  background: rgba(10, 42, 74, 0.985);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 50px rgba(10, 42, 74, 0.42);
  padding: 20px 24px 26px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease-out), visibility 0.28s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu__search { position: relative; margin-bottom: 18px; }
.mobile-menu__search .header-search__icon { top: 50%; transform: translateY(-50%); left: 14px; }
.mobile-menu__search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.95rem;
}
.mobile-menu__search input::placeholder { color: rgba(255, 255, 255, 0.68); }
.mobile-menu__search input:focus { outline: none; background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.55); }

.mobile-nav { display: flex; flex-direction: column; gap: 3px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mobile-nav a svg { width: 17px; height: 17px; opacity: 0.5; }
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.11); color: #fff; }
.mobile-nav a.is-active { background: rgba(245, 158, 11, 0.18); color: #fff; font-weight: 600; }

.mobile-lang {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.mobile-lang__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}
.mobile-lang__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-lang__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.83rem;
  transition: background 0.18s var(--ease);
}
.mobile-lang__chip:hover { background: rgba(255, 255, 255, 0.2); }
.mobile-lang__chip.is-active { background: var(--accent); border-color: var(--accent); color: #3b2400; font-weight: 600; }

/* ============================================================= 6. HERO  */
main { padding-top: var(--header-h); }

.hero {
  position: relative;
  background: var(--hero-gradient);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 96px 24px 132px;
  text-align: center;
}
.hero--page .hero__inner { padding: 68px 24px 96px; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--a {
  width: 460px; height: 460px;
  background: rgba(58, 123, 184, 0.5);
  top: -140px; left: -110px;
  animation: float 13s ease-in-out infinite;
}
.hero__glow--b {
  width: 400px; height: 400px;
  background: rgba(245, 158, 11, 0.3);
  bottom: -150px; right: -90px;
  animation: float 16s ease-in-out infinite reverse;
}
.hero__glow--c {
  width: 300px; height: 300px;
  background: rgba(26, 107, 92, 0.42);
  top: 42%; left: 46%;
  animation: pulseGlow 11s ease-in-out infinite;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero__badge svg { width: 17px; height: 17px; color: var(--accent); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  max-width: 15ch;
  margin-inline: auto;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  max-width: 620px;
  margin: 20px auto 0;
}

/* Hero search */
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 36px auto 0;
  padding: 8px 8px 8px 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(10, 42, 74, 0.32);
}
.hero-search__icon { color: var(--muted); display: grid; place-items: center; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
}
.hero-search input::placeholder { color: #94a3b8; }
.hero-search input:focus { outline: none; }
.hero-search .btn { height: 46px; border-radius: 14px; padding-inline: 26px; }

.hero__browse {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.96rem;
}
.hero__browse svg { width: 18px; height: 18px; transition: transform 0.26s var(--ease); }
.hero__browse:hover { color: #fff; }
.hero__browse:hover svg { transform: translateX(6px); }

.hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin-top: 46px;
}
.hero__stat { color: #fff; }
.hero__stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}
.hero__stat span { font-size: 0.83rem; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.02em; }

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  width: 100%;
  height: 90px;
  display: block;
  color: var(--surface);
  pointer-events: none;
}
.hero__wave--alt { color: var(--bg); }

/* ================================================= 7. SECTIONS & CARDS  */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.42s var(--ease-out), box-shadow 0.42s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity 0.2s linear;
}
.card-3d:hover::after,
.card-3d:focus-within::after {
  opacity: 1;
  animation: shine 0.85s var(--ease) forwards;
}

/* -- Coupon card ------------------------------------------------------- */
.coupon-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 22px;
  overflow: hidden;
}
.coupon-card:hover,
.coupon-card:focus-within {
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(-8px) scale(1.02);
  box-shadow: var(--sh-xl);
  border-color: rgba(58, 123, 184, 0.4);
}

.coupon-card__top {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 15px;
}
.store-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.3);
  flex-shrink: 0;
  transition: transform 0.42s var(--ease-out), box-shadow 0.42s var(--ease);
}
.coupon-card:hover .store-logo,
.coupon-card:focus-within .store-logo {
  transform: translateZ(40px) scale(1.08);
  box-shadow: 0 14px 30px rgba(15, 76, 129, 0.4);
}
.store-logo--cat-fashion { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.store-logo--cat-beauty { background: linear-gradient(135deg, #db2777, #f472b6); }
.store-logo--cat-travel { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.store-logo--cat-food { background: linear-gradient(135deg, #ea580c, #fb923c); }
.store-logo--cat-gaming { background: linear-gradient(135deg, #4338ca, #6366f1); }
.store-logo--cat-home { background: linear-gradient(135deg, #1a6b5c, #26907c); }
.store-logo--cat-software { background: linear-gradient(135deg, #0f4c81, #1a6b5c); }
.store-logo--lg { width: 84px; height: 84px; font-size: 1.55rem; border-radius: 22px; }

.coupon-card__store {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}
.coupon-card__store a { color: inherit; }
.coupon-card__store a:hover { color: var(--primary); }
.coupon-card__cat {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge--discount {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #3b2400;
  font-size: 0.8rem;
  padding: 6px 13px;
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.36);
  transition: transform 0.42s var(--ease-out);
  margin-left: auto;
}
.coupon-card:hover .badge--discount,
.coupon-card:focus-within .badge--discount { transform: translateZ(50px); }
.badge--verified { background: rgba(16, 185, 129, 0.12); color: #067a55; }
.badge--premium { background: rgba(15, 76, 129, 0.1); color: var(--primary); }
.badge--deal { background: rgba(124, 58, 237, 0.11); color: #6d28d9; }
.badge--featured { background: rgba(245, 158, 11, 0.16); color: #92600a; }
.badge--soon { background: rgba(225, 29, 72, 0.1); color: #be123c; }

.coupon-card__title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.coupon-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.coupon-card__terms {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coupon-card__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-top: auto;
  margin-bottom: 14px;
  border: 1px dashed rgba(15, 76, 129, 0.38);
  border-radius: var(--r-md);
  background: rgba(15, 76, 129, 0.045);
}
.coupon-card__code code {
  font-family: 'Poppins', monospace;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
}
.coupon-card__code span { font-size: 0.74rem; color: var(--muted); text-align: right; }
.coupon-card__code--none code { font-size: 0.8rem; letter-spacing: 0.04em; }

.coupon-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.coupon-card__foot > div { min-width: 0; }
.coupon-card__expiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  color: var(--muted);
}
.coupon-card__expiry svg { width: 15px; height: 15px; }
.coupon-card__used {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 3px;
}

/* -- Store card -------------------------------------------------------- */
.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 24px 22px;
  overflow: hidden;
  text-align: center;
}
.store-card:hover,
.store-card:focus-within {
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg) translateY(-12px) scale(1.03);
  box-shadow: var(--sh-xl);
  border-color: rgba(58, 123, 184, 0.45);
}
.store-card .store-logo { margin: 0 auto 14px; }
.store-card:hover .store-logo { transform: translateZ(46px) scale(1.1); }

.store-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.store-card__name a { color: inherit; }
.store-card__cat { font-size: 0.82rem; color: var(--muted); text-transform: capitalize; }
.store-card__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.store-card__stats strong { color: var(--text); font-weight: 600; }
.store-card__rating { display: inline-flex; align-items: center; gap: 5px; }
.store-card__rating svg { width: 15px; height: 15px; color: var(--accent); fill: var(--accent); stroke: none; }
.store-card__badges {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* Hover reveal preview */
.store-card__preview {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease-out), opacity 0.32s var(--ease), margin-top 0.42s var(--ease-out);
  margin-top: 0;
  text-align: left;
}
.store-card:hover .store-card__preview,
.store-card:focus-within .store-card__preview {
  max-height: 170px;
  opacity: 1;
  margin-top: 16px;
}
.store-card__preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  margin-bottom: 9px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(15, 76, 129, 0.07);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
}
.store-card:hover .chip,
.store-card:focus-within .chip { animation: chipIn 0.4s var(--ease-out) forwards; }
.store-card:hover .chip:nth-child(1) { animation-delay: 0.05s; }
.store-card:hover .chip:nth-child(2) { animation-delay: 0.12s; }
.store-card:hover .chip:nth-child(3) { animation-delay: 0.19s; }
.store-card:hover .chip:nth-child(4) { animation-delay: 0.26s; }

.store-card__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.store-card__link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.store-card:hover .store-card__link svg { transform: translateX(5px); }

/* -- Category card ----------------------------------------------------- */
.cat-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 30px 20px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--teal-gradient);
  opacity: 0;
  transition: opacity 0.38s var(--ease);
}
.cat-card:hover,
.cat-card:focus-visible {
  transform: perspective(1000px) rotateY(-7deg) translateY(-10px) scale(1.03);
  box-shadow: var(--sh-xl);
  border-color: transparent;
}
.cat-card:hover::before, .cat-card:focus-visible::before { opacity: 1; }

.cat-card__icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  transition: transform 0.42s var(--ease-out), background 0.35s var(--ease), color 0.35s var(--ease);
}
.cat-card__icon svg { width: 28px; height: 28px; stroke-width: 1.7; }
.cat-card:hover .cat-card__icon {
  transform: translateZ(44px) scale(1.12) rotate(-7deg);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.cat-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.cat-card__count {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 4px;
  transition: color 0.3s var(--ease);
}
.cat-card:hover .cat-card__name { color: #fff; }
.cat-card:hover .cat-card__count { color: rgba(255, 255, 255, 0.78); }

/* -- Feature / step cards --------------------------------------------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 28px 24px;
}
.feature-card:hover {
  transform: perspective(1000px) translateY(-8px) rotateX(3deg) scale(1.02);
  box-shadow: var(--sh-lg);
  border-color: rgba(58, 123, 184, 0.35);
}
.feature-card__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--primary-gradient);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--sh-glow);
  transition: transform 0.42s var(--ease-out);
}
.feature-card__icon svg { width: 25px; height: 25px; }
.feature-card:hover .feature-card__icon { transform: translateZ(36px) scale(1.06); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.94rem; }

.step-card { text-align: center; padding: 8px; }
.step-card__icon {
  position: relative;
  width: 86px; height: 86px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  color: var(--primary);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.step-card__icon svg { width: 32px; height: 32px; }
.step-card:hover .step-card__icon { transform: translateY(-8px) scale(1.05); box-shadow: var(--sh-lg); }
.step-card__num {
  position: absolute;
  top: -6px; right: -6px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.4);
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.94rem; }

/* -- Filter bar -------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  transition: all 0.22s var(--ease);
}
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary); transform: translateY(-1px); }
.filter-btn.is-active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 76, 129, 0.28);
}

.sort {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--muted);
}
.sort select {
  height: 40px;
  padding: 0 34px 0 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center / 16px;
  appearance: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--primary-light); }

.result-count { font-size: 0.9rem; color: var(--muted); }
.result-count strong { color: var(--text); font-weight: 600; }

/* -- Skeletons --------------------------------------------------------- */
.skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--sh-xs);
}
.sk-line, .sk-circle, .sk-block {
  background: linear-gradient(100deg, #eef2f7 20%, #f8fafc 42%, #eef2f7 64%);
  background-size: 240% 100%;
  animation: shimmer 1.35s linear infinite;
  border-radius: 7px;
}
.sk-circle { width: 48px; height: 48px; border-radius: 50%; }
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-line--sm { width: 45%; }
.sk-line--md { width: 72%; }
.sk-line--lg { width: 92%; }
.sk-block { height: 44px; margin-top: 16px; border-radius: var(--r-md); }
.sk-row { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.sk-row > div { flex: 1; }

/* -- Empty state ------------------------------------------------------- */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 62px 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-2xl);
}
.empty__icon {
  width: 84px; height: 84px;
  margin: 0 auto 22px;
  border-radius: 26px;
  display: grid; place-items: center;
  background: rgba(15, 76, 129, 0.07);
  color: var(--primary);
  animation: float 6s ease-in-out infinite;
}
.empty__icon svg { width: 38px; height: 38px; stroke-width: 1.7; }
.empty h3 { margin-bottom: 8px; }
.empty p { max-width: 420px; margin: 0 auto 22px; font-size: 0.95rem; }

/* -- Newsletter box ---------------------------------------------------- */
.newsletter-box {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  border-radius: var(--r-2xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--sh-lg);
  isolation: isolate;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.26);
  filter: blur(70px);
  top: -120px; right: -80px;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.newsletter-box h2 { color: #fff; }
.newsletter-box p { color: rgba(255, 255, 255, 0.72); margin-top: 10px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 470px;
  margin: 26px auto 0;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.94rem;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.66); }
.newsletter-form input:focus { outline: none; background: rgba(255, 255, 255, 0.26); border-color: rgba(255, 255, 255, 0.6); }
.newsletter-form .btn { height: 48px; }

/* ============================================================ 8. PAGES  */
/* Breadcrumb */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crumbs a { color: rgba(255, 255, 255, 0.82); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: #fff; font-weight: 500; }

/* Store detail hero */
.store-hero__inner { text-align: left; }
.store-hero__row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.store-hero__meta { flex: 1; min-width: 240px; }
.store-hero__meta h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.store-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}
.store-hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.store-hero__facts svg { width: 16px; height: 16px; }
.store-hero__facts .star { color: var(--accent); fill: var(--accent); stroke: none; }
.store-hero__desc {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
  max-width: 620px;
}
.store-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-hero .store-logo--lg { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }

/* About page */
.mission {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: center;
}
.mission__art {
  width: 200px; height: 200px;
  border-radius: 42px;
  display: grid; place-items: center;
  background: var(--hero-gradient);
  color: #fff;
  box-shadow: var(--sh-xl);
  animation: float 7s ease-in-out infinite;
  margin-inline: auto;
}
.mission__art svg { width: 88px; height: 88px; stroke-width: 1.4; }

.commitment {
  background: var(--hero-gradient);
  border-radius: var(--r-2xl);
  padding: 46px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.commitment::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(58, 123, 184, 0.4);
  filter: blur(70px);
  bottom: -140px; left: -80px;
  z-index: -1;
  animation: pulseGlow 10s ease-in-out infinite;
}
.commitment h2 { color: #fff; }
.commitment p { color: rgba(255, 255, 255, 0.76); margin-top: 14px; max-width: 640px; }
.commitment__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.commitment__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}
.commitment__item svg { width: 19px; height: 19px; color: var(--accent); margin-top: 2px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.info-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.info-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.info-item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.info-item__icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
  flex-shrink: 0;
}
.info-item h3 { font-size: 0.98rem; margin-bottom: 3px; }
.info-item p { font-size: 0.9rem; margin: 0; }
.info-item a { font-size: 0.9rem; font-weight: 500; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-md);
  padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.94rem;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(58, 123, 184, 0.14);
}
.field input.has-error, .field textarea.has-error { border-color: var(--danger); }
.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
}
.field-error.is-visible { display: block; }

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.24s var(--ease);
}
.social-btn:hover {
  transform: translateY(-3px);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--sh-md);
}

/* Scroll to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--sh-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: all 0.3s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.06); }
.to-top svg { width: 21px; height: 21px; }

/* ================================= 9. FOOTER / BANNER / TOAST  */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.68);
  padding: 68px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(15, 76, 129, 0.55);
  filter: blur(90px);
  top: -180px; right: -120px;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr;
  gap: 36px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.66); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); padding-left: 3px; }
.footer-about p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.62); margin-top: 16px; max-width: 320px; }
.footer-social { display: flex; gap: 9px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.24s var(--ease);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #3b2400;
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-news p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); margin-bottom: 14px; }
.footer-news form { display: flex; flex-direction: column; gap: 9px; }
.footer-news input {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
}
.footer-news input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-news input:focus { outline: none; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
  margin-top: 52px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.52);
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; }
.footer-bottom a:hover { color: var(--accent); }

/* Cookie banner */
.cookie {
  position: fixed;
  left: 50%; bottom: 20px;
  z-index: 130;
  width: calc(100% - 40px);
  max-width: 940px;
  transform: translate(-50%, 130%);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  transition: transform 0.5s var(--ease-out);
}
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.cookie__text { flex: 1; }
.cookie__text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 3px;
}
.cookie__text p { font-size: 0.88rem; margin: 0; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Toasts */
.toast-stack {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 340px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  animation: toastIn 0.36s var(--ease-out) forwards;
}
.toast.is-leaving { animation: toastOut 0.3s var(--ease) forwards; }
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--primary-light); }
.toast__icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  flex-shrink: 0;
}
.toast__icon svg { width: 15px; height: 15px; stroke-width: 2.6; }
.toast--error .toast__icon { background: rgba(225, 29, 72, 0.12); color: var(--danger); }
.toast--info .toast__icon { background: rgba(58, 123, 184, 0.14); color: var(--primary); }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
  font-size: 0.92rem;
  font-weight: 500;
}
.form-success.is-visible { display: flex; animation: fadeInDown 0.4s var(--ease-out); }
.form-success svg { width: 19px; height: 19px; }

/* ======================================================= 10. ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.93); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.82); }
  62% { opacity: 1; transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes cardReveal {
  from { opacity: 0; transform: perspective(1000px) translateY(30px) rotateX(-7deg); }
  to { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0); }
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -20px, 0); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.14); }
}
@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -140% 0; }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes chipIn { to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(110%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(110%); } }

/* Scroll reveal */
.reveal { opacity: 0; }
.reveal.is-in { animation: fadeInUp 0.68s var(--ease-out) forwards; }
.reveal-scale.is-in { animation: scaleIn 0.6s var(--ease-out) forwards; }
.reveal-card.is-in { animation: cardReveal 0.7s var(--ease-out) forwards; }
.reveal-left.is-in { animation: slideInLeft 0.66s var(--ease-out) forwards; }
.reveal-right.is-in { animation: slideInRight 0.66s var(--ease-out) forwards; }

.hero__badge, .hero h1, .hero__sub, .hero-search, .hero__browse, .hero__stats {
  animation: fadeInUp 0.8s var(--ease-out) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero__sub { animation-delay: 0.16s; }
.hero-search { animation-delay: 0.24s; }
.hero__browse { animation-delay: 0.32s; }
.hero__stats { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
}
