/* ============ PPL Tananyag – stílus ============ */
:root {
  --navy: #16335f;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-light: #e0f2fe;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --green: #16a34a;
  --red: #dc2626;
  --ink: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(22, 51, 95, 0.08), 0 8px 24px rgba(22, 51, 95, 0.06);
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}

/* ---------- fejléc ---------- */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
}
.topbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
}
.topbar .logo svg { flex-shrink: 0; }
.topbar .logo .brand {
  font-family: var(--font-hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.topbar .spacer { flex: 1; }
.topbar .progress-pill {
  background: var(--sky-light);
  color: var(--sky-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* ---------- főoldal ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf6ff 0%, #f8fbff 55%, #fff7ef 100%);
  border-bottom: 1px solid var(--border);
  padding: 54px 24px 60px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-hand);
  font-size: clamp(44px, 7vw, 72px);
  color: var(--navy);
  line-height: 1.05;
}
.hero h1 .accent { color: var(--orange); }
.hero p.sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
}
.hero .hero-plane {
  position: absolute;
  right: -30px;
  top: 18px;
  opacity: 0.85;
  pointer-events: none;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.hero .cta-row { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.container { max-width: 1080px; margin: 0 auto; padding: 26px 22px 80px; }

.section-label {
  font-family: var(--font-hand);
  font-size: 34px;
  color: var(--navy);
  margin: 26px 0 14px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.chapter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(22, 51, 95, 0.13), 0 14px 34px rgba(22, 51, 95, 0.1);
}
.chapter-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  background: var(--sky-light);
}
.chapter-card h3 { color: var(--navy); font-size: 19px; line-height: 1.3; }
.chapter-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.chapter-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 700;
}
.chapter-card .bar {
  height: 6px;
  border-radius: 3px;
  background: #eef2f7;
  overflow: hidden;
}
.chapter-card .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--sky-dark));
  border-radius: 3px;
  transition: width 0.4s;
}
.chapter-card.exam-card { border: 2px solid var(--orange); }
.chapter-card.exam-card .icon { background: #fff1e6; }

/* ---------- gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--sky-dark); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--sky-dark); border: 2px solid var(--sky); }
.btn-ghost:hover { background: var(--sky-light); }
.btn-quiet { background: #eef2f7; color: var(--ink); }
.btn-quiet:hover { background: #e2e8f0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- fejezetnézet ---------- */
.chapter-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 80px;
}
@media (max-width: 900px) {
  .chapter-layout { grid-template-columns: 1fr; }
  .chapter-nav { position: static !important; display: flex; flex-wrap: wrap; gap: 6px; }
  .chapter-nav a { border-left: none !important; border-radius: 8px; background: #eef2f7; }
}
.chapter-nav {
  position: sticky;
  top: 76px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
}
.chapter-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-left: 3px solid var(--border);
  font-weight: 700;
}
.chapter-nav a:hover { color: var(--sky-dark); }
.chapter-nav a.active { color: var(--sky-dark); border-left-color: var(--sky); }
.chapter-nav .nav-back { margin-bottom: 12px; border-left: none; color: var(--navy); }

.chapter-head h1 {
  font-family: var(--font-hand);
  font-size: clamp(38px, 5vw, 56px);
  color: var(--navy);
  line-height: 1.05;
}
.chapter-head .lede { color: var(--muted); font-size: 17.5px; max-width: 720px; margin-top: 6px; }

.content section.learn { margin-top: 38px; scroll-margin-top: 90px; }
.content h2 {
  font-family: var(--font-hand);
  font-size: 36px;
  color: var(--navy);
  margin-bottom: 10px;
}
.content h3 { color: var(--navy); font-size: 19px; margin: 20px 0 8px; }
.content p { margin: 10px 0; }
.content ul, .content ol { margin: 10px 0 10px 24px; }
.content li { margin: 5px 0; }
.content strong { color: var(--navy); }

/* infó dobozok */
.callout {
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  border: 1px solid;
  font-size: 15.5px;
}
.callout .co-title { font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.callout.tip { background: #f0fdf4; border-color: #bbf7d0; }
.callout.tip .co-title { color: var(--green); }
.callout.warn { background: #fff7ed; border-color: #fed7aa; }
.callout.warn .co-title { color: var(--orange-dark); }
.callout.info { background: var(--sky-light); border-color: #bae6fd; }
.callout.info .co-title { color: var(--sky-dark); }
.callout.rule { background: #f5f3ff; border-color: #ddd6fe; }
.callout.rule .co-title { color: #7c3aed; }

/* képletek */
.formula {
  background: var(--navy);
  color: #e2f3ff;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 14px 0;
  font-size: 19px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 0.5px;
}
.formula small { display: block; font-family: var(--font-body); font-style: normal; font-size: 13.5px; color: #9fd6f7; margin-top: 6px; }

/* ábra keret */
.figure {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 18px 0;
  overflow-x: auto;
}
.figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  font-weight: 700;
}
.figure svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* ---------- interaktív demók ---------- */
.demo {
  background: linear-gradient(180deg, #ffffff, #f4faff);
  border: 2px solid #bae6fd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 20px 0;
}
.demo .demo-title {
  font-weight: 800;
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 4px;
}
.demo .demo-hint { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.demo .controls { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 12px 0; }
.demo .ctrl { display: flex; flex-direction: column; gap: 3px; min-width: 180px; flex: 1; }
.demo .ctrl label { font-size: 13.5px; font-weight: 800; color: var(--navy); display: flex; flex-wrap: wrap; gap: 0 5px; }
.demo .ctrl label output { margin-left: auto; }
.demo .ctrl label output { color: var(--orange-dark); }
.demo input[type=range] { width: 100%; accent-color: var(--sky); cursor: pointer; }
.demo select, .demo input[type=number] {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.demo .readout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.demo .readout .chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  min-width: 150px;
}
.demo .readout .chip b {
  display: block;
  font-size: 19px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.demo .readout .chip.hot b { color: var(--orange-dark); }
.demo svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* ---------- kvíz ---------- */
.quiz-box {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 22px 0;
}
.quiz-box .q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.quiz-box .q-count { font-size: 13.5px; font-weight: 800; color: var(--muted); }
.quiz-box .q-score { font-size: 13.5px; font-weight: 800; color: var(--sky-dark); background: var(--sky-light); border-radius: 999px; padding: 3px 12px; }
.quiz-box .q-text { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.quiz-box .answers { display: flex; flex-direction: column; gap: 9px; }
.quiz-box .ans {
  text-align: left;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 15.5px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  line-height: 1.45;
}
.quiz-box .ans:hover:not(:disabled) { border-color: var(--sky); background: var(--sky-light); }
.quiz-box .ans.correct { border-color: var(--green); background: #f0fdf4; font-weight: 700; }
.quiz-box .ans.wrong { border-color: var(--red); background: #fef2f2; }
.quiz-box .ans:disabled { cursor: default; }
.quiz-box .q-feedback { margin-top: 12px; font-weight: 800; display: none; }
.quiz-box .q-feedback.ok { display: block; color: var(--green); }
.quiz-box .q-feedback.no { display: block; color: var(--red); }
.quiz-box .q-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.quiz-box .q-progressbar { height: 7px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.quiz-box .q-progressbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--orange)); transition: width 0.3s; }

.quiz-result { text-align: center; padding: 18px 0; }
.quiz-result .big {
  font-family: var(--font-hand);
  font-size: 52px;
  color: var(--navy);
  line-height: 1.1;
}
.quiz-result .verdict { font-size: 17px; font-weight: 800; margin: 6px 0 16px; }
.quiz-result .verdict.pass { color: var(--green); }
.quiz-result .verdict.fail { color: var(--red); }

/* ---------- végigvezetett példa ---------- */
.worked {
  background: #fffdf5;
  border: 2px solid #fde68a;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 20px 0;
}
.worked .w-title { font-weight: 800; color: #b45309; display: flex; gap: 8px; align-items: center; font-size: 17px; }
.worked .w-question { font-weight: 700; margin: 10px 0 4px; font-size: 16.5px; }
.worked .w-steps { margin-top: 8px; }
.worked .w-step {
  display: none;
  border-left: 3px solid #f59e0b;
  padding: 8px 14px;
  margin: 8px 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  font-size: 15.5px;
}
.worked .w-step.shown { display: block; animation: fadein 0.3s; }
.worked .w-step .s-label { font-weight: 800; color: #b45309; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.worked .w-step.final { border-left-color: var(--green); background: #f0fdf4; }
.worked .w-step.final .s-label { color: var(--green); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- tanulókártyák ---------- */
.flash-wrap { max-width: 640px; margin: 0 auto; }
.flashcard {
  perspective: 1200px;
  height: 320px;
  cursor: pointer;
  margin: 18px 0;
}
.flashcard .fc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.flashcard .face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  font-size: 17.5px;
  overflow-y: auto;
}
.flashcard .face.front { background: var(--card); border: 2px solid var(--sky); font-weight: 700; }
.flashcard .face.back {
  background: var(--navy);
  color: #e8f6ff;
  transform: rotateY(180deg);
  font-weight: 700;
}
.flashcard .face .tag { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--sky-dark); margin-bottom: 12px; }
.flashcard .face.back .tag { color: #7dd3fc; }
.flash-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.flash-stats { text-align: center; color: var(--muted); font-weight: 700; font-size: 14.5px; margin-top: 12px; }

/* ---------- vizsga ---------- */
.exam-setup { max-width: 620px; margin: 0 auto; text-align: center; }
.exam-setup .opts { display: flex; gap: 12px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.exam-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  background: #eef2f7;
  padding: 4px 14px;
  border-radius: 999px;
}
.exam-timer.low { color: var(--red); background: #fef2f2; }
.review-item {
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  background: #fff;
  padding: 13px 16px;
  margin: 10px 0;
  font-size: 15px;
}
.review-item.was-wrong { border-left-color: var(--red); }
.review-item .ri-q { font-weight: 700; }
.review-item .ri-a { color: var(--green); font-weight: 700; margin-top: 5px; }
.review-item .ri-your { color: var(--red); margin-top: 3px; }

/* fonetikus ABC rács */
.phonetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.phonetic-grid .ph {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 9px 4px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
  user-select: none;
}
.phonetic-grid .ph:hover { border-color: var(--sky); transform: translateY(-2px); }
.phonetic-grid .ph .letter { font-size: 22px; font-weight: 800; color: var(--sky-dark); }
.phonetic-grid .ph .word { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* táblázatok */
.content table, .demo table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.content th, .demo th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 9px 13px;
  font-size: 14px;
}
.content td, .demo td { padding: 8px 13px; border-bottom: 1px solid var(--border); }
.content tr:nth-child(even) td { background: #f8fafc; }
.content tr.hl td { background: var(--sky-light) !important; font-weight: 700; }

.table-scroll { overflow-x: auto; }

footer.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 26px 20px 34px;
  font-size: 14px;
  background: #fff;
}

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.pill {
  background: var(--sky-light);
  color: var(--sky-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
}

/* légtér ábra kattintható rétegek */
.airspace-info {
  min-height: 90px;
  background: #fff;
  border: 1px dashed var(--sky);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 15px;
}
.airspace-info b { color: var(--navy); }

/* ---------- rövidítés-tooltipek ---------- */
abbr.gloss {
  text-decoration: underline dotted var(--sky-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  cursor: help;
  position: relative;
  font-style: normal;
}
/* a tooltipet JS-ből lebegtetjük, így táblázatból (overflow) sem lóg ki */
#gloss-tip {
  position: fixed;
  z-index: 300;
  background: var(--navy);
  color: #e8f6ff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  max-width: 300px;
  box-shadow: var(--shadow);
  pointer-events: none;
  display: none;
}
.abbr-expand { color: var(--muted); font-size: 0.92em; }

/* ---------- animációk, simítások ---------- */
/* SVG-elemek, amiket JS mozgat: sima átmenet, hogy ne ugráljanak */
.anim-t { transition: transform 0.35s ease; }
.anim-slow { transition: transform 0.6s ease; }
.anim-attr line, .anim-attr circle { transition: all 0.25s ease; }

/* áramvonalak: folyamatosan "áramló" szaggatás */
.flowline {
  stroke-dasharray: 10 14;
  animation: flowdash var(--flow-dur, 1.1s) linear infinite;
}
@keyframes flowdash { to { stroke-dashoffset: -24; } }

/* eső */
.rainline {
  stroke-dasharray: 10 16;
  animation: raindash 0.5s linear infinite;
}
@keyframes raindash { to { stroke-dashoffset: -26; } }

/* villám villogás */
.flashbolt { animation: boltblink 2.4s ease-in-out infinite; }
@keyframes boltblink { 0%, 88%, 100% { opacity: 0; } 90%, 96% { opacity: 1; } }

/* lassan úszó felhő */
.cloud-drift { animation: clouddrift 9s ease-in-out infinite alternate; }
@keyframes clouddrift { from { transform: translateX(0); } to { transform: translateX(16px); } }

/* pörgő légcsavar-hatás (villódzó ellipszis) */
.prop-spin { animation: propblur 0.18s linear infinite alternate; }
@keyframes propblur { from { opacity: 0.35; } to { opacity: 0.75; } }

/* kis pulzálás figyelemfelhívó pontokhoz */
.pulse-dot { animation: pulsedot 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulsedot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }

/* reakcióidő-teszt panel */
.reaction-pad {
  border-radius: 12px;
  padding: 38px 20px;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  user-select: none;
  background: var(--navy);
  transition: background 0.15s;
}
.reaction-pad.wait { background: #b45309; }
.reaction-pad.go { background: var(--green); }
.reaction-pad.done { background: var(--sky-dark); }

@media (prefers-reduced-motion: reduce) {
  .flowline, .rainline, .flashbolt, .cloud-drift, .prop-spin, .pulse-dot { animation: none; }
}

/* ---------- rádiós szimulátor ---------- */
.radio-log {
  background: #0b1220;
  border-radius: 12px;
  padding: 12px;
  height: 320px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 280px;
}
.radio-log .rl-row { margin-bottom: 10px; display: flex; gap: 8px; }
.radio-log .rl-who {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  height: fit-content;
  letter-spacing: 0.3px;
}
.radio-log .rl-row.gnd .rl-who { background: #14532d; color: #86efac; }
.radio-log .rl-row.air .rl-who { background: #1e3a5f; color: #93c5fd; }
.radio-log .rl-row.sys .rl-who { background: #422006; color: #fbbf24; }
.radio-log .rl-text { color: #e2e8f0; }
.radio-log .rl-row.gnd .rl-text { color: #bbf7d0; }
.radio-log .rl-row.air .rl-text { color: #bfdbfe; }
.radio-log .rl-row.sys .rl-text { color: #fde68a; font-style: italic; }

.rs-options { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rs-opt {
  text-align: left;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  line-height: 1.45;
}
.rs-opt:hover:not(:disabled) { border-color: var(--sky); background: var(--sky-light); }
.rs-opt.correct { border-color: var(--green); background: #f0fdf4; font-weight: 700; }
.rs-opt.wrong { border-color: var(--red); background: #fef2f2; }
.rs-opt:disabled { cursor: default; }
.rs-task {
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--orange-dark);
}
.rs-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.rs-score {
  background: var(--sky-light);
  color: var(--sky-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 14px;
}

/* PAPI lámpák */
.papi-box { display: flex; gap: 8px; justify-content: center; }
.papi-lamp {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #1f2937;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}
.papi-lamp.white { background: #f8fafc; }
.papi-lamp.red { background: #dc2626; }

/* ---------- visszajelzés-mód ---------- */
#fb-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 51, 95, 0.35);
  transition: transform 0.12s, background 0.15s;
}
#fb-fab:hover { transform: translateY(-2px); }
#fb-fab.active { background: var(--orange); }
#fb-hint {
  display: none;
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
body.fb-mode, body.fb-mode * { cursor: crosshair !important; }

.fb-pin {
  position: absolute;
  z-index: 190;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50% 50% 50% 4px;
  border: 2px solid #fff;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: rotate(-45deg);
}
.fb-pin { display: flex; align-items: center; justify-content: center; }
.fb-pin > * { transform: rotate(45deg); }
.fb-pin:hover { background: var(--orange-dark); }
.fb-pin.done { background: var(--green); width: 18px; height: 18px; margin: -9px 0 0 -9px; font-size: 10px; opacity: 0.75; }
.fb-pin.done:hover { opacity: 1; }
body.fb-hide-pins .fb-pin, body.fb-hide-pins .fb-pop { display: none !important; }
#fb-eye { position: fixed; right: 18px; bottom: 70px; z-index: 199; background: #fff; color: var(--navy); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow); cursor: pointer; }
body.fb-mode #fb-eye { display: none; }
.fb-pin.done:hover { background: #15803d; }
.fb-pop-reply {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f0fdf4;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  white-space: pre-wrap;
}
.fb-pop-reply::before { content: '✅ Válasz: '; font-weight: 800; color: var(--green); }

.fb-editor, .fb-pop {
  position: absolute;
  z-index: 210;
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 12px 14px;
  width: 300px;
  max-width: calc(100vw - 24px);
  font-family: var(--font-body);
}
.fb-editor .fb-ed-title, .fb-pop .fb-pop-meta { font-size: 13px; font-weight: 800; color: var(--orange-dark); margin-bottom: 6px; }
.fb-editor textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 8px 10px;
  resize: vertical;
  box-sizing: border-box;
}
.fb-ed-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.fb-ed-actions .btn { padding: 6px 14px; font-size: 13.5px; }
.fb-ed-status { font-size: 13px; color: var(--red); margin-top: 4px; }
.fb-pop-text { font-size: 14.5px; white-space: pre-wrap; }
.fb-pop-meta { margin-top: 6px; color: var(--muted) !important; font-weight: 600 !important; }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding: 40px 18px 44px; }
  .flashcard { height: 380px; }
}

/* ---- autogiro fejezet: gombsor, kétoszlopos demók, kérdésképek ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.btn-sm { background: #eef2f7; color: var(--ink); padding: 7px 13px; font-size: 13px; }
.btn-sm:hover { background: #e2e8f0; }
.btn-sm.active { background: var(--sky); color: #fff; }
.two-col { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.two-col > svg { max-width: 100%; height: auto; flex: 1 1 280px; }
.two-col > div { flex: 1 1 240px; }
.legend div { margin: 3px 0; }
.q-img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin: 8px 0 12px; border: 1px solid #e2e8f0; }
.rs-opt.good { border-color: #16a34a; background: #f0fdf4; color: #15803d; }

/* ---- ICAO repülési terv űrlap ---- */
.fpl-form { background: #fff; border: 2px solid #0f172a; border-radius: 6px; margin: 12px 0; font-family: "Courier New", Consolas, monospace; overflow: hidden; }
.fpl-head { background: #0f172a; color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 13px; padding: 7px 10px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.fpl-head span { font-weight: 600; font-size: 11px; opacity: 0.8; }
.fpl-sub { font-family: var(--font-body); font-size: 11px; font-weight: 800; color: #334155; background: #f1f5f9; padding: 4px 10px; border-top: 2px solid #0f172a; }
.fpl-row { display: grid; border-top: 1px solid #0f172a; }
.fpl-cell { border-right: 1px solid #0f172a; padding: 4px 8px 6px; cursor: pointer; min-height: 48px; transition: background .15s; }
.fpl-cell:last-child { border-right: none; }
.fpl-cell:hover { background: #fef9c3; }
.fpl-cell.active { background: #fde68a; }
.fpl-lbl { font-family: var(--font-body); font-size: 9.5px; font-weight: 800; color: #475569; letter-spacing: .02em; text-transform: uppercase; line-height: 1.25; }
.fpl-num { display: inline-block; background: #0f172a; color: #fff; border-radius: 3px; padding: 0 5px; margin-right: 5px; font-size: 10px; }
.fpl-val { font-size: 15px; font-weight: 700; color: #1e3a8a; margin-top: 4px; letter-spacing: .06em; word-break: break-word; }
@media (max-width: 640px) { .fpl-cell { grid-column: span 12 !important; border-right: none; border-bottom: 1px solid #cbd5e1; } }

/* ============ Fiók, előfizetés, zárolt tartalom ============ */
.topbar .topbar-user { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.user-pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid #dbe3ee; border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 13px; color: var(--navy); text-decoration: none; cursor: pointer; max-width: 320px; }
.user-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.user-pill .dot.on { background: #16a34a; }
.user-pill .dot.off { background: #f97316; }
.user-pill .u-mail { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.user-pill .u-state { color: var(--muted); white-space: nowrap; }
.chapter-card.locked { opacity: 0.92; }
.chapter-card.locked .icon { filter: grayscale(0.4); }
.chapter-card .lock { font-size: 15px; margin-left: 4px; }
.chapter-card .free-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #dcfce7; color: #15803d; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.offer-box { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 2px solid #fdba74; border-radius: 16px; padding: 18px 22px; margin: 0 0 26px; }
.offer-box.big { margin-top: 6px; }
.offer-box .offer-text { flex: 1 1 320px; }
.offer-title { font-weight: 800; font-size: 19px; color: var(--navy); }
.offer-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.offer-price { text-align: right; line-height: 1.15; }
.offer-price s { color: var(--muted); font-size: 15px; }
.offer-price strong { display: block; font-size: 30px; color: #c2410c; }
.offer-price small { color: var(--muted); font-size: 12px; }
.container.narrow { max-width: 760px; }
.container.wide { max-width: 1280px; }
.section-label.small { font-size: 26px; }
.dev-notice { margin: 0 0 22px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 2px solid #dbe3ee; }
.auth-tabs a { padding: 8px 16px; font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth-tabs a.active { color: var(--navy); border-bottom-color: #f97316; }
.auth-form { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid #dbe3ee; border-radius: 16px; padding: 22px 24px; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14px; color: var(--navy); }
.auth-form input:not([type=checkbox]) { font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #f8fafc; }
.auth-form input:focus { outline: none; border-color: #0ea5e9; background: #fff; }
.auth-form label.chk { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: #334155; line-height: 1.4; }
.auth-form label.chk input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.auth-form .row3 { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.auth-err { color: #b91c1c; font-weight: 700; min-height: 1.2em; font-size: 14px; }
.auth-or { text-align: center; color: var(--muted); font-size: 13px; }
.auth-link { text-align: center; font-size: 14px; color: #0369a1; }
.pay-note { color: var(--muted); font-size: 13px; margin: 0; }
.acc-card { background: #fff; border: 1px solid #dbe3ee; border-radius: 16px; padding: 18px 22px; }
.acc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin-top: 10px; }
.acc-label:first-child { margin-top: 0; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.tag.on { background: #dcfce7; color: #15803d; }
.tag.off { background: #fee2e2; color: #b91c1c; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acc-table th, .acc-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.acc-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.legal h1 { color: var(--navy); margin: 8px 0 18px; }
.legal h2 { color: var(--navy); font-size: 21px; margin: 26px 0 8px; }
.legal h3 { font-size: 17px; margin: 18px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
.legal th, .legal td { border: 1px solid #dbe3ee; padding: 7px 9px; text-align: left; vertical-align: top; }
.legal th { background: #f1f5f9; }
.fb-pop-author { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.site-footer a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
  .user-pill .u-state { display: none; }
  .offer-price { text-align: left; }
  .auth-form .row3 { grid-template-columns: 1fr; }
}
