:root{
  --bg0:#070615;
  --bg1:#0B0A22;
  --bg2:#121038;

  --glassA: rgba(255,255,255,.075);
  --glassB: rgba(255,255,255,.030);
  --stroke: rgba(255,255,255,.11);

  --text: rgba(255,255,255,.93);
  --muted: rgba(255,255,255,.66);

  --a1:#42E8FF; /* cyan */
  --a2:#B16CFF; /* purple */
  --danger:#FF5C74;
  --ok:#3FF29B;

  --r:18px;
  --shadow: 0 22px 70px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  position: relative;
  background:
    radial-gradient(1100px 720px at 18% 18%, rgba(66,232,255,.14), transparent 64%),
    radial-gradient(1100px 720px at 84% 22%, rgba(177,108,255,.11), transparent 68%),
    radial-gradient(1000px 760px at 52% 92%, rgba(66,232,255,.07), transparent 72%),
    linear-gradient(135deg, var(--bg0), var(--bg1) 55%, var(--bg2));
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% 28%, rgba(120, 90, 255, .08), transparent 60%),
    radial-gradient(1100px 650px at 20% 18%, rgba(60, 225, 255, .10), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.44));
}

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 44px rgba(0,0,0,.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r);
}

#stars{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: .9;
}

.muted{ color: rgba(255,255,255,.70); }
.tiny{font-size:12px}
h1{
  margin:12px 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height:1.05;
  letter-spacing:-0.03em;
  font-weight: 950;
}
h2{
  margin:0;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing:-0.02em;
  font-weight: 900;
}

.grad{
  background: linear-gradient(90deg, rgba(66,232,255,.98), rgba(177,108,255,.96));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.top{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  background: rgba(6,20,24,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  font-weight:900; letter-spacing:.5px;
  background: linear-gradient(135deg, rgba(66,232,255,.22), rgba(177,108,255,.18));
  border:1px solid rgba(255,255,255,.12);
}
.brandTitle{font-weight:900}
.brandSub{font-size:12px;color:var(--muted);margin-top:2px}
.actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap}

.pill{
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.06), transparent 60%),
    rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}
.pill:hover{
  border-color: rgba(255,255,255,.22);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    rgba(255,255,255,.06);
}
.pill.danger{
  border-color: rgba(255,92,116,.40);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,92,116,.16), transparent 60%),
    rgba(255,92,116,.08);
}
.dot{
  width:10px;height:10px;border-radius:99px;
  background: rgba(66,232,255,.95);
  box-shadow: 0 0 0 6px rgba(66,232,255,.10);
}

.wrap{
  width:min(1120px, calc(100% - 36px));
  margin: 22px auto 60px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:16px;
  align-items:start;
}

.micro{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border-color: rgba(255,255,255,.14);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-size:13px;
}
.microDot{
  width:8px;height:8px;border-radius:99px;
  background: rgba(66,232,255,.95);
  box-shadow: 0 0 0 6px rgba(66,232,255,.10);
}
.lead{font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.70); max-width: 62ch}

.ctaRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.btn{
  border:1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:11px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.btn:hover{border-color: rgba(255,255,255,.22)}
.btn.primary{
  border-color: rgba(66,232,255,.35);
  background:
    radial-gradient(120% 140% at 20% 20%, rgba(66,232,255,.18), transparent 58%),
    radial-gradient(120% 140% at 85% 10%, rgba(177,108,255,.14), transparent 62%),
    rgba(255,255,255,.05);
  box-shadow:
    0 16px 40px rgba(0,0,0,.30),
    0 0 0 1px rgba(66,232,255,.10),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.btn.primary:hover{
  border-color: rgba(66,232,255,.48);
  transform: translateY(-1px);
}
.btn.ghost{background:transparent}
.btn.small{padding:8px 10px; border-radius:12px; font-weight:800; font-size:12px}
.btn.full{width:100%}

.miniStats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:18px;
}
.miniStat{padding:12px; text-align:center}
.miniStat .big{font-weight:950; font-size:22px}
.miniStat .small{font-size:12px; color:var(--muted); margin-top:2px}

.heroRight{padding:14px}
.cardHead{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.cardTitle{font-weight:950}
.ringWrap{width:64px; height:64px; position:relative; display:grid; place-items:center}
.ring{width:64px; height:64px}
.ringBg{fill:none; stroke: rgba(255,255,255,.12); stroke-width:3.6}
.ringFg{fill:none; stroke: rgba(66,232,255,.95); stroke-width:3.6; stroke-linecap:round}
.ringLabel{position:absolute; font-weight:950; font-size:12px; color: rgba(255,255,255,.86)}

.resumeList{display:flex; flex-direction:column; gap:10px; margin:12px 0}
.step{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:flex; align-items:flex-start; gap:10px;
}
.box{
  width:18px; height:18px; border-radius:6px;
  border:1px solid rgba(255,255,255,.18);
  margin-top:2px; flex:0 0 auto;
}
.step.done .box{
  background: rgba(63,242,155,.18);
  border-color: rgba(63,242,155,.35);
}
.step .t{font-weight:900; font-size:13px}
.step .s{font-size:12px; color:var(--muted); margin-top:2px}

.divider{height:1px; background: rgba(255,255,255,.10); margin:14px 0}
.quickRow{display:flex; align-items:center; justify-content:space-between; gap:10px}
.quickTitle{font-weight:900; font-size:13px; margin-top:2px}

.section{ margin-top: 22px; }
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 16px;
  flex-wrap:wrap;
}
.filters{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.input{
  display:flex; align-items:center; gap:8px;
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.07), transparent 60%),
    rgba(255,255,255,.04);
  border-radius: 14px;
  padding:10px 12px;
}
.input input{
  border:none; outline:none; background:transparent; color:var(--text);
  min-width: 220px;
}
select{
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.07), transparent 60%),
    rgba(255,255,255,.04);
  color:var(--text);
  border-radius: 14px;
  padding:10px 12px;
  outline:none;
}

.courseGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.course{
  padding:14px;
  border-radius: 18px;
}
.course, .heroRight, .bottom{
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course:hover, .heroRight:hover, .bottom:hover{
  transform: translateY(-1px);
  border-color: rgba(66,232,255,.18);
  box-shadow:
    0 18px 52px rgba(0,0,0,.45),
    0 0 0 1px rgba(66,232,255,.08),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.courseTop{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.courseTitle{font-weight:950}
.courseDesc{font-size:12px; color:var(--muted); margin-top:4px; line-height:1.5}
.tag{
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  font-size:12px;
  white-space:nowrap;
}
.tag.core,
.tag.flagship{
  border-color: rgba(66,232,255,.42);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(66,232,255,.22), transparent 60%),
    rgba(66,232,255,.10);
}
.tag.marketing{
  border-color: rgba(177,108,255,.42);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(177,108,255,.20), transparent 60%),
    rgba(177,108,255,.10);
}
.tag.biz{
  border-color: rgba(255,255,255,.18);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.14), transparent 60%),
    rgba(255,255,255,.06);
}
.tag.basics{
  border-color: rgba(255,255,255,.16);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,.12), transparent 60%),
    rgba(255,255,255,.05);
}

.bar{
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  overflow:hidden;
  margin-top:12px;
}
.bar > div{
  height:100%;
  width:0%;
  background:
    linear-gradient(90deg,
      rgba(66,232,255,.95),
      rgba(177,108,255,.85)
    );
  box-shadow: none;
}
.courseFoot{display:flex; justify-content:space-between; align-items:center; margin-top:12px; gap:10px}
.pct{font-weight:900}
.courseBtns{display:flex; gap:10px; flex-wrap:wrap}

.bottom{
  margin-top:16px;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.bottomTitle{font-weight:950}
.bottomRight{display:flex; flex-direction:column; gap:8px; align-items:flex-start}
.status{font-weight:950; color: rgba(255,255,255,.92)}

.modal{
  position:fixed; inset:0;
  display:none; place-items:center;
  background: rgba(0,0,0,.45);
  padding:18px;
  z-index:80;
}
.modalCard{width:min(860px, 100%); padding:14px; border-radius:22px}
.modalHead{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.modalTitle{font-weight:950; font-size:18px}
.modalBody{margin-top:12px}
.modalFoot{margin-top:14px; display:flex; justify-content:flex-end}

@media (max-width: 1020px){
  .hero{grid-template-columns: 1fr}
  .courseGrid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 680px){
  .wrap{width: min(1120px, calc(100% - 24px)); margin-top: 14px}
  .input input{min-width: 160px}
  .courseGrid{grid-template-columns: 1fr}
  .miniStats{grid-template-columns: 1fr; gap:10px}
}

.resumeMeta{ margin-top:10px; }
.resumeNext{ font-weight:900; margin-top:2px; }

.goalRow{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.goalTitle{ font-weight:900; margin-top:2px; }

.courseNext{ margin-top:6px; }

/* ===== Hide native scrollbar (still scrollable) ===== */
html, body{
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* ===== Top scroll progress bar ===== */
#scrollProg{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .2s ease;
}
#scrollProg.show{ opacity: 1; }

#scrollProgFill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(66,232,255,.95), rgba(177,108,255,.85));
  box-shadow: 0 0 14px rgba(66,232,255,.12);
  transform-origin: left center;
  transition: width .08s linear;
}

@media (pointer: coarse){
  html, body{ scrollbar-width: auto; }
  html::-webkit-scrollbar, body::-webkit-scrollbar{ width: initial; height: initial; }
}

/* smooth */
#scrollProgFill{ transition: width .08s linear, filter .18s ease; }

/* “near end” stanje */
#scrollProgFill.nearEnd{
  filter: saturate(1.15) brightness(1.08);
  background: linear-gradient(90deg, rgba(66,232,255,.98), rgba(66,232,255,.70));
}

.paywall{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  padding: 18px;
}
.paywallCard{
  width: min(560px, 100%);
  padding: 16px;
  border-radius: 22px;
}
.paywallTitle{
  font-weight: 950;
  font-size: 20px;
}
.paywallBtns{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Video embed container */
.videoWrap{
  margin: 16px 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
}
.videoWrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.videoWrap .wm{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.videoWrap .wm span{
  position: absolute;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  transform: translate(-50%,-50%);
}
.paywall #paywallMsg.loading::after{
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.85);
  animation: paywallSpin .8s linear infinite;
  vertical-align: -2px;
}
@keyframes paywallSpin{
  to { transform: rotate(360deg); }
}

.videoWrap{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  min-height: 160px;
}
.videoWrap iframe{
  width:100%;
  aspect-ratio:16/9;
  border:0;
  display:block;
}

/* Moving watermark overlay */
.wm{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.22;
  mix-blend-mode:screen;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.wm span{
  position:absolute;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(6px);
  transform: translate(-50%,-50%);
}

.ytEndOverlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ytEndOverlay.show{ display:flex; }

.ytEndCard{
  width:min(520px, 100%);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(10,12,18,.55);
  padding:14px;
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
}

.ytEndTitle{ font-weight:950; font-size:16px; margin-bottom:6px; }
.ytEndSub{ color: rgba(255,255,255,.70); font-size:13px; line-height:1.5; }
.ytEndBtns{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

/* ===== Lesson view in modal ===== */
.lessonLayout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:14px;
}

.lessonSide{ padding:12px; border-radius:18px; }
.lessonSideHead{ display:flex; justify-content:space-between; align-items:flex-end; margin:12px 0 10px; }
.lessonList{ display:flex; flex-direction:column; gap:10px; max-height: 520px; overflow:auto; padding-right:6px; }

.lessonItem{
  text-align:left;
  width:100%;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.lessonItem:hover{ border-color: rgba(66,232,255,.20); }
.lessonItem.active{
  border-color: rgba(66,232,255,.35);
  box-shadow: 0 0 0 1px rgba(66,232,255,.10), inset 0 1px 0 rgba(255,255,255,.08);
}
.lessonItem.done{
  border-color: rgba(63,242,155,.24);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(63,242,155,.10), transparent 60%),
    rgba(255,255,255,.04);
}
.lessonItem.done:hover{
  border-color: rgba(63,242,155,.36);
}

/* Auth overlay (custom login/register) */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.auth-box {
  width: 90%;
  max-width: 400px;
  padding: 40px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.15);
}

.auth-input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.auth-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.auth-overlay button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.lessonItemTop{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.lessonItemTitle{ font-weight:900; font-size:13px; line-height:1.3; }
.lessonItemMin{ white-space:nowrap; }

.lessonMain{ display:flex; flex-direction:column; gap:14px; }

.lessonTopbar{
  padding:12px;
  border-radius:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.lessonNow{ font-weight:950; font-size:16px; margin-top:2px; }
.lessonTopMeta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.miniProg{
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  overflow:hidden;
}
.miniProg > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(66,232,255,.95), rgba(177,108,255,.85));
}
.miniCount{
  font-weight:900;
  font-size:12px;
  color: rgba(255,255,255,.78);
}
.lessonTopBtns{ display:flex; gap:10px; flex-wrap:wrap; }

.lessonPlayer{
  border-radius:18px;
  overflow:hidden;
  min-height: 220px;
}

.lessonNotes{
  padding:12px;
  border-radius:18px;
}
.lessonNotesHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.noteArea{
  width:100%;
  min-height: 140px;
  resize: vertical;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  padding:10px 12px;
  outline:none;
}

@media (max-width: 980px){
  .lessonLayout{ grid-template-columns: 1fr; }
  .lessonList{ max-height: 260px; }
}

.paywall[hidden],
#paywall[hidden],
.paywall[aria-hidden="true"],
#paywall[aria-hidden="true"]{
  display:none !important;
}

.paywall{ display:none; }
.paywall:not([hidden]){ display:grid; }
.paywall[hidden]{ display:none !important; }

/* Uklanja linije razdvajanja sa glavnih sekcija */
header,
section,
.hero,
.dashboard-head,
.top-container {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Ako je linija zapravo <hr> element */
hr {
  display: none !important;
  border: none !important;
}

/* Čini gornji kontejner providnim da se stopi sa zvezdama */
.container,
header {
  background-color: transparent !important;
}

/* 1. Uklanja pozadinsku boju sa glavnih sekcija da bi se videle zvezde */
section,
header,
.dashboard-head,
.hero,
.stats-container {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 2. Ako koristiš "glass" efekat gore, možda on pravi razliku */
.glass {
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}

/* 3. Rešenje za "gradient" prekid */
body {
  background-attachment: fixed;
  background-size: cover;
}

/* 1. Zumira sam YouTube iframe unutar Plyr-a */
.plyr__video-embed iframe {
  transform: scale(1.23);
  transform-origin: center;
}

/* 2. Osigurava da ono što "izleti" sa strane bude nevidljivo */
.plyr {
  overflow: hidden !important;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 3. Sakriva crni okvir ako se pojavi zbog zumiranja */
.plyr__video-wrapper {
  background: #000;
}

/* --- PREMIUM PLYR TEMA (MINIMAL WHITE) --- */

:root {
  /* 1. GLAVNA BOJA: Minimalistička bela */
  --plyr-color-main: #ffffff;

  /* Ikone ostaju bele */
  --plyr-video-control-color: #ffffff;

  /* Meni pozadina (tamno, neutralno) */
  --plyr-menu-background: rgba(8, 10, 14, 0.95);
  --plyr-menu-color: #ffffff;
}

/* 2. OKVIR PLEJERA */
.plyr {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 3. VELIKO "PLAY" DUGME (MINIMALNO) */
.plyr__control--overlaid {
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  border: none;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1);
}

.plyr__control--overlaid:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.5);
}

/* 4. DONJA TRAKA */
.plyr--video .plyr__controls {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
  padding-bottom: 20px;
  padding-top: 40px;
}

/* 5. MENI (PODESAVANJA) */
.plyr__menu__container {
  background: rgba(8, 10, 14, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 6. TRAKA NAPRETKA */
.plyr--full-ui input[type=range] {
  color: var(--plyr-color-main);
  box-shadow: none;
}

/* --- Account modal (ID card) --- */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(10px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: accountFade .25s ease;
}

.modal-content{
  width: 90%;
  max-width: 400px;
  padding: 22px;
  border-radius: var(--r);
  position: relative;
  color: var(--text);
  background: linear-gradient(180deg, var(--glassA), var(--glassB));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(66,232,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: accountPop .28s ease;
}

.modal-overlay.closing{
  animation: accountFadeOut .18s ease forwards;
}
.modal-overlay.closing .modal-content{
  animation: accountPopOut .18s ease forwards;
}

.modal-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
}

.close-modal{
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  opacity: 0.7;
}
.close-modal:hover{ opacity: 1; color: #f43f5e; }

.avatar-circle{
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.profile-header{
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 25px;
}

.badge-pro{
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.stats-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.stat-box{
  background: rgba(255,255,255,0.04);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.stat-box h3{ margin: 5px 0; font-size: 1.5rem; }
.stat-box p{ margin: 0; font-size: 0.8rem; color: #94a3b8; }

.full-width{ width: 100%; margin-bottom: 10px; }
.btn.danger{
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn.danger:hover{ background: #f43f5e; color: #fff; }

@keyframes accountFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes accountPop{
  from{ transform: translateY(14px) scale(0.98); opacity: 0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes accountFadeOut{
  from{ opacity: 1; }
  to{ opacity: 0; }
}
@keyframes accountPopOut{
  from{ transform: translateY(0) scale(1); opacity: 1; }
  to{ transform: translateY(10px) scale(0.98); opacity: 0; }
}

.hero-hover-effect:hover {
  transform: scale(1.02);
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

@keyframes pulseFire {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#inlinePlayerContainer {
  margin-top: -24px;
}

@media (max-width: 768px) {
  #heroResumeBox {
    min-height: 180px;
  }

  h1 {
    font-size: 2rem !important;
  }
}


/* ===== Auth modal (custom) ===== */
.auth-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.auth-box{
  width: 420px;
  min-height: 520px;
  padding: 34px 28px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
  animation: popIn 140ms ease-out;
  box-sizing: border-box;
}

@keyframes popIn {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.auth-title{
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  background: linear-gradient(
    90deg,
    #e5e7eb 0%,
    #7dd3fc 50%,
    #e5e7eb 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtext{
  text-align: center;
  color: rgba(203,213,225,0.8);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.auth-label{
  display: block;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 10px 0 6px;
}

.auth-input{
  width: 100%;
  height: 48px;
  line-height: 24px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, transform .05s;
}
.auth-input.shake{
  animation: inputShake 240ms ease-in-out;
}

@keyframes inputShake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-4px); }
}

.auth-input::placeholder{
  color: #64748b;
}

.auth-input:focus::placeholder{
  opacity: 0.4;
}

.auth-input:focus{
  border-color: var(--auth-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--auth-accent) 50%, transparent),
    0 0 12px color-mix(in srgb, var(--auth-accent) 12%, transparent);
}

.auth-input:invalid[aria-invalid="true"]{
  border-color: rgba(244, 63, 94, 0.9);
  box-shadow: 0 0 0 4px rgba(244,63,94,0.12);
}

.auth-passwrap{ position: relative; }
.auth-input--pass{
  padding-right: 56px;
}

.auth-eye{
  position: absolute;
  right: 5px;
  top: 0px;
  bottom: 10px;
  margin: auto 0;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.45);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}
.auth-eye:focus{
  outline: none;
}
.auth-eye .icon,
.auth-eye .icon-eye,
.auth-eye .icon-eyeoff{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-eye svg{
  display: block;
}
.auth-eye:hover{ background: rgba(15,23,42,0.7); }
.auth-eye:active{
  transform: scale(0.98);
}

.auth-error{
  background: rgba(251,113,133,0.12);
  color: #fecdd3;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0 8px;
  font-size: 0.92rem;
  text-align: center;
  border: 1px solid rgba(251,113,133,0.35);
}

.auth-success{
  background: rgba(34,197,94,0.12);
  color: rgba(134,239,172,0.95);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0 8px;
  font-size: 0.92rem;
  text-align: center;
  border: 1px solid rgba(34,197,94,0.35);
}

.auth-btn{
  margin-top: 16px;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-strong));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--auth-accent) 35%, transparent);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.auth-btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--auth-accent) 35%, transparent),
    0 2px 0 rgba(255,255,255,0.06) inset;
}
.auth-btn:active{
  transform: translateY(0);
}

.auth-footer{
  text-align: center;
  margin-top: 18px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.auth-link{
  background: none;
  border: none;
  color: #06b6d4;
  cursor: pointer;
  font-weight: 700;
  padding: 0 2px;
}
.auth-link:hover{ text-decoration: underline; }
.auth-link:hover{ text-decoration: underline; text-underline-offset: 3px; }

.full-width{ width: 100%; }

.auth-box.shake{ animation: shake 280ms ease-in-out; }
@keyframes shake{
  0%,100%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-4px); }
}

.btn[disabled]{
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-btn.loading{
  pointer-events: none;
  opacity: 0.8;
}

.pass-strength{
  height: 7px;
  background: rgba(148,163,184,0.14);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.pass-bar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .25s ease, background .3s ease;
}

.pass-hint{
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: rgba(203,213,225,0.85);
}

.auth-link.small{
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.95;
}

.auth-row{
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.caps-hint{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid rgba(250,204,21,0.35);
  background: rgba(250,204,21,0.12);
  color: rgba(254,240,138,0.95);
}
.caps-hint-inline{
  position: absolute;
  left: 12px;
  right: 56px;
  bottom: 6px;
  z-index: 2;
  margin: 0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
  background: rgba(250,204,21,0.12);
  border: 1px solid rgba(250,204,21,0.35);
  color: rgba(254,240,138,0.95);
  pointer-events: none;
}

.field-msg{
  margin-top: 8px;
  font-size: 0.86rem;
  color: rgba(203,213,225,0.85);
}
.field-msg.ok{ color: rgba(34,197,94,0.95); }
.field-msg.err{ color: rgba(251,113,133,0.95); }

.field-err{
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(251,113,133,0.95);
}

.auth-section{
  animation: fadeSlide .18s ease-out;
}

@keyframes fadeSlide{
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

[hidden]{
  display: none !important;
}

:root{
  --auth-bg: rgba(15, 23, 42, 0.85);
  --card-bg: rgba(30, 41, 59, 0.58);
  --card-border: rgba(139, 92, 246, 0.28);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --input-bg: rgba(15, 23, 42, 0.75);
  --input-border: rgba(51, 65, 85, 1);
  --btn-bg: rgba(15, 23, 42, 0.45);
  --btn-border: rgba(148,163,184,0.25);
  --btn-hover: rgba(15, 23, 42, 0.75);
  --auth-accent: #06b6d4;
  --auth-accent-strong: #3b82f6;
}

@media (prefers-color-scheme: light){
  :root{
    --auth-bg: rgba(226, 232, 240, 0.7);
    --card-bg: rgba(255, 255, 255, 0.78);
    --card-border: rgba(148, 163, 184, 0.55);
    --text: #0f172a;
    --muted: #475569;
    --input-bg: rgba(248, 250, 252, 0.9);
    --input-border: rgba(203, 213, 225, 1);
    --btn-bg: rgba(241, 245, 249, 0.9);
    --btn-border: rgba(203, 213, 225, 1);
    --btn-hover: rgba(226, 232, 240, 0.95);
    --auth-accent: #0ea5e9;
    --auth-accent-strong: #22d3ee;
  }
}

/* --- Auth skin switch (marketing vs product) --- */
#customAuthModal[data-skin="marketing"]{
  --auth-bg: rgba(2, 6, 23, 0.88);
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-border: rgba(59, 130, 246, 0.35);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --input-bg: rgba(2, 6, 23, 0.8);
  --input-border: rgba(148, 163, 184, 0.35);
  --btn-bg: rgba(2, 6, 23, 0.55);
  --btn-border: rgba(148, 163, 184, 0.35);
  --btn-hover: rgba(15, 23, 42, 0.75);
  --auth-accent: #00d2ff;
  --auth-accent-strong: #3b82f6;
}

#customAuthModal[data-skin="product"]{
  --auth-bg: rgba(7, 6, 21, 0.88);
  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --input-bg: rgba(7, 6, 21, 0.7);
  --input-border: rgba(255, 255, 255, 0.18);
  --btn-bg: rgba(7, 6, 21, 0.55);
  --btn-border: rgba(255, 255, 255, 0.22);
  --btn-hover: rgba(15, 23, 42, 0.75);
  --auth-accent: #42E8FF;
  --auth-accent-strong: #B16CFF;
}

.auth-overlay{ background: var(--auth-bg); }
.auth-box{
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text);
}
.auth-title{ color: var(--text); }
.auth-subtext{ color: var(--muted); }
.auth-label{ color: rgba(255,255,255,0.8); }
@media (prefers-color-scheme: light){
  .auth-label{ color: rgba(15,23,42,0.8); }
}
.auth-input{
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text);
}
.auth-eye{
  background: var(--btn-bg);
  border-color: var(--btn-border);
  color: rgba(226,232,240,0.9);
}
.auth-eye:hover{ background: var(--btn-hover); }

/* icon swap animation */
.auth-eye .icon-eye,
.auth-eye .icon-eyeoff{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .18s ease, transform .18s ease;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}
.auth-eye[data-state="show"] .icon-eye{
  opacity: 1;
  transform: scale(1);
}
.auth-eye[data-state="hide"] .icon-eyeoff{
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce){
  .auth-eye .icon-eye,
  .auth-eye .icon-eyeoff{
    transition: none;
  }
}
