:root {
  --m-950: #14040a;
  --m-900: #22070d;
  --m-850: #2e0a12;
  --m-800: #43101a;
  --m-700: #631521;
  --m-600: #85202d;
  --m-500: #a52c3b;
  --gold-200: #f8e6b4;
  --gold-300: #f1d38b;
  --gold-400: #e2bb66;
  --gold-500: #c9a24a;
  --gold-700: #8a6420;
  --cream: #fbf5ec;
  --paper: #fffaf3;
  --ink: #1f0d11;
  --ink-2: #5b4146;
  --line: rgba(31, 13, 17, 0.12);
  --green: #2f6b3a;
  --wa: #1fa855;
  --radius: 22px;
  --shadow-lg: 0 24px 60px rgba(20, 4, 10, 0.45);
  --font: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--m-950);
  color: #fff;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--spring), box-shadow 0.25s ease, background-color 0.25s ease;
  user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn:focus-visible, .icon-btn:focus-visible, .type-chip:focus-visible, .pillar-btn:focus-visible, .scan-cta:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
}
.btn-xl { min-height: 58px; font-size: 1.08rem; padding-inline: 1.6rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 45%, var(--gold-500));
  color: var(--m-900);
  box-shadow: 0 10px 26px rgba(201, 162, 74, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-maroon {
  background: linear-gradient(135deg, var(--m-500), var(--m-700));
  color: #fff;
  box-shadow: 0 12px 28px rgba(133, 32, 45, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost {
  background: rgba(133, 32, 45, 0.08);
  color: var(--m-700);
  border: 1px solid rgba(133, 32, 45, 0.2);
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px rgba(31, 168, 85, 0.3); }

.icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s var(--spring), background-color 0.2s;
}
.icon-btn:active { transform: scale(0.9); }
.icon-btn.on { background: var(--gold-400); color: var(--m-900); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.6rem, env(safe-area-inset-top)) 1rem 0.6rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s;
}
.topbar.solid {
  background: rgba(34, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font-size: 0.98rem; font-weight: 800; }
.brand-text small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.72); }
.badge7 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(241, 211, 139, 0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.badge7 b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
  color: var(--m-900);
  font-size: 1.25rem;
  font-weight: 900;
  animation: pulse7 2.6s ease-in-out infinite;
}
@keyframes pulse7 {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 211, 139, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(241, 211, 139, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block-start: calc(64px + env(safe-area-inset-top));
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--m-900) url("/assets/bg-portrait.jpg") center / cover no-repeat;
  animation: bgIn 2.4s var(--ease-out) both;
}
@keyframes bgIn { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero-sparks { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-sparks i {
  position: absolute;
  inset-block-end: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe7a8 0%, rgba(241, 211, 139, 0.6) 40%, transparent 70%);
  animation: spark 9s linear infinite;
  opacity: 0;
}
.hero-sparks i:nth-child(1) { inset-inline-start: 8%; animation-delay: 0s; }
.hero-sparks i:nth-child(2) { inset-inline-start: 18%; animation-delay: 2.2s; width: 4px; height: 4px; }
.hero-sparks i:nth-child(3) { inset-inline-start: 29%; animation-delay: 4.1s; }
.hero-sparks i:nth-child(4) { inset-inline-start: 41%; animation-delay: 1.3s; width: 8px; height: 8px; }
.hero-sparks i:nth-child(5) { inset-inline-start: 52%; animation-delay: 5.6s; width: 4px; height: 4px; }
.hero-sparks i:nth-child(6) { inset-inline-start: 63%; animation-delay: 3.3s; }
.hero-sparks i:nth-child(7) { inset-inline-start: 72%; animation-delay: 6.8s; width: 5px; height: 5px; }
.hero-sparks i:nth-child(8) { inset-inline-start: 81%; animation-delay: 0.7s; }
.hero-sparks i:nth-child(9) { inset-inline-start: 90%; animation-delay: 4.9s; width: 4px; height: 4px; }
.hero-sparks i:nth-child(10) { inset-inline-start: 35%; animation-delay: 7.5s; width: 7px; height: 7px; }
.hero-sparks i:nth-child(11) { inset-inline-start: 58%; animation-delay: 8.4s; }
.hero-sparks i:nth-child(12) { inset-inline-start: 12%; animation-delay: 6.1s; width: 5px; height: 5px; }
@keyframes spark {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  70% { opacity: 0.7; }
  100% { transform: translate3d(18px, -92vh, 0); opacity: 0; }
}

.hero-visual {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1 1 auto;
}
.hero-seven {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  inset-block-end: 16%;
  width: min(76vw, 420px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(241, 211, 139, 0.18));
  animation: sevenIn 1.8s 0.35s var(--ease-out) both;
}
@keyframes sevenIn {
  from { opacity: 0; transform: translateY(50px) scale(0.86); }
  to { opacity: 1; transform: none; }
}
.hero-karim { position: relative; z-index: 1; animation: karimIn 1.4s 0.25s var(--ease-out) both; }
.hero-karim img {
  height: clamp(280px, 50svh, 640px);
  width: auto;
  max-width: 94vw;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55));
}
@keyframes karimIn { from { opacity: 0; transform: translateY(60px) scale(0.96); } to { opacity: 1; transform: none; } }

.hero-floor {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 52%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 4, 10, 0) 0%, rgba(20, 4, 10, 0.78) 34%, rgba(20, 4, 10, 0.96) 62%, var(--m-950) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-block-start: -15svh;
  padding: 0 1.15rem 1.4rem;
  display: grid;
  gap: 0.8rem;
  width: min(100%, 560px);
  margin-inline: auto;
}
.hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.7s; }
.hero-copy > :nth-child(2) { animation-delay: 0.82s; }
.hero-copy > :nth-child(3) { animation-delay: 0.94s; }
.hero-copy > :nth-child(4) { animation-delay: 1.06s; }
.hero-copy > :nth-child(5) { animation-delay: 1.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-300);
}
.hero-name { display: grid; gap: 0.1rem; line-height: 1.35; }
.hero-name small { font-size: 1.05rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.hero-name span {
  font-size: clamp(2.6rem, 12.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.3;
  padding-block-end: 0.12em;
  background: linear-gradient(180deg, #fff 30%, #f3dfb3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero-role { font-size: 0.98rem; line-height: 1.8; color: rgba(255, 255, 255, 0.86); }
.hero-role b { color: #fff; font-weight: 700; }
.hero-chips { list-style: none; margin: 0.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.chip-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--m-900); border: 0; font-weight: 800; }
.hero-actions { display: grid; gap: 0.7rem; margin-block-start: 0.5rem; }

/* ---------- countdown ---------- */
.countdown {
  position: relative;
  padding: 1.4rem 1rem 1.8rem;
  text-align: center;
  background: var(--m-950);
}
.cd-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin-block-end: 0.7rem; }
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 420px;
  margin-inline: auto;
}
.cd-grid div {
  padding: 0.7rem 0.2rem 0.55rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(241, 211, 139, 0.2);
}
.cd-grid b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.cd-grid b.tick { animation: tick 0.4s var(--spring); }
@keyframes tick { from { transform: translateY(-6px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.cd-grid span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.cd-tag { margin-block-start: 0.9rem; font-weight: 700; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }

/* ---------- lookup ---------- */
.lookup {
  padding: 1rem 0.9rem 2.6rem;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(165, 44, 59, 0.35), transparent 70%),
    var(--m-950);
  scroll-margin-top: 64px;
}
.lookup-card {
  max-width: 520px;
  margin-inline: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px;
  padding: 1.5rem 1.15rem 1.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.lookup-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--m-600), var(--gold-400), var(--m-600));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--m-600);
  margin-block-end: 0.55rem;
}
.lookup-card h2 { font-size: 1.65rem; font-weight: 900; line-height: 1.5; color: var(--m-800); }
.lead { color: var(--ink-2); font-size: 0.95rem; line-height: 1.9; margin-block-start: 0.6rem; }

.scan-cta {
  position: relative;
  margin-block-start: 1.1rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 0;
  cursor: pointer;
  text-align: start;
  color: #fff;
  background: linear-gradient(135deg, var(--m-600), var(--m-800));
  box-shadow: 0 16px 30px rgba(99, 21, 33, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition: transform 0.2s var(--spring);
}
.scan-cta:active { transform: scale(0.97); }
.scan-cta::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 40%;
  inset-inline-start: -50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.2s 1.5s ease-in-out infinite;
}
@keyframes sheen { 0% { inset-inline-start: -50%; } 45%, 100% { inset-inline-start: 130%; } }
.scan-cta-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.5rem;
}
.scan-cta-text { display: grid; line-height: 1.35; }
.scan-cta-text strong { font-size: 1.12rem; font-weight: 800; }
.scan-cta-text small { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.scan-cta-new {
  margin-inline-start: auto;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-300);
  color: var(--m-900);
}

.or { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0 0.4rem; color: var(--ink-2); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.types { border: 0; margin: 0; padding: 0; min-width: 0; }
.types legend, .field-label { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-block-end: 0.45rem; padding: 0; }
.type-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-block: 0.15rem 0.5rem;
  margin-inline: -1.15rem;
  padding-inline: 1.15rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.type-row::-webkit-scrollbar { display: none; }
.type-chip {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(133, 32, 45, 0.22);
  background: #fff;
  color: var(--m-700);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.18s var(--spring), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.type-chip i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 0.3rem;
  border-radius: 999px;
  background: rgba(133, 32, 45, 0.1);
  font-size: 0.78rem;
}
.type-chip[aria-checked="true"] { background: var(--m-600); border-color: var(--m-600); color: #fff; transform: scale(1.03); }
.type-chip[aria-checked="true"] i { background: rgba(255, 255, 255, 0.2); }

.field-label { display: block; margin-block-start: 0.7rem; }
.num-field {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(133, 32, 45, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.num-field:focus-within { border-color: var(--m-600); box-shadow: 0 0 0 5px rgba(165, 44, 59, 0.14); }
.num-field.ok { border-color: var(--green); box-shadow: 0 0 0 5px rgba(47, 107, 58, 0.14); }
.num-field.bad { border-color: #c0392b; animation: shake 0.45s; }
@keyframes shake {
  20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}
.num-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--m-800);
  direction: ltr;
}
.num-field input::placeholder { color: rgba(31, 13, 17, 0.28); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; direction: rtl; }
.num-suffix {
  margin-inline-end: 0.8rem;
  padding: 0.2rem 0.65rem;
  border-radius: 10px;
  background: var(--m-600);
  color: #fff;
  font-weight: 800;
}
.hint { min-height: 1.6em; margin: 0.45rem 0 0.8rem; font-size: 0.85rem; color: var(--ink-2); transition: color 0.2s; }
.hint.ok { color: var(--green); font-weight: 700; }
.hint.bad { color: #b3261e; font-weight: 700; }

.result { margin-block-start: 1.2rem; }
.result.show .ticket { animation: ticketIn 0.75s var(--spring) both; }
@keyframes ticketIn { from { opacity: 0; transform: translateY(26px) rotate(-2deg) scale(0.92); } to { opacity: 1; transform: none; } }
.ticket {
  position: relative;
  border-radius: 24px;
  padding: 1.1rem 1.1rem 1rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(241, 211, 139, 0.22), transparent 60%),
    linear-gradient(160deg, var(--m-600), var(--m-850));
  box-shadow: 0 22px 44px rgba(67, 16, 26, 0.45);
  overflow: hidden;
}
.ticket-top { display: flex; align-items: center; gap: 0.7rem; text-align: start; font-size: 0.82rem; font-weight: 600; line-height: 1.6; }
.ticket-top img { width: 30px; height: auto; }
.muted { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.ticket-label { margin-block-start: 0.9rem; font-size: 1rem; font-weight: 600; color: var(--gold-200); }
.ticket-num {
  font-size: clamp(5rem, 30vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  margin-block: 0.15rem 0.25rem;
  background: linear-gradient(180deg, #fff 20%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
}
.ticket-num.pop { animation: numPop 0.6s var(--spring); }
@keyframes numPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.ticket-range { font-size: 0.9rem; line-height: 1.8; color: rgba(255, 255, 255, 0.85); margin-block-start: 0.3rem; }
.ticket-type { display: inline-block; margin-block-start: 0.45rem; padding: 0.15rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.8rem; font-weight: 600; }
.ticket-cut {
  position: relative;
  margin: 1rem -1.1rem 0.9rem;
  border-block-start: 2px dashed rgba(255, 255, 255, 0.28);
}
.ticket-cut::before, .ticket-cut::after {
  content: "";
  position: absolute;
  inset-block-start: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket-cut::before { inset-inline-start: -12px; }
.ticket-cut::after { inset-inline-end: -12px; }
.ticket-vote { display: flex; align-items: center; gap: 0.9rem; text-align: start; font-size: 0.95rem; line-height: 1.75; }
.ticket-vote small { color: var(--gold-200); font-size: 0.8rem; }
.vote7 {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
  color: var(--m-900);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-block-start: 0.9rem; }
.result-actions .btn { min-height: 48px; font-size: 0.9rem; padding-inline: 0.7rem; }
.result-actions .btn-gold, .result-actions .btn-wa { grid-column: span 1; }
.privacy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-block-start: 1rem;
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 0.9rem 2.6rem;
  max-width: 560px;
  margin-inline: auto;
}
.stat {
  padding: 1rem 0.9rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(165, 44, 59, 0.3), rgba(67, 16, 26, 0.35));
  border: 1px solid rgba(241, 211, 139, 0.16);
}
.stat b { display: block; font-size: 2.2rem; font-weight: 900; color: var(--gold-300); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

/* ---------- about ---------- */
.about {
  padding: 3.2rem 1.15rem 2.6rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 32px 32px 0 0;
}
.about > * { max-width: 560px; margin-inline: auto; }
.about-photo { margin-block: 0 1.5rem; position: relative; }
.about-photo img { border-radius: 24px; width: 100%; height: auto; box-shadow: 0 22px 44px rgba(67, 16, 26, 0.25); }
.about-photo figcaption {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 12px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(34, 7, 13, 0.8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.about-copy { display: grid; gap: 1.15rem; }
.about h2, .section-head h2 { font-size: 1.6rem; font-weight: 900; line-height: 1.55; color: var(--m-800); }
.section-head .lead { margin-block-start: 0.7rem; }
.about p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.95; }
.pull {
  margin: 0.3rem 0;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #fff;
  border-inline-start: 5px solid var(--m-600);
  box-shadow: 0 10px 26px rgba(67, 16, 26, 0.08);
}
.pull p { color: var(--m-700); font-weight: 700; font-size: 1.05rem; line-height: 1.9; }
.signature {
  font-family: "Aref Ruqaa", var(--font);
  font-size: 2rem !important;
  color: var(--m-600) !important;
  line-height: 1.5;
  margin-block-start: 0.3rem;
}

/* ---------- program ---------- */
.program { padding: 2.4rem 1.15rem 3.2rem; background: var(--cream); color: var(--ink); }
.section-head { max-width: 560px; margin: 0 auto 1.6rem; }
.section-head .lead { color: var(--ink-2); }
.pillars { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; gap: 0.65rem; }
.pillar {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(67, 16, 26, 0.07);
  border: 1px solid rgba(133, 32, 45, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.pillar.open { box-shadow: 0 16px 34px rgba(67, 16, 26, 0.16); }
.pillar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0.95rem;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
  color: var(--ink);
}
.pillar-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--m-500), var(--m-700));
  font-size: 1.25rem;
  transition: transform 0.4s var(--spring);
}
.pillar.open .pillar-ic { transform: rotate(-8deg) scale(1.08); }
.pillar-title { flex: 1; display: grid; gap: 0.15rem; line-height: 1.55; }
.pillar-title small { font-size: 0.75rem; font-weight: 700; color: var(--gold-700); }
.pillar-title strong { font-size: 1.02rem; font-weight: 800; color: var(--m-800); }
.pillar-chev { color: var(--m-600); transition: transform 0.35s var(--ease-out); }
.pillar.open .pillar-chev { transform: rotate(180deg); }
.pillar-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.pillar.open .pillar-body { grid-template-rows: 1fr; }
.pillar-body > div { overflow: hidden; }
.pillar-body p { padding: 0 1rem 1.1rem; padding-inline-start: calc(46px + 1.75rem); color: var(--ink-2); font-size: 0.94rem; line-height: 1.9; }

/* ---------- roadmap ---------- */
.roadmap { padding: 3.2rem 1.15rem 3.4rem; background: var(--m-950); }
.roadmap .section-head h2 { color: #fff; }
.roadmap .eyebrow { color: var(--gold-300); }
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  position: relative;
  display: grid;
  gap: 1rem;
  --prog: 0;
}
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 13px;
  width: 3px;
  border-radius: 3px;
  height: calc(100% - 16px);
}
.timeline::before { background: rgba(255, 255, 255, 0.12); }
.timeline::after {
  background: linear-gradient(180deg, var(--gold-300), var(--m-500));
  transform-origin: top;
  transform: scaleY(var(--prog));
}
.timeline li { position: relative; padding-inline-start: 2.6rem; }
.tl-dot {
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: 6px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--m-950);
  border: 3px solid var(--gold-400);
  z-index: 1;
  transition: background-color 0.4s, transform 0.4s var(--spring);
}
.timeline li.in .tl-dot { background: var(--gold-300); transform: scale(1.12); }
.tl-when { display: inline-block; font-weight: 800; color: var(--gold-300); font-size: 0.9rem; }
.timeline h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.5; margin-block: 0.25rem 0.4rem; }
.timeline li p:not(.tl-when) { color: rgba(255, 255, 255, 0.78); font-size: 0.94rem; line-height: 1.9; }
.timeline li > :not(.tl-dot) { }
.timeline li {
  padding-block: 0.9rem;
  padding-inline-end: 1rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.timeline li .tl-dot { inset-block-start: 1.05rem; inset-inline-start: 4px; }
.timeline::before, .timeline::after { inset-inline-start: 13px; }

/* ---------- closing ---------- */
.closing {
  position: relative;
  padding: 3rem 1rem 3.4rem;
  background:
    linear-gradient(180deg, rgba(20, 4, 10, 0.55), rgba(20, 4, 10, 0.92)),
    url("/assets/bg-portrait.jpg") center / cover no-repeat;
  text-align: center;
}
.closing-inner { max-width: 560px; margin-inline: auto; display: grid; gap: 1rem; justify-items: center; }
.closing-quote { width: 44px; height: 44px; fill: var(--gold-400); opacity: 0.9; }
.closing-text { font-size: 1.2rem; font-weight: 700; line-height: 2; }
.closing-by { color: var(--gold-300); font-weight: 700; }
.closing-seven { display: grid; justify-items: center; gap: 0.1rem; margin-block: 0.6rem; }
.closing-seven span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.closing-seven b {
  font-size: 7.5rem;
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(241, 211, 139, 0.3));
}
.closing-actions { display: grid; gap: 0.6rem; width: 100%; }

.footer {
  padding: 2rem 1rem calc(6rem + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--m-950);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.footer img { width: 40px; height: auto; opacity: 0.9; }
.footer .tags { color: var(--gold-300); font-weight: 700; }
.footer .muted { font-size: 0.75rem; max-width: 420px; }

/* ---------- dock ---------- */
.dock {
  position: fixed;
  inset-inline: 0.8rem;
  inset-block-end: max(0.8rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(34, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(241, 211, 139, 0.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform: translateY(140%);
  transition: transform 0.45s var(--spring);
  max-width: 480px;
  margin-inline: auto;
}
.dock.show { transform: none; }
.dock .btn { flex: 1; min-height: 50px; }
.dock .dock-cam { flex: none; width: 50px; padding: 0; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- scanner ---------- */
.scanner {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #07020a;
  color: #fff;
  animation: sheetIn 0.4s var(--ease-out);
}
.scanner[hidden] { display: none; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.scan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(0.7rem, env(safe-area-inset-top)) 0.9rem 0.6rem;
}
.scan-top h2 { font-size: 1.05rem; font-weight: 800; }
.scan-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; }
.scan-stage video, .scan-stage canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* dimming around the frame: border widths are set from the frame's rect in app.js (no giant shadows — iOS drops them) */
.scan-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0 solid rgba(7, 2, 10, 0.68);
  pointer-events: none;
  transition: border-color 0.3s;
}
.scan-shade.locked { border-color: rgba(7, 2, 10, 0.82); }
.scan-guide {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  margin-inline: auto;
  inset-block-start: 40%;
  width: min(88vw, 520px);
  height: calc(min(88vw, 520px) / 3.4);
  translate: 0 -50%;
  border-radius: 14px;
  border: 2px solid rgba(241, 211, 139, 0.65);
  box-shadow: inset 0 0 34px rgba(241, 211, 139, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.scan-guide .corner { position: absolute; z-index: 1; width: 30px; height: 30px; border: 5px solid var(--gold-300); transition: border-color 0.3s; }
.scan-guide .tl { inset-block-start: -5px; inset-inline-start: -5px; border-inline-end: 0; border-block-end: 0; border-start-start-radius: 16px; }
.scan-guide .tr { inset-block-start: -5px; inset-inline-end: -5px; border-inline-start: 0; border-block-end: 0; border-start-end-radius: 16px; }
.scan-guide .bl { inset-block-end: -5px; inset-inline-start: -5px; border-inline-end: 0; border-block-start: 0; border-end-start-radius: 16px; }
.scan-guide .br { inset-block-end: -5px; inset-inline-end: -5px; border-inline-start: 0; border-block-start: 0; border-end-end-radius: 16px; }
.ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  direction: rtl;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 800;
  font-size: clamp(1.05rem, 6.2vw, 1.7rem);
  white-space: nowrap;
  transition: opacity 0.3s;
}
.scan-guide.reading .ghost, .scan-guide.locked .ghost { opacity: 0; }
.laser {
  position: absolute;
  inset-inline: 6%;
  height: 3px;
  inset-block-start: 10%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ff6b7d, #fff, #ff6b7d, transparent);
  box-shadow: 0 0 16px 4px rgba(255, 90, 110, 0.55);
  animation: laser 1.8s ease-in-out infinite alternate;
}
@keyframes laser { from { inset-block-start: 8%; } to { inset-block-start: 88%; } }
.guide-label {
  position: absolute;
  inset-block-start: calc(100% + 16px);
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(241, 211, 139, 0.35);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}
.scan-guide.locked { border-color: #3ddc84; box-shadow: inset 0 0 34px rgba(61, 220, 132, 0.3); }
.scan-guide.locked .corner { border-color: #3ddc84; }
.scan-guide.locked .laser { display: none; }
.scan-read {
  position: absolute;
  z-index: 4;
  inset-block-start: 1rem;
  inset-inline: 0;
  margin-inline: auto;
  width: fit-content;
  max-width: 90%;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  direction: ltr;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, background-color 0.3s;
}
.scan-read.show { opacity: 1; transform: none; }
.scan-read.ok { background: #1f9d55; }
.scan-bottom {
  padding: 0.9rem 1rem max(1rem, env(safe-area-inset-bottom));
  display: grid;
  gap: 0.8rem;
  background: linear-gradient(180deg, rgba(7, 2, 10, 0.4), #07020a 30%);
}
.scan-help { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); text-align: center; }
.scan-help b { color: var(--gold-300); }
.scan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.scan-actions .btn { min-height: 48px; font-size: 0.88rem; padding-inline: 0.6rem; }
.scan-tools { display: flex; justify-content: center; gap: 0.6rem; }
.scan-tools[hidden] { display: none; }
.mini-card {
  justify-self: center;
  position: relative;
  width: 96px;
  height: 60px;
  border-radius: 8px;
  background: #f4f1ec;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.mini-card span { position: absolute; display: block; border-radius: 3px; }
.mc-head { inset-inline: 0; inset-block-start: 0; height: 12px; background: #4b5a8f; border-radius: 0 !important; }
.mc-photo { inset-inline-end: 8px; inset-block-start: 18px; width: 22px; height: 26px; background: #b98b73; }
.mc-line { inset-inline-start: 8px; width: 46px; height: 5px; background: #333; inset-block-start: 20px; }
.mc-line.mc-hl { inset-block-start: 30px; width: 52px; background: #e23b4e; box-shadow: 0 0 0 3px rgba(241, 211, 139, 0.9); animation: hl 1.2s ease-in-out infinite alternate; }
.mc-line.short { inset-block-start: 40px; width: 34px; }
@keyframes hl { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- toast & confetti ---------- */
.toast {
  position: fixed;
  z-index: 90;
  inset-inline: 0;
  inset-block-start: max(1rem, env(safe-area-inset-top));
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-160%);
  transition: transform 0.45s var(--spring);
}
.toast.show { transform: none; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* ---------- larger screens ---------- */
@media (min-width: 900px) {
  .hero-bg { background-image: url("/assets/bg-wide.jpg"); }
  .hero { flex-direction: row; align-items: stretch; padding-block-start: 0; }
  .hero-copy { order: -1; flex: 1; align-self: center; margin: 0; padding: 7rem 6vw 4rem; width: auto; max-width: 680px; }
  .hero-visual { flex: 1; }
  .hero-karim img { height: min(88vh, 860px); max-width: 46vw; }
  .hero-seven { width: min(38vw, 560px); inset-block-end: 14%; }
  .hero-floor {
    height: 100%;
    background: linear-gradient(270deg, rgba(20, 4, 10, 0.9) 0%, rgba(20, 4, 10, 0.55) 40%, rgba(20, 4, 10, 0) 65%),
      linear-gradient(180deg, transparent 72%, var(--m-950));
  }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .dock { display: none; }
  .stats { grid-template-columns: repeat(4, 1fr); max-width: 1000px; }
  .about { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-inline: 6vw; }
  .about > * { max-width: none; margin: 0; }
  .pillars { max-width: 1000px; grid-template-columns: 1fr 1fr; align-items: start; }
  .section-head { max-width: 1000px; }
  .closing-actions { grid-template-columns: repeat(3, auto); justify-content: center; }
}

@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; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-sparks { display: none; }
}

/* ---------- language button & LTR ---------- */
.top-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s var(--spring), background-color 0.2s;
}
.lang-btn:active { transform: scale(0.94); }
.lang-btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
[dir="ltr"] .num-field input::placeholder { direction: ltr; }
[lang="en"] .signature { font-family: var(--font); font-size: 1.45rem !important; font-weight: 800; }
[lang="en"] .hero-name span { font-size: clamp(2.4rem, 11vw, 4.2rem); line-height: 1.15; }
[lang="en"] body { line-height: 1.65; }
@media (max-width: 439px) {
  .brand-text small { display: none; }
}
@media (max-width: 389px) {
  .topbar { padding-inline: 0.75rem; }
  .lang-btn .ic { display: none; }
  .badge7 { padding-inline-start: 0.6rem; }
  .hero-copy { padding-inline: 0.95rem; }
  .lookup { padding-inline: 0.6rem; }
  .lookup-card { padding-inline: 0.95rem; }
  .type-row { margin-inline: -0.95rem; padding-inline: 0.95rem; }
  .result-actions .btn { font-size: 0.84rem; }
}
@media (min-width: 900px) {
  [dir="ltr"] .hero-floor {
    background: linear-gradient(90deg, rgba(20, 4, 10, 0.9) 0%, rgba(20, 4, 10, 0.55) 40%, rgba(20, 4, 10, 0) 65%),
      linear-gradient(180deg, transparent 72%, var(--m-950));
  }
}

/* ---------- join sheet ---------- */
.sheet-bd { position: fixed; inset: 0; z-index: 85; background: rgba(10, 2, 6, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.sheet-bd.open { opacity: 1; }
.sheet {
  position: fixed;
  z-index: 86;
  inset-inline: 0;
  inset-block-end: 0;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px 28px 0 0;
  padding: 0.7rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease-out);
  outline: none;
}
.sheet.open { transform: none; }
.sheet[hidden], .sheet-bd[hidden], .sheet-form[hidden], .sheet-done[hidden] { display: none; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(31, 13, 17, 0.18); margin: 0 auto 0.9rem; }
.sheet .sheet-x { position: absolute; inset-block-start: 0.85rem; inset-inline-end: 0.85rem; width: 40px; height: 40px; background: rgba(133, 32, 45, 0.08); color: var(--m-700); border-color: rgba(133, 32, 45, 0.16); }
.sheet-head { text-align: center; display: grid; justify-items: center; gap: 0.55rem; margin-block-end: 1.1rem; padding-inline: 1.5rem; }
.sheet-badge { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--gold-200), var(--gold-500)); color: var(--m-900); font-size: 1.55rem; box-shadow: 0 10px 24px rgba(201, 162, 74, 0.4); }
.sheet-head h2 { font-size: 1.4rem; font-weight: 900; line-height: 1.5; color: var(--m-800); }
.sheet-head p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.85; }
.sf { display: grid; gap: 0.4rem; margin-block-end: 0.85rem; position: relative; }
.sf > span { font-size: 0.86rem; font-weight: 700; line-height: 1.6; }
.sf input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 2px solid rgba(133, 32, 45, 0.18);
  background: #fff;
  padding: 0.7rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--m-800);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
html[dir="rtl"] .sf input[dir="ltr"] { text-align: end; }
.sf input::placeholder { color: rgba(31, 13, 17, 0.3); font-weight: 500; }
.sf input:focus { border-color: var(--m-600); box-shadow: 0 0 0 5px rgba(165, 44, 59, 0.14); }
.sf input.flash { animation: flash 1.4s ease; }
@keyframes flash { 0% { background: #fff4cf; box-shadow: 0 0 0 6px rgba(241, 211, 139, 0.55); } 100% { background: #fff; box-shadow: none; } }
.sf-card { position: absolute; inset-block-start: 0.1rem; inset-inline-end: 0; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.74rem; font-weight: 700; color: var(--green); }
.sf-card[hidden] { display: none; }
.sf-err { min-height: 1.5em; color: #b3261e; font-weight: 700; font-size: 0.86rem; line-height: 1.6; margin-block: -0.2rem 0.6rem; }
.sheet .sf-skip { margin-block-start: 0.4rem; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; }
.sf-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-block-start: 0.6rem; font-size: 0.78rem; color: var(--ink-2); text-align: center; }
.sheet-done { text-align: center; display: grid; justify-items: center; gap: 0.8rem; padding: 1rem 0.5rem 0.4rem; }
.done-check { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.3rem; box-shadow: 0 14px 30px rgba(47, 107, 58, 0.35); animation: donePop 0.6s var(--spring); }
@keyframes donePop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-done h3 { font-size: 1.4rem; font-weight: 900; color: var(--m-800); line-height: 1.5; }
.sheet-done p { color: var(--ink-2); line-height: 1.85; }
.btn-join { grid-column: 1 / -1; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
@media (min-width: 640px) {
  .sheet { inset-block-end: auto; inset-block-start: 50%; margin-inline: auto; max-width: 460px; border-radius: 28px; transform: translateY(-40%) scale(0.96); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
  .sheet.open { transform: translateY(-50%); opacity: 1; }
  .sheet-grip { display: none; }
}

/* ---------- app showcase ---------- */
.ic-fill { fill: currentColor; stroke: none; }
.appx {
  position: relative;
  padding: 3.4rem 1rem 3.2rem;
  background:
    radial-gradient(85% 42% at 50% 40%, rgba(201, 162, 74, 0.24), transparent 70%),
    linear-gradient(180deg, var(--m-950) 0%, #1c0711 55%, var(--m-950) 100%);
  overflow: hidden;
  text-align: center;
}
.appx-inner { max-width: 640px; margin-inline: auto; display: grid; justify-items: center; gap: 1rem; }
.appx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.45rem 1rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(241, 211, 139, 0.12);
  border: 1px solid rgba(241, 211, 139, 0.38);
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.5;
}
.appx h2 { font-size: clamp(1.75rem, 7.4vw, 2.7rem); font-weight: 900; line-height: 1.45; }
.appx h2 span {
  display: block;
  background: linear-gradient(90deg, var(--gold-200), var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block-end: 0.08em;
}
.appx-lead { max-width: 34rem; color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; line-height: 1.95; }
.phones {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: calc(min(46vw, 250px) * 2.222 + 36px);
  margin-block: 0.8rem 0.4rem;
}
.phone {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  margin: 0 auto;
  width: min(46vw, 250px);
  aspect-ratio: 618 / 1373;
  padding: 7px;
  border-radius: 36px;
  background: linear-gradient(145deg, #34343a, #0b0b0e 60%);
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 15px;
  inset-inline: 0;
  margin-inline: auto;
  width: 30%;
  height: 17px;
  border-radius: 10px;
  background: #000;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; }
.phone.p-c { z-index: 3; animation: bob 6s ease-in-out infinite; }
.phone.p-a, .phone.p-b { width: min(37vw, 205px); inset-block-start: 40px; z-index: 2; filter: brightness(0.8) saturate(0.9); }
.phone.p-a { translate: -60% 0; rotate: -9deg; animation: bob 6s 1.2s ease-in-out infinite; }
.phone.p-b { translate: 60% 0; rotate: 9deg; animation: bob 6s 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone.p-c::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 29px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 48%, transparent 60%);
  background-size: 250% 100%;
  animation: glare 5s 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glare { 0% { background-position: 120% 0; } 45%, 100% { background-position: -60% 0; } }
.appx-feats {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  text-align: start;
}
.appx-feats li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 0.8rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fi {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
  color: var(--m-900);
  font-size: 1.15rem;
}
.appx-feats strong { display: block; font-size: 0.9rem; font-weight: 800; line-height: 1.55; }
.appx-feats small { display: block; margin-block-start: 0.2rem; font-size: 0.78rem; line-height: 1.65; color: rgba(255, 255, 255, 0.72); }
.stores { display: flex; justify-content: center; gap: 0.55rem; width: 100%; max-width: 460px; margin-block-start: 0.5rem; }
.store {
  flex: 1 1 0;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.5rem 0.8rem;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s var(--spring), border-color 0.2s;
}
.store:hover { border-color: var(--gold-300); }
.store:active { transform: scale(0.96); }
.store:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.store .ic { font-size: 1.6rem; }
.store span { display: grid; line-height: 1.25; text-align: start; }
.store small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.78); }
.store b { font-size: 1rem; font-weight: 800; white-space: nowrap; }
.appx-act { font-size: 0.86rem; line-height: 1.8; color: rgba(255, 255, 255, 0.76); }
.appx-act a { color: var(--gold-300); font-weight: 700; text-underline-offset: 3px; }
.appx-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.9rem; font-size: 0.8rem; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }
.appx-credit .by { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.appx-credit img { width: auto; height: 18px; }
.appx-credit b { color: #fff; font-weight: 700; }
@media (max-width: 359px) {
  .appx-feats { grid-template-columns: 1fr; }
}

/* ---------- socials ---------- */
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.socials > span { font-weight: 700; color: var(--m-700); margin-inline-end: 0.2rem; }
.soc {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--m-600);
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(133, 32, 45, 0.3);
  transition: transform 0.18s var(--spring), background-color 0.2s;
}
.soc:active { transform: scale(0.9); }
.soc:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.closing .socials, .footer .socials { justify-content: center; }
.closing .socials > span, .footer .socials > span { color: rgba(255, 255, 255, 0.8); }
.closing .soc, .footer .soc { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24); box-shadow: none; }
