/* ==========================================================================
   CursTikTok Monetizare — design system
   Paleta si estetica preluate din materialele vizuale ale cursului.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* fundal */
  --bg-0: #030705;
  --bg-1: #060d09;
  --bg-2: #0a140e;
  --panel: rgba(10, 24, 15, 0.72);
  --panel-solid: #0a170f;

  /* verde neon */
  --neon: #39ff88;
  --neon-2: #6cff5c;
  --neon-soft: #a8ffc6;
  --neon-dim: rgba(57, 255, 136, 0.42);
  --neon-line: rgba(57, 255, 136, 0.22);
  --neon-glow: rgba(57, 255, 136, 0.55);

  --text: #eafff2;
  --text-dim: #9dbfab;
  --text-mute: #6b8b78;

  --danger: #ff5470;
  --gold: #ffd166;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;

  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------------------- fundal ambiental ---------------------------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -5%, rgba(57, 255, 136, 0.16), transparent 65%),
    radial-gradient(700px 500px at 100% 25%, rgba(57, 255, 136, 0.09), transparent 60%),
    radial-gradient(700px 500px at 0% 70%, rgba(57, 255, 136, 0.07), transparent 60%),
    var(--bg-0);
}
.bg-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
}
.bg-fx::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ------------------------------- tipografie ------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.12;          /* loc pentru diacriticele romanesti (Ă Â Î Ș Ț) */
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }

.glow-text {
  color: #fff;
  text-shadow:
    0 0 8px rgba(57, 255, 136, 0.55),
    0 0 26px rgba(57, 255, 136, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.6);
}
.neon { color: var(--neon); }
.neon-glow {
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-glow), 0 0 34px rgba(57, 255, 136, 0.35);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon);
  opacity: 0.85;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  max-width: 62ch;
}

a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------------- layout -------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head .lead { margin: 14px auto 0; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-line) 20%, var(--neon-dim) 50%, var(--neon-line) 80%, transparent);
}

/* ------------------------------- navigatie -------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 8, 5, 0.78);
  border-bottom: 1px solid var(--neon-line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.6px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--neon-dim);
  border-radius: 8px;
  background: rgba(57, 255, 136, 0.08);
  box-shadow: 0 0 14px rgba(57, 255, 136, 0.28) inset, 0 0 12px rgba(57, 255, 136, 0.18);
  font-size: 15px;
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--neon); }
/* butoanele din nav nu trebuie sa mosteneasca culoarea linkurilor */
.nav-links a.btn-primary { color: #03170b; }
.nav-links a.btn-ghost { color: var(--neon); }

.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--text-dim);
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--neon), #0b7a3c);
  color: #041007; font-weight: 800; font-size: 0.8rem;
}

/* -------------------------------- butoane --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(140deg, var(--neon-2), var(--neon) 55%, #14c464);
  color: #03170b;
  box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.5), 0 10px 30px rgba(57, 255, 136, 0.24);
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--neon), 0 14px 44px rgba(57, 255, 136, 0.42); }

.btn-ghost {
  background: rgba(57, 255, 136, 0.06);
  border-color: var(--neon-dim);
  color: var(--neon);
}
.btn-ghost:hover { background: rgba(57, 255, 136, 0.13); }

.btn-lg { padding: 17px 38px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* --------------------------- carduri tip terminal -------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--neon-line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  overflow: hidden;
  position: relative;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.panel:hover {
  border-color: var(--neon-dim);
  box-shadow: 0 0 32px rgba(57, 255, 136, 0.13);
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: rgba(57, 255, 136, 0.07);
  border-bottom: 1px solid var(--neon-line);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
}
.panel-bar .dots { letter-spacing: 3px; opacity: 0.65; }
.panel-body { padding: 22px; }

/* colturi decorative */
.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--neon-dim);
  pointer-events: none;
}
.corner-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.corner-frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ---------------------------------- HERO ---------------------------------- */

.hero { padding: clamp(46px, 7vw, 86px) 0 clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--neon-line);
  background: rgba(57, 255, 136, 0.07);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--neon-soft);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 1.9s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
}
.price-now {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  color: var(--neon);
  text-shadow: 0 0 18px var(--neon-glow);
  line-height: 1;
}
.price-old {
  font-size: 1.2rem;
  color: var(--text-mute);
  text-decoration: line-through;
}
.price-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: none;
  letter-spacing: 0;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--neon-line);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--neon);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 5px;
}

/* rama pentru coperta */
.cover-frame {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(57, 255, 136, 0.34), rgba(57, 255, 136, 0.04) 45%, rgba(57, 255, 136, 0.24));
  box-shadow: 0 0 70px rgba(57, 255, 136, 0.22);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.cover-frame img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 136, 0.28);
}
.cover-ribbon {
  position: absolute;
  top: 22px; right: -10px;
  background: linear-gradient(140deg, var(--neon-2), var(--neon));
  color: #04170a;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  padding: 7px 18px;
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(57, 255, 136, 0.4);
  text-transform: uppercase;
}

/* ------------------------------ grid features ------------------------------ */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--neon-line);
  background: rgba(57, 255, 136, 0.08);
  font-size: 22px;
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(57, 255, 136, 0.14) inset;
}
.feature h3 { margin-bottom: 9px; color: #fff; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* --------------------------------- module --------------------------------- */

.module-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(57, 255, 136, 0.1);
  transition: background 0.2s;
}
.module-row:last-child { border-bottom: 0; }
.module-row:hover { background: rgba(57, 255, 136, 0.045); }
.module-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon);
  min-width: 48px;
  opacity: 0.75;
  line-height: 1.1;
}
.module-row h3 { font-size: 1.05rem; color: #fff; margin-bottom: 5px; }
.module-row p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.module-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: var(--neon);
  border: 1px solid var(--neon-line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
  align-self: center;
}

/* -------------------------------- checklist ------------------------------- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.checklist li::before {
  content: '\2713';
  flex: none;
  width: 21px; height: 21px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: rgba(57, 255, 136, 0.13);
  border: 1px solid var(--neon-dim);
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 800;
}
.checklist strong { color: var(--text); font-weight: 600; }

/* ------------------------------- testimoniale ------------------------------ */

.quote { font-size: 0.95rem; color: var(--text-dim); font-style: italic; margin: 0 0 16px; }
.person { display: flex; align-items: center; gap: 11px; }
.person .avatar { width: 36px; height: 36px; font-size: 0.9rem; }
.person b { display: block; font-size: 0.88rem; color: var(--text); font-style: normal; }
.person span { font-size: 0.75rem; color: var(--text-mute); }
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------------------------------- FAQ ----------------------------------- */

.faq-item { border-bottom: 1px solid rgba(57, 255, 136, 0.12); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 19px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-q:hover { color: var(--neon); }
.faq-q .sign { color: var(--neon); font-size: 1.3rem; flex: none; transition: transform 0.22s; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dim);
  font-size: 0.93rem;
  padding: 0 4px;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 4px 20px; }

/* --------------------------------- pretul --------------------------------- */

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--neon-dim);
  box-shadow: 0 0 60px rgba(57, 255, 136, 0.18);
}
.pricing-card .panel-body { padding: 38px 32px 34px; }
.pricing-card .price-tag { justify-content: center; margin: 8px 0 6px; }
.pricing-card .checklist { text-align: left; margin: 26px 0 28px; }

/* -------------------------------- formulare -------------------------------- */

.auth-wrap {
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  padding: 46px 22px;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card .panel-body { padding: 30px 30px 34px; }

.tabs { display: flex; gap: 6px; margin-bottom: 26px; background: rgba(57,255,136,0.05); padding: 5px; border-radius: 10px; }
.tab {
  flex: 1;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s;
}
.tab.active { background: rgba(57, 255, 136, 0.16); color: var(--neon); box-shadow: 0 0 0 1px var(--neon-dim); }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(57, 255, 136, 0.2);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.14);
}
.field input::placeholder { color: #4d6a59; }

/* acordul GDPR de la inregistrare */
.acord {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
  cursor: pointer;
}
.acord input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--neon);
  cursor: pointer;
}
.acord a { text-decoration: underline; }

.alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.87rem;
  margin-bottom: 15px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(255, 84, 112, 0.12); border: 1px solid rgba(255, 84, 112, 0.4); color: #ff9fb0; }
.alert-ok { background: rgba(57, 255, 136, 0.1); border: 1px solid var(--neon-dim); color: var(--neon-soft); }

.form-note { font-size: 0.78rem; color: var(--text-mute); text-align: center; margin-top: 16px; }

/* -------------------------------- dashboard -------------------------------- */

.dash-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}
.locked-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.locked-visual img { display: block; width: 100%; filter: blur(9px) brightness(0.45); transform: scale(1.06); }
.locked-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(3, 8, 5, 0.55);
}
.lock-ico { font-size: 34px; margin-bottom: 8px; }

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(57, 255, 136, 0.12);
  overflow: hidden;
  margin: 10px 0 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-2), var(--neon));
  box-shadow: 0 0 14px var(--neon-glow);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(57,255,136,0.14); font-size: 0.86rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--text-mute); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1.2px; text-transform: uppercase; }
.kv b { color: var(--text); font-weight: 600; }

/* checkout */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 6, 4, 0.86);
  backdrop-filter: blur(7px);
  display: none;
  padding: 22px;
  overflow-y: auto;           /* modalul ramane accesibil pe ecrane mici */
}
.modal-backdrop.show {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: safe center;
}
.modal { width: 100%; max-width: 470px; animation: pop 0.24s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; }
.pay-total { border-top: 1px solid var(--neon-line); margin-top: 8px; padding-top: 16px; font-size: 1.15rem; }
.pay-total b { color: var(--neon); font-family: var(--font-display); font-size: 1.7rem; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(3, 23, 11, 0.35);
  border-top-color: #03170b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------- cursul --------------------------------- */

.course-nav {
  position: sticky;
  top: 62px;
  z-index: 40;
  background: rgba(3, 8, 5, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neon-line);
  padding: 11px 0;
}
.course-nav .wrap { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.course-nav .wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--neon-line);
  background: rgba(57, 255, 136, 0.05);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}
.chip:hover, .chip.active { color: var(--neon); border-color: var(--neon-dim); background: rgba(57, 255, 136, 0.13); text-decoration: none; }

.lesson-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 136, 0.22);
  box-shadow: 0 0 44px rgba(57, 255, 136, 0.14);
}
.lesson-block { margin-bottom: 46px; }
.lesson-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.lesson-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #03170b;
  background: var(--neon);
  border-radius: 5px;
  padding: 4px 11px;
  font-weight: 700;
}

.video-shell {
  border: 1px solid var(--neon-dim);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(57, 255, 136, 0.1), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 70px rgba(57, 255, 136, 0.2);
}
.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;          /* merge si pentru video vertical, si pentru orizontal */
  min-height: 240px;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}
.video-missing {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(57,255,136,0.05) 0 12px, transparent 12px 24px),
    rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px;
  border: 1px dashed var(--neon-dim);
}
.video-missing code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon);
  background: rgba(57, 255, 136, 0.1);
  padding: 3px 9px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 8px;
}

.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: flex;
  gap: 15px;
  padding: 16px 18px;
  border-radius: 11px;
  border: 1px solid rgba(57, 255, 136, 0.14);
  background: rgba(10, 24, 15, 0.5);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--neon);
  opacity: 0.7;
  flex: none;
}
.step b { display: block; color: #fff; font-size: 0.97rem; margin-bottom: 3px; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.89rem; }

/* ------------------------------ pagini legale ------------------------------ */

.legal { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.legal .actualizat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 1.25rem;
  color: var(--neon);
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--neon-line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1rem; color: #fff; margin: 22px 0 8px; text-transform: none; font-family: var(--font-body); font-weight: 700; }
.legal p { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 14px; }
.legal ul, .legal ol { color: var(--text-dim); font-size: 0.95rem; padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal a { text-decoration: underline; }
.legal .caseta {
  background: rgba(57, 255, 136, 0.06);
  border: 1px solid var(--neon-line);
  border-left: 3px solid var(--neon);
  border-radius: 9px;
  padding: 16px 18px;
  margin: 20px 0;
}
.legal .caseta p:last-child { margin-bottom: 0; }
.legal .completeaza {
  background: rgba(255, 209, 102, 0.09);
  border: 1px dashed rgba(255, 209, 102, 0.5);
  color: var(--gold);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-mute); font-size: 0.8rem; text-decoration: none; }
.footer-links a:hover { color: var(--neon); }

/* --------------------------------- footer --------------------------------- */

.footer {
  border-top: 1px solid var(--neon-line);
  padding: 40px 0 30px;
  margin-top: 30px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer p { margin: 0; color: var(--text-mute); font-size: 0.8rem; }
.footer .marquee-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1.5px; color: var(--neon); opacity: 0.6; }

/* ------------------------------- animatii scroll --------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------- bara sus -------------------------------- */

.topbar {
  background: linear-gradient(90deg, rgba(57,255,136,0.16), rgba(57,255,136,0.06), rgba(57,255,136,0.16));
  border-bottom: 1px solid var(--neon-line);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--neon-soft);
}

/* -------------------------------- responsive ------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cover-frame { max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dash-hero { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .module-tag { display: none; }
  .course-nav { top: 56px; }

  /* navigatia trebuie sa incapa pe un ecran de telefon */
  .nav-inner { padding: 10px 14px; gap: 10px; }
  .nav-links { gap: 10px; min-width: 0; }
  .nav-links a.hide-sm { display: none; }
  .nav-links .btn { padding: 8px 13px; font-size: 0.78rem; }
  .logo { font-size: 1rem; gap: 7px; }
  .logo-mark { width: 26px; height: 26px; font-size: 13px; }
  .topbar { font-size: 0.6rem; letter-spacing: 1px; }
}
