:root {
  --cream: #FFF6E9;
  --cream-deep: #FCEFD9;
  --white: #FFFFFF;
  --navy: #17172A;
  --navy-soft: #55536A;
  --gold: #F5A623;
  --gold-dark: #D98E04;
  --urgent: #E24E1B;
  --urgent-dark: #C43F13;
  --border: #F0E1C2;
  --success: #2E9E6B;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', system-ui, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

/* Sections reached by a link stop below the sticky header */
section[id] {
  scroll-margin-top: 100px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,246,233,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
}

header.site .logo img { height: 32px; width: auto; }

nav.main {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-soft);
}

nav.main a:hover { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

nav.main .btn { padding: 10px 20px; font-size: 14px; }

@media (max-width: 640px) {
  nav.main a:not(.btn) { display: none; }
  header.site .logo img { height: 26px; }
}

/* Hero */
.hero {
  padding-block: 64px 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  text-wrap: balance;
  max-width: 780px;
  margin-inline: auto;
}

.hero h1 .accent { color: var(--gold); }

.hero p.sub {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--navy-soft);
  font-size: 18px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stats .stat { text-align: center; }
.stats .stat strong {
  display: block;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 30px;
  color: var(--navy);
}
.stats .stat span {
  font-size: 13px;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Section titles */
.section { padding-block: 56px; }
.section-title { text-align: center; margin-bottom: 8px; font-size: clamp(26px,3.4vw,36px); }
.section-sub { text-align: center; color: var(--navy-soft); max-width: 520px; margin: 0 auto 40px; }

/* Cookie consent banner (normal flow, top of page — not fixed/floating) */
.mbd-consent-bar {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: center;
  text-align: center;
}
/* The [hidden] attribute must always win over the display:flex above,
   otherwise clicking Accept/Reject sets hidden=true but the banner
   stays visible because both rules have equal CSS specificity. */
.mbd-consent-bar[hidden] { display: none !important; }
.mbd-consent-bar p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.mbd-consent-bar a { color: var(--gold); text-decoration: underline; }
.mbd-consent-actions { display: flex; gap: 10px; }
.mbd-consent-bar .btn { padding: 9px 16px; font-size: 13.5px; }
.mbd-consent-bar .btn-ghost { border-color: var(--white); color: var(--white); }

@media (max-width: 480px) {
  .mbd-consent-bar { flex-direction: column; }
  .mbd-consent-actions { justify-content: center; }
}

/* Audience picker */
.audience-picker {
  max-width: 760px;
  margin: 0 auto 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
}
.audience-flag {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.audience-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.audience-option {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--cream-deep);
}
.audience-option span { font-size: 13.5px; color: var(--navy-soft); font-weight: 600; }
.audience-btn {
  border: none;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.audience-btn.active { background: var(--gold); color: var(--navy); }
.audience-reset {
  margin-top: 16px;
  border: none;
  background: none;
  color: var(--navy-soft);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* Coupon cards */
.codes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.code-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px -18px rgba(23,23,42,0.25);
}

.code-card .discount {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-dark);
  text-align: center;
  line-height: 1.1;
}

.code-card .body { flex: 1 1 auto; min-width: 0; }

.code-card .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dark);
  background: rgba(245,166,35,0.14);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.code-card h3 { font-size: 19px; margin-bottom: 6px; }
.code-card p { margin: 0; color: var(--navy-soft); font-size: 14.5px; }

.code-card .actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 160px;
}

.code-pill {
  border: 2px dashed var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-family: 'Baloo 2', system-ui, sans-serif;
  letter-spacing: 1px;
  text-align: center;
  background: var(--cream-deep);
  cursor: pointer;
  font-size: 15px;
}

.code-pill.copied { border-color: var(--success); color: var(--success); }

.code-card .go {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-soft);
  text-decoration: none;
}
.code-card .go:hover { color: var(--navy); }

@media (max-width: 640px) {
  .code-card { flex-direction: column; text-align: center; }
  .code-card .actions { width: 100%; }
}

/* Code cards v2 */
.code-card-v2 {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px -18px rgba(23,23,42,0.25);
}

.ccv2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ccv2-brand { display: flex; align-items: center; gap: 12px; }

.ccv2-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ccv2-brand h3 { font-size: 16px; margin: 0; }
.ccv2-cat { font-size: 12.5px; color: var(--navy-soft); }

.heart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--navy-soft);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heart:hover { color: #d64550; border-color: #f2c9c9; }

.ccv2-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.ccv2-date { margin: 0 0 14px; font-size: 12.5px; color: var(--navy-soft); }

.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.pill-pop { background: #FDE3E3; color: #C1432E; }
.pill-exclusive { background: #FCEBC7; color: #A5730B; }
.pill-verified { background: #DCF3E6; color: #2E9E6B; }

.ccv2-discount {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.ccv2-discount strong { color: var(--gold-dark); }
.ccv2-discount span { font-size: 15px; color: var(--navy-soft); font-weight: 500; margin-left: 4px; }

.code-card-v2 h4 { font-size: 18px; margin: 0 0 6px; }
.code-card-v2 > p { margin: 0 0 20px; color: var(--navy-soft); font-size: 14.5px; }

.howto-box {
  background: #FCEFD9;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--navy);
  margin: 4px 0 16px;
  line-height: 1.5;
}
.howto-box strong { color: var(--urgent, #C1432E); }

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px dashed var(--gold);
  background: var(--cream-deep);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.code-box-text {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--navy);
}
.code-box-copy {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.code-box-copy.copied { background: var(--success); }

.go2 { display: block; width: 100%; text-align: center; padding: 14px 18px; font-size: 16px; }
/* Offer benefits as short checkmarked lines, conditions in small print */
.code-card-v2 .perks { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 7px; }
.code-card-v2 .perks li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.code-card-v2 .perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #DCF3E6;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.code-card-v2 > p.conditions { margin: 0 0 16px; font-size: 12.5px; color: var(--navy-soft); }
/* Advertising disclosure under each offer button */
.code-card-v2 > p.ad-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--navy-soft); }

/* How-to */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
}
.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--navy-soft); font-size: 14.5px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}
.trust-item { text-align: center; padding: 12px; }
.trust-item .icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.trust-item h3 { font-size: 16px; margin-bottom: 6px; }
.trust-item p { margin: 0; font-size: 14px; color: var(--navy-soft); }

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.faq-q .chev { transition: transform .2s ease; flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
}
.faq-a p { margin: 0 0 18px; color: var(--navy-soft); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 240px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
footer.site img { height: 26px; }
footer.site .legal { font-size: 12.5px; color: var(--navy-soft); max-width: 640px; }
footer.site .links { display: flex; gap: 8px 18px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
footer.site .links a { text-decoration: none; color: var(--navy-soft); }
footer.site .links a:hover { color: var(--navy); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-soft);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  white-space: nowrap;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { color: var(--navy); }
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 170px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 30px -16px rgba(23,23,42,0.35);
}
/* Beats the mobile rule that hides nav links */
nav.main .lang-switch a:not(.btn) {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--navy-soft);
}
nav.main .lang-switch a:hover,
nav.main .lang-switch a[aria-current="page"] { background: var(--cream-deep); color: var(--navy); }
footer.site .langs { font-size: 12.5px; }

/* Phones: offers visible on the first screen, first offer pinned at the bottom */
.sticky-offer { display: none; }
@media (max-width: 640px) {
  .hero { padding-block: 22px 6px; }
  .hero h1 { font-size: 26px; }
  .hero p.sub, .hero-actions, .stats { display: none; }
  #codes { padding-top: 14px; }
  #codes .section-title { font-size: 21px; margin-bottom: 10px; }
  .audience-picker { padding: 10px; margin-bottom: 14px; border-radius: 14px; }
  .audience-flag { font-size: 13px; margin-bottom: 8px; }
  .audience-buttons { flex-wrap: nowrap; gap: 8px; }
  .audience-option { flex: 1 1 0; padding: 0; border: 0; background: none; }
  .audience-option span { display: none; }
  .audience-btn { width: 100%; font-size: 12.5px; padding: 9px 8px; line-height: 1.25; }

  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .sticky-offer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "text copy go" "code copy go";
    align-items: center;
    column-gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -16px rgba(23,23,42,0.35);
  }
  .sticky-text { grid-area: text; font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.2; }
  .sticky-code { grid-area: code; font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: 1px; color: var(--navy); }
  .sticky-offer .sticky-copy { grid-area: copy; padding: 10px 12px; font-size: 13px; }
  .sticky-offer .sticky-go { grid-area: go; width: auto; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
}

/* Featured offer box at the top of the page */
.hero-offer {
  max-width: 520px;
  margin: 26px auto 0;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 20px 20px 16px;
  box-shadow: 0 16px 36px -22px rgba(23,23,42,0.45);
  text-align: center;
}
.ho-badge { display: inline-block; background: var(--navy); color: var(--white); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.ho-title { font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 28px; line-height: 1.15; margin: 10px 0 4px; color: var(--navy); }
.ho-sub { margin: 0 0 8px; font-size: 14px; color: var(--navy-soft); }
.ho-code { font-size: 14px; color: var(--navy-soft); margin-bottom: 12px; }
.ho-code strong { font-family: 'Baloo 2', system-ui, sans-serif; font-size: 18px; letter-spacing: 1.5px; color: var(--navy); }
.hero-offer .ho-cta { font-size: 17px; padding: 15px 18px; }
.ho-note { margin: 10px 0 0; font-size: 12.5px; color: var(--navy-soft); }

/* Live counter and "most popular" highlight on the offers */
.ccv2-popular { font-size: 13.5px; font-weight: 700; color: var(--urgent-dark); margin: -2px 0 8px; }
.hero-offer .ccv2-popular { margin: 0 0 8px; }
.code-card-v2.featured { position: relative; border: 2px solid var(--gold); }
.featured-ribbon { position: absolute; top: -13px; left: 20px; background: var(--urgent); color: var(--white); font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }

/* "Code copied" message after an offer button */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 30;
  max-width: calc(100% - 32px);
  text-align: center;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .hero-offer { margin-top: 14px; padding: 16px 14px 12px; }
  .ho-title { font-size: 24px; }
  .sticky-offer { transition: transform .2s ease; }
  .sticky-offer.is-hidden { transform: translateY(110%); }
}


/* MyPromoDeal: black and neon version of the MyBazarDeal design (added after the main styles) */
:root {
  --cream: #0B0B0F;
  --cream-deep: #14141B;
  --white: #17171F;
  --navy: #F5F5F7;
  --navy-soft: #B5B5C3;
  --gold: #C6FF00;
  --gold-dark: #C6FF00;
  --urgent: #FF2E93;
  --urgent-dark: #FF5CAD;
  --border: #2A2A35;
  --success: #34D399;
}
header.site { background: rgba(11,11,15,0.92); }
.btn-primary, .btn-primary:hover, nav.main a.btn-primary, nav.main a.btn-primary:hover { color: #0B0B0F; }
.featured-ribbon { color: #FFFFFF; }
.howto-box { background: #1A200B; color: #F5F5F7; }
.howto-box strong { color: #FF5CAD; }
.hero h1 .accent { color: #FF2E93; }
