/* קמפוס המאמנים — שפה כהה וקולנועית. צבעי המותג (brand.json) כהדגשות על קרקע כהה. */
@font-face {
  font-family: "Rubik";
  src: url("/static/fonts/Rubik-var.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* מ-brand.json */
  --navy: #2B3459;
  --navy-deep: #212A4B;
  --navy-card: #333F62;
  --navy-edge: #3E4969;
  --lime: #8FC13C;
  --lime-bright: #9ACD3E;
  --lime-deep: #6E9B2E;
  --mint: #E1F0D4;
  --off-white: #FAFBF9;
  --body-light: #E8EBF2;
  --muted-light: #A9B2C7;
  /* קרקע כהה — נגזרת מהנייבי של המותג, כהה יותר לתחושת קולנוע */
  --ground: #0A0E1C;
  --ground-2: #10162B;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.09);
  --hairline: rgba(255, 255, 255, 0.09);
  --text: var(--off-white);
  --text-2: var(--muted-light);
  --gutter: clamp(16px, 4vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --card-w: clamp(232px, 21vw, 330px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(43, 52, 89, .55), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(143, 193, 60, .05), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.dim { color: var(--text-2); }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ground); padding: 8px 14px; border-radius: 8px; }
.skip:focus { inset-inline-start: 16px; }

/* ---------- זכוכית ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -30px rgba(0, 0, 0, .7);
}

/* ---------- סרגל עליון ---------- */
.topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding-inline: var(--gutter);
  background: rgba(10, 14, 28, .35);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.topbar.is-scrolled { background: rgba(10, 14, 28, .78); border-bottom-color: var(--hairline); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 26px; width: auto; }
.brand-name { font-weight: 600; font-size: 15px; color: var(--text-2); padding-inline-start: 12px; border-inline-start: 1px solid var(--hairline); white-space: nowrap; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 14px; border-radius: 999px; font-size: 15px; color: var(--text-2); white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.is-active { color: var(--ground); background: var(--off-white); font-weight: 600; }
.user { display: flex; align-items: center; gap: 10px; flex: none; }
.user form { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ground); background: linear-gradient(135deg, var(--lime-bright), var(--lime-deep)); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--off-white); color: var(--ground); }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .45); }
.btn-glass { background: rgba(255, 255, 255, .14); color: var(--text); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--hairline); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: rgba(232, 92, 92, .14); color: #ffb4b4; border-color: rgba(232, 92, 92, .25); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-xs { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip-lime { background: rgba(143, 193, 60, .16); color: var(--lime-bright); }
.chip-dim { background: rgba(255, 255, 255, .1); color: var(--text-2); }
.chip-warn { background: rgba(240, 180, 70, .15); color: #f3cd82; }

/* ---------- הודעה צפה ---------- */
.toast {
  position: fixed; z-index: 60; inset-block-start: 78px; inset-inline-start: 50%; translate: 50% 0;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 14px;
  font-size: 15px; font-weight: 500;
  background: rgba(20, 26, 48, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--hairline); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  animation: toast-in .5s var(--ease) both, toast-out .5s var(--ease) 5.5s forwards;
}
.toast-ok { border-color: rgba(143, 193, 60, .4); }
.toast-warn { border-color: rgba(240, 180, 70, .4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }

/* ---------- גיבור ---------- */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media { background: var(--navy-deep); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: brightness(.85) saturate(1.05); transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(10, 14, 28, .96) 0%, rgba(10, 14, 28, .78) 30%, rgba(10, 14, 28, .15) 65%, rgba(10, 14, 28, .35) 100%),
    linear-gradient(to top, var(--ground) 0%, rgba(10, 14, 28, .6) 22%, transparent 48%),
    linear-gradient(to bottom, rgba(10, 14, 28, .7) 0%, transparent 18%);
}
.hero-content { padding: 0 var(--gutter) clamp(48px, 9vh, 96px); max-width: 720px; animation: rise .9s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--lime-bright); margin-bottom: 14px; }
.hero-title { font-size: clamp(48px, 8vw, 104px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.hero-tag { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--body-light); margin-top: 12px; }
.hero-meta { font-size: 15px; color: var(--text-2); margin-top: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.has-hero main { margin-top: 0; }

/* ---------- כותרת עמוד ---------- */
main { padding-top: 64px; }
.has-hero main { padding-top: 0; }
.page-hero { position: relative; padding: clamp(56px, 10vh, 110px) var(--gutter) 34px; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 360px at 80% 0%, var(--glow, rgba(143, 193, 60, .16)), transparent 70%);
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; max-width: 22ch; }
.page-hero-sub { max-width: 62ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--body-light); margin-top: 16px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.page-hero-meta span { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 14px; color: var(--body-light); }
.hue-games { --glow: rgba(110, 155, 46, .22); }
.hue-perks { --glow: rgba(225, 240, 212, .14); }

.quota { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; padding: 14px 20px; border-radius: 16px; font-size: 16px; }
.quota strong { color: var(--lime-bright); font-size: 20px; font-weight: 700; }
.dots { display: inline-flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(143, 193, 60, .55); }
.dot.is-used { background: rgba(255, 255, 255, .16); box-shadow: none; }

/* ---------- מדפים ---------- */
.shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 4.5vh, 48px); padding-bottom: 80px; }
.shelf { min-width: 0; }
.has-hero .shelves { margin-top: -28px; position: relative; z-index: 2; }
.shelf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-inline: var(--gutter); margin-bottom: 14px; }
.shelf-head h2 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.shelf-num { font-size: .78em; font-weight: 800; color: var(--lime); font-variant-numeric: tabular-nums; }
.shelf-meta { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.shelf-nav { margin-inline-start: auto; display: flex; gap: 8px; }
.shelf-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; font-size: 18px; }
.shelf-btn:hover { background: var(--surface-2); }
.shelf-btn[disabled] { opacity: .25; cursor: default; }
.shelf-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 22px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }

/* ---------- כרטיסים ---------- */
.card { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; color: var(--text); }
.card-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ground-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 30px -18px rgba(0, 0, 0, .9);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset; pointer-events: none; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
a.card:hover .card-media, a.card:focus-visible .card-media { transform: scale(1.045); box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .18); }
a.card:focus-visible { outline: none; }
a.card:focus-visible .card-media { outline: 3px solid var(--lime); outline-offset: 3px; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding-inline: 2px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.card-meta { font-size: 13px; color: var(--text-2); }
.card .chip { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; }

.play-badge, .lock-badge {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  background: rgba(10, 14, 28, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  transition: background .3s, transform .3s var(--ease);
}
a.card:hover .play-badge { background: var(--off-white); color: var(--ground); transform: scale(1.08); }
.play-badge.big { position: static; width: 72px; height: 72px; font-size: 28px; margin: 0 auto 14px; }

.is-locked .media-photo img, .is-locked .art { filter: grayscale(.55) brightness(.5); }
.is-locked .card-title { color: var(--text-2); }
.unlock-form { position: absolute; inset-block-start: 0; inset-inline: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; margin: 0; opacity: .9; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.is-locked:hover .unlock-form, .is-locked:focus-within .unlock-form { opacity: 1; transform: scale(1.04); }

.is-soon .lock-badge { opacity: .5; }

/* ---------- אמנות מודולים (בלי תמונות — טיפוגרפיה ואור) ---------- */
.art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at var(--gx, 85%) var(--gy, 0%), var(--c1), transparent 60%), linear-gradient(150deg, var(--c2), #0B1022 75%); }
.art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; inset-inline-start: -18%; inset-block-end: -48%; border: 1px solid rgba(255, 255, 255, .09); z-index: -1; }
.art::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; inset-inline-start: -6%; inset-block-end: -30%; border: 1px solid rgba(143, 193, 60, .22); z-index: -1; }
.card-media.art { position: relative; inset: auto; }
.art-num { font-size: clamp(56px, 6vw, 84px); font-weight: 800; line-height: .9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.art-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--lime-bright); margin-top: 6px; }
.art-idx { font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, .9); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.art-game { justify-content: center; align-items: center; text-align: center; --c1: rgba(143, 193, 60, .35); --c2: #1d2a4a; }
.art-game span { font-size: 19px; font-weight: 700; max-width: 80%; line-height: 1.25; }
.hue-1  { --c1: rgba(143, 193, 60, .42); --c2: #26315a; }
.hue-2  { --c1: rgba(110, 155, 46, .45); --c2: #1f2b55; --gx: 15%; }
.hue-3  { --c1: rgba(154, 205, 62, .35); --c2: #2b3459; --gy: 100%; }
.hue-4  { --c1: rgba(225, 240, 212, .25); --c2: #232c52; }
.hue-5  { --c1: rgba(143, 193, 60, .38); --c2: #2a2f5e; --gx: 50%; }
.hue-6  { --c1: rgba(110, 155, 46, .4);  --c2: #1c2850; --gx: 10%; --gy: 90%; }
.hue-7  { --c1: rgba(154, 205, 62, .42); --c2: #283563; }
.hue-8  { --c1: rgba(225, 240, 212, .22); --c2: #2b3459; --gx: 20%; }
.hue-9  { --c1: rgba(143, 193, 60, .45); --c2: #222a4f; --gy: 80%; }
.hue-10 { --c1: rgba(110, 155, 46, .36); --c2: #2d3561; --gx: 60%; }
.hue-11 { --c1: rgba(154, 205, 62, .32); --c2: #1e2950; --gx: 90%; --gy: 100%; }
.hue-12 { --c1: rgba(225, 240, 212, .28); --c2: #263160; --gx: 30%; }
.hue-13 { --c1: rgba(143, 193, 60, .4);  --c2: #212b58; --gx: 70%; --gy: 20%; }
.hue-14 { --c1: rgba(110, 155, 46, .44); --c2: #2b3459; --gx: 5%; }
.hue-15 { --c1: rgba(154, 205, 62, .4);  --c2: #242e5c; --gy: 60%; }
.hue-bonus { --c1: rgba(225, 240, 212, .3); --c2: #3a3358; }

/* ---------- אריחים ומבצעים ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding-inline: var(--gutter); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 26px; min-height: 170px; transition: transform .4s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); }
.tile-kicker { margin-bottom: auto; }
.tile-icon { font-size: 26px; color: var(--lime-bright); }
.tile-title { font-size: 22px; font-weight: 700; }
.tile-sub { color: var(--text-2); font-size: 15px; }
.tile-sub strong { color: var(--lime-bright); }
.tile .dot { width: 8px; height: 8px; }
.promo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-inline: var(--gutter); padding: 30px; }
.promo-title { font-size: 24px; font-weight: 700; }
.promo-sub { color: var(--body-light); margin-bottom: 10px; }

/* ---------- צפייה ---------- */
.watch { padding: 28px var(--gutter) 34px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 1280px; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--hairline); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 70% at 70% 20%, rgba(43, 52, 89, .9), #070a14); }
.player-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) blur(2px); }
.player-placeholder-text { position: relative; text-align: center; padding: 20px; }
.player-placeholder-text p { font-size: 18px; font-weight: 600; }
.player-placeholder-text p.dim { font-size: 14px; font-weight: 400; margin-top: 4px; }
.watch-info h1 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.watch-tag { color: var(--body-light); font-size: 18px; margin-top: 6px; }

/* ---------- הטבות ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 10px var(--gutter) 90px; }
.perk { padding: 36px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.perk::after { content: ""; position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; inset-inline-start: -60px; inset-block-start: -90px; background: radial-gradient(circle, rgba(143, 193, 60, .25), transparent 65%); }
.perk-num { font-size: clamp(64px, 8vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--mint), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perk h2 { font-size: 24px; }
.perk p { color: var(--text-2); }

/* ---------- כניסה ---------- */
.is-login main { padding-top: 0; }
.login { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; isolation: isolate; }
.login-wall { position: absolute; inset: -25% -20%; z-index: -2; display: grid; gap: 18px; align-content: center; transform: rotate(-8deg) scale(1.05); }
.wall-row { display: flex; gap: 18px; width: max-content; animation: slide 120s linear infinite; }
.wall-row-rev { animation-direction: reverse; animation-duration: 140s; }
.wall-row img { width: clamp(220px, 22vw, 340px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; filter: saturate(.85); }
@keyframes slide { to { transform: translateX(50%); } }
.login-veil { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 50% 50%, rgba(10, 14, 28, .5), rgba(10, 14, 28, .9) 80%),
  linear-gradient(to bottom, rgba(10, 14, 28, .45), rgba(10, 14, 28, .78)); }
.login-veil.solid { background: radial-gradient(900px 500px at 70% 0%, rgba(43, 52, 89, .7), transparent 65%), var(--ground); }
.login-card { width: min(420px, 100%); padding: 40px 34px 30px; text-align: center; animation: rise .8s var(--ease) both; background: linear-gradient(180deg, rgba(20, 26, 48, .72), rgba(12, 16, 32, .72)); }
.login-logo { height: 38px; width: auto; margin: 0 auto 22px; }
.login-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.login-sub { color: var(--text-2); margin-top: 8px; }
.login-link { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.login-link:hover { color: var(--text); }
.form { display: grid; gap: 14px; margin-top: 26px; text-align: start; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.field input, .field select {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .28); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input[dir="ltr"] { text-align: left; }
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(143, 193, 60, .18); background: rgba(0, 0, 0, .4); }
.field select option { background: var(--navy-deep); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn-block, .form > .btn { margin-top: 6px; }
.form-error { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(232, 92, 92, .12); border: 1px solid rgba(232, 92, 92, .3); color: #ffc9c9; font-size: 14px; }

.center-panel { max-width: 560px; margin: 14vh auto; padding: 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.center-panel h1 { font-size: 30px; }

/* ---------- ניהול ---------- */
.admin { padding: 40px var(--gutter) 90px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.admin-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.admin-head p { margin-top: 6px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 22px; align-items: start; }
.admin-card { padding: 24px; min-width: 0; }
.admin-card h2 { font-size: 20px; margin-bottom: 14px; }
.admin-card summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.link-card { border-color: rgba(143, 193, 60, .4); }
.link-field { width: 100%; font: inherit; font-size: 13px; padding: 12px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(0, 0, 0, .35); color: var(--mint); margin-top: 10px; text-align: left; }
.table-wrap { overflow-x: auto; margin-inline: -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 600; color: var(--text-2); font-size: 12px; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.table td .chip { margin-top: 4px; margin-inline-end: 4px; }
.cell-sub { display: block; font-size: 12px; color: var(--text-2); text-align: start; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 260px; }
.inline-form { margin: 0; display: inline-flex; gap: 6px; }

/* ---------- פוטר ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 26px var(--gutter) 34px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-2); }
.footer-dim { opacity: .6; }

/* ---------- מובייל ---------- */
@media (max-width: 860px) {
  .brand-name { display: none; }
  .topbar { gap: 14px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --card-w: 72vw; }
  .topbar { flex-wrap: wrap; height: auto; padding-block: 10px 0; row-gap: 6px; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 8px; margin-inline: -4px; }
  main { padding-top: 108px; }
  .hero { min-height: 78vh; }
  .hero-content { padding-top: 120px; }
  .hero-shade { background: linear-gradient(to top, var(--ground) 0%, rgba(10, 14, 28, .82) 40%, rgba(10, 14, 28, .25) 75%, rgba(10, 14, 28, .6) 100%); }
  .shelf-nav { display: none; }
  .shelf-track { gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .quota { flex-direction: column; align-items: flex-start; gap: 10px; }
  .login-card { padding: 32px 22px 24px; }
}

/* ---------- תנועה מופחתת ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-media img { transform: none; }
  .toast { animation: none; }
}

/* ---------- חשבון וביטול ---------- */
a.avatar { transition: transform .25s var(--ease), box-shadow .25s; }
a.avatar:hover { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(143, 193, 60, .3); }
.quota-rule { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 0; }
.facts dt { font-size: 13px; color: var(--text-2); }
.facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.cancel-card { display: grid; gap: 14px; max-width: 760px; }
.cancel-card strong { color: var(--mint); }
.cancel-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.small { font-size: 13px; }
.cell-json { font-size: 12px; color: var(--text-2); max-width: 420px; word-break: break-all; text-align: left; }

/* ---------- דף הצצה ציבורי ---------- */
.hero-trailer { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.trailer-slot { position: absolute; inset-block-start: 84px; inset-inline-end: var(--gutter); font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); border: 1px dashed rgba(255, 255, 255, .3); border-radius: 999px; padding: 5px 12px; }
.counters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 16px; color: var(--body-light); }
.counters strong { font-size: 22px; font-weight: 800; color: var(--lime-bright); margin-inline-end: 4px; }
.is-veiled .art-num, .is-veiled .art-kicker { filter: blur(5px); opacity: .7; }
.is-veiled .card-media { filter: saturate(.7); }
.is-veiled .lock-badge { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; font-size: 18px; }
.section-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; padding-inline: var(--gutter); margin-bottom: 18px; }
.what, .quotes { padding-bottom: 56px; }
.what-grid, .quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-inline: var(--gutter); }
.what-item { padding: 28px; display: grid; gap: 6px; }
.what-num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--mint), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.what-item h3 { font-size: 20px; }
.what-item p { color: var(--text-2); }
.quote-slot { margin: 0; min-height: 150px; border: 1px dashed rgba(255, 255, 255, .18); border-radius: var(--radius-lg); display: grid; place-content: center; text-align: center; gap: 4px; color: var(--text-2); padding: 20px; }
.quote-slot small { font-size: 12px; opacity: .7; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; padding: 0 var(--gutter) 90px; }
.split-card { padding: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: transform .4s var(--ease), border-color .3s; }
.split-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .22); }
.split-card h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.split-card p { color: var(--body-light); margin-bottom: 8px; }
.split-card .eyebrow { margin-bottom: 0; }
.footer-login { font-size: 12px; }
.footer-login:hover { opacity: 1; color: var(--text); }

/* ---------- מסלולי הצטרפות ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; padding: 10px var(--gutter) 90px; }
.join-single { grid-template-columns: minmax(0, 720px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: 24px; display: grid; gap: 6px; align-content: start; }
.plan-featured { border-color: rgba(143, 193, 60, .45); }
.plan .chip { justify-self: start; }
.plan h3 { font-size: 20px; }
.price { font-size: 16px; color: var(--body-light); }
.price strong { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.perk-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; grid-column: 1; }
.perk-list li { position: relative; padding-inline-start: 26px; color: var(--body-light); }
.perk-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(143, 193, 60, .6); }
.join > .plans, .join > .perk-list { grid-column: 1; }
.join > .join-card { grid-column: 2; grid-row: 1 / span 2; }
.join-single > .join-card { grid-column: 1; grid-row: auto; }
.join-card { padding: 30px; margin-top: 0; }
.join-card h2 { font-size: 22px; }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(240, 180, 70, .1); border: 1px solid rgba(240, 180, 70, .3); display: grid; gap: 6px; }
.notice a { color: var(--lime-bright); text-decoration: underline; text-underline-offset: 3px; }
.verified { color: var(--lime-bright); font-weight: 600; }
.plan-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-pick legend { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.plan-pick label, .consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--hairline); cursor: pointer; }
.plan-pick input, .consent input { accent-color: var(--lime); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.consent { font-size: 15px; line-height: 1.5; }
.terms-ref { text-decoration: underline; text-underline-offset: 3px; }
.small-print { font-size: 13px; line-height: 1.6; color: var(--body-light); margin-top: 4px; }
.field textarea { font: inherit; font-size: 16px; color: var(--text); width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .28); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(143, 193, 60, .18); }
.watch-info .hero-cta { margin-top: 18px; }
@media (max-width: 860px) {
  .join { grid-template-columns: minmax(0, 1fr); }
  .join > .join-card { grid-column: 1; grid-row: auto; }
  .plans { grid-template-columns: 1fr; }
}
.chip-solid { background: var(--lime); color: var(--ground); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.card .chip-solid { inset-block-start: auto; inset-block-end: 14px; inset-inline-start: 12px; }
.switch-track { font-size: 14px; color: var(--text-2); }
.switch-track a { color: var(--lime-bright); text-decoration: underline; text-underline-offset: 3px; }
.notice-neutral { background: rgba(255, 255, 255, .05); border-color: var(--hairline); }
.otp-input { font-size: 28px !important; letter-spacing: .5em; text-align: center !important; font-variant-numeric: tabular-nums; }

/* 27.10 review: clickable plan cards + real alumni quotes */
a.plan { color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease; }
a.plan:hover, a.plan:focus-visible { transform: translateY(-3px); border-color: rgba(143, 193, 60, .7); }
.plan-cta { margin-top: 8px; font-weight: 700; color: var(--lime, #8FC13C); }
.quote-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: 18px; overflow-x: auto; padding: 4px var(--gutter) 18px; scroll-snap-type: x mandatory; }
.quote { margin: 0; padding: 22px; display: grid; gap: 14px; align-content: space-between; scroll-snap-align: start; border-radius: var(--radius-lg); }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quote figcaption { display: grid; gap: 2px; font-size: 13px; color: var(--text-2); }
.quote figcaption strong { color: var(--text-1, #fff); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { a.plan { transition: none; } }
.player-close { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 13, 24, .72); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .22); }
.player-close:hover, .player-close:focus-visible { background: rgba(10, 13, 24, .92); border-color: rgba(143, 193, 60, .8); }
.player-close span { font-size: 14px; }
/* 27.10: a translucent frame from the video itself behind the module/lesson number */
.art-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; z-index: -1; filter: saturate(.85); transition: opacity .3s ease; }
.card:hover .art-thumb, .card:focus-visible .art-thumb { opacity: .55; }

/* 28.10 perks: teaser question on top, CTA pinned to the bottom so both cards align */
.perk-teaser { color: var(--text-2); font-size: 17px; font-weight: 600; padding-block-end: 14px; border-bottom: 1px solid var(--hairline); margin-block-end: 6px; }
.perk-form { margin-block-start: auto; display: grid; gap: 10px; padding-block-start: 14px; }
.perk-form .btn { justify-self: start; }
.perk-done { margin-block-start: auto; padding: 14px 16px; border-radius: 14px; background: rgba(143, 193, 60, .14); color: var(--text-1, #fff) !important; }
.perk { transition: transform .2s ease-out, box-shadow .2s ease-out; }
.perk:hover, .perk:focus-within { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .perk { transition: none; } .perk:hover, .perk:focus-within { transform: none; } }
/* 28.10 Hai: perks content centred */
.perk { align-items: center; text-align: center; }
.perk-teaser { align-self: stretch; }
.perk-form { justify-items: center; }
.perk-form .btn { justify-self: center; }
/* 28.10 Hai: locked teaser modules also show a frame from the lesson; "what you get" centred */
.is-veiled .art-thumb { opacity: .3; filter: blur(2px) saturate(.8); }
.what-item { text-align: center; justify-items: center; }
.what .section-title { text-align: center; }
/* 28.10 Hai + consult: prominent track cards in brand colours, right after "what you get" */
.split { grid-template-columns: 1.4fr 1fr; padding-bottom: 64px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-card { padding: 44px; min-height: 280px; border-radius: var(--radius-lg); text-decoration: none; }
.split-card h2 { font-size: clamp(26px, 3vw, 36px); }
.split-alumni { background: linear-gradient(135deg, #9ACD3E, #8FC13C); color: #212A4B; box-shadow: 0 30px 70px -30px rgba(143, 193, 60, .55); border: 0; }
.split-alumni .eyebrow, .split-alumni h2, .split-alumni p { color: #212A4B; }
.split-alumni .split-btn { background: #212A4B; color: #FAFBF9; font-size: 17px; font-weight: 700; padding: 14px 28px; border: 0; }
.split-alumni:focus-visible { outline: 3px solid #FAFBF9; outline-offset: 3px; }
.split-coaches { background: linear-gradient(135deg, #333F62, #2B3459); border: 1.5px solid rgba(225, 240, 212, .35); color: #FAFBF9; }
.split-coaches .eyebrow { color: #E1F0D4; }
.split-coaches h2 { color: #FAFBF9; }
.split-coaches p { color: #E8EBF2; }
.split-coaches .split-btn { background: transparent; color: #E1F0D4; border: 2px solid #E1F0D4; font-weight: 700; padding: 12px 24px; }
.split-coaches:hover .split-btn { background: rgba(225, 240, 212, .12); }
.closing-cta { display: grid; justify-items: center; padding: 10px var(--gutter) 90px; }
