/* ==========================================================================
   אקסל לתעשייה – מערכת עיצוב
   כל צבעי הטקסט נבדקו ליחס ניגודיות של 4.5:1 לפחות מול הרקע שלהם
   ========================================================================== */
:root {
  --brand-700: #15803d;   /* 5.0:1 על לבן */
  --brand-800: #116d33;   /* 6.4:1 על לבן */
  --brand-900: #0c5127;
  --brand-100: #dcfce7;
  --brand-50:  #f0fdf4;
  --brand-glow: rgba(34, 197, 94, .35);
  --grad: linear-gradient(135deg, #15803d 0%, #0f5f30 100%);
  --ink:      #0f172a;
  --ink-2:    #334155;
  --ink-soft: #4b5563;
  --line:     #e5e7eb;
  --bg:       #f7f8fa;
  --surface:  #ffffff;
  --dark:     #0b1220;
  --dark-2:   #131c2e;
  --amber:    #92400e;
  --amber-bg: #fef3c7;
  --red:      #b91c1c;
  --red-bg:   #fef2f2;
  --focus:    #2563eb;
  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 1px 3px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
  --font: 'Rubik', 'Segoe UI', Arial, sans-serif;
  --header-h: 72px;
}

/* ---------- בסיס ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
img, video { display: block; }
.icon { flex: none; vertical-align: middle; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .55em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand-800); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-900); }
code { font-family: Consolas, 'Courier New', monospace; direction: ltr; unicode-bidi: embed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -120px; right: 1rem; z-index: 1000; background: var(--ink); color: #fff;
  padding: .8rem 1.3rem; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.small { font-size: .9rem; color: var(--ink-soft); }
.block { display: block; }
.center { text-align: center; }
.meta { color: var(--ink-soft); font-size: .95rem; }
.lead, .section-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.mt-1 { margin-top: 1rem; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.4rem; border: 0; border-radius: var(--pill);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(34, 197, 94, .55); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-soft { background: #eef0f3; color: var(--ink); }
.btn-soft:hover { background: #e2e5ea; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand-800); box-shadow: inset 0 0 0 2px var(--brand-700); }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-900); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-large { min-height: 54px; padding: .85rem 1.7rem; font-size: 1.08rem; }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: .5rem; font: inherit; color: var(--ink); font-weight: 600; cursor: pointer; }
.inline-form { display: inline; margin: 0; }

/* ---------- צ'יפים ותגיות ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: var(--pill);
  background: var(--brand-100); color: var(--brand-900); font-size: .9rem; font-weight: 600; margin-bottom: 1rem;
}
.chip-glass { background: rgba(255, 255, 255, .1); color: #e8fbe9; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: var(--pill); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.badge-free { background: var(--brand-100); color: var(--brand-900); }
.badge-lock { background: var(--amber-bg); color: var(--amber); }
.badge-soft { background: #eef0f3; color: var(--ink-2); }
.badge-soon { background: var(--amber-bg); color: var(--amber); vertical-align: middle; font-size: .8rem; }
.badge-ok { background: var(--brand-100); color: var(--brand-900); }
.badge-off { background: var(--red-bg); color: #991b1b; }
.badge-admin { background: var(--ink); color: #fff; }
.badge-draft { background: var(--amber-bg); color: var(--amber); }

/* ---------- כותרת עליונה (זכוכית) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(247, 248, 250, .82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
}
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 18px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.2rem; }
.brand-sub { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .9rem; border-radius: var(--pill); color: var(--ink-2);
  text-decoration: none; font-weight: 500;
}
.site-nav a:hover { background: #eceef2; color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.nav-only-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.user-chip {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-900); font-weight: 800;
}

/* ---------- ניווט תחתון (נייד) ---------- */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  /* backdrop-filter יוצר containing block שמסתיר את התפריט הקבוע – בנייד רקע אטום */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 248, 250, .97); }
  .site-nav {
    display: none; position: fixed; inset-inline: .75rem; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 95;
    background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: .5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .8rem 1rem; border-radius: var(--r-sm); }
  .nav-only-mobile { display: block; }
  .brand-sub, .hide-sm { display: none; }
  .header-actions { margin-inline-start: auto; }
  .user-chip { display: none; }
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: block; position: fixed; z-index: 65; inset-inline: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg);
  }
  .bottom-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: .35rem; }
  .bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 100%; min-height: 56px;
    padding: .4rem .2rem; border: 0; background: none; border-radius: 18px; font: inherit; font-size: .75rem;
    font-weight: 600; color: var(--ink-soft); text-decoration: none; cursor: pointer;
  }
  .bottom-nav a[aria-current="page"], .bottom-nav button[aria-expanded="true"] { color: var(--brand-800); background: var(--brand-50); }
  .bottom-nav-center a { position: relative; padding-top: 1.9rem; }
  .bottom-nav-center a[aria-current="page"] { background: none; }
  .center-bubble {
    position: absolute; top: -26px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: var(--grad); color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .95), 0 12px 24px -8px var(--brand-glow);
  }
}

/* ---------- התראות ---------- */
.alert {
  display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.25rem; padding: .95rem 1.15rem;
  border-radius: var(--r-sm); font-weight: 500; text-align: start;
}
.alert-success { background: var(--brand-100); color: var(--brand-900); }
.alert-error { background: var(--red-bg); color: #991b1b; box-shadow: inset 0 0 0 1px #fecaca; }
.notice {
  display: flex; align-items: flex-start; gap: .6rem; background: var(--amber-bg); border-radius: var(--r-sm);
  padding: .9rem 1.15rem; color: #713f12;
}
.notice a { color: #713f12; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding-block: 1.5rem 1rem; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 4rem);
  background: radial-gradient(1200px 500px at 85% -10%, #1d3b2a 0%, transparent 60%), linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.hero-glow {
  position: absolute; width: 520px; height: 520px; left: -140px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, .35), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; }
.text-gradient { background: linear-gradient(90deg, #4ade80, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.15rem; color: #cbd5e1; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-stats { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats li {
  display: grid; padding: .7rem 1.1rem; border-radius: var(--r-sm); background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); min-width: 110px;
}
.hero-stats strong { font-size: 1.5rem; line-height: 1.1; color: #fff; }
.hero-stats span { font-size: .88rem; color: #cbd5e1; }

.preview-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden; transform: rotate(-1.5deg);
  transition: transform .25s ease;
}
.preview-card:hover { transform: rotate(0deg) translateY(-4px); color: var(--ink); }
.preview-top { display: flex; align-items: center; gap: .35rem; padding: .7rem 1rem; background: #f3f4f6; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.preview-badge { margin-inline-start: auto; background: var(--brand-100); color: var(--brand-900); font-weight: 700; font-size: .8rem; padding: .1rem .6rem; border-radius: var(--pill); }
.preview-sheet { position: relative; display: block; padding: .9rem; direction: ltr; }
.fx { display: block; font-size: .82rem; padding: .45rem .7rem; background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .6rem; color: var(--ink-2); }
.fx em { color: var(--ink-soft); font-weight: 700; margin-right: .4rem; }
.mini-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .85rem; }
.mini-grid span { padding: .4rem .6rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.mini-grid .h { background: #f3f4f6; font-weight: 700; color: var(--ink-2); }
.mini-grid .t { background: var(--brand-100); color: var(--brand-900); font-weight: 800; border-bottom: 0; }
.play-bubble {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.75), 0 18px 30px -10px rgba(0,0,0,.4);
}
.play-bubble .icon { margin-left: 4px; }
.preview-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem 1.1rem; }
.preview-title { font-weight: 700; }
.preview-dur { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .preview-card { transform: none; } }

/* ---------- סקשנים ---------- */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .section-lead { margin-inline: auto; }
.narrow-wide { max-width: 820px; }
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature, .card, .step, .lesson-card, .lesson-panel, .stat {
  background: var(--surface); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid rgba(229, 231, 235, .7);
}
.feature p:last-child, .card > :last-child, .step p:last-child { margin-bottom: 0; }
.feature p, .step p { color: var(--ink-soft); }
.icon-badge {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 1rem;
  background: var(--grad); color: #fff; box-shadow: 0 0 0 6px var(--brand-50), 0 10px 20px -8px var(--brand-glow);
}
.icon-badge-light { box-shadow: 0 0 0 6px rgba(255,255,255,.1); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.section-tint .step { background: var(--bg); box-shadow: none; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 1rem;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.15rem;
}

.lesson-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.lesson-card { position: relative; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lesson-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.lesson-num { font-weight: 700; color: var(--brand-800); font-size: .95rem; }
.lesson-card h3 a { color: var(--ink); text-decoration: none; }
.lesson-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.lesson-card h3 a:focus-visible { outline: none; }
.lesson-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.lesson-card p { color: var(--ink-soft); }
.lesson-card-meta { margin-top: auto; margin-bottom: 0; display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink-2) !important; }

.faq { display: grid; gap: .75rem; }
.faq details { background: var(--bg); border-radius: var(--r-sm); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--brand-800); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--ink-2); }

.cta-card {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); color: #fff;
  background: radial-gradient(700px 300px at 10% 120%, rgba(34,197,94,.35), transparent 60%), linear-gradient(160deg, var(--dark), var(--dark-2));
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; margin-bottom: .3rem; }
.cta-card p { color: #cbd5e1; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- עמודים פנימיים ---------- */
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.page-hero .notice { margin-top: 1.25rem; max-width: 720px; }
.page-body { padding-block: 1rem 4rem; display: grid; gap: 1.5rem; }
.page { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.narrow { max-width: 600px; }
.prose { max-width: 820px; }
.prose ul { padding-inline-start: 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.25rem; font-size: .95rem; }
.breadcrumbs li + li::before { content: '‹'; margin-inline-end: .4rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }

.lesson-panel h2 { font-size: 1.35rem; }
.lesson-panel-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.lesson-panel-head p { color: var(--ink-soft); margin: 0; }
.lesson-panel-head h2 { margin-bottom: .3rem; }
.lesson-panel-head h2 a { color: var(--ink); text-decoration: none; }
.lesson-panel-head h2 a:hover { text-decoration: underline; }
.lesson-panel-num {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1.35rem; box-shadow: 0 10px 20px -10px var(--brand-glow);
}
.video-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.video-item a {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; min-height: 64px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); text-decoration: none; transition: background .15s, box-shadow .15s;
}
.video-item a:hover { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand-700); }
.video-pos {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--brand-800); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.video-item.is-done .video-pos { background: var(--brand-700); color: #fff; box-shadow: none; }
.video-item.is-locked .video-pos { color: var(--ink-soft); }
.video-body { flex: 1; display: grid; line-height: 1.35; }
.video-kicker { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.video-title { font-weight: 600; }
.video-dur { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: .92rem; }
.empty-state { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); background: var(--bg); padding: 1rem 1.2rem; border-radius: var(--r-sm); margin: 0; }

/* ---------- עמוד סרטון ---------- */
.video-page { padding-top: 1.5rem; }
.video-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.video-chips .chip { margin: 0; }
.video-head h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.video-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.video-side h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.player { background: #000; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.player video { width: 100%; aspect-ratio: 16 / 9; }
.player-empty { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--dark); color: #cbd5e1; }
.player-empty p { display: flex; gap: .5rem; align-items: center; margin: 0; }
.player-help { margin-top: .75rem; }
video::cue { font-family: var(--font); font-size: 1.1em; background: rgba(0, 0, 0, .8); }
.transcript { margin-top: 1.25rem; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.transcript summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; min-height: 44px; }
.transcript-body { padding: 0 1.3rem 1.1rem; max-height: 480px; overflow-y: auto; color: var(--ink-2); }
.card-dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #e2e8f0; border: 0; }
.card-dark h2 { color: #fff; }
.card-dark p { color: #cbd5e1; }
.card-dark .small, .card-dark a:not(.btn) { color: #e2e8f0; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.file-list a {
  display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.35;
}
.file-list a:hover { background: var(--brand-50); }
.file-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-100); color: var(--brand-900); flex: none; }
.file-list a.is-locked .file-icon { background: var(--amber-bg); color: var(--amber); }
.done-badge { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand-800); }
.prev-next { display: grid; gap: .6rem; }
.prev-next a { display: block; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; }
.prev-next a:hover { background: var(--brand-50); }
@media (max-width: 960px) { .video-layout { grid-template-columns: 1fr; } .video-side { position: static; } }

/* ---------- התחברות / הרשמה ---------- */
.auth-wrap {
  display: grid; place-items: start center; padding: clamp(3.5rem, 8vw, 6rem) 1.25rem 4rem;
  background: radial-gradient(600px 300px at 50% 0%, rgba(34,197,94,.12), transparent 70%);
}
.auth-card {
  position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg);
  padding: 4rem 2rem 2rem; box-shadow: var(--shadow-lg); text-align: center;
}
.auth-card-wide { max-width: 520px; }
.auth-card .form { text-align: start; margin-top: 1.25rem; }
.auth-badge {
  position: absolute; top: -44px; left: 50%; transform: translateX(-50%); display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 50%; background: var(--grad); color: #fff;
  box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line), 0 18px 30px -10px var(--brand-glow);
}
.auth-badge-dark { background: linear-gradient(160deg, #1f2937, #0b1220); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.auth-sub { color: var(--ink-soft); margin-bottom: 0; }
.auth-foot { margin: 1.25rem 0 0; }
.auth-foot + .auth-foot { margin-top: .5rem; }

/* ---------- טפסים ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.req { color: var(--red); }
.hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"],
.field input[type="search"], .field input[type="file"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; color: var(--ink); background: #f3f4f6;
  border: 2px solid transparent; border-radius: 14px; box-shadow: inset 0 0 0 1px #6b7280; transition: background .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover, .field select:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.field input[dir="ltr"] { text-align: left; }
.field textarea { min-height: 110px; resize: vertical; }
.has-error input, .has-error textarea, .has-error select { box-shadow: inset 0 0 0 2px var(--red); background: var(--red-bg); }
.error-text { margin: 0; color: var(--red); font-weight: 600; }
.error-text::before { content: '⚠ '; }
.checkbox-field { grid-template-columns: auto 1fr; align-items: start; column-gap: .65rem; }
.checkbox-field .error-text, .checkbox-field .full-row { grid-column: 1 / -1; }
.checkbox-field input { width: 22px; height: 22px; margin-top: .25rem; accent-color: var(--brand-700); }
.checkbox-field label { font-weight: 400; }
.error-summary { border-radius: var(--r-sm); padding: 1rem 1.25rem; margin: 1rem 0; background: var(--red-bg); box-shadow: inset 0 0 0 2px var(--red); text-align: start; }
.error-summary h2 { font-size: 1.1rem; color: var(--red); }
.error-summary ul { margin: 0; padding-inline-start: 1.2rem; }
.error-summary a { color: var(--red); font-weight: 700; }
.narrow-card { max-width: 600px; margin-top: 1.5rem; }
.progress { height: 12px; background: #eef0f3; border-radius: var(--pill); overflow: hidden; margin-bottom: 1.5rem; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: var(--pill); }
.contact-list { list-style: none; padding: 0; }

/* ---------- תחתית ---------- */
.site-footer { background: var(--dark); color: #cbd5e1; padding-block: 3.5rem 1.5rem; margin-top: 2rem; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .small { color: #cbd5e1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.brand-light .brand-name { color: #fff; }
.footer-about p { margin-top: 1rem; max-width: 36ch; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- ניהול ---------- */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; margin: 0 0 2rem; background: #eceef2; border-radius: var(--r); width: fit-content; max-width: 100%; }
.admin-nav a { display: block; padding: .5rem 1.1rem; border-radius: var(--pill); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.admin-nav a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.admin-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.stat-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-value { display: block; font-size: 2.2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat-label { color: var(--ink-soft); font-weight: 500; }
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th, .data-table td { padding: .85rem 1rem; border-top: 1px solid var(--line); text-align: start; vertical-align: middle; }
.data-table thead th { background: #f9fafb; font-weight: 600; color: var(--ink-2); border-top: 0; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.admin-lesson { margin-bottom: 1.25rem; }
.admin-lesson-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.admin-lesson-head h2 { margin: 0; font-size: 1.3rem; }
.admin-lesson .table-wrap { box-shadow: none; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
fieldset.card { margin: 0; }
legend { font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: 1rem; float: right; width: 100%; }
legend + * { clear: both; }
.search-row { display: flex; gap: .6rem; align-items: end; margin-bottom: 1rem; flex-wrap: wrap; }
.search-row .field { flex: 1; min-width: 220px; }

/* ---------- ווידג'ט נגישות ---------- */
.a11y-widget { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 90; }
.a11y-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: #1d4ed8; color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 0 0 4px #fff, 0 10px 24px -6px rgba(29, 78, 216, .55);
}
.a11y-toggle:hover { background: #1e40af; }
@media (max-width: 860px) { .a11y-widget { bottom: calc(108px + env(safe-area-inset-bottom)); left: .9rem; } .a11y-toggle { width: 48px; height: 48px; } }
.a11y-panel {
  position: absolute; bottom: 70px; left: 0; width: min(330px, calc(100vw - 2rem)); background: var(--surface);
  border-radius: var(--r); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.2rem;
  max-height: calc(100vh - 220px); overflow-y: auto;
}
.a11y-title { font-size: 1.15rem; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .8rem; font-weight: 600; }
.a11y-buttons { display: flex; gap: .35rem; }
.a11y-buttons button, .a11y-toggles button, .a11y-reset {
  min-height: 44px; min-width: 44px; padding: .45rem .7rem; font: inherit; font-weight: 600; background: #f3f4f6;
  color: var(--ink); border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer;
}
.a11y-buttons button:hover, .a11y-toggles button:hover, .a11y-reset:hover { background: #e5e7eb; }
.a11y-toggles { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.a11y-toggles button { width: 100%; font-size: .9rem; }
.a11y-toggles button[aria-pressed="true"] { background: #1d4ed8; color: #fff; }
.a11y-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* ---------- מצבי נגישות ---------- */
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff59d !important; color: #000 !important; }
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-spacing body { letter-spacing: .12em; word-spacing: .16em; line-height: 2 !important; }
html.a11y-spacing p { margin-bottom: 2em; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9 21z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .preview-card { transform: none !important; }
html.a11y-contrast body, html.a11y-contrast .site-header, html.a11y-contrast .card, html.a11y-contrast .feature, html.a11y-contrast .step,
html.a11y-contrast .lesson-card, html.a11y-contrast .lesson-panel, html.a11y-contrast .hero-card, html.a11y-contrast .cta-card,
html.a11y-contrast .section-tint, html.a11y-contrast .video-item a, html.a11y-contrast .stat, html.a11y-contrast .table-wrap,
html.a11y-contrast .site-nav, html.a11y-contrast .transcript, html.a11y-contrast .preview-card, html.a11y-contrast .preview-top,
html.a11y-contrast .mini-grid span, html.a11y-contrast .fx, html.a11y-contrast .a11y-panel, html.a11y-contrast .auth-card,
html.a11y-contrast .auth-wrap, html.a11y-contrast .bottom-nav, html.a11y-contrast .faq details, html.a11y-contrast .file-list a,
html.a11y-contrast .prev-next a, html.a11y-contrast .data-table thead th, html.a11y-contrast .site-footer, html.a11y-contrast .empty-state,
html.a11y-contrast .hero-stats li, html.a11y-contrast .admin-nav ul, html.a11y-contrast .admin-nav a, html.a11y-contrast .notice, html.a11y-contrast .alert,
html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast select {
  background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: inset 0 0 0 1px #fff !important;
}
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast label,
html.a11y-contrast td, html.a11y-contrast th, html.a11y-contrast span, html.a11y-contrast summary, html.a11y-contrast legend { color: #fff !important; }
html.a11y-contrast .text-gradient { -webkit-text-fill-color: #ffff00; color: #ffff00 !important; }
html.a11y-contrast a { color: #ffff00 !important; }
html.a11y-contrast .btn, html.a11y-contrast .center-bubble, html.a11y-contrast .play-bubble { background: #ffff00 !important; color: #000 !important; box-shadow: none !important; }
html.a11y-contrast .btn *, html.a11y-contrast .center-bubble *, html.a11y-contrast .play-bubble * { color: #000 !important; }
html.a11y-contrast .a11y-panel button { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .a11y-panel button[aria-pressed="true"] { background: #ffff00 !important; color: #000 !important; }
html.a11y-contrast .a11y-toggle { background: #ffff00 !important; color: #000 !important; }
html.a11y-contrast .hero-glow { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .preview-card { transform: none; }
}
@media (forced-colors: active) {
  .btn, .a11y-toggle, .center-bubble { border: 2px solid ButtonText; }
  .text-gradient { color: CanvasText; background: none; }
}
@media print { .site-header, .site-footer, .a11y-widget, .skip-link, .bottom-nav { display: none; } }

/* ---------- ווצאפ ---------- */
.wa-float {
  position: fixed; z-index: 88; bottom: 1.25rem; right: 1.25rem; display: inline-flex; align-items: center; gap: .55rem;
  min-height: 56px; padding: .55rem 1.1rem .55rem .7rem; border-radius: var(--pill); background: #128c4a; color: #fff;
  font-weight: 600; text-decoration: none; box-shadow: 0 0 0 4px #fff, 0 12px 28px -8px rgba(18, 140, 74, .6);
  transition: transform .15s ease;
}
.wa-float:hover { color: #fff; background: #0e7a40; transform: translateY(-2px); }
.wa-float .icon { width: 32px; height: 32px; }
@media (max-width: 860px) {
  .wa-float { bottom: calc(108px + env(safe-area-inset-bottom)); right: .9rem; min-height: 48px; width: 48px; padding: 0; justify-content: center; }
  .wa-float-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wa-float .icon { width: 28px; height: 28px; }
}
.btn-wa { background: #128c4a; color: #fff; }
.btn-wa:hover { background: #0e7a40; color: #fff; }
.wa-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.5rem; padding: 1.25rem 1.4rem;
  border-radius: var(--r); background: #ecfdf3; box-shadow: inset 0 0 0 1px #bbf7d0;
}
.wa-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #128c4a; color: #fff; flex: none; }
.wa-card-text { flex: 1; min-width: 200px; }
.wa-card-text h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.wa-card-text p { margin: 0; color: var(--ink-2); }
.footer-wa { display: inline-flex; align-items: center; gap: .45rem; }
html.a11y-contrast .wa-float, html.a11y-contrast .btn-wa, html.a11y-contrast .wa-card-icon { background: #ffff00 !important; color: #000 !important; }
html.a11y-contrast .wa-float *, html.a11y-contrast .btn-wa * { color: #000 !important; }
html.a11y-contrast .wa-card { background: #000 !important; box-shadow: inset 0 0 0 1px #fff !important; }
@media print { .wa-float { display: none; } }

/* ---------- לוח מיומנויות ב-Hero ---------- */
.board { display: grid; gap: .9rem; transform: rotate(-1.2deg); }
.board-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); }
.board-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .92rem; margin-bottom: .7rem; }
.board-tag { font-size: .78rem; font-weight: 600; color: var(--brand-900); background: var(--brand-100); border-radius: var(--pill); padding: .05rem .55rem; direction: ltr; }
.gantt { position: relative; display: grid; grid-template-columns: 74px repeat(10, 1fr); grid-auto-rows: 26px; row-gap: .45rem; direction: ltr; align-items: center;
  background-image: linear-gradient(90deg, transparent 73px, #f1f5f9 73px); }
.g-label { grid-column: 1; font-size: .74rem; font-weight: 700; color: var(--ink-2); }
.g-bar { height: 18px; border-radius: 6px; background: var(--grad); }
.g-a { grid-row: 1; grid-column: 2 / 6; }
.g-b { grid-row: 1; grid-column: 7 / 10; background: linear-gradient(90deg, #4ade80, #16a34a); }
.g-c { grid-row: 2; grid-column: 4 / 10; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.g-d { grid-row: 3; grid-column: 2 / 4; background: linear-gradient(90deg, #fbbf24, #d97706); }
.g-e { grid-row: 3; grid-column: 5 / 12; background: var(--grad); }
.g-label:nth-of-type(1) { grid-row: 1; } .g-label:nth-of-type(2) { grid-row: 2; } .g-label:nth-of-type(3) { grid-row: 3; }
.g-today { position: absolute; top: -6px; bottom: -6px; left: 52%; width: 2px; background: #ef4444; border-radius: 2px; }
.board-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.bars { display: flex; align-items: flex-end; justify-content: space-around; height: 84px; border-bottom: 2px solid var(--line); }
.bar { width: 26%; border-radius: 6px 6px 0 0; background: var(--grad); }
.b1 { height: 55%; } .b2 { height: 78%; } .b3 { height: 100%; background: linear-gradient(180deg, #4ade80, #15803d); }
.bar-labels { display: flex; justify-content: space-around; font-size: .75rem; color: var(--ink-soft); margin-top: .3rem; direction: ltr; }
.kpis { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .85rem; font-weight: 600; }
.kpis li { display: flex; align-items: center; gap: .5rem; background: var(--bg); border-radius: 10px; padding: .4rem .6rem; }
.dot-k { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.k-red { background: #ef4444; } .k-amber { background: #f59e0b; } .k-blue { background: #3b82f6; }
.board-fx { display: flex; gap: .6rem; align-items: center; direction: ltr; font-size: .85rem; padding: .7rem 1rem; background: #0f172a; color: #86efac; }
.board-fx em { color: #94a3b8; font-weight: 700; }
@media (max-width: 900px) { .board { transform: none; } }

/* ---------- מה לומדים ---------- */
.skill-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.skill { background: var(--surface); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid rgba(229,231,235,.7); }
.skill h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.skill p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.skill .icon-badge { width: 48px; height: 48px; margin-bottom: .85rem; }

/* ---------- חשיבה הנדסית ---------- */
.think-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.qa { background: var(--bg); border-radius: var(--r-sm); padding: 1rem 1.2rem; border-inline-start: 4px solid var(--brand-700); }
.qa .q { font-weight: 700; margin: 0 0 .25rem; }
.qa .a { margin: 0; color: var(--ink-2); font-size: .97rem; }
.qa .a::before { content: 'הכלי: '; color: var(--brand-800); font-weight: 700; }
@media (max-width: 900px) { .think-grid { grid-template-columns: 1fr; } }

/* ---------- תגיות נושאים ---------- */
.topic-chips { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.topic-chips li { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: #f1f5f9; border-radius: var(--pill); padding: .2rem .7rem; }
.topic-chips-lg li { font-size: .92rem; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); padding: .3rem .85rem; }
.lesson-panel .topic-chips { margin: 0 0 1.1rem; }
.lesson-card .topic-chips { margin: 0 0 .25rem; position: relative; }
.lesson-count { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #f1f5f9; border-radius: var(--pill); padding: .1rem .6rem; }

/* ---------- סרטונים "בקרוב" ---------- */
.video-item .video-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; min-height: 64px; border-radius: var(--r-sm); background: var(--bg); }
.video-item.is-upcoming .video-row { background: transparent; border: 1.5px dashed #c4c9d0; }
.video-item.is-upcoming .video-pos { color: var(--ink-soft); }
.video-item.is-upcoming .video-title { color: var(--ink-2); font-weight: 500; }

/* ---------- מבחנים ---------- */
.exam-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.exam { background: var(--bg); border-radius: var(--r); padding: 1.5rem; border: 1px solid var(--line); }
.exam-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.exam-head h3 { margin: 0; }
.exam-head p { margin: 0; }
.exam-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; direction: ltr; flex: none; }
.exam-logo-dark { background: linear-gradient(160deg, #1f2937, #0b1220); }
.exam-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.exam-tasks li { display: flex; align-items: flex-start; gap: .5rem; }
.exam-tasks .icon { color: var(--brand-800); margin-top: .3rem; }

/* ---------- שיעור לדוגמה ---------- */
.sample-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; background: var(--surface); border-radius: var(--r); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.sample-play { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; }
.sample-play .icon { margin-left: 3px; }
.sample-text { flex: 1; min-width: 220px; }
.sample-text h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.sample-text p { margin: 0; color: var(--ink-soft); }

html.a11y-contrast .board-card, html.a11y-contrast .skill, html.a11y-contrast .qa, html.a11y-contrast .exam, html.a11y-contrast .sample-strip,
html.a11y-contrast .topic-chips li, html.a11y-contrast .kpis li, html.a11y-contrast .video-row, html.a11y-contrast .lesson-count {
  background: #000 !important; color: #fff !important; box-shadow: inset 0 0 0 1px #fff !important;
}

/* ---------- בחירת שפה (גלובוס) ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-list {
  position: absolute; top: calc(100% + .4rem); inset-inline-end: 0; z-index: 120; min-width: 150px; margin: 0; padding: .35rem;
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-list a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.lang-list a:hover, .lang-list a:focus-visible { background: #eef0f3; }
.lang-list a[aria-current="true"] { font-weight: 700; background: #eef0f3; }
@media (max-width: 560px) { .lang-current { display: none; } }

/* ---------- הגדרות נגן ---------- */
.player { position: relative; }
.player:fullscreen { border-radius: 0; display: flex; align-items: center; }
.player:fullscreen video { height: 100%; aspect-ratio: auto; }
.player-tools { position: absolute; top: .6rem; inset-inline-end: .6rem; display: flex; gap: .4rem; z-index: 3; }
.player-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15, 23, 42, .72); color: #fff; transition: background .15s;
}
.player-btn:hover, .player-btn:focus-visible { background: rgba(15, 23, 42, .92); }
.player-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.player-menu {
  position: absolute; top: 3.6rem; inset-inline-end: .6rem; z-index: 4; width: min(280px, calc(100% - 1.2rem)); max-height: calc(100% - 4.4rem); overflow: auto;
  background: rgba(15, 23, 42, .95); color: #fff; border-radius: 14px; padding: .9rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.player-menu fieldset { border: 0; margin: 0 0 .75rem; padding: 0; }
.player-menu legend { float: none; width: auto; font-size: .95rem; font-weight: 700; margin-bottom: .35rem; color: #cbd5e1; }
.player-opt { display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.player-opt:hover { background: rgba(255, 255, 255, .08); }
.player-opt input { width: 18px; height: 18px; accent-color: #22c55e; }
.player-opt.is-off { opacity: .55; cursor: not-allowed; }
.player-opt small { color: #94a3b8; font-size: .8rem; }
.player-menu .btn-soft { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 700px) {
  .player-menu:not(:fullscreen *) {
    position: fixed; top: auto; inset-inline: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); width: auto;
    max-height: 62vh; z-index: 200;
  }
  .player-btn { width: 40px; height: 40px; }
}

/* כפתור Google */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #c8ccd2; gap: .6rem; }
.btn-google:hover { background: #f4f6f8; }
.btn-google svg { flex: none; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--ink-soft); font-size: .9rem; margin: 1rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }

/* סרטון נעול – קורס מלא */
.player-locked { flex-direction: column; gap: .75rem; text-align: center; padding: 2rem 1.25rem; }
.player-locked .lock-title { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; justify-content: center; }
.player-locked p { max-width: 36rem; margin: 0 auto; }

/* גרף עמודות – משתמשים פעילים ביום */
.chart { margin: 0 0 1.5rem; }
.chart-plot { display: flex; gap: .5rem; height: 220px; padding-bottom: 1.6rem; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; color: var(--ink-soft); font-size: .8rem; text-align: right; min-width: 1.5rem; margin-bottom: -.5rem; }
.chart-bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 50%; }
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline-offset: 2px; }
.chart-col::before { content: ""; position: absolute; inset: 0 -1px; } /* אזור ריחוף רחב מהעמודה */
.chart-bar { width: 100%; min-height: 0; background: var(--brand-700); border-radius: 4px 4px 0 0; }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { background: var(--brand-900); }
.chart-x { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: .3rem; font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.chart-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; font-size: .8rem; padding: .4rem .6rem; border-radius: 6px; white-space: nowrap; z-index: 5; pointer-events: none; }
.chart-col:hover .chart-tip, .chart-col:focus-visible .chart-tip { display: block; }
.chart-col:first-child .chart-tip { left: 0; transform: none; }
.chart-col:last-child .chart-tip { left: auto; right: 0; transform: none; }

/* מסך "הסרטון הבא" בסוף הצפייה */
.player-end {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0b1220 center / cover no-repeat; color: #fff;
}
.player-end::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(2, 6, 23, .85) 0%, rgba(2, 6, 23, .35) 45%, rgba(2, 6, 23, .55) 100%); }
.player-end[hidden] { display: none; }
.player-end > * { position: relative; z-index: 2; }
.player-end > .player-end-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.player-end-top { position: absolute; top: 0; inset-inline: 0; padding: 1rem 1.25rem; padding-inline-end: 7rem; display: flex; flex-direction: column; gap: .2rem; }
.player-end-kicker { font-size: .9rem; font-weight: 700; color: #86efac; }
.player-end-title { font-size: clamp(1.05rem, 2.6vw, 1.6rem); font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.player-end-play {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: #16a34a; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .15s ease, background .15s ease;
}
.player-end-play:hover { transform: scale(1.07); background: #15803d; }
.player-end-play:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.player-end-replay {
  position: absolute; bottom: 1rem; inset-inline-start: 1.25rem; background: rgba(15, 23, 42, .75); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .9rem; cursor: pointer;
}
.player-end-replay:hover, .player-end-replay:focus-visible { background: rgba(15, 23, 42, .95); }
.player-end-replay:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .player-end-play { width: 64px; height: 64px; } .player-end-play svg { width: 32px; height: 32px; } .player-end-top { padding: .6rem .8rem; padding-inline-end: 6rem; } }
@media (prefers-reduced-motion: reduce) { .player-end-play { transition: none; } }
