/* ==========================================================================
   Move Motion — main.css
   Felépítés (modular): 1 Reset · 2 Tokens · 3 Layout · 4 Header · 5 Modulok
   6 Űrlapok · 7 Lábléc · 8 Állapotok · 9 Mozgóképek · 10 Töréspontok
   ========================================================================== */

/* -- 1. Reset (opinionated) ----------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* -- 2. Tokens (theme-system) --------------------------------------------- */
:root {
  --bg-primary: #0b1220;
  --bg-secondary: #111a2e;
  --bg-tertiary: #1a253b;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.34);
  --surface: #111a2e;
  --surface-raised: #1a253b;

  /* viewport-units — a méretek a nézetablakhoz igazodnak */
  --step-1: clamp(0.35rem, 0.6vw, 0.55rem);
  --step-2: clamp(0.6rem, 1vw, 0.9rem);
  --step-3: clamp(0.9rem, 1.6vw, 1.35rem);
  --step-4: clamp(1.3rem, 2.6vw, 2.1rem);
  --step-5: clamp(2rem, 4.4vw, 3.4rem);
  --gutter: clamp(1rem, 3.2vw, 2.4rem);
  --shell-max: 76rem;

  --radius: 0.5rem;
  --radius-lg: 1rem;
  --transition: 0.28s ease;
  --shadow: 0 1.4vw 3.4vw rgba(2, 6, 16, 0.55);
  --font-body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --font-head: 'Oswald', 'Roboto Condensed', 'Segoe UI', sans-serif;
}

:root[data-theme="dark"] {
  --bg-primary: #070d18;
  --bg-secondary: #0d1526;
  --surface: #0d1526;
  --surface-raised: #162034;
}

:root[data-theme="light"] {
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8edf7;
  --text-primary: #101a2c;
  --text-secondary: #45536b;
  --text-muted: #6b7890;
  --line: rgba(16, 26, 44, 0.14);
  --line-strong: rgba(16, 26, 44, 0.26);
  --surface: #ffffff;
  --surface-raised: #eef2fa;
  --shadow: 0 1.4vw 3.4vw rgba(16, 26, 44, 0.12);
}

/* -- 3. Layout (flexbox-column, grid-nested) ------------------------------ */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  line-height: 1.7;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.14;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.15rem); }

p { margin-bottom: var(--step-2); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-primary); font-weight: 500; }

.l-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.l-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* newspaper — tömör, tagolt függőleges ritmus */
.l-section {
  display: flex;
  flex-direction: column;
  padding-block: var(--step-5);
  background: var(--bg-secondary);
  border-top: 1px solid var(--line);
}

.l-section:nth-of-type(odd) { background: #0e1626; }
:root[data-theme="light"] .l-section:nth-of-type(odd) { background: var(--bg-tertiary); }

.l-section-head {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  margin-bottom: var(--step-4);
  max-width: 46rem;
}

.l-eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.l-lead { color: var(--text-secondary); }

.l-grid { display: grid; gap: var(--step-3); }

/* -- 4. Header (hamburger-menu + slide-right modul) ----------------------- */
.l-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid var(--line);
}

/* A háttér és az elmosás külön rétegen ül: a backdrop-filter magán a fejlécen
   containing blockot csinálna a position:fixed mobilmenünek, ami vízszintes
   görgetést okoz mobilon. Pszeudoelemen a hatás ugyanaz, a mellékhatás nincs. */
.l-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(0.8vw);
}

:root[data-theme="light"] .l-topbar::before { background: rgba(255, 255, 255, 0.94); }

.l-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-3);
  min-height: clamp(3.6rem, 6vw, 4.6rem);
}

.l-topbar-logo {
  display: flex;
  align-items: center;
  gap: var(--step-2);
}

/* A logo.svg 210×64-es szóvédjegy, nem négyzetes ikon — szélességre kell
   méretezni, különben a felirat olvashatatlan pacává zsugorodik. */
.l-topbar-logo img { width: clamp(8.5rem, 20vw, 10.5rem); height: auto; }

.l-topbar-logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.l-topbar-logo-text span:last-child { color: var(--accent); }

.l-topbar-list { display: flex; }

/* Csak megjelenés — a nav elhelyezését a mobilmenü modul kezeli */
.l-topbar-nav { font-family: var(--font-head); }
.l-topbar-item { list-style: none; }

.l-topbar-link {
  font-family: var(--font-head);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.l-topbar-link:hover,
.l-topbar-link.is-active { color: var(--accent); }

.l-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--step-2);
}

.l-topbar-toggle span { background: var(--text-primary); border-radius: 2px; }

.l-topbar-close { color: var(--text-primary); }

/* -- 5. Modulok ------------------------------------------------------------ */

/* 5.1 Nyitóképernyő — split-right-text + streaming-split-hero */
.dashboard-header {
  display: flex;
  flex-direction: column;
  padding-block: var(--step-5);
  background:
    radial-gradient(85vw 55vw at 12% 0%, rgba(59, 130, 246, 0.16), transparent 62%),
    var(--bg-primary);
  border-bottom: 1px solid var(--line);
}

.dashboard-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--step-5);
  align-items: center;
}

.dashboard-header-media {
  order: -1;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.dashboard-header-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(11, 18, 32, 0.15), rgba(11, 18, 32, 0.75));
}

.dashboard-header-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-header-play span {
  width: clamp(3.4rem, 7vw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  transition: transform var(--transition), background var(--transition);
}

.dashboard-header-media:hover .dashboard-header-play span {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-header-tag {
  position: absolute;
  left: var(--step-2);
  bottom: var(--step-2);
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(11, 18, 32, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: var(--text-primary);
}

.dashboard-header-copy {
  display: flex;
  flex-direction: column;
  gap: var(--step-3);
}

.dashboard-header-copy p { color: var(--text-secondary); font-size: clamp(1rem, 1.3vw, 1.12rem); }

.dashboard-header-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-2);
}

.dashboard-header-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-3);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dashboard-header-trust li { display: flex; align-items: center; gap: 0.4rem; }
.dashboard-header-trust li::before { content: "•"; color: var(--accent); }

/* 5.2 Mérőszámok */
.stats-dashboard .l-grid { grid-template-columns: repeat(4, 1fr); }

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  padding: var(--step-3);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-tile-value {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--accent);
  line-height: 1;
}

.stat-tile-label {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* 5.3 Bemutatkozó panel */
.info-panel .info-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--step-5);
  align-items: center;
}

.info-panel-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.info-panel-body { display: flex; flex-direction: column; gap: var(--step-2); }
.info-panel-body p { color: var(--text-secondary); }

.info-panel-points {
  display: flex;
  flex-direction: column;
  gap: var(--step-2);
  margin-top: var(--step-2);
}

.info-panel-points li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-secondary);
}

.info-panel-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* 5.4 Kiemelt tartalom — studio-sidebar */
.content-widget { overflow: hidden; }

.content-widget-layout {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: var(--step-4);
}

.content-widget-main { display: flex; flex-direction: column; gap: var(--step-3); }

.content-widget-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  background: var(--surface-raised);
}

.content-widget-stage .thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-widget-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 18, 32, 0.1), rgba(11, 18, 32, 0.7));
}

.content-widget-stage .dashboard-header-play { z-index: 3; }

.content-widget-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-2);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.content-widget-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: start;
  position: sticky;
  top: 6rem;
  max-height: 34rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.content-widget-side-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.video-card:hover {
  background: var(--surface-raised);
  border-color: var(--line);
}

.video-card-thumb {
  position: relative;
  flex: 0 0 7.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 0.35rem;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.video-card-thumb .thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  background: rgba(7, 13, 24, 0.86);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  letter-spacing: 0.04em;
}

.video-lock {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 13, 24, 0.8);
  font-size: 0.6rem;
}

.video-card-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.video-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--text-primary);
}

.video-card-meta { font-size: 0.78rem; color: var(--text-muted); }

/* 5.5 Kategóriák */
.category-panel .l-grid { grid-template-columns: repeat(3, 1fr); }

.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  padding: var(--step-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}

.category-card:hover { border-color: var(--accent); transform: translateY(-0.2rem); }
.category-card h3 { text-transform: none; letter-spacing: 0; }
.category-card p { color: var(--text-secondary); font-size: 0.92rem; }

.category-card-meta {
  display: flex;
  gap: var(--step-2);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 5.6 Videótár */
.library-browser { scroll-margin-top: 6rem; }

.library-browser-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-2);
  align-items: center;
  margin-bottom: var(--step-3);
}

.library-search {
  flex: 1 1 14rem;
  padding: 0.7rem 0.95rem;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
}

.library-search::placeholder { color: var(--text-muted); }

.library-filter {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}

.library-filter:hover { border-color: var(--accent); color: var(--text-primary); }
.library-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--step-3); }

.library-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.library-card:hover { border-color: var(--accent); transform: translateY(-0.2rem); }

.library-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
}

.library-card-thumb .thumbnail-img { width: 100%; height: 100%; object-fit: cover; }

.library-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: var(--step-2);
}

.library-card-body h3 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.library-card-body p { font-size: 0.88rem; color: var(--text-secondary); }
.library-card-meta { font-size: 0.78rem; color: var(--text-muted); }

.library-empty {
  padding: var(--step-4);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* 5.7 Kurzusok (gradient-fill kártyák) */
.course-panel .l-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  /* Sötétebb kék→lila átmenet: a világosabb változaton a fehér szövegek
     (meta sor, bekezdés) nem érték el a 4.5:1 kontrasztarányt. */
  background: linear-gradient(135deg, #1e40af, #6d28d9);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--step-3);
  display: flex;
  flex-direction: column;
  gap: var(--step-2);
  overflow: hidden;
}

.card h3 { color: #fff; text-transform: none; letter-spacing: 0; }
.card p { color: rgba(255, 255, 255, 0.88); font-size: 0.92rem; }

.course-card-media {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  margin: calc(var(--step-3) * -1) calc(var(--step-3) * -1) 0;
}

.course-card-media img { width: 100%; height: 100%; object-fit: cover; }

.course-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-2);
  margin-top: auto;
  padding-top: var(--step-2);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.course-card-price { font-family: var(--font-head); font-size: 1.3rem; }
.course-card-length { font-size: 0.8rem; color: rgba(255, 255, 255, 0.92); }

/* 5.8 Csomagok */
.plan-selector-widget .l-grid { grid-template-columns: repeat(5, 1fr); }

.plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--step-2);
  padding: var(--step-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}

.plan-card.is-featured {
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-price {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1;
}

.plan-period { font-size: 0.82rem; color: var(--text-muted); }
.plan-note { font-size: 0.8rem; color: var(--accent); }

.plan-features { display: flex; flex-direction: column; gap: 0.4rem; margin-top: var(--step-1); }

.plan-features li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}

.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

.plan-card .btn-primary,
.plan-card .btn-ghost { margin-top: auto; text-align: center; }

/* 5.9 Szolgáltatás-jellemzők */
.features-dashboard .l-grid { grid-template-columns: repeat(4, 1fr); }

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  padding: var(--step-3);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.feature-item h3 { font-size: 1.02rem; text-transform: none; letter-spacing: 0; }
.feature-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* 5.10 Lemondás */
.policy-viewer .policy-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--step-3);
  counter-reset: policy;
}

.policy-step {
  counter-increment: policy;
  padding: var(--step-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
}

.policy-step::before {
  content: counter(policy);
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}

.policy-step h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; }
.policy-step p { font-size: 0.9rem; color: var(--text-secondary); }

.policy-note {
  margin-top: var(--step-3);
  padding: var(--step-2) var(--step-3);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* 5.11 Fizetési módok */
.payment-selector .payment-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--step-2);
}

.payment-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: var(--step-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-align: center;
}

.payment-secure {
  display: flex;
  flex-wrap: wrap;
  gap: var(--step-3);
  margin-top: var(--step-3);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.payment-secure li::before { content: "🔒 "; }

/* 5.12 Kérdések — two-column-grid */
.help-widget { scroll-margin-top: 6rem; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--step-3) var(--step-5); }

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: var(--step-3);
  border-bottom: 1px solid var(--line);
}

.faq-item .q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-primary);
}

.faq-item .a { color: var(--text-secondary); font-size: 0.94rem; }

/* 5.13 Regisztrációs felhívás */
.registration-widget {
  background:
    radial-gradient(60vw 40vw at 80% 20%, rgba(59, 130, 246, 0.2), transparent 65%),
    var(--bg-tertiary);
}

.registration-widget-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--step-3);
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.registration-widget-inner p { color: var(--text-secondary); }

.registration-urgency {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 5.14 Kapcsolat */
.message-module .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-3);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--step-1);
  padding: var(--step-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-block h3 {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.contact-block a:hover { color: var(--accent); }
.contact-block p { color: var(--text-secondary); font-size: 0.94rem; }

/* 5.15 Belső oldalak fejléce */
.page-banner {
  padding-block: var(--step-5);
  background:
    radial-gradient(70vw 40vw at 20% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    var(--bg-primary);
  border-bottom: 1px solid var(--line);
}

.page-banner-inner { display: flex; flex-direction: column; gap: var(--step-2); max-width: 48rem; }
.page-banner p { color: var(--text-secondary); }

.prose { max-width: 46rem; display: flex; flex-direction: column; gap: var(--step-3); }
.prose h2 { margin-top: var(--step-2); }
.prose h3 { text-transform: none; letter-spacing: 0; }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul { display: flex; flex-direction: column; gap: 0.4rem; }
.prose li { padding-left: 1.2rem; position: relative; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; }

.prose-meta { font-size: 0.85rem; color: var(--text-muted); }

/* -- 6. Gombok és űrlapok -------------------------------------------------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-primary::after,
.btn-ghost::after {
  content: "→";
  display: inline-block;
  transition: transform var(--transition);
}

.btn-primary:hover::after,
.btn-ghost:hover::after { transform: translateX(0.25rem); }

.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 0.55rem 1.05rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

.form-module { display: flex; flex-direction: column; gap: var(--step-3); }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field-input {
  padding: 0.8rem 0.95rem;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.field-input:focus { border-color: var(--accent); outline: none; }
textarea.field-input { min-height: 8rem; resize: vertical; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.field-check input { margin-top: 0.3rem; flex: 0 0 auto; }
.field-check a { color: var(--accent); text-decoration: underline; }

.form-note { font-size: 0.82rem; color: var(--text-muted); }
.optional { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-alert {
  padding: var(--step-2) var(--step-3);
  border-radius: var(--radius);
  font-size: 0.92rem;
  border: 1px solid var(--line);
}

.form-alert.is-error { border-color: #f87171; color: #fca5a5; background: rgba(248, 113, 113, 0.08); }
.form-alert.is-ok { border-color: #34d399; color: #6ee7b7; background: rgba(52, 211, 153, 0.08); }

.form-errors { display: flex; flex-direction: column; gap: 0.3rem; }

/* Beúszó panel (slide-in-panel CTA + modal-popup űrlap) */
.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(28rem, 92vw);
  height: 100vh;
  height: 100dvh;
  z-index: 1400;
  background: var(--bg-secondary);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: var(--step-4) var(--step-3);
  display: flex;
  flex-direction: column;
  gap: var(--step-3);
}

.slide-panel.is-open { transform: translateX(0); }

.slide-panel-scrim {
  position: fixed;
  inset: 0;
  z-index: 1350;
  background: rgba(3, 7, 15, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.slide-panel-scrim.is-visible { opacity: 1; visibility: visible; }

.slide-panel-close {
  position: absolute;
  top: var(--step-2);
  right: var(--step-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-secondary);
}

.slide-panel-close:hover { color: var(--text-primary); }
.slide-panel h2 { font-size: 1.4rem; }
.slide-panel p { color: var(--text-secondary); font-size: 0.92rem; }

/* -- 7. Lábléc (mega-footer) ---------------------------------------------- */
.site-footer {
  background: #070d18;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
  padding-block: var(--step-5) var(--step-3);
}

:root[data-theme="light"] .site-footer { background: #101a2c; }

.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-3);
  padding-bottom: var(--step-4);
  margin-bottom: var(--step-4);
  border-bottom: 1px solid var(--line);
}

.footer-newsletter-copy { max-width: 30rem; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-newsletter-copy h2 { font-size: 1.25rem; color: var(--text-primary); }
.footer-newsletter-copy p { font-size: 0.9rem; }

.footer-newsletter-form { display: flex; gap: var(--step-2); flex-wrap: wrap; }
.footer-newsletter-form .field-input { min-width: 14rem; }

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--step-4);
}

.site-footer-col { display: flex; flex-direction: column; gap: 0.6rem; }

.site-footer-col h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--text-primary);
}

.site-footer-col a,
.site-footer-col li { font-size: 0.9rem; }
.site-footer-col a:hover { color: var(--accent); }

.site-footer-brand { display: flex; flex-direction: column; gap: var(--step-2); }
/* Ugyanaz a 210×64-es szóvédjegy, mint a fejlécben: magasságra méretezve,
   különben a felirat olvashatatlan pacává zsugorodik. */
.site-footer-brand img { height: 2rem; width: auto; }
.site-footer-brand p { font-size: 0.88rem; }

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-2);
  margin-top: var(--step-4);
  padding-top: var(--step-3);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer-legal { display: flex; flex-wrap: wrap; gap: var(--step-3); }
.site-footer-legal a:hover { color: var(--accent); }
.site-footer-disclaimer { font-size: 0.82rem; color: var(--text-muted); }

/* -- 8. Állapotok ---------------------------------------------------------- */
.is-hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -- 9. Mozgóképek (loading-animations) ----------------------------------- */
@keyframes mm-shimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}

@keyframes mm-rise {
  from { opacity: 0; transform: translateY(1.4rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes mm-spin { to { transform: rotate(360deg); } }

.is-skeleton {
  background-image: linear-gradient(
    100deg,
    var(--bg-tertiary) 30%,
    rgba(148, 163, 184, 0.16) 48%,
    var(--bg-tertiary) 66%
  );
  background-size: 220% 100%;
  animation: mm-shimmer 1.5s linear infinite;
}

.reveal { opacity: 0; }
.reveal.is-visible { animation: mm-rise 0.6s ease forwards; }

.mm-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mm-spin 0.7s linear infinite;
}

.is-loading { pointer-events: none; opacity: 0.75; }

/* Videólejátszó ablak — immersive-dim */
.video-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mm-fade 0.4s ease-in-out;
}

@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }

.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.97); }

.video-modal-player {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  filter: brightness(0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player:hover .video-modal-controls { opacity: 1; }

.video-modal-play-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 2rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.video-modal-play-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: scale(1.06);
}

.video-modal-title {
  position: absolute;
  left: 24px;
  top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.video-modal-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.video-modal-controls span:hover { color: #fff; }

.video-modal-track {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
}

.video-modal-track::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.video-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease;
}

.video-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; }
}

/* -- 10. Töréspontok (mobile-first, fullscreen-mobile) -------------------- */
@media (max-width: 1024px) {
  .stats-dashboard .l-grid,
  .features-dashboard .l-grid,
  .policy-viewer .policy-steps { grid-template-columns: repeat(2, 1fr); }
  .plan-selector-widget .l-grid { grid-template-columns: repeat(2, 1fr); }
  .category-panel .l-grid,
  .course-panel .l-grid,
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .payment-selector .payment-grid { grid-template-columns: repeat(3, 1fr); }
  .content-widget-layout { grid-template-columns: 1fr; }
  .content-widget-side { position: static; max-height: none; }
}

@media (max-width: 768px) {
  .dashboard-header-grid,
  .info-panel .info-panel-grid { grid-template-columns: 1fr; gap: var(--step-4); }
  .dashboard-header-media { order: -1; }
  .stats-dashboard .l-grid,
  .features-dashboard .l-grid,
  .policy-viewer .policy-steps,
  .plan-selector-widget .l-grid,
  .category-panel .l-grid,
  .course-panel .l-grid,
  .library-grid,
  .faq-grid,
  .message-module .contact-grid { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .payment-selector .payment-grid { grid-template-columns: repeat(2, 1fr); }

  /* fullscreen-mobile — a beúszó panel teljes képernyőt tölt */
  .slide-panel { width: 100vw; max-width: none; border-left: none; }
  .footer-newsletter-form { width: 100%; }
  .footer-newsletter-form .field-input { flex: 1 1 100%; }

  /* A kereső kapja a teljes sort, a kategóriaszűrők alá tördelődnek —
     különben a placeholder szöveg levágódik. */
  .library-search { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .site-footer-grid { grid-template-columns: 1fr; }
  .video-card-thumb { flex-basis: 6rem; }
}

/* -- 11. Mobilmenü modul (slide-right) — a modul saját, működési CSS-e ----- */
[data-mm-header]{--mm-bg:#ffffff;--mm-text:#333333;--mm-primary:#2563eb;--mm-overlay-bg:rgba(0,0,0,0.5);--mm-transition:0.3s ease}[data-mm-header]{position:relative}[data-mm-toggle]{display:flex;flex-direction:column;justify-content:center;gap:5px;background:none;border:none;cursor:pointer;padding:8px;z-index:1001}[data-mm-toggle] span{display:block;width:24px;height:2px;background:var(--mm-text);transition:var(--mm-transition)}[data-mm-menu]{position:fixed;top:0;right:0;width:280px;max-width:85vw;height:100vh;height:100dvh;background:var(--mm-bg);transform:translateX(100%);transition:transform var(--mm-transition);z-index:1100;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;padding:60px 24px 24px}[data-mm-menu].mm-open{transform:translateX(0)}[data-mm-menu] ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}[data-mm-menu] ul li a{display:block;padding:14px 0;color:var(--mm-text);text-decoration:none;font-size:16px;border-bottom:1px solid rgba(0,0,0,0.08);transition:color var(--mm-transition)}[data-mm-menu] ul li a:hover{color:var(--mm-primary)}[data-mm-close]{position:absolute;top:16px;right:16px;background:none;border:none;font-size:28px;line-height:1;cursor:pointer;color:var(--mm-text);padding:4px 8px}[data-mm-overlay]{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--mm-overlay-bg);opacity:0;visibility:hidden;transition:opacity var(--mm-transition),visibility var(--mm-transition);z-index:1050}[data-mm-overlay].mm-visible{opacity:1;visibility:visible}@media(min-width:768px){[data-mm-toggle]{display:none!important}[data-mm-menu]{position:static!important;width:auto!important;max-width:none!important;height:auto!important;background:transparent!important;transform:none!important;padding:0!important;overflow:visible!important;flex-direction:row!important}[data-mm-menu] ul{flex-direction:row;gap:0;align-items:center}[data-mm-menu] ul li a{padding:8px 16px;border-bottom:none;font-size:inherit}[data-mm-close]{display:none!important}[data-mm-overlay]{display:none!important}}@media(prefers-reduced-motion:reduce){[data-mm-menu],[data-mm-overlay],[data-mm-toggle] span{transition:none!important}}

/* A modul színváltozói a Move Motion palettájához igazítva */
[data-mm-header] {
  --mm-bg: #111a2e;
  --mm-text: #94a3b8;
  --mm-primary: #3b82f6;
  --mm-overlay-bg: rgba(3, 7, 15, 0.7);
}

/* A főgomb a mobilmenü panelbe kerül, nem a fejlécbe: 390px-en elnyomta a
   logót, és a hamburgert a sáv közepére szorította. A fejlécben csak a logó
   és a menügomb marad. */
.l-topbar-nav-cta { display: none; }

@media (max-width: 767px) {
  .l-topbar-actions { display: none; }
  .l-topbar-nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: var(--step-4);
  }
}

/* A mobilmenüben megjelenő elválasztók a sötét felülethez igazítva */
@media (max-width: 767px) {
  [data-mm-menu] ul li a { border-bottom-color: rgba(148, 163, 184, 0.18); }
  [data-mm-menu] .l-topbar-link { font-family: var(--font-head); letter-spacing: 0.11em; }
}
