/* Lecto Gate · brand tokens (see the identity page) */
:root {
  --paper: #FFFFFF; --surface: #FFFFFF; --surface-2: #F3F5F8; --ink: #0F2340; --muted: #52627A; --line: #E2E7EE;
  --gate: #2457A6; --tide: #14857F; --brass: #B8892F; --danger: #C0392B;
  --gate-soft: #E3EBF7; --tide-soft: #DDF1EF; --brass-soft: #F6EDDA;
  --on-brand: #FFFFFF; --eye: #FFFFFF; --glass: rgba(255, 255, 255, .92);
  --shadow: 0 10px 28px rgba(15, 35, 64, .08); --shadow-lg: 0 24px 60px rgba(15, 35, 64, .22);
  --f-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --f-en: "IBM Plex Sans", "IBM Plex Sans Arabic", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1626; --surface: #11203A; --surface-2: #162843; --ink: #E8EEF6; --muted: #9AABC2; --line: #22344F;
    --gate: #5B8DE0; --tide: #3FB5AD; --brass: #D9AE57; --danger: #E57368;
    --gate-soft: #1A2D4F; --tide-soft: #123634; --brass-soft: #3A2F17; --eye: #0B1626; --glass: rgba(11, 22, 38, .86);
    --shadow: 0 12px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1626; --surface: #11203A; --surface-2: #162843; --ink: #E8EEF6; --muted: #9AABC2; --line: #22344F;
  --gate: #5B8DE0; --tide: #3FB5AD; --brass: #D9AE57; --danger: #E57368;
  --gate-soft: #1A2D4F; --tide-soft: #123634; --brass-soft: #3A2F17; --eye: #0B1626; --glass: rgba(11, 22, 38, .86);
  --shadow: 0 12px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--f-ar); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--f-en); }
a { color: var(--gate); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.en { font-family: var(--f-en); direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--f-mono); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.35; text-wrap: balance; }
h1 { font-size: 24px; } h2 { font-size: 17px; } h3 { font-size: 16px; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- site shell ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.nav .lockup { margin-inline-end: auto; }
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { padding: 6px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.seg a[aria-current="page"] { background: var(--gate); color: var(--on-brand); }
.nav-actions { display: flex; gap: 6px; align-items: center; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pill-btn.round { width: 38px; padding: 0; justify-content: center; }
.pill-btn.brand { background: var(--gate); border-color: var(--gate); color: var(--on-brand); }
@media (max-width: 760px) {
  .seg { order: 3; width: 100%; } .seg a { flex: 1; text-align: center; padding: 6px 8px; }
  .nav-actions .hide-sm { display: none; }
}
.wrap { max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 22px; }
.hero-band { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); padding: 28px;
  background: linear-gradient(135deg, var(--gate-soft), var(--tide-soft)); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-band h1 { font-size: clamp(22px, 3.2vw, 30px); max-width: 26ch; }
.hero-band p { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.hero-band .mark { width: 92px; height: 100px; color: var(--ink); flex: none; }
.hero-band .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 600px) { .hero-band { padding: 20px; } .hero-band .mark { display: none; } }

.filters { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select, .search input { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 40px; font-size: 14px; }
.search { position: relative; } .search input { padding-inline-start: 38px; min-width: min(300px, 100%); }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 600px) { .filters .tools { width: 100%; } .search { flex: 1; } .search input { width: 100%; min-width: 0; } }

/* ---------- listing cards ---------- */
.listing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column;
  color: inherit; text-align: start; padding: 0; cursor: pointer; }
.lcard:hover { border-color: var(--gate); box-shadow: var(--shadow); }
.lcard:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.lcard.off { cursor: default; opacity: .7; border-style: dashed; }
.media { position: relative; height: 150px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.media::before, .media::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.media::before { width: 220px; height: 220px; inset-inline-end: -70px; top: -90px; }
.media::after { width: 160px; height: 160px; inset-inline-start: -50px; bottom: -80px; }
.media > * { position: relative; z-index: 1; }
.media .row { align-items: flex-start; }
.k-lecture { background: linear-gradient(135deg, #0F2340, #2457A6); }
.k-course { background: linear-gradient(135deg, #0D3F4A, #14857F); }
.k-workshop { background: linear-gradient(135deg, #3B2A0E, #B8892F); }
.k-event { background: linear-gradient(135deg, #1B2E57, #14857F); }
.k-watch_party { background: linear-gradient(135deg, #0B1626, #2B3F6B 60%, #B8892F); }
.k-hall { background: linear-gradient(135deg, #22344F, #52627A); }
.glass { background: rgba(8, 18, 34, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.glass.alert-tag { background: var(--danger); }
.venue { background: rgba(255, 255, 255, .94); color: #0F2340; border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 700; max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbody { padding: 16px 18px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lbody h3 { font-size: 16.5px; }
.lmeta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.lmeta svg { flex: none; }
.lfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.lfoot .price { font-size: 18px; } .lfoot small { color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.seats { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; display: flex; margin-top: 4px; }
.seats i { display: block; height: 100%; background: var(--tide); border-radius: 3px; }

/* ---------- hero stats ---------- */
.hero-copy { position: relative; z-index: 1; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; }
.hero-stats:empty { display: none; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 26px; line-height: 1.1; color: var(--gate); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-band::before, .hero-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; pointer-events: none; }
.hero-band::before { width: 280px; height: 280px; background: var(--gate); inset-inline-end: -60px; top: -120px; opacity: .25; }
.hero-band::after { width: 220px; height: 220px; background: var(--brass); inset-inline-start: 30%; bottom: -150px; opacity: .18; }
.hero-band .mark { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.foot { background: #0F2340; color: #C9D4E3; margin-top: 24px; }
:root[data-theme="dark"] .foot { background: #071121; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #071121; } }
.foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px;
  padding: 44px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-in { grid-template-columns: 1fr; gap: 26px; } }
.foot .lockup { color: #fff; --eye: #0F2340; } .foot .lockup svg { width: 36px; height: 40px; } .foot .lockup b { font-size: 24px; }
.foot-brand p { margin-top: 14px; font-size: 14px; line-height: 1.8; max-width: 40ch; }
.foot h3 { color: var(--brass); font-size: 16px; margin-bottom: 14px; }
:root:not([data-theme="dark"]) .foot h3 { color: #D9AE57; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot ul:not(.contact) li { display: flex; align-items: center; gap: 8px; }
.foot ul:not(.contact) li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3FB5AD; flex: none; }
.foot a { color: #E8EEF6; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot .contact a, .foot .contact > li > span { display: inline-flex; gap: 10px; align-items: flex-start; }
.foot .contact svg { color: #3FB5AD; flex: none; margin-top: 2px; }
.foot .muted { color: #9AABC2; }
.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #fff; }
.socials a:hover { background: var(--gate); text-decoration: none; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 12px; color: #9AABC2;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
.nav.scrolled { box-shadow: 0 6px 20px rgba(15, 35, 64, .12); }

/* ---------- motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }
  @keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 20px) scale(1.12); } }
  @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
  @keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
  @keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

  .hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-band .mark { animation: floaty 5s ease-in-out infinite; }
  .hero-band .mark circle[r="7"], .hero-band .mark circle[r="9"] { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
  .hero-band .mark circle[r="9"] { animation-delay: .4s; } .hero-band .mark circle[cx="113"] { animation-delay: .8s; }
  .hero-band::before { animation: drift 12s ease-in-out infinite; } .hero-band::after { animation: drift 15s ease-in-out infinite reverse; }

  .listing > .lcard { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
  .lcard { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .2s; }
  .lcard:not(.off):hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .lcard .media::before, .lcard .media::after { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .lcard:not(.off):hover .media::before { transform: translate(-24px, 14px) scale(1.15); }
  .lcard:not(.off):hover .media::after { transform: translate(18px, -10px) scale(1.2); }
  .lcard .media .venue { position: relative; overflow: hidden; }
  .lcard:not(.off):hover .lfoot .btn.primary { background: color-mix(in srgb, var(--gate) 85%, #fff); }
  .banner::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    animation: shine 1.1s .25s ease-out both; pointer-events: none; }
  .btn, .pill-btn, .chip { transition: transform .12s, background-color .15s, border-color .15s, color .15s; }
  .btn:active, .pill-btn:active, .chip:active { transform: scale(.96); }
  .seg a { transition: background-color .25s, color .25s; }
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .success { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  .star-btns label { transition: transform .12s, color .15s; } .star-btns label:hover { transform: scale(1.15); }
  .nav { transition: box-shadow .25s; }
}

[hidden] { display: none !important; }

/* ---------- sliding tab, low seats, skeleton, success ---------- */
.seg { position: relative; }
.seg a { position: relative; z-index: 1; }
.seg-ind { position: absolute; z-index: 0; border-radius: 999px; background: var(--gate); opacity: 0; pointer-events: none;
  transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), top .35s, opacity .2s; }
.seg.has-ind a[aria-current="page"] { background: transparent; }
.glass.low { background: var(--brass); color: #1b1405; font-weight: 700; }
.seats.low i { background: var(--brass); }
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.sk { background: var(--line); border-radius: 8px; position: relative; overflow: hidden; }
.sk-media { height: 150px; border-radius: 0; }
.sk-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 12px; }
.success { position: relative; }
.spark { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 2px; background: var(--c); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
  @keyframes lowpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 174, 87, .7); } 50% { box-shadow: 0 0 0 6px rgba(217, 174, 87, 0); } }
  @keyframes barpulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tide) 45%, transparent); } to { box-shadow: 0 0 0 26px transparent; } }
  @keyframes spark { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.4); } }
  @keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

  .sk::after, .skeleton::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.3s ease-in-out infinite; }
  .skeleton { position: relative; overflow: hidden; }
  .glass.low { animation: lowpulse 1.8s ease-in-out infinite; }
  .seats.low i { animation: barpulse 1.8s ease-in-out infinite; }
  .success:not(.pending) svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .55s .25s cubic-bezier(.6, 0, .3, 1) forwards; }
  .success.celebrate { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both, ring 1s .3s ease-out; }
  .spark { animation: spark .9s cubic-bezier(.2, .7, .3, 1) forwards; }
  .lockup svg { transform-origin: 50% 20%; }
  .lockup:hover svg, a:focus-visible > .lockup svg { animation: wave .9s ease-in-out; }
  .lockup:hover svg circle[r="7"], .lockup:hover svg circle[r="9"] { transform-box: fill-box; transform-origin: center; animation: bob .5s ease-in-out 2; }
  .lockup:hover svg circle[cx="113"] { animation-delay: .12s; } .lockup:hover svg circle[r="9"] { animation-delay: .06s; }
}

/* ---------- badges, who's going, share, QR ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bd { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 10px 2px 8px; white-space: nowrap; }
.bd-ok { background: var(--tide-soft); color: var(--tide); }
.bd-top { background: var(--brass-soft); color: var(--brass); }
.banner .bd-ok { background: rgba(255, 255, 255, .16); color: #fff; } .banner .bd-top { background: rgba(217, 174, 87, .25); color: #fff; }
.going { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; }
.going:empty { display: none; }
.faces { display: flex; }
.face { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
  border: 2px solid var(--paper); margin-inline-start: -8px; }
.face:first-child { margin-inline-start: 0; }
.face.f0 { background: var(--gate); } .face.f1 { background: var(--tide); } .face.f2 { background: var(--brass); }
.face.more { background: var(--surface-2); color: var(--ink); font-size: 11px; }
.going-line { color: var(--tide); }
.sharebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; } .menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline-start: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { text-align: start; background: none; border: 0; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--gate-soft); }
.qr-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.qr { border-radius: 12px; border: 1px solid var(--line); max-width: 70vw; height: auto; }
.scanner { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-width: 480px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner::after { content: ""; position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

/* ---------- ratings ---------- */
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--brass); font-size: 13px; white-space: nowrap; }
.rating b { color: var(--ink); font-weight: 700; } .rating small { color: var(--muted); font-size: 12px; }
.rating.none { color: var(--muted); }
.media .rating { background: rgba(8, 18, 34, .55); border-radius: 999px; padding: 3px 10px; }
.media .rating b, .media .rating small, .media .rating.none { color: #fff; }
.stars { display: inline-flex; gap: 1px; color: var(--line); } .stars i.on { color: var(--brass); } .stars svg { display: block; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.score { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.score small { color: var(--muted); font-size: 12px; }
.score .big { display: flex; align-items: baseline; gap: 6px; } .score .big b { font-size: 22px; } .score .big span { color: var(--muted); font-size: 12px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.review .who { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.review p { font-size: 14px; }
.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.star-input legend { font-size: 13px; font-weight: 500; padding: 0; margin-bottom: 4px; }
.star-btns { display: flex; gap: 4px; }
.star-btns label { color: var(--line); cursor: pointer; border-radius: 8px; display: grid; place-items: center; width: 40px; height: 40px; }
.star-btns label.on { color: var(--brass); }
.star-btns label:has(input:focus-visible) { outline: 3px solid var(--brass); outline-offset: 1px; }
.star-btns input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 12, 24, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; width: 100%; max-width: 880px; max-height: calc(100dvh - 32px);
  overflow-y: auto; box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.sheet > * { flex-shrink: 0; }
.sheet.narrow { max-width: 620px; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: pop .25s cubic-bezier(.2, .7, .2, 1); } .modal { animation: fade .2s ease; } @keyframes fade { from { opacity: 0; } } }
@media (max-width: 600px) { .modal { padding: 0; align-items: flex-end; } .sheet { border-radius: 22px 22px 0 0; max-height: 94dvh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }
.banner { border-radius: 18px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.banner h2 { font-size: clamp(19px, 2.6vw, 24px); }
.banner .sub { opacity: .9; font-size: 14px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.facts .row span:first-child { color: var(--muted); }
.facts .row span:last-child { font-weight: 500; text-align: end; }
.checkout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: sticky; top: 0; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { background: var(--brass-soft); color: var(--ink); border-radius: var(--r-sm); padding: 2px 10px; font-size: 13px; }
.steps { display: flex; gap: 6px; } .steps i { height: 5px; flex: 1; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--gate); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .grid2 .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- old single-column pages (ticket, my bookings, admin) ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px max(20px, env(safe-area-inset-right, 0px)) 8px max(20px, env(safe-area-inset-left, 0px)); }
.topbar .title { font-weight: 700; font-size: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
[dir="ltr"] .icon-btn svg { transform: scaleX(-1); }
.icon-btn:focus-visible, .btn:focus-visible, .chip:focus-visible, .pill-btn:focus-visible, .seg a:focus-visible, .x:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
main { flex: 1; display: flex; flex-direction: column; gap: 20px;
  padding: 8px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); }
.lockup { display: inline-flex; align-items: center; gap: 8px; direction: ltr; color: var(--ink); }
.lockup svg { width: 28px; height: 30px; }
.lockup b { font-family: var(--f-en); font-size: 19px; }

/* elements */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid transparent; font-weight: 500; cursor: pointer; text-align: center; }
.btn.primary { background: var(--gate); color: var(--on-brand); }
.btn.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--gate); }
.btn.danger { background: transparent; border-color: var(--line); color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; border-radius: var(--r-sm); padding: 1px 10px; white-space: nowrap; }
.b-ws { background: var(--gate-soft); color: var(--gate); }
.b-lc { background: var(--tide-soft); color: var(--tide); }
.b-st { background: var(--brass-soft); color: var(--brass); }
.b-nt { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.b-bad { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row > * { min-width: 0; }
.meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.meta .row span:last-child { font-weight: 500; text-align: end; }
.price { color: var(--gate); font-weight: 700; font-size: 16px; }
.grid { display: grid; gap: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 15px; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--tide-soft);
  box-shadow: inset 0 0 0 4px var(--tide-soft), inset 0 0 0 8px var(--tide); }

/* forms */
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; min-height: 46px; width: 100%; }
.field textarea { min-height: 80px; resize: vertical; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: start; font-family: var(--f-mono); }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.field .hint { font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--tide); flex: none; }
.options { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.options legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.option { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--gate); background: var(--gate-soft); }
.option input { width: 20px; height: 20px; accent-color: var(--gate); flex: none; }
.option.disabled { opacity: .55; cursor: not-allowed; }
.option span { display: flex; flex-direction: column; }
.option small { color: var(--muted); font-size: 12px; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.alert.err { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.alert.info { background: var(--gate-soft); color: var(--ink); }
.alert.ok { background: var(--tide-soft); color: var(--ink); }

/* ticket */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ticket .top { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ticket .perf { border-top: 1.5px dashed var(--line); }
.ticket .code { padding: 16px 18px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ticket .code .mono { font-size: 26px; color: var(--gate); font-weight: 500; letter-spacing: .02em; }
.success { width: 76px; height: 76px; border-radius: 50%; background: var(--tide-soft); color: var(--tide); display: grid; place-items: center; margin: 8px auto 0; }
.pending { background: var(--brass-soft); color: var(--brass); }
.center { text-align: center; }
.skeleton { background: var(--line); border-radius: var(--r-xl); height: 300px; opacity: .45; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); grid-column: 1 / -1; }
footer.site { text-align: center; font-size: 12px; color: var(--muted); padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }

/* admin + reception */
.admin .app { max-width: 1100px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.msg { white-space: pre-wrap; font-size: 13px; line-height: 1.8; max-width: 46ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt-img { max-width: 160px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; }
.kpi small { color: var(--muted); font-size: 12px; } .kpi b { font-size: 24px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.list-row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { appearance: none; width: 100%; height: 100%; margin: 0; border-radius: 999px; background: var(--tide); cursor: pointer; }
.switch input:checked { background: var(--danger); }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch input:checked::after { inset-inline-start: 23px; }
@media (prefers-reduced-motion: no-preference) { .lcard, .btn, .chip { transition: border-color .15s, background-color .15s, box-shadow .15s; } }

/* ---------- numbers: prices and dates get their own face ---------- */
:root { --f-num: "Readex Pro", "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; }
.money { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--f-num); line-height: 1; white-space: nowrap; }
.money b { font-size: 24px; font-weight: 700; color: var(--gate); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.money b.free { font-size: 20px; color: var(--tide); }
.money small { font-size: 12px; font-weight: 500; color: var(--muted); }
.money .was { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; margin-inline-end: 2px; }
.pricebox { display: flex; flex-direction: column; gap: 4px; }
.pricebox > small { color: var(--muted); font-size: 12px; }
.pricebox.big .money b { font-size: 30px; }
.lfoot .pricebox small { margin-inline-start: 0; }

.dtile { display: inline-flex; flex-direction: column; align-items: center; min-width: 60px; padding: 6px 10px 7px; border-radius: 14px;
  background: #fff; color: #0F2340; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); line-height: 1.15; font-family: var(--f-num); }
.dtile small { font-size: 11px; font-weight: 500; color: #52627A; }
.dtile small:first-child { color: #2457A6; font-weight: 700; }
.dtile b { font-size: 26px; font-weight: 700; margin: 1px 0; font-variant-numeric: tabular-nums; }
.glass.time { font-family: var(--f-num); font-size: 13px; font-weight: 500; padding: 4px 12px; }
.glass.offer { background: var(--danger); font-weight: 700; font-family: var(--f-num); }
.media .stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lcard .media { height: 168px; }

/* detail window: date + time as one block */
.when { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.when .dtile { box-shadow: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.when .dtile small:first-child { color: var(--gate); }
.when div { display: flex; flex-direction: column; gap: 2px; }
.when b { font-size: 15px; }
.time-big { font-family: var(--f-num); font-size: 20px; font-weight: 700; color: var(--gate); }

/* ---------- card: lecturer line and place block ---------- */
.lmeta.who { flex-wrap: wrap; row-gap: 4px; }
.lmeta .cat { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 1px 10px; font-size: 12px; }
.place { display: flex; align-items: center; gap: 10px; margin: 0 18px 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.place > svg { color: var(--tide); flex: none; }
.place > div { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.45; }
.place b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- offers ---------- */
.offers { display: flex; flex-direction: column; gap: 12px; }
.offers[hidden] { display: none; }
.offers-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.offers-head .muted { font-size: 13px; }
.offers-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 86%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; }
.offers-row > .lcard { scroll-snap-align: start; border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }

/* ---------- hero carousel ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.hs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track.steer { scroll-snap-type: none; } /* arrows/dots/autoplay scroll straight to the slide */
.hs-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px; align-items: center; padding: 40px 44px 72px; color: #fff; min-height: 380px; position: relative; overflow: hidden; }
.hs-slide::before, .hs-slide::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.hs-slide::before { width: 360px; height: 360px; inset-inline-end: -120px; top: -160px; }
.hs-slide::after { width: 240px; height: 240px; inset-inline-start: 35%; bottom: -170px; }
.hs-slide > * { position: relative; z-index: 1; }
.hs-learn { background: linear-gradient(135deg, #0F2340, #2457A6 55%, #3A6FC4); }
.hs-events { background: linear-gradient(135deg, #0B3540, #14857F 60%, #1FA197); }
.hs-fields { background: linear-gradient(135deg, #2A1E08, #8C6620 55%, #B8892F); }
.hs-halls { background: linear-gradient(135deg, #17263D, #3E5170 55%, #5A6E8C); }
.hs-host { background: linear-gradient(135deg, #0F2340, #155E73 55%, #14857F); }
.hs-slide { background-size: 220% 220%; }
/* topic photo behind each slide, darkened on the text side with the slide's own colour */
.hero { --hs-dir: to right; }
[dir="rtl"] .hero { --hs-dir: to left; }
.hs-learn { --tint: 12 28 54; } .hs-events { --tint: 8 44 52; } .hs-fields { --tint: 38 26 6; } .hs-halls { --tint: 20 32 52; } .hs-host { --tint: 10 40 56; }
.hs-slide > .hs-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hs-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-fields .hs-bg img { opacity: 0; }
.hs-fields .hs-bg img:first-child { opacity: 1; }
.hs-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--hs-dir), rgb(var(--tint) / .95) 0%, rgb(var(--tint) / .82) 42%, rgb(var(--tint) / .42) 100%); }
.hs-float span { color: rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .hs-bg::after { background: linear-gradient(180deg, rgb(var(--tint) / .66), rgb(var(--tint) / .84) 70%); } }
.hs-kicker { display: inline-block; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .16); padding: 3px 12px; border-radius: 999px; }
.hs-slide h2 { font-size: clamp(22px, 3.4vw, 34px); line-height: 1.3; margin: 12px 0 8px; max-width: 24ch; color: #fff; }
.hs-slide p { color: rgba(255, 255, 255, .86); max-width: 56ch; margin: 0; }
.hs-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.hs-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.hs-points svg { color: #D9AE57; flex: none; margin-top: 4px; }
.hs-slide .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hs-slide .btn.primary { background: #fff; color: #0F2340; border-color: #fff; }
.hs-slide .btn.secondary { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.hs-art { display: flex; justify-content: center; }
.hs-nav { position: absolute; inset-inline: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; z-index: 2; }
.hs-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(8, 18, 34, .35); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hs-arrow:hover { background: rgba(8, 18, 34, .6); }
.hs-arrow:focus-visible, .hs-dots button:focus-visible { outline: 3px solid #D9AE57; outline-offset: 2px; }
.hs-arrow svg { display: block; }
[dir="rtl"] .hs-arrow > svg { transform: scaleX(-1); }
.hs-arrow .flip { display: grid; }
.hs-arrow .flip svg { transform: scaleX(-1); }
[dir="rtl"] .hs-arrow .flip svg { transform: none; }
.hs-dots { display: flex; gap: 2px; }
.hs-dots button { border: 0; background: none; padding: 10px 4px; cursor: pointer; display: grid; place-items: center; }
.hs-dots i { display: block; position: relative; overflow: hidden; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s, background-color .3s; }
.hs-dots button[aria-current="true"] i { width: 34px; background: rgba(255, 255, 255, .3); }
.hs-dots b { position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hs-dots b { transform-origin: right; }
.hs-dots button[aria-current="true"] b { transform: scaleX(1); }
.hs-play { width: 32px; height: 32px; margin-inline-start: 6px; }
[dir="rtl"] .hs-arrow.hs-play > svg { transform: none; } /* play/pause icons never mirror */
@media (max-width: 760px) {
  .hs-slide { grid-template-columns: 1fr; padding: 26px 20px 66px; min-height: 0; }
  .hs-art { display: none; }
  .hs-points li { font-size: 13.5px; }
}

/* hero illustrations */
.mock { position: relative; background: #fff; color: #0F2340; border-radius: 18px; padding: 18px; width: min(290px, 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.mock.tilt { transform: rotate(-2.5deg); }
.mock small { color: #52627A; font-size: 12px; }
.mock b { font-size: 15px; }
.mock-tag { position: absolute; top: -10px; inset-inline-end: 14px; background: #D9AE57; color: #1b1405; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 10px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mqr { align-self: center; }
.mqr .qr { width: 96px; height: 96px; }
.mcode { align-self: center; font-size: 12px; color: #52627A; }
.slotrow { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
.slotrow i { height: 10px; border-radius: 6px; }
.slotrow.free i { background: #DDF1EF; border: 1px solid #14857F; }
.slotrow.free span:last-child { color: #14857F; font-weight: 700; }
.slotrow.busy i { background: #DCE3EC; }
.slotrow.busy span:last-child { color: #52627A; }
.mavatar { width: 42px; height: 42px; border-radius: 50%; background: #DDF1EF; color: #14857F; display: grid; place-items: center; flex: none; }
.mbadges { margin-top: 3px; }
.mock .bd-ok { background: #DDF1EF; color: #14857F; }
.mstars { color: #B8892F; display: flex; gap: 2px; }
.mbars { display: grid; gap: 6px; }
.mbars i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #14857F, #2457A6); }
.mkpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mkpis div { background: #F5F7FA; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mkpis b { font-family: var(--f-num); font-size: 22px; color: #B8892F; }
.mreq { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #F5F7FA; border-radius: 10px; padding: 8px 10px; font-size: 12px; }
.mreq span { display: inline-flex; align-items: center; gap: 6px; }
.mbtn { background: #14857F; color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; }

/* hero scenes: one illustration per slide, with small floating bubbles around it */
.hs-scene { position: relative; width: min(330px, 100%); display: grid; place-items: center; padding: 22px 26px; }
.hs-orb { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; z-index: 2;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hs-orb.o1 { top: -4px; inset-inline-start: -6px; }
.hs-orb.o2 { top: 42%; inset-inline-end: -14px; }
.hs-orb.o3 { bottom: -10px; inset-inline-end: 10%; }
.hs-slide > .hs-float { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hs-float span { position: absolute; left: var(--x); top: var(--y); color: rgba(255, 255, 255, .13); }
.hs-float svg { display: block; }
/* learn: lesson board */
.mock.board { width: 100%; }
.hs-chart { width: 100%; height: auto; display: block; }
.hs-chart .g { stroke: #E2E7EE; stroke-width: 1; fill: none; }
.hs-chart .ln { stroke: #2457A6; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.hs-chart .pt { fill: #B8892F; }
.hs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.hs-steps li { display: flex; align-items: center; gap: 8px; }
.hs-steps .done svg { color: #14857F; flex: none; }
.hs-steps .done span { color: #52627A; }
.hs-steps .now { font-weight: 700; }
.hs-steps .now i { width: 10px; height: 10px; margin-inline: 3px; border-radius: 50%; background: #B8892F; flex: none; }
/* events: two tickets */
.mock.tkt.front { transform: rotate(-3deg); z-index: 1; }
.mock.tkt.back { position: absolute; top: 34px; inset-inline-start: 40px; width: 230px; transform: rotate(9deg); opacity: .9; background: #EAF5F4; }
.hs-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #14857F; background: #DDF1EF; padding: 1px 9px; border-radius: 999px; }
.hs-live i { width: 7px; height: 7px; border-radius: 50%; background: #14857F; }
.hs-scan { position: relative; overflow: hidden; border-radius: 6px; }
.hs-scan::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: #14857F; box-shadow: 0 0 12px 3px rgba(20, 133, 127, .55); opacity: 0; }
/* fields: cloud of field chips */
.hs-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 340px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); }
.fchip svg { color: #F3D58C; }
.hs-rot { display: inline-grid; vertical-align: bottom; color: #F3D58C; }
.hs-rot span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.hs-rot span:first-child { opacity: 1; }
/* halls: today's slots, one being picked */
.mock.slots { width: 100%; }
.slotrow i { transform-origin: left; }
[dir="rtl"] .slotrow i { transform-origin: right; }
.slotrow.pick { border-radius: 8px; box-shadow: 0 0 0 2px #14857F; padding: 3px 4px; margin: -3px -4px; }
/* host: lecturer card and an incoming hall request */
.mock.lect { width: 100%; }
.mbars i { width: var(--w, 100%); }
.mstars span { display: inline-flex; }
.hs-bubble { position: absolute; bottom: -6px; inset-inline-start: -18px; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; color: #0F2340;
  font-size: 12px; font-weight: 600; border-radius: 14px; padding: 9px 12px; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); max-width: 250px; }

/* hero motion, only when the visitor allows it */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hsbg { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
  @keyframes hsblob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-36px, 22px) scale(1.15); } }
  @keyframes hsrise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes hsin { from { opacity: 0; transform: translateY(26px) scale(.94); } }
  @keyframes hspop { from { opacity: 0; scale: .5; } }
  @keyframes hsbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
  @keyframes hsdrift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(14px, -18px) rotate(12deg); } }
  @keyframes hsprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes hsdraw { from { stroke-dashoffset: 100; } }
  @keyframes hsping { 0% { box-shadow: 0 0 0 0 rgba(20, 133, 127, .55); } 100% { box-shadow: 0 0 0 9px rgba(20, 133, 127, 0); } }
  @keyframes hspingB { 0% { box-shadow: 0 0 0 0 rgba(184, 137, 47, .6); } 100% { box-shadow: 0 0 0 8px rgba(184, 137, 47, 0); } }
  @keyframes hsscan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
  @keyframes hsfanB { from { transform: rotate(0) translate(-20px, 10px); opacity: 0; } }
  @keyframes hsfanF { from { transform: rotate(0) translateY(30px); opacity: 0; } }
  /* 9 fields × 2s = 18s; each word fades out before the next one comes in */
  @keyframes hsword { 0% { opacity: 0; transform: translateY(.45em); } 1.6%, 9.4% { opacity: 1; transform: none; } 11.1%, 100% { opacity: 0; transform: translateY(-.45em); } }
  @keyframes hslit { 0%, 11.1%, 100% { background: rgba(255, 255, 255, .12); color: #fff; } 1.6%, 9.4% { background: #fff; color: #2A1E08; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); } }
  @keyframes hsfill { from { transform: scaleX(0); } }
  @keyframes hsgrow { from { width: 0; } }
  @keyframes hsslide { from { opacity: 0; transform: translateX(-18px); } }

  @keyframes hskb { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
  /* 9 field photos × 2s: each crossfades into the next, in step with the changing word */
  @keyframes hsphoto { 0% { opacity: 0; transform: scale(1.12); } 1.6% { opacity: 1; } 11.1% { opacity: 1; } 12.7% { opacity: 0; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1.02); } }
  .hs-slide.on:not(.hs-fields) .hs-bg img { animation: hskb 14s ease-in-out infinite alternate; }
  .hs-fields.on .hs-bg img { opacity: 0; animation: hsphoto 18s linear infinite both; animation-delay: calc(var(--i) * 2s); }
  .hs-slide::before { animation: hsblob 13s ease-in-out infinite; }
  .hs-slide::after { animation: hsblob 17s ease-in-out infinite reverse; }
  .hs-float span { animation: hsdrift calc(6s + var(--j) * 1.4s) ease-in-out infinite alternate; animation-delay: calc(var(--j) * -1.9s); }
  .hs-orb { animation: hsbob 4.2s ease-in-out infinite; }
  .hs-orb.o2 { animation-delay: -1.4s; } .hs-orb.o3 { animation-delay: -2.8s; }
  .hs-dots b.run { animation: hsprog 6.5s linear forwards; }
  .hero.held .hs-dots b.run, .hero.focus .hs-dots b.run, .hero.away .hs-dots b.run { animation-play-state: paused; }
  .hero.stopped .hs-dots b.run { animation: none; }
  .hero.away .hs-slide, .hero.away .hs-slide *, .hero.away .hs-slide::before, .hero.away .hs-slide::after { animation-play-state: paused !important; }

  /* entrance of the slide that just came in */
  .hs-slide.on .hs-copy > * { animation: hsrise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hs-slide.on .hs-copy > :nth-child(2) { animation-delay: .1s; }
  .hs-slide.on .hs-copy > :nth-child(3) { animation-delay: .2s; }
  .hs-slide.on .hs-copy > :nth-child(4) { animation-delay: .3s; }
  .hs-slide.on .hs-copy > :nth-child(5) { animation-delay: .4s; }
  .hs-slide.on .hs-scene > .mock:not(.tkt) { animation: hsin .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .hs-slide.on .hs-orb { animation: hspop .5s calc(.5s + var(--d, 0s)) cubic-bezier(.3, 1.6, .5, 1) both, hsbob 4.2s calc(1s + var(--d, 0s) * 8) ease-in-out infinite; }
  .hs-slide.on .hs-orb.o2 { --d: .12s; } .hs-slide.on .hs-orb.o3 { --d: .24s; }
  /* learn */
  .hs-slide.on .hs-chart .ln { animation: hsdraw 1.6s .5s ease-out both; }
  .hs-slide.on .hs-chart .pt { animation: hspop .4s 2s both; }
  .hs-slide.on .hs-steps li { animation: hsslide .5s both; animation-delay: calc(.8s + var(--n, 0) * .25s); }
  .hs-steps li:nth-child(2) { --n: 1; } .hs-steps li:nth-child(3) { --n: 2; }
  .hs-steps .now i { animation: hspingB 1.6s ease-out infinite; }
  /* events */
  .hs-slide.on .mock.tkt.back { animation: hsfanB .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .hs-slide.on .mock.tkt.front { animation: hsfanF .8s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .hs-live i { animation: hsping 1.4s ease-out infinite; }
  .hs-scan::after { animation: hsscan 2.4s ease-in-out infinite; }
  /* fields: chips pop in, then light up one by one in step with the changing word */
  .hs-slide.on .fchip { animation: hspop .5s calc(.2s + var(--i) * .07s) cubic-bezier(.3, 1.5, .5, 1) both, hsbob 5s ease-in-out infinite,
    hslit 18s ease-in-out infinite; animation-delay: calc(.2s + var(--i) * .07s), calc(var(--i) * -.6s), calc(var(--i) * 2s); }
  .hs-slide.on .hs-rot span { opacity: 0; animation: hsword 18s ease-in-out infinite both; animation-delay: calc(var(--i) * 2s); }
  /* halls */
  .hs-slide.on .slotrow { animation: hsslide .45s both; animation-delay: calc(.3s + var(--i) * .1s); }
  .hs-slide.on .slotrow.free i { animation: hsfill .7s both; animation-delay: calc(.6s + var(--i) * .1s); }
  .slotrow.pick { animation: hsping 1.6s 1.4s ease-out infinite; }
  .hs-slide.on .slotrow.pick { animation: hsslide .45s .5s both, hsping 1.6s 1.4s ease-out infinite; }
  /* host */
  .hs-slide.on .mbars i { animation: hsgrow .9s both; animation-delay: calc(.5s + var(--i) * .12s); }
  .hs-slide.on .mstars span { animation: hspop .4s both; animation-delay: calc(.4s + var(--i) * .08s); }
  .hs-bubble { animation: hsbob 4.6s ease-in-out infinite; }
  .hs-slide.on .hs-bubble { animation: hsrise .6s 1.1s cubic-bezier(.2, .7, .2, 1) both, hsbob 4.6s 1.8s ease-in-out infinite; }

  /* the visitor swiped here: show the slide as it is, keep only the gentle loops */
  .hs-slide.on.quiet .hs-copy > *, .hs-slide.on.quiet .hs-scene > .mock, .hs-slide.on.quiet .hs-chart .ln, .hs-slide.on.quiet .hs-chart .pt,
  .hs-slide.on.quiet .hs-steps li, .hs-slide.on.quiet .slotrow:not(.pick), .hs-slide.on.quiet .slotrow.free i, .hs-slide.on.quiet .mbars i,
  .hs-slide.on.quiet .mstars span { animation: none; }
}
/* the changing word: without motion only the first field shows */
@media (prefers-reduced-motion: reduce) { .hs-rot span:first-child { opacity: 1; } }

/* ---------- phones: one-line top bar that tucks away while scrolling down ---------- */
.show-sm { display: none; }
@media (max-width: 760px) {
  .nav { transition: transform .25s ease, box-shadow .25s; }
  .nav.tucked { transform: translateY(-100%); }
  .nav-in { gap: 8px; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .nav .lockup svg { width: 24px; height: 26px; }
  .nav .lockup b { font-size: 17px; }
  .nav-actions { gap: 4px; }
  .nav-actions .pill-btn { width: 36px; min-height: 36px; padding: 0; justify-content: center; }
  .nav-actions .show-sm { display: inline; font-family: var(--f-en); font-weight: 700; font-size: 13px; }
  .seg { padding: 3px; } .seg a { padding: 5px 8px; font-size: 13.5px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ---------- phones: shorter hero so the sessions show up sooner ---------- */
@media (max-width: 600px) {
  .wrap { gap: 18px; padding-top: 14px; }
  .hs-slide { padding: 20px 18px 58px; }
  .hs-slide h2 { font-size: 21px; margin: 8px 0 6px; }
  .hs-slide p { font-size: 14px; }
  .hs-points { display: none; }
  .hs-slide .cta { margin-top: 14px; }
  .hs-slide .cta .btn { min-height: 40px; padding-block: 0; }
  .hs-nav { bottom: 10px; }
  .hs-arrow { width: 32px; height: 32px; }
  .hero-stats { display: none; }
}

/* ---------- event window: pinned "Book now" bar on phones ---------- */
.book-bar { display: none; }
@media (max-width: 760px) {
  .book-bar { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 -16px calc(-18px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 35, 64, .1); transition: transform .2s ease, opacity .2s; }
  .book-bar .btn { flex: none; min-width: 140px; }
  .book-bar .pricebox small { color: var(--danger); font-weight: 700; }
  .book-bar.gone { transform: translateY(100%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .2s ease, opacity .2s, visibility 0s .2s; }
}

/* support link under the booking form and the payment instructions */
.help-line { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.help-line a { font-weight: 700; color: var(--tide); }

/* ---------- main buttons: black in light mode, white in dark mode; prices in green ---------- */
:root { --btn-bg: #111418; --btn-fg: #FFFFFF; --money: #15803D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-bg: #FFFFFF; --btn-fg: #0B1626; --money: #4ADE80; } }
:root[data-theme="dark"] { --btn-bg: #FFFFFF; --btn-fg: #0B1626; --money: #4ADE80; }
.btn.primary, .pill-btn.brand { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn.primary:hover:not([disabled]), .pill-btn.brand:hover { background: color-mix(in srgb, var(--btn-bg) 84%, var(--btn-fg)); }
@media (prefers-reduced-motion: no-preference) {
  .lcard:not(.off):hover .lfoot .btn.primary { background: color-mix(in srgb, var(--btn-bg) 84%, var(--btn-fg)); }
}
.hs-slide .btn.primary { background: #fff; color: #0F2340; border-color: #fff; }
.money b, .money b.free, .price { color: var(--money); }

/* ---------- seat bars fill on view ---------- */
@media (prefers-reduced-motion: no-preference) {
  .seats i { transition: width .9s cubic-bezier(.2, .8, .2, 1) .15s; }
  .seats:not(.go) i { width: 0 !important; }
  .seats.low.go i { background: var(--danger); }
}

/* ---------- ticket: details on the front, QR on the back ---------- */
.tflip { perspective: 1400px; flex-shrink: 0; }
.tflip-in { display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.tflip .tface { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tflip .back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; }
.tflip.flipped .tflip-in { transform: rotateY(180deg); }
.tflip .back .qr { width: min(240px, 66vw); }
.flip-btn { margin-top: 10px; align-self: center; }
.flip-btn svg { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .tflip { animation: tin .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes tin { from { transform: rotateX(-24deg) translateY(24px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .tflip-in { transition: none; }
}

/* ---------- window opening: slide up on phones, gentle scale-in on desktop ---------- */
@media (prefers-reduced-motion: no-preference) {
  .modal { animation: mfade .22s ease-out both; }
  .sheet { animation: sheetIn .28s cubic-bezier(.2, .8, .2, 1) both; will-change: transform; }
  @keyframes mfade { from { background-color: rgba(5, 12, 24, 0); } }
  @keyframes sheetIn { from { transform: translateY(14px) scale(.98); opacity: 0; } }
  @media (max-width: 600px) {
    @keyframes sheetUp { from { transform: translateY(100%); } }
    .sheet { animation: sheetUp .34s cubic-bezier(.2, .85, .25, 1) both; }
  }
}
/* phones: a blurred backdrop is costly to repaint while the window moves */
@media (max-width: 600px) { .modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 12, 24, .55); } }
