/*
 * members.css — אתר החברים. השפה של ההדמיות שאושרו (V6 לתלמיד, V7 לניהול, 18/10/2026):
 * רקע כהה עם אור צבעוני, משטחים של זכוכית, מסלול של תחנות ונגן שנשאר למטה.
 * עולם כהה אחד בכוונה, בתלמיד ובניהול.
 */
:root {
  --ink: #FFFFFF; --mut: rgba(255,255,255,.68); --faint: rgba(255,255,255,.14);
  --gold: #FDBF04; --teal: #3FE3D0; --pink: #FF4F8F; --vio: #7027CC; --night: #0E0B1F;
  --glass: rgba(255,255,255,.08); --edge: rgba(255,255,255,.15); --hi: rgba(255,255,255,.2);
  --ui: 'Heebo', 'Rubik', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { direction: rtl; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 85% 8%, rgba(112,39,204,.75), transparent 42%),
              radial-gradient(circle at 8% 50%, rgba(63,227,208,.28), transparent 40%),
              radial-gradient(circle at 70% 96%, rgba(255,79,143,.32), transparent 42%), var(--night);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: inherit; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[hidden] { display: none !important; }
.gl { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--edge); border-radius: 24px; box-shadow: inset 0 1px 0 var(--hi), 0 18px 40px rgba(0,0,0,.28); }
.sc { overflow-y: auto; overflow-x: hidden; } .sc::-webkit-scrollbar { width: 0; height: 0; }
.k { font-size: 12.5px; color: var(--teal); font-weight: 700; letter-spacing: .03em; }
.mut { color: var(--mut); }
.av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 800; flex: none; }
.gold { background: linear-gradient(180deg, #FFE27A, var(--gold)); color: #1a1236; font-weight: 800; border-radius: 999px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 22px rgba(253,191,4,.28); white-space: nowrap; }
.ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-weight: 700; border-radius: 999px; padding: 9px 16px; white-space: nowrap; font-size: 14px; }
.art { border-radius: 10px; flex: none; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(253,191,4,.6), transparent 45%), radial-gradient(circle at 80% 85%, rgba(63,227,208,.45), transparent 45%), linear-gradient(160deg, #5a2fb0, #1a1236); }
.art.a2 { background: radial-gradient(circle at 70% 30%, rgba(255,79,143,.6), transparent 50%), linear-gradient(160deg, #5a2fb0, #1a1236); }
.art.a3 { background: radial-gradient(circle at 30% 70%, rgba(63,227,208,.6), transparent 50%), linear-gradient(160deg, #2b1f63, #120b26); }
.art.a4 { background: radial-gradient(circle at 60% 20%, rgba(253,191,4,.5), transparent 50%), linear-gradient(160deg, #3d1278, #120b26); }
.art.a5 { background: radial-gradient(circle at 20% 40%, rgba(255,243,92,.45), transparent 50%), linear-gradient(160deg, #4a1d6e, #120b26); }
.art.a6 { background: radial-gradient(circle at 80% 70%, rgba(255,79,143,.45), transparent 50%), radial-gradient(circle at 20% 20%, rgba(63,227,208,.35), transparent 45%), linear-gradient(160deg, #24123f, #0E0B1F); }
.art.a7 { background: linear-gradient(160deg, #3a3a52, #16141f); }
.pp { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1a1236; display: grid; place-items: center; flex: none; }
.pp svg { width: 18px; height: 18px; }
.toast { position: fixed; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); padding: 11px 18px; font-weight: 700; font-size: 14px; z-index: 30; display: flex; gap: 8px; align-items: center; background: rgba(30,22,64,.88); border-radius: 18px; border: 1px solid var(--edge); }

/* ===================== התלמיד ===================== */
.app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 250px 1fr 360px; grid-template-rows: 1fr 88px; }
.lib { grid-row: 1; margin: 14px 14px 0 0; padding: 18px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.lib .lt { font-weight: 900; font-size: 17px; padding: 0 38px 12px 8px; display: flex; align-items: center; gap: 8px; min-height: 30px; }
/* כפתור קיפול התפריט, כמו במפקדה: אייקון בלי רקע, באותו מקום כשהתפריט פתוח וכשהוא מקופל */
.sidebtn { position: fixed; top: 29px; right: 30px; z-index: 6; width: 32px; height: 32px; display: grid; place-items: center; color: var(--mut); border-radius: 8px; }
.sidebtn:hover { color: #fff; }
.sidebtn svg { width: 20px; height: 20px; }
.app.folded { grid-template-columns: 1fr 360px; }
.app.folded .lib { display: none; }
.app.folded .mid { padding-right: 66px; }
.lib .it { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; width: 100%; }
.lib .it:hover { background: rgba(255,255,255,.06); }
.lib .it.on { background: rgba(255,255,255,.1); }
.lib .it .art { width: 46px; height: 46px; }
.lib .it b { font-size: 14px; font-weight: 700; line-height: 1.25; flex: 1; min-width: 0; }
.lib .it b span { display: block; font-size: 12px; color: var(--mut); font-weight: 400; }
.lib .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; font-size: 14px; font-weight: 700; }
.lib .me button { margin-inline-start: auto; font-size: 12.5px; color: var(--mut); font-weight: 500; }
.mid { grid-row: 1; padding: 22px 20px 10px; display: flex; flex-direction: column; min-width: 0; }
.mid h2 { margin: 4px 0 0; font-size: 30px; font-weight: 900; line-height: 1.05; text-wrap: balance; }
.hd { display: none; align-items: center; gap: 12px; }
.hd .hi { font-weight: 900; font-size: 27px; line-height: 1.15; text-wrap: balance; }
.hd .av { margin-inline-start: auto; }
.chips { display: none; gap: 8px; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px; }
.chips::-webkit-scrollbar { height: 0; }
.chip { flex: none; max-width: 72vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--mut); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.chip.on { color: #1a1236; background: linear-gradient(180deg, #FFE27A, var(--gold)); border-color: transparent; font-weight: 800; }
.stats { display: flex; gap: 10px; margin-top: 14px; max-width: 440px; }
.stats .gl { flex: 1; padding: 10px 12px; border-radius: 18px; display: flex; flex-direction: column; }
.stats b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.stats span { font-size: 12px; color: var(--mut); }

.path { position: relative; margin: 10px auto 30px; flex: none; }
.path svg.ln { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.node { position: absolute; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; }
.node small { font-size: 11.5px; color: var(--mut); text-align: center; line-height: 1.3; }
.st { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; position: relative;
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.st svg { width: 24px; height: 24px; }
.st.done { color: var(--teal); border-color: rgba(63,227,208,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 18px rgba(63,227,208,.35); }
.st.locked { color: rgba(255,255,255,.45); } .st.locked svg { width: 20px; height: 20px; }
.st.open { color: #fff; border-color: rgba(253,191,4,.45); }
.st.current { width: 80px; height: 80px; border: 0; background: linear-gradient(180deg, #fff, #E9E2FF); color: #2a1150; box-shadow: 0 0 0 7px rgba(253,191,4,.18), 0 0 40px rgba(112,39,204,.8); }
.st.current svg { width: 30px; height: 30px; }
.st.current::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(253,191,4,.55); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: .35; } }
.st.bonus { width: 40px; height: 40px; color: var(--gold); border-color: rgba(253,191,4,.5); } .st.bonus svg { width: 18px; height: 18px; }
.node.sel .st:not(.current) { outline: 2px solid var(--gold); outline-offset: 4px; }
.bub { background: #fff; color: #1a1236; font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 12px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.3); }

.pan { grid-row: 1; margin: 14px 0 0 14px; padding: 22px 20px; min-height: 0; }
.stn { display: flex; flex-direction: column; gap: 12px; }
.stn > * { flex: none; }
.stn h3 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.1; text-wrap: balance; }
.pcard { padding: 14px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px; }
.wv { display: flex; align-items: center; gap: 2px; height: 46px; cursor: pointer; }
.wv b { flex: 1; border-radius: 2px; background: rgba(255,255,255,.18); }
.wv b.p { background: linear-gradient(0deg, var(--teal), #9ff3ea); }
.pcard .ctl { display: flex; align-items: center; gap: 12px; }
.pcard .ctl .pp { width: 48px; height: 48px; } .pcard .ctl .pp svg { width: 20px; height: 20px; }
.pcard .tm { font-size: 13px; color: var(--mut); }
.pcard .ok { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--teal); }
.pcard .ok svg { width: 16px; height: 16px; }
.parts { display: flex; gap: 6px; }
.parts button { padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid rgba(255,255,255,.18); color: var(--mut); }
.parts button.on { background: #fff; color: #1a1236; border-color: transparent; }
.video { border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.vposter { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; flex: none;
  background: radial-gradient(circle at 30% 25%, rgba(253,191,4,.35), transparent 45%), linear-gradient(160deg, #3d1278, #120b26); border: 1px solid var(--edge); }
.vposter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vposter .pp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; box-shadow: 0 8px 26px rgba(0,0,0,.45); }
.vposter .pp svg { width: 24px; height: 24px; }
.vposter .vdur { position: absolute; bottom: 10px; left: 10px; background: rgba(14,11,31,.72); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.row svg { width: 20px; height: 20px; flex: none; color: var(--teal); }
.task { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 18px; }
.task .q { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.task textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(0,0,0,.18); color: #fff; padding: 9px 11px; font-size: 14px; line-height: 1.45; }
.task textarea::placeholder { color: rgba(255,255,255,.5); }
.task textarea:focus { outline: 1.5px solid var(--gold); }
.saved { font-size: 12px; color: var(--teal); min-height: 16px; }
.donebtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 16px; font-weight: 800; font-size: 15px; border: 1px solid rgba(63,227,208,.5); color: var(--teal); background: rgba(63,227,208,.08); }
.donebtn.on { background: var(--teal); color: #0E0B1F; border-color: transparent; }
.donebtn svg { width: 18px; height: 18px; }
.lockbox { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; text-align: center; }
.lockbox svg { width: 34px; height: 34px; color: var(--mut); }
.lockbox b { font-size: 18px; font-weight: 800; }
.soon { padding: 14px; border-radius: 18px; font-size: 14px; color: var(--mut); }
/* רצף התוכן של שיעור: כותרת, סרטון, קישור, תמונה */
.btext { margin: 4px 0 0; font-size: 15px; line-height: 1.6; font-weight: 600; white-space: pre-line; }
/* מרווחים בשיעור (אייל, 18/10): כותרת צמודה לסרטון שלה, ומרווח אחרי כל סרטון לפני הכותרת הבאה */
.btext + .vposter, .btext + .video, .btext + .bimg { margin-top: -4px; }
.vposter + :not(.barrows), .video + :not(.barrows), .bimg + .btext { margin-top: 22px; }
.row + .btext, .row + .vposter, .row + .video { margin-top: 34px; }
.vposter + .barrows, .video + .barrows { margin-top: 2px; }
.barrows { display: block; width: 116px; height: auto; align-self: center; margin-bottom: 14px; opacity: .9; }
.bimg { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--edge); }
button.row { width: 100%; }
.stn .row { justify-content: center; text-align: center; }
/* דפי עבודה: ה-PDF בחלון בתוך האפליקציה */
.docv { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(8,6,20,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.docbar { margin: 12px 12px 0; padding: 10px 12px 10px 10px; border-radius: 20px; display: flex; align-items: center; gap: 10px; }
.docbar b { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docbar .gold, .docbar .ghost { padding: 8px 14px; font-size: 14px; text-decoration: none; }
.docbar .gold svg { width: 16px; height: 16px; }
.docbar .x { width: 38px; height: 38px; display: grid; place-items: center; color: var(--mut); flex: none; }
.docbar .x svg { width: 20px; height: 20px; }
.docpages { flex: 1; overflow-y: auto; padding: 14px 12px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.docpage { width: 100%; max-width: 860px; background: #fff; border-radius: 10px; overflow: hidden; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.docpage canvas { display: block; width: 100%; height: auto; }
.docpage { display: grid; place-items: center; }
.docpage .ld { color: #6B6B6B; font-size: 14px; font-weight: 600; }

.pbar { grid-column: 1 / -1; margin: 12px 14px 14px; border-radius: 22px; display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.pbar .now { display: flex; align-items: center; gap: 12px; width: 260px; min-width: 0; }
.pbar .now .art { width: 52px; height: 52px; }
.pbar .now b { font-size: 14.5px; font-weight: 800; display: block; line-height: 1.25; }
.pbar .now span { font-size: 12px; color: var(--mut); }
.pbar .ctr { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pbar .bt { display: flex; align-items: center; gap: 18px; }
.pbar .bt .sk { font-size: 12px; font-weight: 700; color: var(--mut); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); }
.pbar .wv { height: 24px; width: 100%; max-width: 560px; }
.pbar .tm { font-size: 12px; color: var(--mut); width: 200px; text-align: left; }
.mini { display: none; }
.sheet { display: none; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.center .gl { max-width: 440px; padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.center h1 { margin: 0; font-size: 26px; font-weight: 900; }

@media (max-width: 980px) {
  .app { display: block; height: auto; min-height: 100dvh; padding: 52px 18px 120px; }
  .lib, .pan, .pbar, .sidebtn { display: none; }
  .mid { padding: 0; }
  .mid .mh { display: block; margin-top: 16px; }
  .mid .mh h2 { font-size: 23px; line-height: 1.2; }
  .hd, .chips { display: flex; }
  .mini { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 10px 12px; align-items: center; gap: 10px; border-radius: 18px; z-index: 12; overflow: hidden; background: rgba(28,20,58,.72); }
  .mini .art { width: 42px; height: 42px; }
  .mini .op { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
  .mini .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .mini .tt b { font-size: 14px; font-weight: 800; line-height: 1.25; }
  .mini .tt span { font-size: 12px; color: var(--mut); }
  .mini .pg { position: absolute; bottom: 0; right: 0; left: 0; height: 3px; background: rgba(255,255,255,.12); }
  .mini .pg i { display: block; height: 100%; background: linear-gradient(270deg, var(--teal), var(--gold)); margin-inline-start: auto; }
  /* בטלפון התחנה נפתחת כעמוד מלא בגובה המסך, כמו עמוד חדש, ולא כחלון שעולה מלמטה (אייל, 18/10) */
  .sheet { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 11; padding-top: env(safe-area-inset-top, 0px);
    transform: translateX(-100%); visibility: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1), visibility 0s linear .3s;
    background: radial-gradient(circle at 85% 8%, rgba(112,39,204,.75), transparent 42%), radial-gradient(circle at 8% 50%, rgba(63,227,208,.28), transparent 40%), radial-gradient(circle at 70% 96%, rgba(255,79,143,.32), transparent 42%), var(--night); }
  .sheet.on { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.16,1,.3,1); }
  /* כשהתחנה פתוחה, הדף שמאחור לא זז, כדי שהגלילה תישאר בתחנה */
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  .sheet .shd { flex: none; display: flex; align-items: center; padding: 12px 14px 4px; }
  .sheet .back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
  .sheet .back svg { width: 18px; height: 18px; }
  .sheet .stn::-webkit-scrollbar { width: 0; }
  .sheet .stn { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 120px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
