/* =================================================================
   بعد اسمك · نادي رِياش
   الألوان والخطوط من دليل هوية رِياش
   ================================================================= */

/* ---------- الخطوط ---------- */
@font-face { font-family: "Lifta"; src: url("../fonts/lifta-swash.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Milan"; src: url("../fonts/milan-display-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("../fonts/thmanyah-serif-text-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

@font-face { font-family: "Readex"; font-weight: 300; font-display: swap; src: url("../fonts/readex-pro-arabic-300-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex"; font-weight: 400; font-display: swap; src: url("../fonts/readex-pro-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex"; font-weight: 600; font-display: swap; src: url("../fonts/readex-pro-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex"; font-weight: 700; font-display: swap; src: url("../fonts/readex-pro-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex"; font-weight: 300; font-display: swap; src: url("../fonts/readex-pro-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex"; font-weight: 400; font-display: swap; src: url("../fonts/readex-pro-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex"; font-weight: 600; font-display: swap; src: url("../fonts/readex-pro-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex"; font-weight: 700; font-display: swap; src: url("../fonts/readex-pro-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- المتغيرات ---------- */
:root {
  --black: #000;
  --card: #0A0A10;
  --card-2: #101019;
  --line: #2A2A35;
  --white: #fff;
  --gray: #A9A9B8;
  --gray-2: #6E6E80;
  --blue: #2E6BFF;
  --purple: #8A3FFC;
  --pink: #FF2E93;
  --blue-l: #3D78FF;
  --purple-l: #A24BFF;
  /* التدرج: أزرق أسفل اليمين ← وردي أعلى اليسار */
  --grad: linear-gradient(315deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
  --grad-x: linear-gradient(270deg, var(--blue-l) 0%, var(--purple-l) 50%, var(--pink) 100%);

  --f-body: "Readex", system-ui, sans-serif;
  --f-display: "Milan", "Readex", serif;
  --f-swash: "Lifta", "Milan", "Readex", serif;
  --f-serif: "Thmanyah", "Readex", serif;
  --f-mono: "PlexMono", ui-monospace, monospace;

  --gutter: 20px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* خطوط خافتة بميل الشعار، تختفي نحو الوسط */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(-12deg, rgba(255,255,255,.06) 0 1px, transparent 1px 26px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 20%, #000 90%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 20%, #000 90%);
}
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.mono { font-family: var(--f-mono); font-weight: 600; letter-spacing: .28em; direction: ltr; unicode-bidi: isolate; text-transform: uppercase; }
.dot { color: var(--pink); }
.label { display: inline-block; font-size: 11px; color: var(--gray-2); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(138,63,252,.8); }
.btn-grad:hover { box-shadow: 0 14px 34px -10px rgba(255,46,147,.7); }
.btn-ghost { background: var(--card); color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #4a4a5c; background: var(--card-2); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-line { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; color: #fff; }
.btn-line:hover { background: linear-gradient(#140d1c, #140d1c) padding-box, var(--grad) border-box; }
.btn-lg { min-height: 60px; font-size: 18px; padding: 0 30px; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(0,0,0,.94);
  border-bottom: 1px solid rgba(42,42,53,.6);
}
.brand { display: block; padding: 8px; }
.brand img { width: 64px; height: auto; }
.live-tag { display: none; align-items: center; gap: 12px; font-size: 12px; color: var(--gray); }
.live-tag b { color: var(--pink); font-weight: 600; }
.bars { display: inline-flex; gap: 4px; direction: ltr; }
.bars i { display: block; width: 9px; height: 18px; border-radius: 2px; transform: skewX(-14deg); }
.bars i:nth-child(1) { background: var(--pink); }
.bars i:nth-child(2) { background: var(--purple-l); }
.bars i:nth-child(3) { background: var(--blue-l); }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 9px 16px 9px 18px; border-radius: 999px;
  background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(138,63,252,.9);
}
.topbar-cta .ico { width: 19px; height: 19px; }
.topbar-cta:hover { box-shadow: 0 10px 26px -8px rgba(255,46,147,.8); }

/* ---------- المقدمة ---------- */
.hero {
  position: relative;
  padding: 44px var(--gutter) 30px;
  max-width: 1180px; margin: 0 auto;
}
.hero-lines {
  position: absolute; inset: 0 0 auto auto; width: 70%; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138,63,252,.28), transparent 70%);
  filter: blur(10px); transform: translate(-10%, 10%);
}
.kicker { margin: 0 0 6px; color: var(--gray); font-size: 15px; font-weight: 400; }
.hero-title {
  margin: 0; font-family: var(--f-swash); font-weight: 400;
  font-size: clamp(84px, 23.5vw, 190px); line-height: 1.02; letter-spacing: 0;
  display: flex; flex-wrap: wrap; gap: 0 .18em; padding-bottom: .12em;
}
.t-white { color: #fff; }
.t-grad { background: var(--grad-x); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: .04em; }

.hero-slots {
  display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 26px;
  --ts: clamp(44px, 12.5vw, 76px);
  min-height: calc(var(--ts) + 10px);
}
.hero-comma { font-family: var(--f-swash); color: var(--pink); font-size: calc(var(--ts) * 1.2); line-height: .6; align-self: flex-end; transform: translateY(-.1em); }
.hero-q {
  font-family: var(--f-display); font-weight: 900; font-size: calc(var(--ts) * 1.35); line-height: .8;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: rotate(-10deg) translateY(-4px); display: inline-block;
  animation: wobble 4.8s var(--ease) infinite;
}
@keyframes wobble { 0%, 100% { transform: rotate(-10deg) translateY(-4px); } 50% { transform: rotate(-4deg) translateY(-8px); } }

/* مربعات الحروف */
.slots { display: flex; gap: calc(var(--ts) * .14); }
.slot {
  position: relative; width: var(--ts); height: var(--ts);
  border: 2px dashed rgba(169,169,184,.45); border-radius: 22%;
}
.tile {
  --ts: 40px;
  display: grid; place-items: center;
  width: var(--ts); height: var(--ts); border-radius: 22%;
  background: var(--grad);
  color: #fff; font-family: var(--f-body); font-weight: 700; font-size: calc(var(--ts) * .5); line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px -8px rgba(46,107,255,.6);
  direction: ltr;
}
.slot > .tile { --ts: inherit; position: absolute; inset: -2px; width: auto; height: auto; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--dr, 0deg)); animation: tileIn .55s var(--back) both; animation-delay: var(--d, 0ms); }
.slot > .tile.out { animation: tileOut .3s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes tileIn { from { opacity: 0; transform: translate(0, -70%) rotate(-18deg) scale(.8); } }
@keyframes tileOut { to { opacity: 0; transform: translate(0, 40%) rotate(10deg) scale(.85); } }
.amp { font-weight: 700; color: var(--gray); }

.hero-lede {
  margin: 0 0 18px; font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(22px, 6vw, 34px); line-height: 1.5; max-width: 22ch;
}
.hero-lede em { font-style: normal; color: var(--pink); }
.hero-facts {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gray);
}
.hero-facts li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,10,16,.8); }
.hero-facts b { color: #fff; font-weight: 600; }
.hero-channel { margin: 0 0 12px; }
.hero-channel .btn { width: 100%; min-height: 60px; font-size: 17px; }
.hero-channel p { margin: 10px 0 0; font-size: 14px; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.hero-channel p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: none; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-actions .btn { padding: 0 12px; }
.next-up { margin: 18px 0 0; font-size: 14px; color: var(--gray); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.next-up b { color: #fff; font-weight: 600; }
.next-up a { color: var(--pink); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,46,147,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,46,147,0); } 100% { box-shadow: 0 0 0 0 rgba(255,46,147,0); } }

/* ---------- الشريط المائل ---------- */
.band { overflow: hidden; padding: 40px 0 34px; margin-top: 8px; }
.band-strip {
  margin-inline: -6vw; overflow: hidden;
  background: linear-gradient(90deg, var(--blue-l), var(--purple-l) 50%, var(--pink));
  transform: rotate(-3deg);
  box-shadow: 0 14px 40px -18px rgba(138,63,252,.7);
}
.band-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  padding: 12px 0;
  color: #0A0A10; font-family: var(--f-serif); font-weight: 500; font-size: 24px; line-height: 1.2;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
}
.band-track i { font-style: normal; font-size: 14px; opacity: .85; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- الأقسام ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter); }
.section-head { margin-bottom: 26px; }
.section-head h2 {
  margin: 4px 0 6px; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(38px, 10vw, 64px); line-height: 1.25;
}
.section-sub { margin: 0; color: var(--gray); font-size: 16px; max-width: 46ch; }

/* ---------- بطاقات اللقاءات ---------- */
.sessions-list { display: grid; gap: 22px; counter-reset: s; }
.session {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  isolation: isolate;
}
.session::after { /* بطاقة التدرج خلف البطاقة مثل البوستر */
  content: ""; position: absolute; inset: 10px -6px -8px 8px; z-index: -1; border-radius: var(--radius);
  background: var(--grad); opacity: .0; transition: opacity .4s var(--ease);
}
.session.is-live::after, .session:hover::after { opacity: .55; }

.s-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.s-num {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  border: 2.5px solid var(--pink); display: grid; place-items: center;
  font-family: var(--f-body); font-weight: 700; font-size: 22px; line-height: 1;
}
.s-when { display: grid; line-height: 1.35; }
.s-day { font-family: var(--f-display); font-weight: 900; font-size: 22px; }
.s-date { color: var(--gray); font-size: 15px; }
.s-time { color: var(--pink); font-weight: 600; font-size: 15px; }
.s-time bdi { direction: ltr; unicode-bidi: isolate; }

.stamp {
  position: absolute; top: 18px; left: 14px; z-index: 2;
  display: grid; justify-items: center; gap: 0;
  padding: 8px 12px 6px; border: 2px solid var(--pink); border-radius: 8px;
  outline: 1.5px solid var(--pink); outline-offset: 3px;
  color: var(--pink); background: rgba(10,10,16,.9);
  transform: rotate(-8deg); line-height: 1.25; text-align: center;
  font-family: var(--f-display); font-weight: 900; font-size: 14px;
}
.stamp small { font-family: var(--f-mono); font-weight: 600; font-size: 8.5px; letter-spacing: .3em; margin-top: 2px; direction: ltr; }

.s-title {
  margin: 8px 0 16px; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(26px, 7.4vw, 36px); line-height: 1.35;
}

.s-guests { display: grid; gap: 14px; }
.guest { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "info media"; align-items: end; gap: 0 12px; }
.guest .g-name { grid-area: name; }
.guest .g-info { grid-area: info; padding-bottom: 4px; }
.guest .g-photo, .guest .g-letters { grid-area: media; margin-top: -34px; }
.g-name { margin: 0; font-family: var(--f-swash); font-weight: 400; font-size: clamp(30px, 8.4vw, 46px); line-height: 1.35; }
.g-tiles { display: flex; align-items: center; gap: 4px 2px; direction: ltr; justify-content: flex-end; width: fit-content; margin-inline-start: 0; flex-wrap: wrap; margin: 2px 0 6px; }
.tgroup { display: inline-flex; gap: 3px; }
.g-tiles .tile { --ts: 22px; border-radius: 5px; font-size: 12px; }
.g-tiles .amp { margin: 0 5px; font-size: 15px; }
.g-role { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.55; }
.g-photo { width: 96px; aspect-ratio: 502 / 547; }
.g-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; mix-blend-mode: lighten; }
.g-letters { width: 96px; display: grid; gap: 6px; justify-items: center; direction: ltr; padding-bottom: 6px; }
.g-letters .tile { --ts: 44px; font-size: 22px; border-radius: 10px; }
.g-letters .tile:nth-child(1) { transform: rotate(-6deg) translateX(-10px); }
.g-letters .tile:nth-child(2) { transform: rotate(4deg) translateX(8px); }
.g-letters .tile:nth-child(3) { transform: rotate(-3deg) translateX(-4px); }

.s-qs { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); }
.s-qs-label { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14px; margin: 0 0 10px; }
.s-qs-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.s-qs ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: q; }
.s-qs li { counter-increment: q; display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.55; }
.s-qs li::before {
  content: counter(q); flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid #3a3a4a; color: var(--pink); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.s-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.s-meta .label { margin-inline-start: auto; }
.s-foot { display: flex; margin-top: 20px; }
.s-foot .btn { flex: 1 1 auto; }
.soon {
  flex: 1 1 auto; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed #3a3a4a; border-radius: 14px; color: var(--gray); font-size: 15px; font-weight: 600;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; line-height: 1.6;
  font-size: 13px; font-weight: 600; color: var(--gray); border: 1px solid var(--line); background: #07070b;
}
.chip { white-space: nowrap; }
.chip.is-live { color: #fff; border-color: var(--pink); }
.chip.is-today { color: #fff; border-color: #4a4a5c; }
.chip.is-done { opacity: .7; }

/* ---------- التذكرة ---------- */
.ticket-grid { display: grid; gap: 26px; }
.ticket-stage { position: relative; }
.ticket-frame {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  aspect-ratio: 1080 / 1350; border-radius: 14px; overflow: hidden;
  background: #000; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(138,63,252,.55), 0 0 0 1px rgba(255,255,255,.02);
}
.ticket-frame canvas { display: block; width: 100%; height: 100%; }
.ticket-loading {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--gray); font-size: 14px;
  background: #000; transition: opacity .3s;
}
.ticket-loading.hide { opacity: 0; pointer-events: none; }

.ticket-form { display: grid; gap: 26px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .field-label {
  display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 10px;
  font-family: var(--f-display); font-weight: 900; font-size: 22px; line-height: 1.4;
}
.step { font-size: 11px; color: var(--pink); letter-spacing: .2em; }
.field-hint { margin: 8px 0 0; color: var(--gray-2); font-size: 13.5px; line-height: 1.6; }
.field legend + .field-hint { margin: -4px 0 12px; }

#nameInput {
  width: 100%; min-height: 60px; padding: 0 18px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--line);
  font-family: var(--f-display); font-weight: 900; font-size: 24px; color: #fff;
  transition: border-color .2s;
}
#nameInput::placeholder { color: #4d4d5e; font-family: var(--f-body); font-weight: 400; font-size: 17px; }
#nameInput:focus { outline: none; border-color: var(--pink); }

.cert-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cert-btn {
  position: relative; display: grid; gap: 8px; justify-items: start; align-content: start;
  padding: 14px 14px 12px; min-height: 92px; border-radius: 16px; cursor: pointer; text-align: start;
  background: var(--card); border: 1.5px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.cert-btn:active { transform: scale(.97); }
.cert-btn .mini { display: flex; gap: 3px; direction: ltr; }
.cert-btn .mini span {
  width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: var(--gray); border: 1.5px dashed #3e3e50;
  transition: all .25s var(--ease);
}
.cert-btn .ar { font-size: 14px; font-weight: 600; color: var(--gray); line-height: 1.4; }
.cert-btn[aria-pressed="true"] { border-color: var(--pink); background: #120b18; }
.cert-btn[aria-pressed="true"] .mini span { border-color: transparent; background: var(--grad); color: #fff; }
.cert-btn[aria-pressed="true"] .ar { color: #fff; }
.cert-btn[aria-pressed="true"]::after {
  content: "؟"; position: absolute; top: 8px; left: 12px;
  font-family: var(--f-display); font-weight: 900; font-size: 22px; color: var(--pink); transform: rotate(-10deg);
}
.cert-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }

.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-row .btn { padding: 0 10px; font-size: 15px; }
#btnShare[hidden] + #btnDownload { grid-column: 1 / -1; }
.x-note { border-inline-start: 2px solid var(--line); padding-inline-start: 10px; }
.ticket-wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: 1.5px solid var(--pink); padding-bottom: 2px;
}
.ticket-wa .ico { width: 18px; height: 18px; color: var(--pink); }
.toast { min-height: 1.6em; margin: 8px 0 0; color: var(--pink); font-size: 14px; font-weight: 600; }
.ticket-form.needs-input .action-row .btn { opacity: .5; }

/* ---------- قناة واتساب ---------- */
.channel { padding-top: 24px; }
.channel-card {
  position: relative; display: grid; gap: 20px; padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
}
.channel-card h2 { margin: 4px 0 8px; font-family: var(--f-display); font-weight: 900; font-size: clamp(28px, 8vw, 40px); line-height: 1.3; }
.channel-card p { margin: 0; color: var(--gray); }
.channel-action .btn { width: 100%; }

/* ---------- التذييل ---------- */
.footer {
  max-width: 1180px; margin: 30px auto 0; padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: grid; gap: 26px; justify-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 76px; height: auto; }
.footer-divider { width: 2px; align-self: stretch; min-height: 54px; background: linear-gradient(var(--pink), var(--purple-l), var(--blue-l)); border-radius: 2px; }
.footer-slogan { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 22px; line-height: 1.4; }
.footer-name { margin: 2px 0 0; font-family: var(--f-display); font-weight: 900; font-size: 12px; color: var(--gray); }
.footer-name .spaced { letter-spacing: .32em; font-size: 10px; direction: ltr; unicode-bidi: isolate; }
.footer-partners { display: flex; align-items: center; gap: 14px; color: var(--gray-2); font-size: 13px; }
.footer-partners img { width: 210px; height: auto; transform: rotate(-1deg); }
.footer-handle { font-weight: 600; color: var(--gray); text-decoration: none; font-size: 18px; }
.footer-handle:hover { color: #fff; }

.noscript { color: var(--gray); }

/* ---------- ظهور تدريجي ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- شاشات أكبر ---------- */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .live-tag { display: inline-flex; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { padding: 0 28px; }
  .cert-picker { grid-template-columns: repeat(3, 1fr); }
  .cert-btn:last-child:nth-child(odd) { grid-column: auto; }
  .action-row { display: flex; flex-wrap: wrap; }
  .action-row .btn { flex: 1 1 auto; }
  .s-foot .btn, .s-foot .soon { flex: 0 1 280px; }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 64px; padding-bottom: 40px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); column-gap: 40px;
    grid-template-areas: "kicker kicker" "title title" "lede slots" "facts slots" "channel slots" "actions slots" "next slots";
    align-items: start;
  }
  .kicker { grid-area: kicker; }
  .hero-title { grid-area: title; }
  .hero-lede { grid-area: lede; }
  .hero-facts { grid-area: facts; }
  .hero-channel { grid-area: channel; }
  .hero-channel .btn { width: auto; padding: 0 34px; }
  .hero-actions { grid-area: actions; }
  .next-up { grid-area: next; }
  .hero-slots { grid-area: slots; --ts: clamp(64px, 6.4vw, 92px); align-self: center; justify-content: center; margin: 0; }
  .hero-lines { inset: auto auto 0 0; width: 55%; height: 520px; transform: none; }

  .session {
    display: grid; grid-template-columns: 190px minmax(0, 1fr) 330px; grid-template-areas: "head main media";
    gap: 0 32px; padding: 30px 32px;
  }
  .s-head { grid-area: head; flex-direction: column; align-items: flex-start; border-bottom: 0; padding: 0; gap: 12px; }
  .s-num { width: 64px; height: 64px; font-size: 26px; }
  .s-day { font-size: 26px; }
  .s-main { grid-area: main; }
  .s-media { grid-area: media; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
  .s-meta { margin-top: 0; }
  .stamp { top: 26px; left: 26px; font-size: 15px; }
  .s-media { align-self: end; }
  .g-name { font-size: 38px; white-space: nowrap; }
  .guest { grid-template-columns: 1fr; grid-template-areas: "name" "info"; }
  .s-guests { gap: 18px; }
  .s-media .g-photo { width: 158px; }
  .s-media .g-photo:only-child { width: 220px; }
  .s-media .g-letters .tile { --ts: 72px; font-size: 36px; border-radius: 16px; }
  .s-media .g-letters { width: auto; gap: 10px; }

  .ticket-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 48px; }
  .ticket-form { order: 0; }
  .ticket-stage { order: 1; position: sticky; top: 92px; }

  .channel-card { grid-template-columns: 1fr auto; align-items: center; padding: 34px 40px; }
  .channel-action .btn, .channel-action .soon { width: auto; min-width: 240px; padding: 0 24px; }

  .footer { grid-template-columns: 1fr auto auto; align-items: center; }
}

/* الصور داخل البطاقة على الجوال (تظهر بجانب كل ضيف) */
.s-media { display: none; }
@media (min-width: 900px) {
  .s-media { display: flex; }
  .guest .g-photo, .guest .g-letters { display: none; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .g-photo, .g-letters { width: 86px; }
  .session { padding-inline: 14px; }
  .stamp { transform: rotate(-8deg) scale(.85); transform-origin: left top; }
}

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

/* ---------- نافذة حفظ الصورة (متصفحات التطبيقات) ---------- */
.save-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 20px; }
.save-box { width: min(420px, 100%); display: grid; gap: 14px; text-align: center; }
.save-box p { margin: 0; color: #fff; font-weight: 600; }
.save-box img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
