/* ================================================================
   MatŠ School — Modern Dark Theme
   Aesthetic: Deep space / glassmorphism / neon blue accents
   ================================================================ */

/* Canvas background — uvijek iza svog sadržaja */
#mathCanvas {
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1 !important;
  pointer-events: none;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:          #050b18;
  --bg2:         #080f20;
  --glass:       rgba(255,255,255,0.04);
  --glass-hov:   rgba(255,255,255,0.07);
  --glass-bord:  rgba(255,255,255,0.09);
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-glow:   #60a5fa;
  --cyan:        #06b6d4;
  --yellow:      #fbbf24;
  --yellow-warm: #f59e0b;
  --green:       #10b981;
  --red:         #ef4444;
  --txt:         #f0f6ff;
  --txt-2:       #b0c4d8;
  --txt-3:       #8fa8c0;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --trans:       all .22s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 4px 24px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.05) inset;
  --shadow-glow: 0 0 32px rgba(37,99,235,.25);
  --font-head:   'Outfit', sans-serif;
  --font-body:   'Space Grotesk', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- FLOATING MATH CANVAS ---- */
#mathCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 1;
}

/* ---- MESH GRADIENT BG ---- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(37,99,235,.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 85% 80%, rgba(6,182,212,.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(5,11,24,1) 0%, transparent 100%);
}

/* ---- TOP BAR ---- */
.top-bar {
  position: relative; z-index: 200;
  background: rgba(5,11,24,.9);
  border-bottom: 1px solid var(--glass-bord);
  padding: 8px 0;
  font-size: .78rem;
  backdrop-filter: blur(12px);
}
.top-link { color: var(--txt-2); text-decoration: none; transition: var(--trans); }
.top-link:hover { color: var(--yellow); }
.top-label { color: var(--txt-3); }
.soc-ic {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--glass); border: 1px solid var(--glass-bord);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--txt-2); font-size: .72rem; text-decoration: none;
  transition: var(--trans);
}
.soc-ic:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- SITE NAV ---- */
.site-nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(5,11,24,.85);
  border-bottom: 1px solid var(--glass-bord);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0;
}
.site-nav .container { display: block; padding-top: 0; padding-bottom: 0; }
.nav-inner {
  display: flex; align-items: center; height: 62px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 1.5rem; }
.brand img { height: 38px; }
.brand-text {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--txt); letter-spacing: -.5px;
}
.brand-text em { color: var(--yellow); font-style: normal; }
.nav-links {
  display: flex; list-style: none; gap: .25rem;
  margin: 0; padding: 0;
  flex: 1; /* zauzima slobodan prostor, gura nav-right desno */
}
.nav-links .nav-link {
  color: var(--txt-2) !important; font-size: .88rem; font-weight: 500;
  padding: .5rem .9rem !important; border-radius: 8px;
  transition: var(--trans); text-decoration: none;
  white-space: nowrap;
}
.nav-links .nav-link:hover { color: var(--txt) !important; background: var(--glass); }
.nav-right { flex-shrink: 0; display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.nav-cart {
  position: relative; color: var(--txt-2);
  font-size: 1.1rem; text-decoration: none; transition: var(--trans);
}
.nav-cart:hover { color: var(--txt); }
.cart-dot {
  position: absolute; top: -7px; right: -9px;
  background: var(--yellow); color: #000;
  font-size: .62rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.btn-nav-profil {
  background: var(--yellow);
  color: #000 !important; font-weight: 700;
  font-family: var(--font-body); font-size: .85rem;
  border-radius: 50px; padding: .48rem 1.25rem;
  text-decoration: none; transition: var(--trans);
  border: none; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(251,191,36,.25);
}
.btn-nav-profil:hover {
  background: var(--yellow-warm);
  box-shadow: 0 6px 22px rgba(251,191,36,.4);
  transform: translateY(-1px);
}
.mob-toggle {
  background: none; border: 1px solid var(--glass-bord);
  color: var(--txt); border-radius: 8px;
  width: 38px; height: 38px; flex-shrink: 0;
  display: none; /* shown via media query */
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---- MOBILE NAV DROPDOWN ---- */
.mob-nav-links {
  list-style: none; padding: .5rem 0 1rem; margin: 0;
  border-top: 1px solid var(--glass-bord);
}
.mob-nav-links li { border-bottom: 1px solid rgba(255,255,255,.04); }
.mob-nav-links a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem .25rem; color: var(--txt-2);
  font-size: .92rem; font-weight: 500; text-decoration: none;
  transition: var(--trans);
}
.mob-nav-links a i { width: 18px; text-align: center; color: var(--blue-glow); font-size: .85rem; }
.mob-nav-links a:hover { color: var(--txt); }
.mob-nav-links a.mob-cta {
  color: var(--yellow); font-weight: 700;
}
.mob-nav-links li:last-child { border-bottom: none; }

/* ---- LOGIN PAGE ---- */
.login-page {
  position: relative; z-index: 1;
  min-height: calc(100vh - 62px - 41px);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 1rem;
}
.login-wrap {
  width: 100%; max-width: 440px;
}
.login-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: 50px; padding: .35rem 1rem;
  font-size: .78rem; color: var(--blue-glow);
  font-weight: 600; letter-spacing: .5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.login-wrap h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem,5vw,2.8rem);
  line-height: 1.1; margin-bottom: .6rem;
  background: linear-gradient(135deg, #fff 30%, var(--blue-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-wrap .sub {
  color: var(--txt-2); font-size: .92rem; margin-bottom: 2.5rem;
}
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.5), transparent);
}
.f-label {
  display: block; color: var(--txt-2); font-size: .82rem;
  font-weight: 600; letter-spacing: .4px; margin-bottom: .5rem;
  text-transform: uppercase;
}
.f-input {
  width: 100%; background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-bord); border-radius: var(--radius);
  color: var(--txt); padding: .85rem 1.1rem;
  font-family: var(--font-body); font-size: .95rem;
  transition: var(--trans); outline: none;
}
.f-input:focus {
  border-color: var(--blue-light);
  background: rgba(37,99,235,.08);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.f-input::placeholder { color: var(--txt-3); }
.f-input option { background: #fff; color: #000; }
.f-group { position: relative; }
.f-group .f-input { padding-right: 3rem; }
.f-eye {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--txt-3);
  cursor: pointer; transition: var(--trans); font-size: .95rem;
}
.f-eye:hover { color: var(--blue-glow); }
.f-forgot {
  color: var(--blue-glow); text-decoration: none;
  font-size: .83rem; transition: var(--trans);
}
.f-forgot:hover { color: var(--yellow); }
.btn-primary-full {
  width: 100%; padding: .95rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border: none; border-radius: var(--radius);
  color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.btn-primary-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.55);
}
.divider-text {
  display: flex; align-items: center; gap: 1rem;
  color: var(--txt-3); font-size: .8rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--glass-bord);
}
.reg-link { color: var(--txt-2); font-size: .88rem; text-align: center; }
.reg-link a { color: var(--blue-glow); text-decoration: none; font-weight: 600; transition: var(--trans); }
.reg-link a:hover { color: var(--yellow); }

/* ---- DASHBOARD LAYOUT ---- */
.dashboard {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: calc(100vh - 62px);
  align-items: start;
  gap: 0;
}
.dashboard-sidebar {
  grid-row: 1 / -1;
  background: rgba(255,255,255,.03);
  border-right: 1px solid var(--glass-bord);
  padding: 1.5rem 0;
  position: sticky; top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
}
.sb-avatar-wrap {
  display: flex; align-items: center; gap: .85rem;
  padding: 0 1.2rem 1.5rem;
  border-bottom: 1px solid var(--glass-bord);
  margin-bottom: .75rem;
}
.sb-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.sb-avatar-img {
  width: 44px !important; height: 44px !important;
  min-width: 44px; min-height: 44px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
  border: 2px solid var(--glass-bord);
  display: block;
}
.sb-name { font-weight: 600; font-size: .9rem; color: var(--txt); }
.sb-sub { font-size: .75rem; color: var(--txt-3); }
.sb-nav { display: flex; flex-direction: column; padding: 0 .75rem; }
.sb-link {
  display: flex; align-items: center; gap: .8rem;
  padding: .72rem 1rem; border-radius: var(--radius);
  color: var(--txt-2); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  transition: var(--trans);
  margin-bottom: .15rem;
}
.sb-link i { width: 18px; text-align: center; font-size: .9rem; opacity: .8; }
.sb-link:hover { background: var(--glass-hov); color: var(--txt); }
.sb-link.active {
  background: rgba(37,99,235,.18);
  color: var(--blue-glow);
  border: 1px solid rgba(37,99,235,.25);
}
.sb-link.active i { opacity: 1; }
.sb-link.logout { color: var(--red); margin-top: auto; }
.sb-link.logout:hover { background: rgba(239,68,68,.1); color: var(--red); }

/* ---- DASHBOARD MAIN ---- */
.dash-main {
  padding: 2rem;
  overflow-y: auto;
  background: transparent;
}

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 2rem; }
.page-header h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem,3vw,2rem);
  color: #fff; margin-bottom: .25rem;
}
.page-header p { color: var(--txt-2); font-size: .9rem; }

/* ---- STAT CARDS (profil) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); padding: 1.3rem;
  transition: var(--trans); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent, var(--blue));
  opacity: .7;
}
.stat-card:hover { background: var(--glass-hov); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; margin-bottom: .8rem;
  background: var(--icon-bg, rgba(37,99,235,.15));
  color: var(--accent, var(--blue-glow));
}
.stat-val {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.7rem; color: var(--txt); line-height: 1;
}
.stat-label { font-size: .78rem; color: var(--txt-3); margin-top: .25rem; }

/* ---- COURSE CARDS ---- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.2rem; }
.cc {
  background: var(--glass);
  border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--trans); text-decoration: none; display: flex; flex-direction: column;
  position: relative;
}
.cc:hover { border-color: rgba(37,99,235,.4); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.cc-thumb {
  height: 120px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  margin: 1rem 1rem 0;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.cc-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.cc-thumb-grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(5,11,24,.7), transparent);
}
.cc-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.cc-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  background: rgba(37,99,235,.2); color: var(--blue-glow);
  border-radius: 4px; padding: 2px 8px; margin-bottom: .5rem;
  align-self: flex-start;
}
.cc-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: .92rem; color: var(--txt); line-height: 1.35;
  margin-bottom: .4rem;
}
.cc-desc { font-size: .78rem; color: var(--txt-2); line-height: 1.5; flex: 1; }
.cc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; border-top: 1px solid var(--glass-bord);
  font-size: .75rem; color: var(--txt-3);
}
.cc-footer i { color: var(--blue-glow); margin-right: .3rem; }
.badge-pill {
  padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700;
}
.badge-green { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.25); }
.badge-blue  { background: rgba(37,99,235,.15);  color: var(--blue-glow); border: 1px solid rgba(37,99,235,.25); }

/* ---- GLASS TABLE ---- */
.glass-table-wrap {
  background: var(--glass);
  border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); overflow: hidden;
}
.glass-table { width: 100%; border-collapse: collapse; }
.glass-table thead tr {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--glass-bord);
}
.glass-table th {
  padding: 1rem 1.25rem; text-align: left;
  font-size: .75rem; font-weight: 700; color: var(--txt-3);
  text-transform: uppercase; letter-spacing: .6px; white-space: nowrap;
}
.glass-table td {
  padding: 1rem 1.25rem; font-size: .88rem; color: var(--txt);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.glass-table tbody tr:last-child td { border-bottom: none; }
.glass-table tbody tr:hover td { background: rgba(255,255,255,.025); }
.course-row-thumb {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.course-row-name { color: var(--blue-glow); font-weight: 600; text-decoration: none; transition: var(--trans); display: block; }
.course-row-name:hover { color: var(--yellow); }
.course-row-sub { font-size: .76rem; color: var(--txt-3); margin-top: 1px; }

/* ---- TABS ---- */
.mtabs { display: flex; gap: .25rem; margin-bottom: 1.75rem; padding-bottom: 0; border-bottom: 1px solid var(--glass-bord); }
.mtab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--txt-3); font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  padding: .6rem 1.1rem; cursor: pointer; margin-bottom: -1px;
  transition: var(--trans); border-radius: 0;
}
.mtab.active { color: var(--blue-glow); border-bottom-color: var(--blue-glow); }
.mtab:hover { color: var(--txt); }

/* ---- SETTINGS ---- */
.settings-section { max-width: 500px; }
.settings-section h5 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; color: var(--txt); margin-bottom: 1.25rem;
}
.btn-save {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: none; border-radius: var(--radius); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: .75rem 1.75rem; cursor: pointer; transition: var(--trans);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.5); }

/* ---- COURSE VIEWER ---- */
.viewer-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  position: relative; z-index: 1;
  padding: 1.5rem;
  min-height: calc(100vh - 103px);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.lesson-panel {
  background: var(--glass);
  border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg);
  overflow: hidden; align-self: start;
  position: sticky; top: calc(62px + 1.5rem);
}
.lp-header {
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--glass-bord);
  background: rgba(255,255,255,.03);
}
.lp-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: .85rem; color: var(--txt); line-height: 1.35;
}
.lesson-list { list-style: none; padding: .4rem 0; }
.lesson-list li a {
  display: flex; align-items: center; gap: .7rem;
  padding: .72rem 1.1rem; color: var(--txt-2);
  text-decoration: none; font-size: .86rem; font-weight: 500;
  transition: var(--trans); border-left: 2px solid transparent;
}
.lesson-list li a:hover { color: var(--txt); background: var(--glass); }
.lesson-list li a.active { color: var(--blue-glow); background: rgba(37,99,235,.1); border-left-color: var(--blue-glow); }
.lesson-list li a i { font-size: .65rem; color: var(--blue-glow); width: 14px; }
.lesson-list li a.watched { color: var(--txt-3); }
.lesson-list li a.watched i { color: #22c55e; }
.lesson-list li a.watched.active i { color: #22c55e; }

/* ── Certifikat dugme u sidebaru ── */
.cert-btn-panel {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .85rem; padding: .65rem 1rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius); color: #fff !important;
  font-size: .82rem; font-weight: 700; text-decoration: none !important;
  transition: opacity .2s;
}
.cert-btn-panel:hover { opacity: .88; }
.cert-btn-panel i { font-size: .9rem; }

/* ── Certifikat banner ispod videa ── */
#cert-banner {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .9rem 1.2rem;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(6,182,212,.12));
  border: 1px solid rgba(37,99,235,.35);
  border-radius: var(--radius); color: var(--txt);
  font-size: .88rem; font-weight: 600;
  animation: fadeSlideIn .4s ease;
}
#cert-banner i { font-size: 1.1rem; color: var(--blue); }
.cert-link {
  margin-left: auto; padding: .45rem .9rem;
  background: var(--blue); border-radius: 6px;
  color: #fff !important; font-size: .8rem; font-weight: 700;
  text-decoration: none !important; transition: background .2s;
}
.cert-link:hover { background: var(--cyan); }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.viewer-main { display: flex; flex-direction: column; gap: 1rem; }
.viewer-header {
  background: linear-gradient(135deg, var(--blue), rgba(6,182,212,.8));
  border-radius: var(--radius-lg); padding: .9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.viewer-back { color: rgba(255,255,255,.8); text-decoration: none; font-size: .85rem; transition: var(--trans); display: flex; align-items: center; gap: .4rem; }
.viewer-back:hover { color: #fff; }
.viewer-title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: .9rem; }
.viewer-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; transition: var(--trans); }
.viewer-close:hover { background: rgba(255,255,255,.35); }

.video-box {
  background: #000;
  border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; position: relative;
}
/* Plyr wrapper mora popuniti cijeli .video-box */
.video-box .plyr,
.video-box video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.video-box-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; position: absolute; inset: 0; }

/* ── Watermark ───────────────────────────────────────────────
   --watermark postavljen na #video-holder iz PHP-a,
   --x i --y postavljaju se na :root iz JS-a svakih 10s
   ─────────────────────────────────────────────────────────── */
.plyr__video-wrapper::after {
  content: var(--watermark);
  position: absolute;
  top:  calc(var(--y, 0.2) * 80%);
  left: calc(var(--x, 0.2) * 80%);
  font-size: 14px;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.25);
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
  transition: top 1s ease, left 1s ease;
  white-space: nowrap;
  user-select: none;
}
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; transition: var(--trans);
  box-shadow: 0 0 0 14px rgba(37,99,235,.15), 0 8px 32px rgba(37,99,235,.5);
}
.play-btn:hover { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(37,99,235,.1), 0 12px 40px rgba(37,99,235,.6); }
.video-hint { color: var(--txt-3); font-size: .82rem; }

.note-toggle-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: 50px; color: var(--txt-2);
  padding: .45rem 1rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: var(--trans);
}
.note-toggle-btn:hover, .note-toggle-btn.active {
  background: rgba(37,99,235,.2); border-color: rgba(37,99,235,.35); color: var(--blue-glow);
}
.note-box {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.note-box h6 {
  font-family: var(--font-head); font-weight: 700; color: var(--txt);
  font-size: .92rem; margin-bottom: .5rem;
}
.note-box p { color: var(--txt-2); font-size: .88rem; line-height: 1.6; }

/* ---- FOOTER ---- */
.site-footer {
  background: rgba(5,11,24,.95);
  border-top: 1px solid var(--glass-bord);
  padding-top: 3rem;
  position: relative; z-index: 1;
}
.footer-logo { height: 32px; margin-bottom: .75rem; }
.footer-about { color: var(--txt-2); font-size: .84rem; line-height: 1.65; max-width: 260px; margin-bottom: 1rem; }
.footer-soc { display: flex; gap: .4rem; }
.footer-soc a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--glass); border: 1px solid var(--glass-bord);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-2); font-size: .78rem; text-decoration: none; transition: var(--trans);
}
.footer-soc a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-heading { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; color: var(--txt); margin-bottom: .8rem; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-list a { color: var(--txt-2); text-decoration: none; font-size: .84rem; transition: var(--trans); }
.footer-list a:hover { color: var(--yellow); }
.store-badge { height: 34px; border-radius: 7px; opacity: .75; transition: var(--trans); }
.store-badge:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--glass-bord); padding: 1rem 0; margin-top: 2rem;
  font-size: .78rem; color: var(--txt-3);
}
.footer-bottom a { color: var(--txt-3); text-decoration: none; transition: var(--trans); }
.footer-bottom a:hover { color: var(--txt-2); }

/* ---- SCROLL TOP ---- */
.scroll-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px; background: var(--blue);
  border-radius: 50%; border: 1px solid rgba(255,255,255,.1);
  color: #fff; cursor: pointer; z-index: 9999;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
  transition: var(--trans); box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
.scroll-top:hover { background: var(--blue-light); transform: translateY(-3px); }

/* ---- UTILS ---- */
.mt-section { margin-top: 2rem; }
.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; color: var(--txt); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .6rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--glass-bord); }

/* ---- PRICING MOBILE CARDS ---- */
.pkg-card {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); overflow: hidden;
}
.pkg-card-head {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--glass-bord);
  background: rgba(255,255,255,.03);
}
.pkg-card-emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.pkg-card-name { font-family: var(--font-head); font-weight: 800; font-size: .95rem; }
.pkg-card-desc { font-size: .78rem; color: var(--txt-3); margin-top: 2px; }
.pkg-feat-list { list-style: none; padding: .85rem 1.25rem; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; }
.pkg-feat-list li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--txt-2); }
.pkg-feat-list li i { font-size: .75rem; flex-shrink: 0; width: 14px; text-align: center; }
.pkg-feat-list li.pkg-feat-no { color: var(--red); opacity: .5; }
.pkg-feat-list li.pkg-feat-no i { color: var(--red); }
.pkg-card .btn-pkg {
  display: flex !important; justify-content: center;
  margin: 0 1.25rem 1.25rem;
  width: calc(100% - 2.5rem) !important;
  box-sizing: border-box;
  border-radius: var(--radius);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .mob-toggle { display: flex; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid var(--glass-bord); flex-direction: row; flex-wrap: wrap; align-items: center; padding: .85rem 1rem; gap: .5rem; }
  .sb-avatar-wrap { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .sb-nav { flex-direction: row; flex-wrap: wrap; padding: 0; margin-left: auto; }
  .sb-link { padding: .5rem .85rem; font-size: .82rem; }
  .sb-link span { display: none; }
  .sb-link i { width: auto; }
  .sb-link.logout { margin-top: 0; }
  .viewer-layout { grid-template-columns: 1fr; }
  .lesson-panel { position: relative; top: 0; max-height: 300px; overflow-y: auto; }
}
@media (max-width: 767px) {
  .viewer-layout { padding: .75rem; gap: .75rem; }
  .dash-main { padding: 1.25rem; }
  .glass-card { padding: 1.75rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .pkg-feat-list { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .glass-table thead { display: none; }
  .glass-table td { display: block; padding: .5rem 1rem; border: none; }
  .glass-table tr { border-bottom: 1px solid var(--glass-bord); padding: .5rem 0; display: block; }
  .glass-table td:first-child { padding-top: .75rem; }
  .glass-table td:last-child { padding-bottom: .75rem; }
  .login-wrap h1 { font-size: 1.8rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .lesson-panel { max-height: 220px; }
}


/* ================================================================
   PAGE-SPECIFIC STYLES
   Svaka stranica scopovana pod svojom wrapper klasom:
   .home | .kursevi | .prijemni | .pregled | .korpa | .checkout
   ================================================================ */


/* ----------------------------------------------------------------
   SHARED — PAGE BANNER + BREADCRUMB
   (kursevi, prijemni, korpa, checkout)
   ---------------------------------------------------------------- */
.page-banner {
  position: relative; z-index: 1;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--glass-bord);
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(37,99,235,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(6,182,212,.06) 0%, transparent 55%);
}
.page-banner h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--blue-glow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: .4rem;
}
.page-banner p { color: var(--txt-3); font-size: .92rem; margin-bottom: 0; }

.breadcrumb-wrap {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--txt-3); margin-bottom: 1rem;
}
.breadcrumb-wrap a { color: var(--txt-3); text-decoration: none; transition: var(--trans); }
.breadcrumb-wrap a:hover { color: var(--blue-glow); }
.breadcrumb-wrap i { font-size: .6rem; color: var(--txt-3); }
.breadcrumb-wrap .bc-active { color: var(--blue-glow); }


/* ----------------------------------------------------------------
   SHARED — LISTING CARDS (.kc) + FILTER BAR
   (kursevi + prijemni)
   ---------------------------------------------------------------- */
.courses-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }

.filter-bar {
  display: flex; align-items: center; gap: .6rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-btn {
  background: var(--glass); border: 1px solid var(--glass-bord);
  color: var(--txt-2); border-radius: 50px;
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  padding: .4rem 1.1rem; cursor: pointer; transition: var(--trans);
}
.filter-btn:hover { background: var(--glass-hov); color: var(--txt); }
.filter-btn.active {
  background: rgba(37,99,235,.18); border-color: rgba(37,99,235,.35);
  color: var(--blue-glow);
}

.kc {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--trans); display: flex; flex-direction: column; height: 100%;
}
.kc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(37,99,235,.15);
  border-color: rgba(37,99,235,.35);
}
.kc-thumb {
  position: relative; overflow: hidden; height: 180px;
  margin: 1rem 1rem 0; border-radius: var(--radius); flex-shrink: 0;
}
.kc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kc:hover .kc-thumb img { transform: scale(1.04); }
.kc-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.kc-thumb-grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to top, rgba(5,11,24,.75), transparent);
}
.kc-body { padding: 1.1rem 1rem .85rem; flex: 1; display: flex; flex-direction: column; }
.kc-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .55px;
  background: rgba(37,99,235,.18); color: var(--blue-glow);
  border-radius: 4px; padding: 2px 8px; margin-bottom: .6rem; align-self: flex-start;
}
.kc-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; color: var(--txt); line-height: 1.35; margin-bottom: .45rem;
}
.kc-desc { font-size: .83rem; color: var(--txt-2); line-height: 1.6; flex: 1; margin-bottom: 0; }
.kc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-top: 1px solid var(--glass-bord); gap: .75rem;
}
.kc-price {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.05rem; color: var(--blue-glow); white-space: nowrap;
}
.kc-price small {
  font-size: .7rem; color: var(--txt-3);
  font-weight: 500; font-family: var(--font-body); margin-left: 2px;
}
.btn-kc {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--yellow); color: #000;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  border-radius: 50px; padding: .5rem 1.15rem; text-decoration: none;
  transition: var(--trans); border: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(251,191,36,.25);
}
.btn-kc:hover {
  background: var(--yellow-warm); color: #000;
  box-shadow: 0 6px 20px rgba(251,191,36,.4); transform: translateY(-1px);
}
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--txt-3); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: .3; display: block; }
.empty-state p { font-size: .92rem; }


/* ----------------------------------------------------------------
   PRIJEMNI PAGE — colour overrides
   ---------------------------------------------------------------- */
.prijemni .page-banner::before {
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(6,182,212,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(37,99,235,.06) 0%, transparent 55%);
}
.prijemni .page-banner h1 {
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.prijemni .breadcrumb-wrap a:hover { color: var(--cyan); }
.prijemni .breadcrumb-wrap .bc-active { color: var(--cyan); }
.prijemni .filter-btn.active {
  background: rgba(6,182,212,.15); border-color: rgba(6,182,212,.35); color: var(--cyan);
}
.prijemni .kc:hover {
  border-color: rgba(6,182,212,.35);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(6,182,212,.15);
}
.prijemni .kc-tag { background: rgba(6,182,212,.15); color: var(--cyan); }
.prijemni .kc-price { color: var(--cyan); }


/* ----------------------------------------------------------------
   PREGLED PAGE (.pregled)
   --accent, --accent-rgb, --grad-from, --grad-to set inline from PHP
   ---------------------------------------------------------------- */
.pregled {
  --accent: var(--blue-glow);
  --accent-rgb: 37,99,235;
  --grad-from: #1e3a8a;
  --grad-to: #2563eb;
}
.pregled .breadcrumb-wrap { margin-bottom: 1.5rem; }
.pregled .breadcrumb-wrap a:hover { color: var(--accent); }
.pregled .breadcrumb-wrap .bc-active { color: var(--accent); }

.pregled .pregled-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }

.pregled .course-cover {
  width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 1.75rem; border: 1px solid var(--glass-bord);
  background: var(--glass); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; position: relative;
}
.pregled .course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pregled .course-main-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--txt); line-height: 1.2; margin-bottom: .5rem;
}
.pregled .course-meta {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.pregled .course-meta span { display: flex; align-items: center; gap: .4rem; font-size: .83rem; color: var(--txt-3); }
.pregled .course-meta i { font-size: .8rem; color: var(--accent); }

.pregled .course-tabs {
  display: flex; gap: .25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-bord);
}
.pregled .course-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--txt-3); font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  padding: .6rem 1.25rem; cursor: pointer; margin-bottom: -1px; transition: var(--trans);
}
.pregled .course-tab:hover { color: var(--txt); }
.pregled .course-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.pregled .tab-panel { display: none; }
.pregled .tab-panel.active { display: block; }

.pregled .desc-box {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.pregled .desc-box h5 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--txt); margin-bottom: .75rem; }
.pregled .desc-box p { color: var(--txt-2); font-size: .92rem; line-height: 1.75; margin: 0; }

.pregled .lekc-list { list-style: none; padding: 0; margin: 0; }
.pregled .lekc-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; background: var(--glass);
  border: 1px solid var(--glass-bord); border-radius: var(--radius);
  margin-bottom: .5rem; transition: var(--trans);
}
.pregled .lekc-item:hover { background: var(--glass-hov); border-color: rgba(255,255,255,.12); }
.pregled .lekc-num {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; font-family: var(--font-head);
  background: rgba(var(--accent-rgb),.15); color: var(--accent);
}
.pregled .lekc-name { font-size: .9rem; color: var(--txt); font-weight: 500; flex: 1; }
.pregled .lekc-lock { color: var(--txt-3); font-size: .8rem; }

.pregled .buy-card {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card); position: sticky; top: calc(62px + 1.5rem);
}
.pregled .buy-card-price {
  padding: 1.25rem 1.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--grad-from) 0%, var(--grad-to) 100%);
}
.pregled .buy-card-price::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
}
.pregled .buy-card-price .price-label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .6px; margin-bottom: .2rem; }
.pregled .buy-card-price .price-val { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: #fff; line-height: 1; }
.pregled .buy-card-body { padding: 1.25rem 1.5rem; }
.pregled .includes-title { font-size: .78rem; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .85rem; }
.pregled .include-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem;
}
.pregled .include-row:last-child { border-bottom: none; }
.pregled .include-row .inc-left { display: flex; align-items: center; gap: .6rem; color: var(--txt-2); }
.pregled .include-row .inc-left i { font-size: .8rem; width: 16px; text-align: center; color: var(--accent); }
.pregled .include-row .inc-val { color: var(--txt); font-weight: 600; font-size: .88rem; }
.pregled .btn-buy {
  width: 100%; padding: .95rem;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-warm) 100%);
  border: none; border-radius: var(--radius);
  color: #000; font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: var(--trans);
  box-shadow: 0 4px 20px rgba(251,191,36,.3);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  text-decoration: none; margin-top: 1.25rem;
}
.pregled .btn-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(251,191,36,.45); color: #000; }
.pregled .buy-note { text-align: center; font-size: .78rem; color: var(--txt-3); margin-top: .85rem; }
.pregled .buy-note i { margin-right: .3rem; color: var(--green); }

@media (max-width: 991px) { .pregled .buy-card { position: relative; top: 0; margin-top: 2rem; } }


/* ----------------------------------------------------------------
   KORPA PAGE (.korpa)
   ---------------------------------------------------------------- */
.korpa .korpa-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }

.korpa .cart-wrap {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 1.25rem;
}
.korpa .cart-table { width: 100%; border-collapse: collapse; }
.korpa .cart-table thead tr { border-bottom: 1px solid var(--glass-bord); background: rgba(255,255,255,.03); }
.korpa .cart-table th {
  padding: .85rem 1.25rem; font-size: .75rem; font-weight: 700;
  color: var(--txt-3); text-transform: uppercase; letter-spacing: .6px; text-align: left;
}
.korpa .cart-table th:last-child { text-align: right; }
.korpa .cart-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle;
}
.korpa .cart-table tbody tr:last-child td { border-bottom: none; }
.korpa .cart-table tbody tr:hover td { background: rgba(255,255,255,.02); }

.korpa .cart-item-thumb {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.korpa .cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.korpa .cart-item-name {
  color: var(--blue-glow); font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: var(--trans);
}
.korpa .cart-item-name:hover { color: var(--yellow); }
.korpa .cart-price { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--txt); white-space: nowrap; }
.korpa .cart-remove {
  background: none; border: none; color: var(--txt-3); font-size: .9rem;
  cursor: pointer; transition: var(--trans);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; float: right;
}
.korpa .cart-remove:hover { color: var(--red); background: rgba(239,68,68,.1); }

.korpa .coupon-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.korpa .coupon-input {
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-bord);
  border-radius: var(--radius); color: var(--txt); padding: .72rem 1.1rem;
  font-family: var(--font-body); font-size: .9rem; transition: var(--trans); outline: none;
  flex: 1; min-width: 180px;
}
.korpa .coupon-input::placeholder { color: var(--txt-3); }
.korpa .coupon-input:focus { border-color: var(--blue-light); background: rgba(37,99,235,.08); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.korpa .coupon-input[readonly] { color: var(--green); border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.05); }
.korpa .btn-coupon {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: none; border-radius: var(--radius); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  padding: .72rem 1.5rem; cursor: pointer; transition: var(--trans); white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.korpa .btn-coupon:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.45); }
.korpa .btn-coupon-remove {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius); color: #fc8585;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  padding: .72rem 1.25rem; cursor: pointer; transition: var(--trans); white-space: nowrap;
}
.korpa .btn-coupon-remove:hover { background: rgba(239,68,68,.2); }

.korpa .summary-card {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl); overflow: hidden;
  position: sticky; top: calc(62px + 1.5rem); box-shadow: var(--shadow-card);
}
.korpa .summary-head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--glass-bord); background: rgba(255,255,255,.03); }
.korpa .summary-head h5 { font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--txt); margin: 0; letter-spacing: .3px; text-transform: uppercase; }
.korpa .summary-body { padding: 1.35rem 1.5rem; }
.korpa .summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .9rem;
}
.korpa .summary-row:last-of-type { border-bottom: none; }
.korpa .summary-row .s-label { color: var(--txt-2); }
.korpa .summary-row .s-val { color: var(--txt); font-weight: 600; }
.korpa .summary-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0 1.25rem; border-top: 1px solid var(--glass-bord); margin-top: .25rem;
}
.korpa .summary-total .t-label { font-size: .92rem; color: var(--txt-2); font-weight: 600; }
.korpa .summary-total .t-val { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--txt); }
.korpa .btn-pay-card {
  width: 100%; padding: .85rem;
  background: rgba(37,99,235,.12); border: 1.5px solid var(--blue);
  border-radius: var(--radius); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  cursor: pointer; opacity: 1;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-bottom: .65rem; text-decoration: none;
  transition: var(--trans);
}
.korpa .btn-pay-card:hover { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(37,99,235,.45); }
.korpa .btn-pay-card[disabled] { cursor: not-allowed; opacity: .4; pointer-events: none; transform: none; }
.korpa .btn-pay-transfer {
  width: 100%; padding: .88rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border: none; border-radius: var(--radius); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: var(--trans);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  box-shadow: 0 4px 18px rgba(37,99,235,.35); text-decoration: none;
}
.korpa .btn-pay-transfer:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(37,99,235,.5); color: #fff; }
.korpa .btn-pay-transfer[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.korpa .empty-cart { text-align: center; padding: 4rem 2rem; color: var(--txt-3); }
.korpa .empty-cart i { font-size: 3rem; opacity: .25; margin-bottom: 1rem; display: block; }
.korpa .empty-cart p { font-size: .92rem; margin-bottom: 1.5rem; }

@media (max-width: 991px) { .korpa .summary-card { position: relative; top: 0; margin-top: 1.5rem; } }
@media (max-width: 576px) {
  .korpa .cart-table thead { display: none; }
  .korpa .cart-table td { display: block; padding: .5rem 1rem; }
  .korpa .cart-table tr { display: block; border-bottom: 1px solid var(--glass-bord); padding: .5rem 0; }
}


/* ----------------------------------------------------------------
   CHECKOUT PAGE (.checkout)
   ---------------------------------------------------------------- */
.checkout .checkout-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }

.checkout .form-card {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 1.5rem;
}
.checkout .form-card-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: .82rem; color: var(--txt); text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 1.5rem; padding-bottom: .85rem; border-bottom: 1px solid var(--glass-bord);
}
.checkout textarea.f-input { resize: vertical; min-height: 110px; }

.checkout .order-card {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl); overflow: hidden;
  position: sticky; top: calc(62px + 1.5rem); box-shadow: var(--shadow-card);
}
.checkout .order-card-head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--glass-bord); background: rgba(255,255,255,.03); }
.checkout .order-card-head h5 { font-family: var(--font-head); font-weight: 800; font-size: .82rem; color: var(--txt); margin: 0; letter-spacing: .8px; text-transform: uppercase; }
.checkout .order-card-body { padding: 1.35rem 1.5rem; }
.checkout .order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem;
}
.checkout .order-row:last-of-type { border-bottom: none; }
.checkout .order-row .or-label { color: var(--txt-2); }
.checkout .order-row .or-val { color: var(--txt); font-weight: 700; font-size: .92rem; }
.checkout .order-head-row {
  display: flex; justify-content: space-between;
  padding-bottom: .6rem; margin-bottom: .25rem; border-bottom: 1px solid var(--glass-bord);
  font-size: .75rem; font-weight: 700; color: var(--txt-3);
  text-transform: uppercase; letter-spacing: .5px;
}
.checkout .order-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0 1.1rem; border-top: 1px solid var(--glass-bord); margin-top: .25rem;
}
.checkout .order-total .ot-label { font-size: .9rem; color: var(--txt); font-weight: 700; }
.checkout .order-total .ot-val { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--txt); }
.checkout .terms-wrap {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1.25rem; padding: .85rem 1rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--glass-bord); border-radius: var(--radius);
}
.checkout .terms-wrap input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--blue); margin-top: 1px; cursor: pointer; }
.checkout .terms-wrap label { font-size: .85rem; color: var(--txt-2); cursor: pointer; line-height: 1.55; }
.checkout .terms-wrap label a { color: var(--blue-glow); text-decoration: none; transition: var(--trans); }
.checkout .terms-wrap label a:hover { color: var(--yellow); }
.checkout .btn-submit {
  width: 100%; padding: .95rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border: none; border-radius: var(--radius); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: var(--trans);
  box-shadow: 0 4px 20px rgba(37,99,235,.4);
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.checkout .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.55); }

@media (max-width: 991px) { .checkout .order-card { position: relative; top: 0; margin-top: 1.5rem; } }


/* ----------------------------------------------------------------
   HOME PAGE (.home)
   ---------------------------------------------------------------- */
.home .hero {
  position: relative; z-index: 1;
  min-height: calc(100vh - 103px);
  display: flex; align-items: center;
  padding: 5rem 0 4rem; overflow: hidden;
}
.home .hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 60% 50%, rgba(37,99,235,.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(6,182,212,.07) 0%, transparent 55%);
}
.home .hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3);
  border-radius: 50px; padding: .38rem 1rem;
  font-size: .78rem; color: var(--blue-glow); font-weight: 600; letter-spacing: .5px;
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.home .hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.08; margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--blue-glow) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home .hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-warm) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home .hero-sub { color: var(--txt-2); font-size: 1.05rem; max-width: 500px; line-height: 1.7; margin-bottom: 2.25rem; }
.home .btn-hero-cta {
  display: inline-flex; align-items: center; gap: .65rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 1rem; border-radius: 50px; padding: .9rem 2rem; text-decoration: none;
  transition: var(--trans); box-shadow: 0 6px 28px rgba(37,99,235,.45); border: none; cursor: pointer;
}
.home .btn-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(37,99,235,.65); color: #fff; }
.home .btn-hero-sec {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--glass); border: 1px solid var(--glass-bord);
  color: var(--txt-2); font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; border-radius: 50px; padding: .88rem 1.75rem;
  text-decoration: none; transition: var(--trans); cursor: pointer;
}
.home .btn-hero-sec:hover { background: var(--glass-hov); color: var(--txt); }
.home .hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.home .hero-card-float {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius-xl); padding: 2rem 2.25rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 60px rgba(37,99,235,.18);
  position: relative; overflow: hidden; max-width: 340px; width: 100%;
}
.home .hero-card-float::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.6), transparent);
}
.home .hcf-stat { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--glass-bord); }
.home .hcf-stat:last-child { border-bottom: none; }
.home .hcf-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.home .hcf-num { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--txt); line-height: 1; }
.home .hcf-label { font-size: .78rem; color: var(--txt-3); margin-top: 2px; }

.home .lp-section { position: relative; z-index: 1; padding: 5rem 0; }
.home .lp-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.22);
  border-radius: 50px; padding: .3rem .9rem;
  font-size: .75rem; color: var(--blue-glow); font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 1rem;
}
.home .lp-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.6rem); line-height: 1.15; color: var(--txt); margin-bottom: .75rem; }
.home .lp-title em { font-style: normal; background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-warm) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.home .lp-sub { color: var(--txt-2); font-size: .97rem; line-height: 1.75; max-width: 580px; }
.home .about-text p { color: var(--txt-2); line-height: 1.8; font-size: .97rem; margin-bottom: 1rem; }
.home .about-text p:last-child { margin-bottom: 0; }

.home .feat-card { background: var(--glass); border: 1px solid var(--glass-bord); border-radius: var(--radius-xl); padding: 2rem 1.75rem; transition: var(--trans); height: 100%; position: relative; overflow: hidden; }
.home .feat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--feat-color, var(--blue)); opacity: .7; }
.home .feat-card:hover { background: var(--glass-hov); transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(255,255,255,.13); }
.home .feat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; background: var(--feat-bg, rgba(37,99,235,.15)); color: var(--feat-color, var(--blue-glow)); }
.home .feat-card h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--txt); margin-bottom: .65rem; }
.home .feat-card p { color: var(--txt-2); font-size: .9rem; line-height: 1.7; margin: 0; }

.home .pricing-wrap { background: var(--glass); border: 1px solid var(--glass-bord); border-radius: var(--radius-xl); overflow: hidden; }
.home .pricing-table { width: 100%; border-collapse: collapse; }
.home .pricing-table thead tr { background: rgba(255,255,255,.04); border-bottom: 2px solid var(--glass-bord); }
.home .pricing-table th { padding: 1.5rem 1.25rem; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--txt); }
.home .pricing-table th:first-child { text-align: left; width: 38%; }
.home .pricing-table th .pkg-label { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; border-radius: 50px; padding: 3px 12px; margin-bottom: .4rem; }
.home .pricing-table th .pkg-name { display: block; font-size: 1.1rem; font-family: var(--font-head); font-weight: 800; }
.home .pricing-table th .pkg-desc { display: block; font-size: .75rem; color: var(--txt-3); font-weight: 400; font-family: var(--font-body); margin-top: .25rem; }
.home .pkg-prm  .pkg-label { background: rgba(251,191,36,.1); color: var(--yellow); border: 1px solid rgba(251,191,36,.3); }
.home .pkg-ec .pkg-label { background: rgba(37,99,235,.15); color: var(--blue-glow); border: 1px solid rgba(37,99,235,.3); }
.home .pkg-std .pkg-label { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.home .pricing-table td { padding: .9rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem; color: var(--txt); vertical-align: middle; text-align: center; }
.home .pricing-table td:first-child { text-align: left; color: var(--txt-2); }
.home .pricing-table tbody tr:last-child td { border-bottom: none; }
.home .pricing-table tbody tr:hover td { background: rgba(255,255,255,.025); }
.home .check-yes { color: var(--green); font-size: 1.05rem; }
.home .check-no  { color: var(--red); font-size: .85rem; opacity: .5; }
.home .pricing-table tfoot td { padding: 1.25rem; border-top: 1px solid var(--glass-bord); text-align: center; background: rgba(255,255,255,.02); }
.home .btn-pkg { display: inline-flex; align-items: center; gap: .4rem; border-radius: 50px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; padding: .55rem 1.3rem; text-decoration: none; transition: var(--trans); border: 1px solid; }
.home .btn-pkg-prm  { background: rgba(251,191,36,.1);  color: var(--yellow); border-color: rgba(251,191,36,.3); }
.home .btn-pkg-prm:hover  { background: rgba(251,191,36,.2);  color: var(--yellow); }
.home .btn-pkg-ec { background: rgba(37,99,235,.15);  color: var(--blue-glow); border-color: rgba(37,99,235,.35); }
.home .btn-pkg-ec:hover { background: rgba(37,99,235,.28); color: var(--blue-glow); }
.home .btn-pkg-std { background: rgba(34,197,94,.12); color: #4ade80; border-color: rgba(34,197,94,.3); }
.home .btn-pkg-std:hover { background: rgba(34,197,94,.22); color: #4ade80; }

.home .stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.home .stat-item { background: var(--glass); border: 1px solid var(--glass-bord); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; text-align: center; transition: var(--trans); position: relative; overflow: hidden; }
.home .stat-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.home .stat-item:hover { background: var(--glass-hov); transform: translateY(-2px); }
.home .stat-item .s-num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; background: linear-gradient(135deg, #fff, var(--blue-glow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.home .stat-item .s-label { color: var(--txt-3); font-size: .8rem; margin-top: .4rem; }

.home .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.home .testi-card { background: var(--glass); border: 1px solid var(--glass-bord); border-radius: var(--radius-lg); padding: 1.5rem; transition: var(--trans); }
.home .testi-card:hover { background: var(--glass-hov); border-color: rgba(255,255,255,.13); }
.home .testi-card .quote-icon { font-size: 1.8rem; color: var(--blue); opacity: .4; line-height: 1; margin-bottom: .6rem; }
.home .testi-card p { color: var(--txt-2); font-size: .92rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.home .testi-card .testi-author { font-weight: 700; font-size: .85rem; color: var(--txt); }

.home .why-bg { background: rgba(37,99,235,.05); border: 1px solid rgba(37,99,235,.12); border-radius: var(--radius-xl); padding: 2.5rem; }
.home .why-list { list-style: none; padding: 0; margin: 0; }
.home .why-list li { display: flex; align-items: flex-start; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--glass-bord); color: var(--txt-2); font-size: .95rem; line-height: 1.6; }
.home .why-list li:last-child { border-bottom: none; }
.home .why-list li .wi { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; background: rgba(37,99,235,.18); color: var(--blue-glow); display: flex; align-items: center; justify-content: center; font-size: .8rem; margin-top: 1px; }

.home .resource-card { background: var(--glass); border: 1px solid var(--glass-bord); border-radius: var(--radius-xl); padding: 1.75rem 1.5rem; transition: var(--trans); height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; cursor: pointer; }
.home .resource-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--res-color, var(--blue)); }
.home .resource-card:hover { background: var(--glass-hov); transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(255,255,255,.13); }
.home .res-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.1rem; background: var(--res-bg, rgba(37,99,235,.15)); color: var(--res-color, var(--blue-glow)); }
.home .resource-card h5 { font-family: var(--font-head); font-weight: 700; font-size: .97rem; color: var(--txt); margin-bottom: .5rem; }
.home .resource-card p { color: var(--txt-3); font-size: .83rem; line-height: 1.6; margin: 0 0 1.25rem; flex: 1; }
.home .btn-res { display: inline-flex; align-items: center; gap: .4rem; background: var(--res-bg, rgba(37,99,235,.12)); border: 1px solid var(--res-border, rgba(37,99,235,.25)); color: var(--res-color, var(--blue-glow)); font-weight: 700; font-size: .8rem; border-radius: 50px; padding: .45rem 1rem; text-decoration: none; transition: var(--trans); align-self: flex-start; }
.home .btn-res:hover { filter: brightness(1.2); }

.home .cta-section { position: relative; z-index: 1; padding: 5rem 0; border-top: 1px solid var(--glass-bord); }
.home .cta-box { background: linear-gradient(135deg, rgba(37,99,235,.18) 0%, rgba(6,182,212,.1) 100%); border: 1px solid rgba(37,99,235,.3); border-radius: var(--radius-xl); padding: 3.5rem 3rem; text-align: center; position: relative; overflow: hidden; box-shadow: 0 0 60px rgba(37,99,235,.15); }
.home .cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(96,165,250,.7), transparent); }
.home .cta-box h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--txt); margin-bottom: 1rem; line-height: 1.15; }
.home .cta-box .cta-sub { color: var(--txt-2); font-size: .97rem; margin-bottom: 1.75rem; }
.home .cta-checklist { display: flex; flex-wrap: wrap; gap: .65rem 2rem; justify-content: center; margin-bottom: 2rem; }
.home .cta-checklist li { display: flex; align-items: center; gap: .5rem; color: var(--txt-2); font-size: .9rem; list-style: none; }
.home .cta-checklist li i { color: var(--green); font-size: .85rem; }

.home .contact-section { position: relative; z-index: 1; border-top: 1px solid var(--glass-bord); padding: 5rem 0; }
.home .contact-card { background: var(--glass); border: 1px solid var(--glass-bord); border-radius: var(--radius-xl); padding: 2rem; height: 100%; }
.home .contact-card h5 { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--txt); margin-bottom: 1.25rem; }
.home .contact-item { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; color: var(--txt-2); font-size: .9rem; }
.home .contact-item i { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; background: rgba(37,99,235,.15); color: var(--blue-glow); display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.home .contact-item a { color: var(--txt-2); text-decoration: none; transition: var(--trans); }
.home .contact-item a:hover { color: var(--yellow); }

@media (max-width: 767px) {
  .home .hero { padding: 3.5rem 0 3rem; }
  .home .hero-card-float { margin-top: 2.5rem; max-width: 100%; }
  .home .lp-section { padding: 3.5rem 0; }
  .home .cta-box { padding: 2.5rem 1.5rem; }
  .home .pricing-table th,
  .home .pricing-table td { padding: .75rem .6rem; font-size: .82rem; }
  .home .why-bg { padding: 1.75rem 1.25rem; }
}

/* ===== BLOG ===== */
.blog-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }
.blog-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.blog-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: var(--trans); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.blog-thumb { height: 200px; overflow: hidden; flex-shrink: 0; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-date { font-size: .78rem; color: var(--txt-3); margin-bottom: .5rem; }
.blog-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: .6rem; color: var(--txt-1); }
.blog-excerpt { font-size: .88rem; color: var(--txt-2); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.blog-read-more { font-size: .82rem; font-weight: 700; color: var(--blue); margin-top: auto; }

/* Blog sadržaj (single clanak) */
.blog-content {
  color: #c8d8f0;
  font-size: 1rem;
  line-height: 1.9;
  font-family: var(--font-body);
  max-width: 720px;
}
.blog-content * { font-family: var(--font-body) !important; }
.blog-content span[style*="font-size"] { font-size: revert !important; }
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: var(--font-head);
  color: #f0f6ff;
  font-weight: 700;
  line-height: 1.25;
  margin: 2.25rem 0 .85rem;
}
.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.55rem; border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom: .5rem; }
.blog-content h3 { font-size: 1.2rem; color: var(--blue-light); }
.blog-content h4 { font-size: 1rem; color: var(--txt-2); text-transform: uppercase; letter-spacing: .06em; }
.blog-content p  { margin-bottom: 1.4rem; }
.blog-content ul,
.blog-content ol {
  padding-left: 1.6rem; margin-bottom: 1.4rem;
}
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content ul li::marker,
.blog-content ol li::marker { color: var(--blue-light); font-weight: 700; }
.blog-content li { margin-bottom: .55rem; }
.blog-content img {
  max-width: 100%; border-radius: var(--radius-lg);
  margin: 1.75rem auto; display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.blog-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(37,99,235,.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #a0bce0;
}
.blog-content a { color: var(--blue-light); text-decoration: underline; text-decoration-thickness: 1px; }
.blog-content a:hover { color: #fff; }
.blog-content strong { color: #f0f6ff; font-weight: 700; }
.blog-content em { color: #a0bce0; }
.blog-content code {
  background: rgba(255,255,255,.07); padding: .18rem .5rem;
  border-radius: 5px; font-size: .88em; color: var(--cyan);
}
.blog-content hr {
  border: none; border-top: 1px solid rgba(255,255,255,.08);
  margin: 2.5rem 0;
}

/* ===== SKRIPTE ZA FAKULTET ===== */
.skripte-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }

/* Layout: sidebar + grid */
.skripte-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .skripte-layout { grid-template-columns: 1fr; } }

/* Filter sidebar */
.skripte-filters { position: sticky; top: 90px; }
.filter-box {
  background: var(--glass); border: 1px solid var(--glass-bord);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: .75rem;
}
.filter-title { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-2); margin-bottom: .75rem; }
.sort-options { display: flex; flex-direction: column; gap: .3rem; }
.sort-opt {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .6rem; border-radius: 6px; cursor: pointer;
  font-size: .85rem; color: var(--txt-2); transition: var(--trans);
}
.sort-opt input { display: none; }
.sort-opt.active,.sort-opt:hover { background: rgba(37,99,235,.12); color: var(--blue); }
.filter-list { display: flex; flex-direction: column; gap: .25rem; max-height: 360px; overflow-y: auto; }
.filter-check-item { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .35rem .5rem; border-radius: 6px; transition: var(--trans); }
.filter-check-item:hover { background: rgba(255,255,255,.04); }
.filter-check-item input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }
.filter-check-label { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: .85rem; color: var(--txt-2); }
.filter-cnt { font-size: .75rem; background: var(--glass); border: 1px solid var(--glass-bord); border-radius: 20px; padding: .1rem .45rem; color: var(--txt-3); }
.filter-clear { display: inline-block; color: rgba(239,68,68,.8); font-size: .8rem; text-decoration: none; margin-top: .5rem; }
.filter-clear:hover { color: #ef4444; }

/* Results bar */
.skripte-results-bar { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--glass-bord); }

/* Grid skripti */
.skripte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }

/* Skripta kartica */
.skr-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: var(--trans); }
.skr-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.skr-card-head {
  padding: 1.1rem 1.25rem .8rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--glass-bord);
}
.skr-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(37,99,235,.12); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.1rem; flex-shrink: 0;
}
.skr-smer-tag {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--blue); background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.2);
  border-radius: 20px; padding: .2rem .65rem; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.skr-card-body { padding: 1rem 1.25rem; flex: 1; }
.skr-title { font-size: .98rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; color: var(--txt-1); }
.skr-desc { font-size: .82rem; color: var(--txt-2); line-height: 1.6; margin-bottom: .75rem; }
.skr-meta { display: flex; gap: 1rem; font-size: .75rem; color: var(--txt-3); }
.skr-meta i { margin-right: .25rem; }
.skr-card-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--glass-bord); }
.skr-download-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: .55rem 1rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: var(--trans); border: none; cursor: pointer;
}
.skr-download-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; text-decoration: none; }
.skr-download-locked {
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-bord);
  color: var(--txt-2) !important;
}
.skr-download-locked:hover { background: rgba(255,255,255,.08); }

/* Status badges (korisnik dashboard) */
.skr-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.skr-badge-wait { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }
.skr-badge-ok   { background: rgba(16,185,129,.12); color: #10b981; border: 1px solid rgba(16,185,129,.2); }
.skr-badge-rej  { background: rgba(239,68,68,.1);   color: #ef4444; border: 1px solid rgba(239,68,68,.2); }

/* Delete dugme na mojim skriptama */
.skr-delete-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: 8px; font-size: .78rem; font-weight: 500;
  background: rgba(239,68,68,.08); color: #ef4444;
  border: 1px solid rgba(239,68,68,.25);
  cursor: pointer; transition: var(--trans); white-space: nowrap;
}
.skr-delete-btn:hover {
  background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.5);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,.2);
}

/* Upload area */
.skr-upload-area {
  position: relative; border: 2px dashed var(--glass-bord); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center; transition: var(--trans); cursor: pointer;
  background: rgba(0,0,0,.04); color: var(--txt-2); font-size: .88rem;
}
.skr-upload-area:hover { border-color: var(--blue); background: rgba(37,99,235,.05); }

/* Alert glass */
.alert-glass { padding: .85rem 1.1rem; border-radius: var(--radius); font-size: .9rem; }
.alert-glass-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: #10b981; }
.alert-glass-danger  { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #ef4444; }

/* Moje skripte grid na dashboardu */
@media (max-width: 768px) {
  .skripte-layout { grid-template-columns: 1fr; }
  .skripte-grid { grid-template-columns: 1fr; }
}

/* ===== O NAMA ===== */
.onama-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }
.onama-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: .75rem;
}
.onama-h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1rem; color: var(--txt);
}
.onama-sub { color: var(--txt-2); font-size: 1.05rem; max-width: 520px; line-height: 1.7; }

/* Hero layout */
.onama-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.onama-hero-img { border-radius: var(--radius-lg); overflow: hidden; }
.onama-hero-img img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }

/* Kartice */
.onama-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.onama-card { padding: 2rem; }
.onama-card h3 { font-size: 1.05rem; font-weight: 700; margin: .85rem 0 .6rem; color: var(--txt); }
.onama-card p { color: var(--txt-2); font-size: .9rem; line-height: 1.75; }
.onama-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.2);
  display: flex; align-items: center; justify-content: center; color: var(--blue-light);
}

/* Stat bar */
.onama-stats {
  display: flex; align-items: center; justify-content: space-around;
  padding: 2rem; gap: 1rem;
}
.onama-stat { text-align: center; }
.onama-stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--blue-light); }
.onama-stat-lbl { font-size: .8rem; color: var(--txt-3); margin-top: .2rem; }
.onama-stat-div { width: 1px; height: 40px; background: var(--glass-bord); }

@media (max-width: 900px) {
  .onama-hero  { grid-template-columns: 1fr; }
  .onama-grid  { grid-template-columns: 1fr; }
  .onama-stats { flex-wrap: wrap; gap: 1.5rem; }
  .onama-stat-div { display: none; }
}

/* ===== KONTAKT ===== */
.kontakt-section { position: relative; z-index: 1; padding: 3rem 0 5rem; }
.kontakt-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start;
}
.kontakt-info { display: flex; flex-direction: column; gap: 1rem; }
.kontakt-info-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
}
.kontakt-info-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.18);
  display: flex; align-items: center; justify-content: center; color: var(--blue-light);
}
.kontakt-info-title { font-size: .75rem; color: var(--txt-3); margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .06em; }
.kontakt-info-val { color: var(--txt); font-weight: 600; font-size: .92rem; text-decoration: none; transition: var(--trans); }
.kontakt-info-val:hover { color: var(--blue-light); }

/* Success state */
.kontakt-success {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 3rem 1rem; gap: .75rem;
}
.kontakt-success h4 { font-size: 1.3rem; font-weight: 700; color: var(--txt); }
.kontakt-success p  { color: var(--txt-2); }

@media (max-width: 900px) {
  .kontakt-layout { grid-template-columns: 1fr; }
}

/* ===== VERIFIKACIJA ===== */
.verif-status-banner {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid;
}
.verif-ok  { background: rgba(16,185,129,.08);  border-color: rgba(16,185,129,.25); }
.verif-wait{ background: rgba(245,158,11,.08);  border-color: rgba(245,158,11,.25); }
.verif-rej { background: rgba(239,68,68,.07);   border-color: rgba(239,68,68,.2); }

/* Verified badge inline pored imena */
.verif-badge-inline {
  display: inline-flex; align-items: center;
  margin-left: .3rem; vertical-align: middle;
}

/* Sidebar badges */
.sb-badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 20px; margin-left: .35rem;
  vertical-align: middle; letter-spacing: .03em;
}
.sb-badge-warn { background: rgba(245,158,11,.2); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.sb-badge-ok   { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid rgba(16,185,129,.25); }
.sb-badge-rej  { background: rgba(239,68,68,.12); color: #ef4444; border: 1px solid rgba(239,68,68,.2); }
        