/* =========================================================
   SouqJoy — حملة كوبون 90% / تصميم RTL تجاري
   ========================================================= */

:root {
  --brand: #146B49;
  --brand-dark: #103F30;
  --brand-deep: #0A2F23;
  --brand-soft: #E9F2EC;
  --accent: #FF7624;
  --accent-dark: #E55C0D;
  --accent-soft: #FFF1E8;
  --coupon: #C71029;
  --coupon-dark: #920A1D;
  --coupon-soft: #FFF0F2;
  --gold: #F5C557;
  --gold-light: #FFE7A8;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-soft: #FAFAF8;
  --ink: #202020;
  --ink-soft: #3E4541;
  --muted: #737373;
  --line: #E4E7E4;
  --line-strong: #D5DAD6;
  --font-body: "Tajawal", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-display: "Cairo", "Tajawal", Tahoma, sans-serif;
  --shadow-sm: 0 2px 8px rgba(20, 32, 25, 0.05);
  --shadow-md: 0 10px 28px rgba(20, 32, 25, 0.09);
  --shadow-lg: 0 22px 60px rgba(20, 32, 25, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --appbar-height: 66px;
  --pad: 16px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--appbar-height) + env(safe-area-inset-bottom, 0px) + 18px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
::selection { background: #FFE0B5; color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid rgba(255, 118, 36, 0.62);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.container {
  width: min(1280px, calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.section { padding-block: 28px; }

section[id], #categoriesTitle, #browseResults { scroll-margin-top: 132px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-heading--compact { margin-bottom: 12px; }
.section-heading h2,
.browse-results__heading h2,
.faq-intro h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.section-heading__hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: start;
}
.section-heading__side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.demo-note {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid #EED8B4;
  border-radius: 999px;
  background: #FFF8EA;
  color: #8A5B1B;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* ----------------------------- الأزرار ----------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.button .icon { width: 18px; height: 18px; }
.button--sm { min-height: 34px; padding: 5px 12px; font-size: 11.5px; }
.button--lg { min-height: 46px; padding: 10px 20px; font-size: 14.5px; }
.button--full { width: 100%; }
.button--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(20, 107, 73, 0.16);
}
.button--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 14px rgba(255, 118, 36, 0.18);
}
.button--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button--coupon {
  border-color: var(--coupon);
  background: var(--coupon);
  color: #fff;
  box-shadow: 0 6px 16px rgba(199, 16, 41, 0.2);
}
.button--coupon:hover { background: var(--coupon-dark); border-color: var(--coupon-dark); }
.button--ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.button--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-soft); }
.button--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.button--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.button--light { background: #fff; color: var(--brand-dark); }
.button:active { transform: translateY(1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ----------------------------- الشريط العلوي والهيدر ----------------------------- */
.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}
.topbar__welcome { font-weight: 500; white-space: nowrap; }
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
}
.topbar__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.preview-chip {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #FFE1CA;
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 18px rgba(20, 45, 30, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  min-width: 0;
}
.brand__mark {
  width: 43px;
  height: 43px;
  border-radius: 11px;
  box-shadow: 0 4px 10px rgba(20, 107, 73, 0.16);
}
.brand__copy { display: flex; flex-direction: column; min-width: 0; }
.brand__copy strong {
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.brand__copy small {
  overflow: hidden;
  max-width: 170px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.main-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a::after {
  position: absolute;
  inset-inline: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 7px; justify-self: end; }
.header-gift {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 5px 11px;
  border: 1px solid #E8D3AC;
  border-radius: var(--radius-sm);
  background: #FFF9ED;
  color: #8A5B1B;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.header-gift:hover { background: #FFF3DA; }
.header-gift .icon { width: 17px; height: 17px; }
.header-gift__unlocked { color: var(--coupon); }
.header-download { min-height: 39px; padding-inline: 14px; font-size: 12px; }
.header-download .icon { width: 17px; height: 17px; }

.search-row { padding-bottom: 11px; }
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(900px, 100%);
  height: 46px;
  margin-inline: auto;
  padding: 3px;
  border: 1px solid #DDE2DE;
  border-radius: 9px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 107, 73, 0.08);
}
.search-form__icon { width: 18px; height: 18px; margin-inline: 10px 5px; color: var(--brand); }
.search-form__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 3px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
}
.search-form__input::placeholder { color: #7B857E; opacity: 1; }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
}
.search-form__clear:hover { background: #F1F4F2; color: var(--ink); }
.search-form__clear .icon { width: 15px; height: 15px; }
.search-form__submit {
  min-width: 67px;
  height: 38px;
  padding-inline: 14px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.search-form__submit:hover { background: var(--brand-dark); }
.search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: min(900px, 100%);
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 10px;
}
.search-suggestions__items { display: flex; flex-wrap: wrap; gap: 5px; }
.site-header.is-scrolled .search-suggestions { display: none; }
.suggestion-chip {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FAFBFA;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}
.suggestion-chip:hover { border-color: #BFD6C7; background: var(--brand-soft); color: var(--brand-dark); }

/* ----------------------------- شريط الكوبون ----------------------------- */
.coupon-ribbon {
  color: #fff;
  background:
    radial-gradient(circle at 88% 50%, rgba(245, 197, 87, 0.22), transparent 26%),
    linear-gradient(90deg, var(--coupon-dark), var(--coupon));
}
.coupon-ribbon__inner {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding-block: 6px;
}
.coupon-ribbon__value {
  display: flex;
  align-items: baseline;
  gap: 1px;
  flex: 0 0 auto;
  color: var(--gold-light);
  line-height: 1;
}
.coupon-ribbon__value strong { font-family: var(--font-display); font-size: 27px; font-weight: 900; }
.coupon-ribbon__value span { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.coupon-ribbon__value small { margin-inline-start: 4px; font-size: 8px; letter-spacing: 0.08em; }
.coupon-ribbon__copy { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.4; }
.coupon-ribbon__copy strong { font-size: 12.5px; font-weight: 700; }
.coupon-ribbon__copy span { color: rgba(255, 255, 255, 0.72); font-size: 10px; }
.coupon-ribbon__button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 33px;
  padding: 5px 13px;
  border-radius: 6px;
  background: var(--gold);
  color: #4A3105;
  font-size: 11px;
  font-weight: 800;
}
.coupon-ribbon__button .icon { width: 15px; height: 15px; }
.coupon-ribbon__button:hover { background: #FFD97E; }

body.coupon-unlocked [data-coupon-locked] { display: none !important; }
body:not(.coupon-unlocked) [data-coupon-unlocked] { display: none !important; }

/* ----------------------------- الهيرو ----------------------------- */
.hero-section { padding-block: 16px 4px; }
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 470px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBF8F2;
  box-shadow: var(--shadow-sm);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  display: grid;
  grid-template-columns: 1.01fr 0.99fr;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.hero-slide.is-active { z-index: 2; visibility: visible; opacity: 1; }
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 38px 42px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 118, 36, 0.08), transparent 28%),
    linear-gradient(180deg, #FCFAF5 0%, #F8F4EC 100%);
}
.hero-copy::before {
  position: absolute;
  inset-block: 34px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--gold));
  content: "";
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 2px 9px;
  border: 1px solid rgba(20, 107, 73, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
}
.hero-eyebrow::before { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); content: ""; }
.hero-title {
  max-width: 500px;
  margin-top: 13px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-subtitle {
  max-width: 430px;
  margin-top: 12px;
  color: #4F5B53;
  font-size: 14px;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: #718077;
  font-size: 10.5px;
}
.hero-note .icon { width: 14px; height: 14px; color: var(--brand); }
.hero-media { position: relative; overflow: hidden; background: #E6DDD0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-products {
  position: absolute;
  z-index: 4;
  inset-inline-start: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.hero-product {
  width: 78px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(7, 31, 22, 0.24);
}
.hero-product img { width: 100%; height: 64px; border-radius: 6px; object-fit: cover; }
.hero-product > span { display: block; margin-top: 3px; color: var(--coupon); font-size: 8px; font-weight: 700; text-align: center; }
.hero-product > span > span { display: inline; margin: 0; font: inherit; color: inherit; }
.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 63, 48, 0.14), transparent 26%);
  content: "";
  pointer-events: none;
}
.hero-controls {
  position: absolute;
  z-index: 6;
  inset-inline-end: 20px;
  bottom: 17px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-dark);
  box-shadow: 0 3px 12px rgba(15, 38, 25, 0.12);
}
.hero-arrow:hover { background: #fff; }
.hero-arrow .icon { width: 15px; height: 15px; }
.hero-arrow--prev .icon { transform: rotate(180deg); }
.hero-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}
.hero-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: #B7C4BA;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot[aria-selected="true"] { width: 19px; background: var(--brand); }

/* ----------------------------- كوبون الصفحة ----------------------------- */
.coupon-spotlight { padding-block: 12px 3px; }
.coupon-spotlight__panel {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.coupon-spotlight__panel--locked {
  border-color: #EAD8B6;
  background:
    radial-gradient(circle at 10% 30%, rgba(245, 197, 87, 0.2), transparent 28%),
    #FFFBF2;
}
.coupon-spotlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}
.coupon-spotlight__icon .icon { width: 24px; height: 24px; }
.coupon-spotlight__copy { flex: 1; min-width: 0; }
.coupon-spotlight__copy h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}
.coupon-spotlight__copy p { margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.coupon-spotlight__panel .button { flex: 0 0 auto; }
.coupon-spotlight__panel--unlocked {
  border-color: #E2B5BC;
  background:
    radial-gradient(circle at 8% 50%, rgba(245, 197, 87, 0.28), transparent 24%),
    linear-gradient(90deg, #FFF7F8, #FFF0F2);
}
.coupon-spotlight__value {
  display: flex;
  align-items: baseline;
  direction: ltr;
  gap: 1px;
  flex: 0 0 auto;
  color: var(--coupon);
  line-height: 1;
}
.coupon-spotlight__value strong { font-family: var(--font-display); font-size: 40px; font-weight: 900; letter-spacing: -0.05em; }
.coupon-spotlight__value span { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.coupon-spotlight__value small { margin-inline-start: 4px; color: var(--coupon-dark); font-size: 9px; font-weight: 700; letter-spacing: 0.05em; }

/* ----------------------------- الأقسام ----------------------------- */
.categories-section { padding-block: 17px 23px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 9px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
}
.category-tile:hover { border-color: var(--line); background: #fff; }
.category-tile__image {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #EEF1EC;
  box-shadow: 0 3px 9px rgba(21, 52, 35, 0.08);
  transition: transform 0.2s ease;
}
.category-tile:hover .category-tile__image { transform: translateY(-2px); }
.category-tile__image img { width: 100%; height: 100%; object-fit: cover; }
.category-tile__label {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------------------- شبكات المنتجات ----------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 2px 7px;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail .product-card { flex: 0 0 clamp(172px, 18.4vw, 218px); scroll-snap-align: start; }
.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid #2A6A50;
  border-radius: 11px;
  background:
    radial-gradient(circle at 80% 12%, rgba(245, 197, 87, 0.22), transparent 38%),
    linear-gradient(145deg, #174E3B, #0E372A);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.section-cta--span1 { grid-column: span 1; }
.section-cta--span2 { grid-column: span 2; }
.section-cta--span3 { grid-column: span 3; }
.section-cta__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(245, 197, 87, 0.18); color: var(--gold); }
.section-cta__icon .icon { width: 21px; height: 21px; }
.section-cta h3 { color: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.35; }
.section-cta p { max-width: 280px; color: rgba(255, 255, 255, 0.75); font-size: 10.5px; line-height: 1.8; }
.section-cta .button { margin-top: 2px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(20, 32, 25, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: #D7E1DA;
  box-shadow: 0 9px 20px rgba(20, 32, 25, 0.08);
  transform: translateY(-2px);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F1EFEB;
}
.product-card__image-button { display: block; width: 100%; height: 100%; padding: 0; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.025); }
.product-card__badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  inset-inline-start: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--coupon);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 2px 7px rgba(199, 16, 41, 0.2);
}
.product-card__badge--gift { background: var(--brand); box-shadow: 0 2px 7px rgba(20, 107, 73, 0.18); }
.product-card__badge .icon { width: 12px; height: 12px; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 8px 9px 9px; }
.product-card__category {
  overflow: hidden;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__title {
  display: -webkit-box;
  width: 100%;
  min-height: 2.7em;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.38;
  text-align: start;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card__title:hover { color: var(--brand); }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 7px; }
.product-card__offer {
  overflow: hidden;
  color: var(--coupon);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__offer--gift { color: #8A5B1B; }
.product-card__offer strong { font-family: var(--font-display); font-size: 14px; font-weight: 900; }
.product-card__actions { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.product-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #CFE0D5;
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
}
.product-card__download:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-card__download .icon { width: 14px; height: 14px; }
.product-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 29px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}
.product-card__more:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.section-link .icon { width: 14px; height: 14px; transition: transform 0.2s ease; }
.section-link:hover .icon { transform: translateX(-3px); }
.section--featured { padding-top: 20px; }

/* ----------------------------- اللافتات الترويجية ----------------------------- */
.promo-block { padding-block: 5px; }
.promo-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 285px;
  overflow: hidden;
  border-radius: 12px;
  background: #F5ECE2;
  box-shadow: var(--shadow-sm);
}
.promo-banner__media { position: absolute; inset: 0; }
.promo-banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo-banner__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #FBF4EB 0%, rgba(251, 244, 235, 0.96) 35%, rgba(251, 244, 235, 0.72) 50%, rgba(251, 244, 235, 0.05) 77%);
  content: "";
}
.promo-banner--dark .promo-banner__media::after {
  background: linear-gradient(270deg, #0B3527 0%, rgba(11, 53, 39, 0.96) 35%, rgba(11, 53, 39, 0.7) 50%, rgba(11, 53, 39, 0.03) 77%);
}
.promo-copy { position: relative; z-index: 2; width: min(44%, 480px); padding: 28px 34px; }
.promo-copy h2 {
  margin-top: 3px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.promo-copy p { margin-top: 6px; color: #5C675F; font-size: 12.5px; line-height: 1.75; }
.promo-copy .button { margin-top: 13px; min-height: 38px; font-size: 12px; }
.promo-banner--dark .promo-copy h2 { color: #fff; }
.promo-banner--dark .promo-copy p { color: rgba(247, 251, 248, 0.7); }
.promo-banner--dark .promo-copy .eyebrow { color: #FFC08D; }

/* ----------------------------- APP ----------------------------- */
.app-section { padding-block: 22px 28px; }
.app-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  min-height: 470px;
  padding: 30px 34px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 18%, rgba(94, 171, 132, 0.26), transparent 32%),
    radial-gradient(circle at 88% 85%, rgba(255, 118, 36, 0.13), transparent 30%),
    linear-gradient(140deg, #0D4B35 0%, #0A3B2A 54%, #07271C 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(8, 40, 27, 0.18);
}
.app-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.2;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.app-panel__copy { order: 1; max-width: 570px; padding-inline: 4px 8px; }
.app-panel__media { order: 2; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.app-panel__media img { width: min(100%, 540px); border-radius: 12px; object-fit: contain; }
.app-panel__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.app-panel__brand img { width: 47px; height: 47px; border-radius: 11px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); }
.app-panel__brand .eyebrow { color: #B9E2C9; }
.app-panel__brand p { color: rgba(255, 255, 255, 0.55); font-size: 10px; }
.app-panel__copy h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(29px, 3.2vw, 43px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.app-panel__lead { max-width: 440px; margin-top: 11px; color: rgba(241, 249, 244, 0.72); font-size: 13px; line-height: 1.85; }
.app-panel__features { display: grid; gap: 8px; margin-top: 17px; }
.app-panel__features li { display: flex; align-items: center; gap: 7px; color: rgba(249, 253, 250, 0.87); font-size: 11.5px; }
.app-panel__features .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: rgba(143, 212, 170, 0.16); color: #A5DDBB; }
.app-panel__coupon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(245, 197, 87, 0.32);
  border-radius: 7px;
  background: rgba(245, 197, 87, 0.07);
  font-size: 11px;
}
.app-panel__coupon-label { color: #F5C557; font-weight: 700; }
.app-panel__coupon-value { color: rgba(255, 255, 255, 0.75); }
.app-panel__coupon-value b { color: #F5C557; font-family: var(--font-display); font-size: 15px; }
.app-panel__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.app-panel__actions .button { flex: 1 1 155px; }
.app-panel__note { margin-top: 11px; color: rgba(255, 255, 255, 0.42); font-size: 9.5px; line-height: 1.7; }

/* ----------------------------- كيف يعمل ----------------------------- */
.how-section { padding-block: 28px 24px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-card {
  position: relative;
  min-height: 142px;
  padding: 18px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.how-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}
.how-card h3 { color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.5; }
.how-card p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.how-card:not(:last-child)::after {
  position: absolute;
  top: 33px;
  inset-inline-start: -7px;
  width: 14px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

/* ----------------------------- الثقة والخدمات ----------------------------- */
.trust-section { padding-block: 19px 27px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 85px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}
.trust-card__icon .icon { width: 18px; height: 18px; }
.trust-card h3 { color: var(--ink); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.trust-card p { margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.65; }
.trust-note { margin-top: 11px; color: #868E88; font-size: 9.5px; text-align: center; }

/* ----------------------------- الأسئلة ----------------------------- */
.faq-section { padding-block: 25px 34px; }
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.faq-intro { position: sticky; top: 145px; }
.faq-intro p { max-width: 270px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.faq-intro .text-link { margin-top: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  content: "+";
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary { color: var(--brand-dark); }
.faq-item[open] summary::after { background: var(--brand-soft); transform: rotate(45deg); }
.faq-item__answer { padding-bottom: 14px; color: #5F6B63; font-size: 11.5px; line-height: 1.9; }
.faq-item__answer p { max-width: 700px; }

/* ----------------------------- الفوتر ----------------------------- */
.site-footer { margin-top: 8px; padding-top: 34px; background: var(--brand-deep); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.75fr 0.95fr 1fr; gap: 28px; padding-bottom: 27px; }
.brand--footer .brand__copy strong { color: #fff; }
.brand--footer .brand__copy small { color: rgba(255, 255, 255, 0.55); }
.brand--footer .brand__mark { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand > p { max-width: 320px; margin-top: 12px; color: rgba(255, 255, 255, 0.6); font-size: 11px; line-height: 1.85; }
.footer-demo { display: inline-flex; margin-top: 12px; padding: 3px 9px; border: 1px solid rgba(255, 190, 131, 0.24); border-radius: 999px; color: #FFC89D; font-size: 9px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-column h2 { margin-bottom: 3px; color: #fff; font-size: 11.5px; font-weight: 700; }
.footer-column a, .footer-link-button { padding: 0; color: rgba(255, 255, 255, 0.6); font-size: 10.5px; line-height: 1.7; text-align: start; }
.footer-column a:hover, .footer-link-button:hover { color: #fff; }
.footer-column p { color: rgba(255, 255, 255, 0.58); font-size: 10px; line-height: 1.8; }
.footer-note { color: rgba(255, 255, 255, 0.36) !important; font-size: 9px !important; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.footer-badges span { padding: 2px 7px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 5px; color: rgba(255, 255, 255, 0.52); font-size: 8.5px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px 23px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.4); font-size: 9px; line-height: 1.7; }

/* ----------------------------- شريط التطبيق ----------------------------- */
.app-bar {
  position: fixed;
  z-index: 75;
  inset-inline: 0;
  bottom: 0;
  padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(225, 231, 227, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -7px 24px rgba(15, 42, 29, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.app-bar__inner { display: flex; align-items: center; gap: 9px; width: min(1180px, 100%); min-height: 50px; margin-inline: auto; }
.app-bar__icon { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 10px; box-shadow: 0 4px 10px rgba(20, 107, 73, 0.16); }
.app-bar__copy { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.app-bar__copy strong { color: var(--brand-deep); font-size: 12.5px; font-weight: 700; }
.app-bar__copy strong b { color: var(--coupon); font-family: var(--font-display); font-size: 15px; font-weight: 900; }
.app-bar__copy span { overflow: hidden; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.app-bar__button { flex: 0 0 auto; min-height: 38px; padding-inline: 14px; font-size: 11.5px; }
.app-bar__button .icon { width: 16px; height: 16px; }

.back-to-top {
  position: fixed;
  z-index: 70;
  inset-inline-end: 14px;
  bottom: calc(var(--appbar-height) + env(safe-area-inset-bottom, 0px) + 16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-md);
}
.back-to-top:hover { background: var(--brand-soft); }
.back-to-top .icon { width: 17px; height: 17px; }

/* ----------------------------- نتائج البحث ----------------------------- */
.browse-results { padding-block: 18px 34px; }
.browse-results__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 500;
}
.back-button .icon { width: 14px; height: 14px; }
.back-button:hover { border-color: #BFD6C7; color: var(--brand); }
.browse-results__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.browse-results__summary { margin-top: 3px; color: var(--muted); font-size: 11px; }
#browseTitle:focus, #browseTitle:focus-visible { outline: none; }
.filter-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}
.filter-chip.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  padding: 26px;
  border: 1px dashed #D6DFD9;
  border-radius: 10px;
  background: #FBFCFA;
  text-align: center;
}
.empty-state__icon { width: 33px; height: 33px; color: #9EB2A5; }
.empty-state h3 { margin-top: 8px; font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.empty-state p { margin-top: 4px; color: var(--muted); font-size: 11px; }

/* ----------------------------- الطبقات ----------------------------- */
.layer { position: fixed; z-index: 200; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; }
.layer[hidden] { display: none !important; }
.layer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 14, 0.68);
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.layer.is-open .layer__backdrop { opacity: 1; }
.modal-panel, .gift-panel {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(4, 22, 13, 0.3);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.24s ease, transform 0.28s var(--ease);
  overscroll-behavior: contain;
}
.layer.is-open .modal-panel, .layer.is-open .gift-panel { opacity: 1; transform: none; }
.layer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
}
.layer-close:hover { background: #F2F5F3; color: var(--brand); }
.layer-close .icon { width: 15px; height: 15px; }
.product-panel { position: relative; width: min(900px, 100%); padding: 18px; }
.product-panel > .layer-close { position: absolute; z-index: 4; top: 10px; inset-inline-end: 10px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product-detail__media { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: #F3F0E9; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--coupon);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
}
.product-detail__copy { display: flex; flex-direction: column; align-items: flex-start; padding-top: 10px; }
.product-detail__category { color: var(--muted); font-size: 10px; }
.product-detail__copy h2 { margin-top: 4px; color: var(--ink); font-family: var(--font-display); font-size: clamp(21px, 2.7vw, 28px); font-weight: 800; line-height: 1.35; }
.product-detail__desc { margin-top: 7px; color: #5F6B63; font-size: 12px; line-height: 1.9; }
.product-detail__features { display: grid; gap: 5px; width: 100%; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.product-detail__features li { display: flex; align-items: flex-start; gap: 6px; color: #58655D; font-size: 11px; line-height: 1.7; }
.product-detail__features .icon { width: 13px; height: 13px; margin-top: 3px; color: var(--brand); }
.product-detail__coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid #E2B5BC;
  border-radius: 8px;
  background: linear-gradient(90deg, #FFF8F8, #FFF0F2);
}
.product-detail__coupon-label { display: flex; flex-direction: column; color: var(--coupon); font-size: 10px; font-weight: 700; }
.product-detail__coupon-label strong { font-family: var(--font-display); font-size: 22px; font-weight: 900; line-height: 1.2; }
.product-detail__coupon-label span { color: #85636A; font-size: 9px; font-weight: 400; }
.product-detail__coupon--locked { border-color: #EAD8B6; background: #FFFBF2; }
.product-detail__coupon--locked .product-detail__coupon-label { color: #8A5B1B; }
.product-detail__actions { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; margin-top: 12px; }
.product-detail__actions .button { flex: 1 1 150px; min-height: 41px; font-size: 12px; }
.product-detail__note { width: 100%; margin-top: 9px; color: #8C948E; font-size: 9px; line-height: 1.7; }

/* ----------------------------- نافذة الهدية ----------------------------- */
.gift-layer { padding: 8px; }
.gift-layer .layer__backdrop {
  background:
    radial-gradient(circle at 50% 38%, rgba(199, 16, 41, 0.22), transparent 46%),
    radial-gradient(circle at 50% 70%, rgba(245, 197, 87, 0.12), transparent 30%),
    rgba(6, 20, 12, 0.8);
}
.gift-panel {
  width: min(466px, 100%);
  max-height: calc(100dvh - 16px);
  padding: 13px 15px 18px;
  border: 1px solid rgba(245, 197, 87, 0.52);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 21%, rgba(245, 197, 87, 0.2), transparent 35%),
    linear-gradient(180deg, #FFFDF8 0%, #FFFDF9 58%, #FFF8ED 100%);
  box-shadow: 0 24px 70px rgba(4, 16, 9, 0.4);
  text-align: center;
}
.gift-panel::before, .gift-panel::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.gift-panel::before { top: -110px; inset-inline-start: -80px; width: 260px; height: 260px; background: rgba(245, 197, 87, 0.11); }
.gift-panel::after { bottom: -160px; inset-inline-end: -110px; width: 310px; height: 310px; background: rgba(20, 107, 73, 0.06); }
.gift-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gift-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-size: 11px; font-weight: 700; }
.gift-brand img { width: 22px; height: 22px; border-radius: 6px; }
.gift-intro { padding-top: 10px; }
.gift-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border: 1px solid #EAD8B6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #97651A;
  font-size: 9.5px;
  font-weight: 700;
}
.gift-panel h2 {
  margin-top: 7px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
}
.gift-intro > p:not(.gift-hint) {
  max-width: 300px;
  margin: 5px auto 0;
  color: #7A6F5D;
  font-size: 11px;
  line-height: 1.7;
}
.gift-stage {
  position: relative;
  width: min(84%, 300px);
  aspect-ratio: 1;
  margin: 5px auto 1px;
}
.gift-glow {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 121, 0.5) 0, rgba(255, 210, 121, 0.12) 42%, transparent 70%);
  animation: gift-glow 2.8s ease-in-out infinite;
}
.gift-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(80, 46, 10, 0.16));
  border-radius: 18px;
}
.gift-image--closed {
  z-index: 2;
  animation: gift-float 3.4s ease-in-out infinite, gift-wiggle 2.8s ease-in-out infinite;
}
.gift-image--open { z-index: 3; opacity: 0; transform: scale(0.8) translateY(14px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.gift-sparkles { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.gift-sparkles i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #E5B34D;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  animation: sparkle 2.4s ease-in-out infinite;
}
.gift-sparkles i:nth-child(1) { top: 13%; inset-inline-start: 13%; animation-delay: 0.2s; }
.gift-sparkles i:nth-child(2) { top: 28%; inset-inline-end: 8%; animation-delay: 0.8s; width: 6px; height: 6px; }
.gift-sparkles i:nth-child(3) { top: 51%; inset-inline-start: 3%; animation-delay: 1.2s; width: 5px; height: 5px; }
.gift-sparkles i:nth-child(4) { top: 8%; inset-inline-end: 23%; animation-delay: 1.7s; width: 5px; height: 5px; }
.gift-sparkles i:nth-child(5) { bottom: 16%; inset-inline-end: 16%; animation-delay: 0.5s; width: 7px; height: 7px; }
.gift-sparkles i:nth-child(6) { bottom: 22%; inset-inline-start: 19%; animation-delay: 2s; width: 4px; height: 4px; }
.gift-confetti { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.confetti-piece {
  position: absolute;
  top: 48%;
  inset-inline-start: 50%;
  width: 7px;
  height: 10px;
  border-radius: 1px;
  opacity: 0;
  animation: confetti-pop 1.2s ease-out forwards;
}
.gift-open-button { width: min(100%, 280px); min-height: 45px; margin-top: 2px; font-size: 14px; }
.gift-skip { display: block; margin: 6px auto 0; color: #8A806D; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.gift-hint { margin-top: 6px; color: #A59884; font-size: 9px; }
.gift-layer.is-opening .gift-image--closed { animation: gift-lid-up 0.75s var(--ease) forwards; }
.gift-layer.is-opening .gift-image--open { opacity: 1; transform: none; }
.gift-layer.is-opening .gift-open-button,
.gift-layer.is-opening .gift-skip,
.gift-layer.is-opening .gift-hint { opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }

.gift-result { position: relative; padding-top: 3px; animation: fade-in-up 0.45s var(--ease) both; }
.gift-result__glow {
  position: absolute;
  top: -150px;
  inset-inline-start: 50%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 197, 87, 0.36), transparent 64%);
  transform: translateX(50%);
  pointer-events: none;
}
.gift-result__eyebrow { position: relative; color: #A96A17; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }
.gift-result h2 { margin-top: 2px; font-size: 24px; }
.gift-result__lead { margin-top: 4px; color: #796F5E; font-size: 10.5px; }
.coupon-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 68px;
  align-items: stretch;
  width: 100%;
  min-height: 112px;
  margin: 13px auto 10px;
  overflow: hidden;
  border: 2px solid #E7B953;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coupon) 0%, #A30D22 100%);
  color: #fff;
  text-align: start;
  box-shadow: 0 12px 26px rgba(146, 10, 29, 0.22);
  transform-origin: 50% 100%;
  animation: coupon-in 0.55s 0.08s var(--ease) both;
}
.coupon-ticket__notch {
  position: absolute;
  inset-inline-start: calc(46px + (100% - 46px - 68px) * 0.5);
  width: 14px;
  height: 14px;
  border: 2px solid #E7B953;
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(50%);
}
.coupon-ticket__notch--top { top: -8px; }
.coupon-ticket__notch--bottom { bottom: -8px; }
.coupon-ticket__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-inline-end: 1px dashed rgba(255, 255, 255, 0.35);
  font-size: 8px;
}
.coupon-ticket__side strong { font-size: 7px; font-weight: 500; letter-spacing: 0.1em; }
.coupon-ticket__body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px 10px; text-align: center; }
.coupon-ticket__small { color: rgba(255, 255, 255, 0.82); font-size: 9.5px; font-weight: 500; }
.coupon-ticket__value { display: flex; align-items: baseline; direction: ltr; gap: 1px; color: #FFE7A8; font-family: var(--font-display); font-size: 46px; font-weight: 900; line-height: 1.12; letter-spacing: -0.055em; }
.coupon-ticket__value small { font-size: 20px; font-weight: 800; letter-spacing: 0; }
.coupon-ticket__off { margin-top: 1px; color: #FFE7A8; font-size: 8px; font-weight: 700; letter-spacing: 0.14em; }
.coupon-ticket__body p { margin-top: 3px; color: rgba(255, 255, 255, 0.88); font-size: 8.5px; }
.coupon-ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-inline-start: 1px dashed rgba(255, 255, 255, 0.35);
  color: #FFE7A8;
  font-size: 7.5px;
  text-align: center;
  padding-inline: 4px;
}
.coupon-ticket__stub .icon { width: 17px; height: 17px; }
.coupon-ticket__stub span { line-height: 1.3; }
.coupon-ticket__stub small { color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.gift-result__note { max-width: 340px; margin: 0 auto; color: #7D725E; font-size: 9px; line-height: 1.7; }
.gift-result .button { margin-top: 10px; min-height: 43px; }
.gift-result__browse { display: block; margin: 6px auto 0; color: #7E725E; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.gift-result__terms { max-width: 320px; margin: 8px auto 0; color: #A59781; font-size: 8px; line-height: 1.7; }

body.coupon-unlocked .gift-intro { display: none !important; }
body.coupon-unlocked .gift-result { display: block !important; }
body.coupon-unlocked .gift-panel { max-height: calc(100dvh - 16px); }

/* ----------------------------- Toast ----------------------------- */
.toast-region {
  position: fixed;
  z-index: 300;
  inset-inline: 12px;
  bottom: calc(var(--appbar-height) + env(safe-area-inset-bottom, 0px) + 15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
body.modal-open .toast-region { top: 10px; bottom: auto; }
.toast {
  max-width: 360px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(17, 39, 27, 0.95);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 8px 22px rgba(8, 30, 18, 0.2);
  animation: toast-in 0.25s ease both;
}

.noscript-banner {
  position: fixed;
  z-index: 400;
  inset-inline: 12px;
  top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #FFF4E7;
  color: #734817;
  font-size: 11px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
