/* ═══════════════════════════════════════════════════════════════
   DROGA TRADERA — edu.css  ·  Redesign „OBSYDIAN & ZŁOTO" (premium)
   Display: Barlow Condensed · Body: Manrope · Dane/etykiety: JetBrains Mono
   Złoto jako sygnatura z umiarem; chłodna kość słoniowa jako tekst;
   precyzyjne hairline'y, miękka głębia, rang-crest jako element-sygnatura.
═══════════════════════════════════════════════════════════════ */
:root{
  --edu-bg:        #06080c;
  --edu-bg2:       #090c12;
  --edu-panel:     #0d1119;
  --edu-panel2:    #11161f;
  --edu-raise:     #141a25;
  --edu-line:      rgba(255,255,255,.08);
  --edu-line-soft: rgba(255,255,255,.05);
  --edu-line-gold: rgba(232,176,75,.22);
  --edu-gold:      #e8b04b;
  --edu-gold-2:    #ffd584;
  --edu-gold-deep: #b9831a;
  --edu-cyan:      #56d3e3;
  --edu-green:     #2bd4a0;
  --edu-red:       #ff5d73;
  --edu-purple:    #b889f5;
  --edu-txt:       #c4cedd;     /* chłodna kość słoniowa — tekst */
  --edu-txt-dim:   #8593a8;
  --edu-txt-mut:   #5c6677;
  --edu-bright:    #f1f5fb;
  --sans: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --cond: 'Barlow Condensed', system-ui, sans-serif;
  --edu-shadow:    0 26px 70px -28px rgba(0,0,0,.85);
  --edu-shadow-sm: 0 10px 30px -16px rgba(0,0,0,.75);
  --edu-ease:      cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; -webkit-tap-highlight-color:transparent; }
body{
  background:
    radial-gradient(1100px 640px at 78% -12%, rgba(232,176,75,.10), transparent 60%),
    radial-gradient(820px 560px at 6% 112%, rgba(86,211,227,.05), transparent 55%),
    linear-gradient(180deg, #070a11, var(--edu-bg) 42%);
  color:var(--edu-txt);
  font-family:var(--sans);
  font-size:14px; line-height:1.6;
  min-height:100vh;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
::selection{ background:rgba(232,176,75,.26); color:#fff; }
img,svg,canvas{ max-width:100%; }
button,input,select,textarea{ font-family:inherit; font-size:inherit; }
input,textarea{ -webkit-appearance:none; appearance:none; }
input[type=checkbox]{ -webkit-appearance:auto; appearance:auto; accent-color:var(--edu-gold); }

/* eyebrow/etykieta — mono */
.section-sub, .stage .etap, .field label, .login-box .tag, .lock-tag, .mp-stat-l,
.cert-card .info .no, .exam-chip, .pos-meta, .media-on, .media-off{ font-family:var(--mono); }

/* scrollbar */
*{ scrollbar-width:thin; scrollbar-color:rgba(232,176,75,.30) transparent; }
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,rgba(232,176,75,.42),rgba(185,131,26,.32)); border-radius:8px; border:2px solid transparent; background-clip:content-box; }
*::-webkit-scrollbar-thumb:hover{ background:rgba(232,176,75,.6); background-clip:content-box; }

/* ── Topbar ── */
.edu-top{
  display:flex; align-items:center; gap:14px;
  padding:13px 22px;
  background:linear-gradient(180deg, rgba(11,15,22,.86), rgba(7,9,14,.78));
  border-bottom:1px solid var(--edu-line);
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(16px) saturate(1.1); -webkit-backdrop-filter:blur(16px) saturate(1.1);
  box-shadow:0 1px 0 var(--edu-line-gold), 0 14px 40px -28px #000;
}
.edu-logo{ display:flex; align-items:center; gap:11px; text-decoration:none; }
.edu-logo img{ width:36px; height:36px; border-radius:9px; box-shadow:0 0 0 1px var(--edu-line-gold), 0 8px 20px -8px rgba(232,176,75,.4); }
.edu-logo .brand{ display:flex; flex-direction:column; line-height:1.05; }
.edu-logo .brand b{
  font-family:var(--cond); font-weight:700; font-size:20px;
  letter-spacing:.015em; color:var(--edu-bright); text-transform:uppercase;
}
.edu-logo .brand span{ font-family:var(--mono); font-size:8.5px; letter-spacing:.24em; color:var(--edu-gold); text-transform:uppercase; margin-top:2px; }
.edu-top .spacer{ flex:1; }

.edu-back{
  text-decoration:none; color:var(--edu-txt-dim);
  border:1px solid var(--edu-line); border-radius:10px;
  padding:8px 14px; font-size:12px; font-weight:700;
  transition:color .15s var(--edu-ease), border-color .15s, background .15s;
}
.edu-back:hover{ color:var(--edu-bright); border-color:var(--edu-txt-mut); background:rgba(255,255,255,.03); }

.edu-user{ display:flex; align-items:center; gap:11px; }
.edu-user .nick{ color:var(--edu-bright); font-weight:700; }

/* ── Odznaka rangi (sygnatura — crest) ── */
.rank-badge{
  display:inline-flex; align-items:center; gap:7px;
  padding:5px 13px; border-radius:999px;
  font-family:var(--cond); font-weight:700; font-size:13px; letter-spacing:.05em;
  text-transform:uppercase; border:1px solid currentColor;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  box-shadow:0 0 0 3px rgba(255,255,255,.02), inset 0 1px 0 rgba(255,255,255,.06);
}
.rank-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 9px currentColor; }
.rank-nowicjusz{ color:#9fb0c4; }
.rank-uczen{ color:var(--edu-green); }
.rank-trader{ color:var(--edu-cyan); }
.rank-zaawansowany{ color:var(--edu-gold-2); }
.rank-mentor{ color:var(--edu-purple); }

/* ── Przyciski ── */
.edu-btn{
  font-family:var(--sans); font-size:12.5px; font-weight:700;
  border-radius:10px; padding:8px 15px; cursor:pointer;
  border:1px solid var(--edu-line); background:rgba(255,255,255,.045); color:var(--edu-txt);
  transition:transform .12s var(--edu-ease), box-shadow .15s var(--edu-ease), filter .15s, background .15s, color .15s;
}
.edu-btn:hover{ color:var(--edu-bright); background:rgba(255,255,255,.08); transform:translateY(-1px); }
.edu-btn:active{ transform:translateY(0) scale(.98); }
.edu-btn:focus-visible{ outline:2px solid var(--edu-cyan); outline-offset:2px; }
.edu-btn.gold{
  background:linear-gradient(180deg,var(--edu-gold-2),var(--edu-gold) 48%,var(--edu-gold-deep));
  color:#1a1206; border-color:transparent; font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px -10px rgba(232,176,75,.55);
}
.edu-btn.gold:hover{ filter:brightness(1.05); box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 14px 30px -10px rgba(232,176,75,.7); }
.edu-btn.ghost{ background:transparent; }
.edu-btn.danger{ color:var(--edu-red); border-color:rgba(255,93,115,.35); }
.edu-btn.danger:hover{ background:rgba(255,93,115,.12); color:#ff8395; }
.edu-btn.small{ padding:5px 10px; font-size:11px; border-radius:8px; }
.edu-btn:disabled{ opacity:.4; cursor:not-allowed; transform:none; }

/* ── Zakładki ── */
.edu-tabs{ display:flex; gap:4px; padding:16px 22px 0; max-width:1200px; margin:0 auto;
  border-bottom:1px solid var(--edu-line); overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; flex-wrap:nowrap; }
.edu-tabs::-webkit-scrollbar{ display:none; }
.edu-tab{
  font-family:var(--cond); font-weight:600; font-size:16px; letter-spacing:.03em;
  text-transform:uppercase; color:var(--edu-txt-dim);
  padding:10px 17px; cursor:pointer; border:none; background:none;
  border-radius:10px 10px 0 0; position:relative; white-space:nowrap; flex:0 0 auto;
  transition:color .15s var(--edu-ease), background .15s;
}
.edu-tab:hover{ color:var(--edu-txt); }
.edu-tab.active{ color:var(--edu-gold-2); background:linear-gradient(180deg, rgba(232,176,75,.1), transparent); }
.edu-tab.active::after{
  content:""; position:absolute; left:16px; right:16px; bottom:-1px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, var(--edu-gold), transparent); box-shadow:0 0 10px var(--edu-gold);
}

.edu-wrap{ max-width:1200px; margin:0 auto; padding:26px 22px; }
.section-head{
  font-family:var(--cond); font-weight:700; font-size:clamp(24px,3vw,34px); letter-spacing:.01em;
  color:var(--edu-bright); text-transform:uppercase; margin:4px 0 4px;
}
.section-sub{ color:var(--edu-txt-dim); font-size:12px; letter-spacing:.02em; margin-bottom:22px; }

/* ── Ścieżka etapów (signature) ── */
.path{ display:flex; flex-direction:column; gap:16px; position:relative; }
.path::before{
  content:""; position:absolute; left:35px; top:34px; bottom:34px; width:2px;
  background:linear-gradient(180deg, var(--edu-gold), rgba(232,176,75,.08));
}
.stage{
  display:flex; gap:18px; align-items:stretch;
  background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2));
  border:1px solid var(--edu-line); border-radius:16px; padding:18px 20px;
  position:relative; z-index:1; overflow:hidden;
  box-shadow:var(--edu-shadow-sm);
  transition:transform .18s var(--edu-ease), box-shadow .18s var(--edu-ease), border-color .18s;
}
.stage::after{ content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.10),transparent); pointer-events:none; }
.stage:not(.locked):hover{ transform:translateY(-2px); box-shadow:var(--edu-shadow); border-color:var(--edu-line-gold); }
.stage.locked{ opacity:.6; border-color:var(--edu-line-soft); }
.stage .node{
  flex:0 0 auto; width:50px; height:50px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--cond); font-weight:700; font-size:19px;
  background:radial-gradient(circle at 50% 32%, rgba(232,176,75,.32), rgba(232,176,75,.05));
  border:1px solid var(--edu-line-gold); color:var(--edu-gold-2);
  box-shadow:0 0 18px rgba(232,176,75,.16), inset 0 1px 0 rgba(255,255,255,.12);
  transition:transform .18s var(--edu-ease), box-shadow .18s;
}
.stage:not(.locked):hover .node{ transform:scale(1.06); box-shadow:0 0 26px rgba(232,176,75,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.stage.locked .node{ background:rgba(255,255,255,.03); border-color:var(--edu-line-soft); color:var(--edu-txt-mut); box-shadow:none; }
.stage .body{ flex:1; min-width:0; }
.stage .etap{ font-size:9px; letter-spacing:.24em; color:var(--edu-gold); text-transform:uppercase; }
.stage .title{ font-family:var(--cond); font-weight:700; font-size:clamp(18px,2vw,22px); letter-spacing:.01em; color:var(--edu-bright); margin:2px 0 5px; }
.stage .desc{ font-size:13px; color:var(--edu-txt-dim); line-height:1.55; }
.stage .meta{ margin-top:10px; display:flex; gap:16px; flex-wrap:wrap; font-family:var(--mono); font-size:10.5px; color:var(--edu-txt-mut); }
.stage .meta b{ color:var(--edu-txt); font-weight:600; }
.stage .cta{ flex:0 0 auto; display:flex; flex-direction:column; gap:8px; justify-content:center; align-items:flex-end; }
.lock-tag{ font-size:9.5px; color:var(--edu-txt-mut); letter-spacing:.05em; text-transform:uppercase;
  background:rgba(255,255,255,.03); border:1px solid var(--edu-line-soft); border-radius:999px; padding:4px 11px; }

/* ── Grupowanie ścieżki po etapach ── */
.stage-group{ border:1px solid var(--edu-line); border-radius:18px; padding:14px 14px 6px; margin:16px 0;
  background:linear-gradient(180deg,rgba(232,176,75,.035),rgba(255,255,255,.008)); }
.stage-group.sg-done{ border-color:rgba(43,212,160,.3); }
.stage-group.sg-locked{ opacity:.7; }
.stage-group-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.sg-title{ font-family:var(--cond); font-weight:700; font-size:19px; letter-spacing:.02em; color:var(--edu-gold-2); }
.sg-count{ font-family:var(--mono); font-size:11px; font-weight:600; color:var(--edu-txt-dim); white-space:nowrap;
  border:1px solid var(--edu-line); border-radius:20px; padding:4px 11px; }
.sg-count.ok{ color:var(--edu-green); border-color:rgba(43,212,160,.4); }
.sg-note{ font-size:11.5px; color:var(--edu-txt-mut); margin:0 2px 10px; }
.stage.stage-ok .node{ background:rgba(43,212,160,.16); color:var(--edu-green); border-color:rgba(43,212,160,.5); box-shadow:0 0 18px rgba(43,212,160,.2); }

/* ── Karty / tabela ── */
.card{ background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2)); border:1px solid var(--edu-line); border-radius:16px; padding:18px 20px; position:relative; box-shadow:var(--edu-shadow-sm); }
.table-wrap{ overflow-x:auto; border:1px solid var(--edu-line); border-radius:16px; box-shadow:var(--edu-shadow-sm); }
table.edu{ width:100%; border-collapse:collapse; font-size:13px; }
table.edu th{
  text-align:left; padding:12px 14px; font-family:var(--mono); font-weight:600;
  font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--edu-gold);
  background:rgba(232,176,75,.04); border-bottom:1px solid var(--edu-line); white-space:nowrap;
}
table.edu td{ padding:11px 14px; border-bottom:1px solid var(--edu-line-soft); color:var(--edu-txt); vertical-align:middle; }
table.edu tr{ transition:background .12s; }
table.edu tr:hover td{ background:linear-gradient(90deg, rgba(232,176,75,.05), rgba(232,176,75,.015)); }
.row-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.status-dot{ display:inline-flex; align-items:center; gap:6px; }
.status-dot::before{ content:""; width:7px; height:7px; border-radius:50%; }
.st-active::before{ background:var(--edu-green); box-shadow:0 0 8px var(--edu-green); }
.st-blocked::before{ background:var(--edu-red); box-shadow:0 0 8px var(--edu-red); }
.tr-active{ color:var(--edu-green); }
.tr-inactive{ color:var(--edu-txt-mut); }

/* ── Certyfikaty ── */
.cert-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:16px; }
.cert-card{ background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2)); border:1px solid var(--edu-line); border-radius:16px; overflow:hidden; box-shadow:var(--edu-shadow-sm);
  transition:transform .18s var(--edu-ease), box-shadow .18s var(--edu-ease), border-color .18s; }
.cert-card:hover{ transform:translateY(-3px); box-shadow:var(--edu-shadow); border-color:var(--edu-line-gold); }
.cert-card .thumb{ aspect-ratio:1.41/1; background:#000; background-size:cover; background-position:center; border-bottom:1px solid var(--edu-line); }
.cert-card .info{ padding:14px 16px; }
.cert-card .info .t{ font-family:var(--cond); font-weight:700; font-size:17px; color:var(--edu-gold-2); letter-spacing:.01em; }
.cert-card .info .no{ font-size:10px; color:var(--edu-txt-mut); margin:3px 0 12px; }

/* ── Login ── */
.login-screen{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-box{
  width:100%; max-width:400px; background:linear-gradient(180deg,var(--edu-panel),var(--edu-bg2));
  border:1px solid var(--edu-line); border-radius:22px; padding:34px 30px; position:relative;
  box-shadow:var(--edu-shadow), 0 0 70px -12px rgba(232,176,75,.1);
}
.login-box::before{
  content:""; position:absolute; inset:-1px; border-radius:22px; padding:1px; pointer-events:none;
  background:linear-gradient(135deg, rgba(232,176,75,.55), transparent 38%, transparent 62%, rgba(86,211,227,.22));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.login-box .logo-row{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:24px; }
.login-box .logo-row img{ width:58px; height:58px; border-radius:14px; box-shadow:0 0 0 1px var(--edu-line-gold), 0 12px 32px -8px rgba(232,176,75,.45); }
.login-box h1{ font-family:var(--cond); font-weight:700; font-size:clamp(24px,3vw,30px); letter-spacing:.03em; color:var(--edu-bright); margin:0; text-transform:uppercase; }
.login-box .tag{ font-size:9px; letter-spacing:.26em; color:var(--edu-gold); text-transform:uppercase; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--edu-txt-dim); margin-bottom:6px; }
.field input{
  width:100%; padding:11px 13px; border-radius:11px; font-family:var(--sans); font-size:14px;
  background:rgba(255,255,255,.04); border:1px solid var(--edu-line); color:var(--edu-bright);
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus{ outline:none; border-color:var(--edu-gold); box-shadow:0 0 0 3px rgba(232,176,75,.15); }
.login-box .edu-btn{ width:100%; padding:12px; font-size:14px; margin-top:6px; }
.login-err{ color:var(--edu-red); font-size:12px; margin:10px 0 0; min-height:15px; text-align:center; }
.login-hint{ font-size:11px; color:var(--edu-txt-mut); text-align:center; margin-top:18px; line-height:1.6; }

/* ── Modal ── */
.modal-back{ position:fixed; inset:0; background:rgba(3,5,9,.78); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); display:none; align-items:center; justify-content:center; z-index:200; padding:20px; }
.modal-back.open{ display:flex; }
.modal{ width:100%; max-width:480px; max-height:88vh; overflow:auto; background:linear-gradient(180deg,var(--edu-panel),var(--edu-bg2)); border:1px solid var(--edu-line); border-radius:18px; box-shadow:var(--edu-shadow); }
.modal .m-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--edu-line); }
.modal .m-head h3{ margin:0; font-family:var(--cond); font-weight:700; font-size:20px; letter-spacing:.02em; color:var(--edu-gold-2); text-transform:uppercase; }
.modal .m-body{ padding:20px; }
.modal .m-foot{ padding:16px 20px; border-top:1px solid var(--edu-line-soft); display:flex; gap:8px; justify-content:flex-end; }
.m-close{ background:none; border:none; color:var(--edu-txt-dim); font-size:19px; cursor:pointer; line-height:1; }
.m-close:hover{ color:var(--edu-red); }
select.field-ctrl, input.field-ctrl, textarea.field-ctrl{
  width:100%; padding:10px 12px; border-radius:11px; font-family:var(--sans); font-size:13.5px;
  background:rgba(255,255,255,.04); border:1px solid var(--edu-line); color:var(--edu-bright);
  transition:border-color .15s, box-shadow .15s;
}
.field-ctrl:focus, input:focus, select:focus, textarea:focus, .ex-reason:focus{
  outline:none; border-color:var(--edu-gold) !important; box-shadow:0 0 0 3px rgba(232,176,75,.14);
}

/* powitanie */
.welcome-back{ position:fixed; inset:0; background:rgba(2,4,8,.86); backdrop-filter:blur(7px); display:none; align-items:center; justify-content:center; z-index:300; padding:24px; }
.welcome-back.open{ display:flex; flex-direction:column; gap:18px; }
.welcome-back img{ max-width:min(960px,94vw); max-height:78vh; border-radius:16px; border:1px solid var(--edu-line-gold); box-shadow:0 30px 90px rgba(0,0,0,.7); }

/* toast */
.toast-wrap{ position:fixed; top:18px; bottom:auto; right:18px; display:flex; flex-direction:column; gap:9px; z-index:2147483647 !important; pointer-events:none; }
.toast-wrap .toast{ pointer-events:auto; }
.toast{
  padding:12px 16px; border-radius:12px; font-size:13px; max-width:340px;
  background:linear-gradient(180deg,var(--edu-panel2),var(--edu-panel)); border:1px solid var(--edu-line); border-left:3px solid var(--edu-gold); color:var(--edu-bright);
  box-shadow:var(--edu-shadow-sm); animation:slidein .28s var(--edu-ease);
}
.toast.ok{ border-left-color:var(--edu-green); }
.toast.err{ border-left-color:var(--edu-red); }
@keyframes slidein{ from{ transform:translateX(30px); opacity:0; } to{ transform:none; opacity:1; } }

.empty{ text-align:center; padding:48px 20px; color:var(--edu-txt-mut); font-size:13px; }
.hidden{ display:none !important; }

/* ── Kroki szkolenia ── */
.steps{ display:flex; flex-direction:column; gap:13px; margin-top:10px; }
.step{ display:flex; gap:16px; align-items:center;
  background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2));
  border:1px solid var(--edu-line); border-radius:14px; padding:15px 17px; box-shadow:var(--edu-shadow-sm);
  transition:transform .16s var(--edu-ease), box-shadow .16s var(--edu-ease), border-color .16s; }
.step:not(.locked):hover{ transform:translateY(-2px); box-shadow:var(--edu-shadow); border-color:var(--edu-line-gold); }
.step.locked{ opacity:.6; border-color:var(--edu-line-soft); }
.step.done{ border-color:rgba(43,212,160,.32); }
.step-ico{ flex:0 0 auto; width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--cond); font-weight:700; font-size:18px; color:var(--edu-gold-2);
  background:radial-gradient(circle at 50% 32%, rgba(232,176,75,.28), rgba(232,176,75,.04)); border:1px solid var(--edu-line-gold); }
.step.done .step-ico{ color:var(--edu-green); border-color:rgba(43,212,160,.4); background:rgba(43,212,160,.08); box-shadow:0 0 16px rgba(43,212,160,.22); }
.step.active .step-ico{ box-shadow:0 0 16px rgba(232,176,75,.2); }
.step.locked .step-ico{ color:var(--edu-txt-mut); background:rgba(255,255,255,.03); border-color:var(--edu-line-soft); }
.step-body{ flex:1; min-width:0; }
.step-t{ font-family:var(--cond); font-weight:700; font-size:18px; color:var(--edu-bright); letter-spacing:.01em; }
.step-d{ font-size:12px; color:var(--edu-txt-dim); margin-top:3px; }
.step-cta{ flex:0 0 auto; }

/* ── Próby egzaminu ── */
.exam-attempts{ display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.exam-chip{ font-size:10px; padding:4px 10px; border-radius:999px; border:1px solid var(--edu-line);
  background:rgba(255,255,255,.03); color:var(--edu-txt-dim); transition:transform .12s var(--edu-ease), border-color .12s; }
.exam-chip:hover{ transform:translateY(-1px); border-color:var(--edu-line-gold); }
.exam-chip b{ color:var(--edu-txt); }
.ex-reason{ width:100%; }

/* ── Odtwarzacz filmu ── */
.vid-back{ position:fixed; inset:0; background:rgba(2,4,8,.9); backdrop-filter:blur(7px); z-index:340;
  display:none; align-items:center; justify-content:center; padding:20px; }
.vid-back.open{ display:flex; }
.vid-modal{ width:100%; max-width:920px; background:var(--edu-panel); border:1px solid var(--edu-line-gold); border-radius:18px; overflow:hidden; box-shadow:var(--edu-shadow); }
.vid-head{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--edu-line); color:var(--edu-gold-2); font-family:var(--cond); font-weight:700; font-size:18px; }
.vid-stage{ background:#000; aspect-ratio:16/9; position:relative; }
.vid-stage iframe, .vid-stage video{ width:100%; height:100%; border:0; display:block; background:#000; }

/* strażnik widoczności filmu lekcji */
.tp-stage{ position:relative; }
.tp-guard{ position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center;
  background:rgba(4,6,11,.93); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.tp-guard-box{ text-align:center; padding:26px; max-width:380px; }
.tp-guard-ico{ font-size:44px; line-height:1; }
.tp-guard-t{ font-family:var(--cond); font-weight:700; font-size:23px; color:var(--edu-gold-2); margin:10px 0 7px; letter-spacing:.02em; }
.tp-guard-d{ font-size:13px; color:var(--edu-txt-dim); line-height:1.55; margin-bottom:18px; }

/* ── Panel Media ── */
.media-list{ display:flex; flex-direction:column; gap:13px; }
.media-row{ background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2)); border:1px solid var(--edu-line); border-radius:14px; padding:14px 16px; box-shadow:var(--edu-shadow-sm);
  transition:transform .16s var(--edu-ease), box-shadow .16s var(--edu-ease), border-color .16s; }
.media-row:hover{ transform:translateY(-2px); box-shadow:var(--edu-shadow); border-color:var(--edu-line-gold); }
.media-t{ font-family:var(--cond); font-weight:700; font-size:16px; color:var(--edu-bright); margin-bottom:10px; }
.media-on{ font-size:10px; color:var(--edu-green); margin-left:6px; }
.media-off{ font-size:10px; color:var(--edu-txt-mut); margin-left:6px; }
.media-ctrls{ display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.media-ctrls .m-src{ flex:0 0 150px; }
.media-ctrls .m-url{ flex:1; min-width:200px; }

/* ── Weryfikacja pozycji (mentor) ── */
.pos-list{ display:flex; flex-direction:column; gap:11px; }
.pos-card{ display:flex; gap:14px; justify-content:space-between; align-items:center; flex-wrap:wrap;
  background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2)); border:1px solid var(--edu-line); border-radius:14px; padding:14px 16px; box-shadow:var(--edu-shadow-sm);
  transition:transform .16s var(--edu-ease), box-shadow .16s var(--edu-ease), border-color .16s; }
.pos-card:hover{ transform:translateY(-2px); box-shadow:var(--edu-shadow); border-color:var(--edu-line-gold); }
.pos-main{ flex:1; min-width:220px; }
.pos-meta{ font-size:10px; color:var(--edu-txt-dim); margin-top:4px; }
.pos-comment{ font-size:12px; color:var(--edu-txt); margin-top:6px; }
.pos-actions{ display:flex; flex-direction:column; gap:7px; min-width:200px; }
.pos-actions .pos-cmt{ font-size:12px; }

/* ── Dashboard mentora ── */
.mp-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:14px; margin-bottom:20px; }
.mp-stat{ background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2)); border:1px solid var(--edu-line); border-radius:16px; padding:18px 16px; text-align:center; box-shadow:var(--edu-shadow-sm);
  transition:transform .16s var(--edu-ease), box-shadow .16s var(--edu-ease), border-color .16s; }
.mp-stat:hover{ transform:translateY(-2px); box-shadow:var(--edu-shadow); border-color:var(--edu-line-gold); }
.mp-stat-v{ font-family:var(--cond); font-weight:700; font-size:32px; line-height:1; color:var(--edu-gold-2); }
.mp-stat-l{ font-size:9.5px; letter-spacing:.1em; color:var(--edu-txt-dim); margin-top:7px; text-transform:uppercase; }

/* pomocnicze */
.org{ color:var(--edu-txt-dim); font-size:11px; }
.w3{ width:33%; }
.info{ min-width:0; }
.desc{ color:var(--edu-txt-dim); }

/* delikatne wejście treści */
@keyframes eduFadeIn{ from{ opacity:0; transform:translateY(7px); } to{ opacity:1; transform:none; } }
#edu-content > *{ animation:eduFadeIn .3s var(--edu-ease); }

/* ── Listy rozwijane: ciemny popup + własna strzałka ── */
select, .field-ctrl{ color-scheme: dark; }
select option, .field-ctrl option{ background:#0d1119 !important; color:var(--edu-bright) !important; }
select option:checked, .field-ctrl option:checked{ background:#1a2230 !important; }
select optgroup{ background:#0d1119; color:var(--edu-txt-dim); }
select.field-ctrl, select{ -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 7.5L9 4.5' stroke='%23e8b04b' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat; background-position:right 11px center; padding-right:32px; }

/* fallback gradientu/aspect-ratio + dostępność */
@supports not (aspect-ratio: 1 / 1){
  .cert-card .thumb{ height:0; padding-bottom:71%; }
  .vid-stage{ height:0; padding-bottom:56.25%; }
  .vid-stage iframe, .vid-stage video{ position:absolute; inset:0; }
}

/* ── RWD ── */
@media (max-width: 900px){
  .edu-wrap{ padding:18px 14px; }
  .edu-top{ padding:11px 14px; gap:10px; }
  .edu-tabs{ padding:12px 14px 0; }
}
@media (max-width: 720px){
  .stage{ flex-direction:column; gap:13px; }
  .stage .cta{ flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:flex-start; }
  .path::before{ left:25px; }
  .stage .node{ width:42px; height:42px; font-size:16px; }
  .pos-card{ flex-direction:column; align-items:stretch; }
  .pos-actions{ min-width:0; }
  .media-ctrls{ flex-direction:column; align-items:stretch; }
  .media-ctrls .m-src, .media-ctrls .m-url{ flex:1 1 auto; min-width:0; }
  .cert-grid{ grid-template-columns:1fr; }
  .edu-user .nick{ display:none; }
  .step{ flex-wrap:wrap; }
}
@media (max-width: 480px){
  body{ font-size:13px; }
  .edu-logo .brand b{ font-size:16px; }
  .edu-btn{ padding:7px 12px; }
  .login-box{ padding:24px 18px; }
}
@media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition:none !important; } }

/* ETAP 3B — status awansu w Drodze Tradera */
.promo-status{margin:14px 0 18px;border:1px solid var(--edu-line);border-radius:17px;background:linear-gradient(180deg,rgba(13,19,30,.95),rgba(8,12,19,.9));box-shadow:var(--edu-shadow-sm);padding:14px;position:relative;overflow:hidden}.promo-status::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(232,176,75,.36),transparent)}.promo-status.ready{border-color:rgba(0,200,150,.34)}.promo-status.mentor{border-color:rgba(86,211,227,.34)}.promo-status.warn{border-color:rgba(240,60,85,.34)}.promo-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.promo-head small{display:block;color:var(--edu-txt-mut);font-family:var(--mono);font-size:10px;text-transform:uppercase;letter-spacing:.1em}.promo-head strong{display:block;color:var(--edu-bright);font-size:15px;margin-top:3px}.promo-head>b{color:var(--edu-gold-2);font-family:var(--mono);font-size:22px}.promo-bar{height:9px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid var(--edu-line-soft);overflow:hidden;margin:11px 0}.promo-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--edu-gold),var(--edu-gold-2))}.promo-status.ready .promo-bar i{background:linear-gradient(90deg,#00c896,#65f2c7)}.promo-status.mentor .promo-bar i{background:linear-gradient(90deg,#56d3e3,#9af1ff)}.promo-reqs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.promo-req{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center;border:1px solid var(--edu-line-soft);border-radius:11px;background:rgba(255,255,255,.025);padding:8px 10px;color:var(--edu-txt-dim);font-size:11px}.promo-req.ok span{color:#00c896}.promo-req.ok b{color:var(--edu-bright)}.promo-req em{font-style:normal;color:var(--edu-txt-mut);font-family:var(--mono);font-size:10px}.promo-blockers{margin-top:10px;border:1px solid rgba(240,60,85,.24);background:rgba(240,60,85,.045);border-radius:11px;padding:9px 11px;color:#ff9baa;font-size:11px;line-height:1.5}.promo-note{margin-top:10px;border:1px solid rgba(86,211,227,.24);background:rgba(86,211,227,.05);border-radius:11px;padding:9px 11px;color:#56d3e3;font-size:11px;font-weight:800;line-height:1.45}@media(max-width:820px){.promo-reqs{grid-template-columns:1fr}.promo-head{align-items:flex-start}.promo-head>b{font-size:18px}}

/* ETAP 3C — certyfikaty / egzaminy / status wydania */
.cert-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.cert-summary>div{background:linear-gradient(180deg,var(--edu-panel),var(--edu-panel2));border:1px solid var(--edu-line);border-radius:14px;padding:13px 14px;text-align:center;box-shadow:var(--edu-shadow-sm)}
.cert-summary small{display:block;color:var(--edu-txt-dim);font-size:9.5px;text-transform:uppercase;letter-spacing:.1em}.cert-summary b{display:block;color:var(--edu-gold-2);font-family:var(--cond);font-size:28px;line-height:1.1;margin-top:4px}
.cert-grid-status .cert-card{position:relative}.cert-grid-status .cert-card.ok{border-color:rgba(0,200,150,.28)}.cert-grid-status .cert-card.warn{border-color:rgba(232,176,75,.32)}.cert-grid-status .cert-card.locked{opacity:.72}.cert-grid-status .cert-card.locked .thumb{filter:grayscale(.8);opacity:.6}
.cert-card .thumb{display:grid;place-items:center}.cert-card .thumb span{font-size:42px;filter:drop-shadow(0 8px 18px rgba(0,0,0,.55))}.cert-status-line{font-size:11px;color:var(--edu-txt);margin:-5px 0 11px;line-height:1.4}.cert-card.ok .cert-status-line{color:#00c896}.cert-card.warn .cert-status-line{color:var(--edu-gold-2)}.cert-card.locked .cert-status-line{color:var(--edu-txt-mut)}
@media(max-width:720px){.cert-summary{grid-template-columns:1fr}}

/* v19 SIGMA — header konta: ranga + EXP */
.hdr-exp{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(232,168,32,.22);background:rgba(255,255,255,.035);border-radius:999px;padding:4px 8px;font-size:10px;color:#cbd6e4;white-space:nowrap}
.hdr-exp-label{color:#ffd584;font-weight:700}.hdr-exp-next{color:#7d8da3}
.hdr-exp-bar{position:relative;width:76px;height:6px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.hdr-exp-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,rgba(232,168,32,.9),rgba(61,204,240,.75))}
@media (max-width:900px){.hdr-exp{width:100%;justify-content:center}.hdr-exp-bar{width:120px}}


/* PATCH 2026-07-01B — gęstszy, bardziej premium układ Drogi Tradera */
.edu-wrap{padding-top:20px}.edu-tabs{background:linear-gradient(180deg,rgba(255,255,255,.018),transparent);border-bottom-color:rgba(232,176,75,.12)}
.edu-top{box-shadow:0 1px 0 rgba(232,176,75,.18),0 20px 70px -45px #000}.edu-back,.edu-user .edu-btn{box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.login-box{border-color:rgba(232,176,75,.22)!important;box-shadow:0 30px 90px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06)}

/* ═══ ETAP 29 — Lekcja „w budowie”: kafelek na ścieżce + ekran zaślepki ═══ */
.stage.stage-wip{ border-style:dashed; border-color:var(--edu-line-gold);
  background:repeating-linear-gradient(-45deg, rgba(232,176,75,.05) 0 14px, transparent 14px 28px), var(--edu-panel); }
.stage.stage-wip:hover{ transform:translateY(-2px); box-shadow:var(--edu-shadow); border-color:rgba(232,176,75,.4); }
.stage.stage-wip .node{ background:rgba(232,176,75,.10); border-color:var(--edu-line-gold); color:var(--edu-gold-2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
.wip-pill{ display:inline-block; margin-left:8px; font-family:var(--mono); font-size:9.5px; letter-spacing:.06em;
  text-transform:uppercase; color:#0a0d13; background:linear-gradient(135deg,var(--edu-gold-2),var(--edu-gold));
  padding:2px 8px; border-radius:999px; vertical-align:middle; box-shadow:0 4px 14px -6px rgba(232,176,75,.6); }
.wip-splash{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px;
  padding:34px 22px 40px; margin-top:14px; border:1px solid var(--edu-line-gold); border-radius:20px;
  background:radial-gradient(120% 90% at 50% 0%, rgba(232,176,75,.06), transparent 60%), var(--edu-panel);
  box-shadow:var(--edu-shadow-sm); }
.wip-art{ width:min(280px,72%); height:auto; filter:drop-shadow(0 18px 34px rgba(0,0,0,.55)); }
.wip-splash-title{ font-family:var(--cond); font-weight:800; font-size:clamp(20px,2.4vw,26px);
  letter-spacing:.01em; color:var(--edu-bright); }
.wip-splash-sub{ font-size:13.5px; line-height:1.7; color:var(--edu-txt-dim); max-width:440px; }
.wip-splash-sub b{ color:var(--edu-gold-2); font-weight:700; }

/* ═══ ETAP 29 — pasek przełączników wskaźników na wykresie edukatora ═══ */
.edu-ind-bar{ position:absolute; top:8px; left:8px; z-index:6; display:flex; align-items:center; gap:5px;
  padding:4px 6px; border-radius:9px; background:rgba(10,13,19,.82); border:1px solid rgba(232,176,75,.22);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); font-family:var(--mono); }
.edu-ind-lbl{ font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--edu-txt-mut); margin-right:2px; }
.edu-ind-btn{ font:inherit; font-size:10px; letter-spacing:.03em; color:var(--edu-txt-dim); cursor:pointer;
  padding:3px 8px; border-radius:6px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03);
  transition:border-color .12s ease, background .12s ease, color .12s ease; }
.edu-ind-btn:hover{ color:var(--edu-bright); border-color:rgba(232,176,75,.4); }
.edu-ind-btn.on{ color:#0a0d13; background:linear-gradient(135deg,var(--edu-gold-2),var(--edu-gold)); border-color:transparent; font-weight:700; }

/* ═══════════════════════════════════════════════════════════════
   SIGMAGUIDE V0.4.2 — czytelny model rola / poziom / uprawnienia
   ═══════════════════════════════════════════════════════════════ */
.perm-help{
  display:inline-grid;place-items:center;width:17px;height:17px;margin-left:5px;
  border:1px solid rgba(232,176,75,.38);border-radius:50%;color:var(--edu-gold-2);
  background:rgba(232,176,75,.08);font:800 10px/1 var(--mono);vertical-align:middle;
  cursor:help;outline:none;transition:.15s ease;
}
.perm-help:hover,.perm-help:focus{background:rgba(232,176,75,.2);border-color:var(--edu-gold-2);box-shadow:0 0 0 3px rgba(232,176,75,.08)}
.perm-info-box{
  display:grid;gap:5px;margin:0 0 14px;padding:12px 14px;border:1px solid rgba(86,211,227,.22);
  border-radius:13px;background:linear-gradient(135deg,rgba(86,211,227,.07),rgba(255,255,255,.018));
  color:var(--edu-txt-dim);font-size:11.5px;line-height:1.55;
}
.perm-info-box b{color:var(--edu-bright);font-size:12.5px}.perm-info-box strong{color:var(--edu-gold-2)}
.perm-role-summary{
  min-height:42px;margin-top:2px;padding:10px 12px;border:1px solid var(--edu-line-soft);border-radius:11px;
  background:rgba(255,255,255,.025);color:var(--edu-txt-dim);font-size:11px;line-height:1.5;
}
.perm-legend{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 11px}
.perm-legend span{border:1px solid var(--edu-line-soft);border-radius:999px;background:rgba(255,255,255,.025);padding:5px 8px;color:var(--edu-txt-dim);font-size:9.5px;font-weight:700}
.modal.perm-modal,.edu-modal.perm-modal{width:min(1160px,calc(100vw - 28px));max-width:1160px}
.perm-table-wrap{max-height:min(68vh,720px);overflow:auto;border:1px solid var(--edu-line);border-radius:13px;background:#090d14;overscroll-behavior:contain}
.perm-table{width:100%;min-width:790px;border-collapse:separate;border-spacing:0;margin:0}
.perm-table th,.perm-table td{border-right:1px solid var(--edu-line-soft);border-bottom:1px solid var(--edu-line-soft);padding:9px 10px;text-align:center;vertical-align:middle}
.perm-table thead th{position:sticky;top:0;z-index:5;background:#101620;color:var(--edu-gold-2);font:800 11px/1.3 var(--cond);letter-spacing:.03em}
.perm-table .perm-sticky-col{position:sticky;left:0;z-index:4;min-width:305px;text-align:left;background:#0d121b}
.perm-table thead .perm-sticky-col{z-index:7;background:#111823}
.perm-table .perm-group-row th{position:sticky;top:37px;z-index:3;text-align:left;background:linear-gradient(90deg,#151c27,#101620);color:var(--edu-bright);font:800 11px/1.2 var(--cond);letter-spacing:.06em;text-transform:uppercase}
.perm-name{display:grid;gap:2px}.perm-name>div{color:var(--edu-bright);font-size:11.5px}.perm-name code{color:#7f91a8;font:9px/1.25 var(--mono);word-break:break-all}.perm-name small{color:var(--edu-txt-mut);font-size:9.5px;line-height:1.35}
.perm-switch{display:inline-flex;position:relative;align-items:center;justify-content:center;width:38px;height:22px;cursor:pointer}
.perm-switch input{position:absolute;opacity:0;pointer-events:none}.perm-switch span{width:36px;height:20px;border:1px solid rgba(255,255,255,.13);border-radius:999px;background:#161c26;box-shadow:inset 0 1px 4px rgba(0,0,0,.45);transition:.16s ease}
.perm-switch span::after{content:"";display:block;width:14px;height:14px;margin:2px;border-radius:50%;background:#657186;transition:.16s ease}
.perm-switch input:checked+span{border-color:rgba(232,176,75,.58);background:rgba(232,176,75,.19)}
.perm-switch input:checked+span::after{transform:translateX(16px);background:linear-gradient(135deg,var(--edu-gold-2),var(--edu-gold));box-shadow:0 0 12px rgba(232,176,75,.35)}
.perm-switch input:disabled+span{opacity:.33;cursor:not-allowed}
.perm-override-list{display:grid;gap:14px;max-height:min(65vh,690px);overflow:auto;padding-right:4px}
.perm-override-group{border:1px solid var(--edu-line);border-radius:13px;background:rgba(255,255,255,.018);overflow:hidden}
.perm-override-group h4{margin:0;padding:9px 12px;background:rgba(255,255,255,.035);border-bottom:1px solid var(--edu-line-soft);color:var(--edu-gold-2);font:800 12px/1.2 var(--cond);text-transform:uppercase;letter-spacing:.05em}
.perm-override-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,240px);gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--edu-line-soft)}
.perm-override-row:last-child{border-bottom:0}.perm-override-row .perm-name small{max-width:660px}
.perm-mode{width:100%;min-width:0;margin:0}
@media(max-width:760px){
  .modal.perm-modal,.edu-modal.perm-modal{width:calc(100vw - 12px);max-height:94vh}
  .perm-table-wrap{max-height:64vh}.perm-table{min-width:730px}.perm-table .perm-sticky-col{min-width:245px}
  .perm-name small{display:none}.perm-override-row{grid-template-columns:1fr}.perm-mode{max-width:none}
}
