:root {
  --bg: #030614;
  --bg-soft: #090f28;
  --card: rgba(16, 26, 57, 0.72);
  --text: #eff4ff;
  --muted: #b7c4e8;
  --line: rgba(141, 172, 255, 0.24);
  --brand: #4f7cff;
  --brand2: #00c4d6;
  --accent: #8a5bff;
  --radius: 18px;
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  --grad-main: linear-gradient(120deg, #5f7dff 0%, #7b5dff 45%, #00bfd6 100%);
  --hero-heading-line-height: 1.18;
  --hero-paragraph-line-height: 1.62;
  --hero-heading-margin-bottom: 14px;
  --hero-paragraph-margin-bottom: 0px;
  --hero-cta-group-margin-top: 6px;
  --hero-block-internal-padding: 32px;
  --hero-left-text-width: 100%;
  --hero-left-image-width: clamp(180px, 24vw, 280px);
  --hero-left-heading-font-size: clamp(2rem, 4.8vw, 3.45rem);
  --hero-left-heading-line-height: 1.18;
  --hero-left-paragraph-font-size: 1.2rem;
  --hero-left-paragraph-line-height: 1.62;
  --hero-left-text-max-width: min(37rem, 100%);
  --hero-left-gap: clamp(12px, 2.4vw, 26px);
  --hero-left-cta-margin-top: 6px;
  --hero-left-padding: 32px;
  --hero-left-image-max-height: 420px;
  --hero-left-image-fit: cover;
  --course-card-padding: 20px;
  --course-card-title-line-height: 1.28;
  --course-card-description-line-height: 1.52;
  --course-card-title-margin-bottom: 8px;
  --course-card-description-margin-bottom: 8px;
  --course-card-price-margin-top: 2px;
  --course-card-button-group-margin-top: 10px;
  --course-card-internal-spacing: 9px;
  --course-grid-row-gap: 16px;
  --course-grid-column-gap: 16px;
}
* { box-sizing: border-box; }
html, body {
}
.recaptcha-wrap {
  display: none;
}
body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% -5%, #1a2f6f 0%, #08112f 34%, var(--bg) 70%);
  line-height: 1.6;
  min-height: 100svh;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 80% 8%, rgba(66, 102, 214, .17), transparent 72%),
              radial-gradient(46% 40% at 12% 52%, rgba(0, 194, 214, .09), transparent 74%);
  z-index: -1;
}
a { color: #9fd2ff; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.menu-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(146, 197, 255, .95);
  outline-offset: 2px;
}
.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 68px 0; }
.surface,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  border-color: rgba(161, 192, 255, .45);
}
.glow-panel { box-shadow: 0 20px 60px rgba(93, 126, 255, .26); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 8, 23, 0.76);
  border-bottom: 1px solid rgba(104, 132, 220, 0.26);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; }
.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 12px; background: var(--grad-main); display: inline-block; }

.brand-logo { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(131, 163, 255, .4); background: #0b1536; }
.admin-image-preview { width: 180px; max-width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #081433; }
.admin-video-preview { width: min(360px, 100%); max-width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #081433; display: block; }
.logo { font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #d9e4ff; font-weight: 600; font-size: .95rem; }
.menu-btn { display: none; background: transparent; border: 1px solid #4a5f9f; color: #fff; border-radius: 10px; padding: 8px 10px; }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 8px 28px rgba(94, 126, 255, 0.42);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(107, 132, 255, 0.48); }
.btn-outline { background: transparent; border: 1px solid rgba(140, 170, 255, .52); box-shadow: none; }
.btn-sm { padding: 8px 12px; font-size: .94rem; }
.pill { display: inline-block; border: 1px solid #566cc0; border-radius: 999px; color: #b7c8f2; padding: 6px 12px; font-size: .86rem; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.8vw, 3.45rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 70ch; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero { padding: 72px 0 42px; display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .94fr); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }
.hero-panel { padding: var(--hero-block-internal-padding); position: relative; overflow: hidden; }
.hero-main { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); min-height: 468px; isolation: isolate; }
.hero-main-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: max(var(--hero-left-gap), 18px); min-width: 0; flex: 1; }
.hero-main-content { min-width: 0; display: grid; gap: clamp(14px, 1.8vw, 22px); align-content: center; }
.hero-admin-row { margin: 0; min-height: 24px; }
.hero-admin-row .btn { opacity: .72; font-size: .78rem; padding: 5px 10px; border-color: rgba(131, 160, 240, .32); }
.hero-main:hover .hero-admin-row .btn,
.hero-main:focus-within .hero-admin-row .btn { opacity: .95; }
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 12%, rgba(143, 90, 255, .36), transparent 46%),
              radial-gradient(circle at 10% 88%, rgba(0, 194, 214, .2), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.hero-main-copy { max-width: min(var(--hero-left-text-max-width), 100%); min-width: 0; display: grid; gap: clamp(9px, 1.2vw, 14px); }
.hero-main-copy .pill { margin: 0; }
.hero-main--right .hero-main-copy { max-width: min(56ch, 100%); }
.hero-main.has-hero-media:not(.hero-main--background) .hero-main-layout { grid-template-columns: minmax(58%, 1.55fr) minmax(36%, .95fr); }
.hero-main.has-hero-media:not(.hero-main--background) .hero-main-copy { width: min(max(var(--hero-left-text-width), 58%), 100%); max-width: min(var(--hero-left-text-max-width), 62ch); }
.hero-main-media {
  border-radius: 20px;
  border: 1px solid rgba(171, 196, 255, .48);
  box-shadow: 0 18px 40px rgba(20, 36, 84, .52);
  overflow: hidden;
  background: rgba(10, 20, 48, .92);
}
.hero-main-media img { width: 100%; height: 100%; object-fit: var(--hero-left-image-fit); display: block; }
.hero-main.has-hero-media:not(.hero-main--background) .hero-main-media {
  position: relative;
  width: min(100%, var(--hero-left-image-width));
  max-width: 100%;
  max-height: var(--hero-left-image-max-height);
  justify-self: stretch;
  align-self: stretch;
}
.hero-main-media--right { aspect-ratio: 4/5; }
.hero-main-media--floating { aspect-ratio: 1/1; }
.hero-overlay--light { box-shadow: 0 20px 60px rgba(93, 126, 255, .16); }
.hero-overlay--medium { box-shadow: 0 22px 62px rgba(93, 126, 255, .26); }
.hero-overlay--strong { box-shadow: 0 24px 64px rgba(93, 126, 255, .35); }
.hero-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.stat { border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; background: rgba(17, 29, 61, .76); }
.kicker { color: #d6e4ff; font-weight: 700; letter-spacing: .2px; }
.badge { border-radius: 999px; border: 1px solid #5d77d1; font-size: .78rem; padding: 4px 9px; color: #c2d6ff; text-transform: uppercase; }
.price { font-size: 1.45rem; font-weight: 800; margin: 8px 0; }
.media-embed { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #000; aspect-ratio: 16/9; }
.media-embed iframe { width: 100%; height: 100%; border: 0; }
.video-gallery {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(135, 168, 255, 0.26);
  background: linear-gradient(145deg, rgba(12, 23, 53, 0.94), rgba(9, 15, 38, 0.86));
}
.video-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.video-gallery-subheading { margin-top: 24px; }
.video-grid {
  display: grid;
  gap: 16px;
}
.video-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid-extended { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-card {
  border: 1px solid rgba(138, 170, 255, 0.24);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
.video-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.03); }
.video-card-body { padding: 14px; }
.video-card h3, .video-card h4 {
  margin-bottom: 10px;
  font-size: 1.04rem;
}
.video-link {
  color: #9fd2ff;
  font-weight: 700;
}
.video-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.video-gallery-cta { margin-top: 16px; }

.topic-domain-head { margin-bottom: 18px; }
.topic-domain-intro {
  max-width: 84ch;
  margin: 0;
  line-height: 1.62;
}
.home-section--domains {
  --domain-card-gap: 18px;
  --domain-section-top-margin: 10px;
  --domain-section-bottom-margin: 6px;
  --domain-card-padding: 22px;
  --domain-card-min-height: 0px;
  --domain-title-bottom-spacing: 14px;
  padding-top: calc(clamp(44px, 6.8vw, 72px) - var(--domain-section-top-margin));
  padding-bottom: calc(clamp(44px, 6.8vw, 72px) - var(--domain-section-bottom-margin));
}
.home-section--domains .section-head {
  margin-bottom: max(var(--domain-title-bottom-spacing), 18px);
  align-items: flex-end;
}
.home-section--domains h2 {
  margin-bottom: 8px;
  max-width: 28ch;
  line-height: 1.18;
}
.topic-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--domain-card-gap);
  align-items: stretch;
}
.topic-group-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: var(--domain-card-min-height);
  padding: var(--domain-card-padding);
  border: 1px solid rgba(152, 182, 255, 0.4);
  background: linear-gradient(160deg, rgba(18, 31, 70, 0.9), rgba(8, 15, 36, 0.92));
  box-shadow: 0 14px 30px rgba(8, 18, 46, 0.48), inset 0 1px 0 rgba(187, 205, 255, 0.12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.topic-group-card:hover {
  transform: translateY(-3px);
  border-color: rgba(174, 201, 255, 0.62);
  box-shadow: 0 20px 38px rgba(27, 58, 138, 0.36), inset 0 1px 0 rgba(194, 211, 255, 0.16);
}
.topic-group-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.32;
  min-height: calc(1.32em * 2);
}
.topic-group-desc {
  margin-bottom: 16px;
  line-height: 1.58;
  min-height: calc(1.56em * 3);
  font-size: .96rem;
}
.topic-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  align-content: flex-start;
  padding-top: 2px;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 170, 249, 0.52);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: .82rem;
  line-height: 1.2;
  color: #e5edff;
  background: rgba(73, 109, 211, 0.2);
}
.gfm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1200;
}
.gfm-modal-backdrop.open { display: flex; }
.gfm-modal {
  width: min(520px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(141, 172, 255, 0.4);
  background: linear-gradient(180deg, rgba(10, 20, 48, .98), rgba(9, 15, 36, .98));
  box-shadow: 0 28px 70px rgba(5, 10, 24, .75);
  padding: 22px;
  position: relative;
}
.gfm-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #d6e4ff;
  font-size: 26px;
  cursor: pointer;
}
.guest-verify-banner {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(122, 160, 255, .45);
  background: rgba(42, 74, 162, .16);
}
.form-shell { max-width: 560px; margin: 34px auto; padding: 28px; }
label { display: block; font-weight: 600; margin: 0 0 12px; }
.input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(130, 154, 222, .36);
  background: #081433;
  color: #fff;
}
.input-wrap { display: flex; gap: 8px; align-items: center; }
.flash { padding: 12px 14px; border-radius: 10px; margin: 14px auto; }
.success { background: rgba(24, 114, 84, .33); border: 1px solid rgba(54, 200, 151, .4); }
.error { background: rgba(132, 34, 71, .35); border: 1px solid rgba(219, 95, 139, .42); }
.faq-item { padding: 14px 16px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.site-footer { margin-top: 72px; border-top: 1px solid rgba(88, 111, 174, .35); background: linear-gradient(180deg, rgba(4,8,18,.96), rgba(5,11,24,.98)); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr; gap: 26px; padding: 42px 0 26px; }
.footer-grid a { display: block; margin: 5px 0; }
.footer-bottom { padding: 0 0 26px; color: #9fb1dd; border-top: 1px solid rgba(113, 141, 216, .22); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid rgba(113, 141, 216, .25); padding: 10px; text-align: left; }
.list-clean { padding-left: 18px; margin: 0; }
.toolbar { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 12px; margin: 18px 0 14px; }
.empty-state { text-align: center; padding: 40px 20px; }
@media (max-width: 980px) {
  .hero, .grid-4, .grid-3, .grid-2, .footer-grid, .toolbar { grid-template-columns: 1fr; }
  .video-grid-featured, .video-grid-extended { grid-template-columns: 1fr; }
  .hero { gap: 16px; }
  .hero-main,
  .hero-main--right { min-height: auto; }
  .hero-main-copy,
  .hero-main--right .hero-main-copy { max-width: 100%; }
  .hero-main-copy .pill { margin-bottom: 0; }
  .hero-main.has-hero-media:not(.hero-main--background) .hero-main-layout,
  .hero-main-layout { grid-template-columns: 1fr; }
  .hero-main-content { gap: 12px; }
  .hero-main-media,
  .hero-main-media--right,
  .hero-main-media--floating { position: static; width: 100%; margin-top: 4px; aspect-ratio: 16/9; justify-self: stretch; }
  .nav {
    display: none; position: absolute; left: 4%; right: 4%; top: 64px; width: auto;
    flex-direction: column; align-items: stretch; padding: 12px; gap: 8px;
    background: rgba(9, 20, 48, .98); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  }
  .nav a { padding: 8px 10px; border-radius: 10px; }
  .nav a:hover { background: rgba(255, 255, 255, .06); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-block; }
}

.section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.section-head-premium { margin-bottom: clamp(18px, 2.2vw, 26px); align-items: flex-end; }
.section-head-premium h2 { margin-bottom: 8px; }
.hero-heading { line-height: var(--hero-left-heading-line-height, var(--hero-heading-line-height)); font-size: var(--hero-left-heading-font-size); margin: 0 0 var(--hero-heading-margin-bottom); max-width: min(22ch, 100%); overflow-wrap: normal; text-wrap: balance; letter-spacing: -.01em; }
.hero-paragraph { line-height: var(--hero-left-paragraph-line-height, var(--hero-paragraph-line-height)); font-size: var(--hero-left-paragraph-font-size); margin: 0 0 var(--hero-paragraph-margin-bottom); max-width: min(56ch, 100%); overflow-wrap: break-word; }
.hero-main.has-hero-media:not(.hero-main--background) .hero-heading { max-width: min(20ch, 100%); }
.hero-main.has-hero-media:not(.hero-main--background) .hero-paragraph { max-width: min(52ch, 100%); }
.hero-cta-row { display:flex; column-gap:12px; row-gap:12px; flex-wrap:wrap; align-items:center; margin: max(var(--hero-left-cta-margin-top, var(--hero-cta-group-margin-top)), 8px) 0 0; max-width: min(100%, 40rem); }
.center { text-align:center; }
.course-grid { row-gap: var(--course-grid-row-gap); column-gap: var(--course-grid-column-gap); align-items: stretch; }
.course-card {
  display:flex;
  flex-direction:column;
  gap: clamp(8px, 1.1vw, calc(var(--course-card-internal-spacing) + 2px));
  padding: clamp(16px, 1.8vw, calc(var(--course-card-padding) + 2px));
  height: 100%;
  border-color: rgba(146, 176, 255, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(174, 203, 255, .56);
  box-shadow: 0 18px 36px rgba(13, 29, 70, .48);
}
.course-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; object-position: center; border-radius:14px; border:1px solid var(--line); background:#0b1536; margin-bottom: 2px; }
.course-card .badge { align-self: flex-start; margin-bottom: 2px; }
.course-card-title { line-height: min(var(--course-card-title-line-height), 1.34); margin-bottom: max(4px, var(--course-card-title-margin-bottom)); }
.course-card-subtitle { margin: 0; font-size: .88rem; opacity: .94; }
.course-card-description { line-height: min(var(--course-card-description-line-height), 1.48); margin: 0 0 max(6px, var(--course-card-description-margin-bottom)); font-size: .96rem; color: #c8d6f6; }
.course-card-meta { display: grid; gap: 3px; margin-top: auto; padding-top: 6px; }
.course-card-category { margin: 0; font-size: .88rem; color: #d5e2ff; }
.course-card-price { margin: var(--course-card-price-margin-top) 0 0; line-height: 1; }
.course-card-discount,
.course-card-price-label { margin: 0; }
.course-card-price-label { font-size: .82rem; opacity: .9; }
.course-card-thumb-source { margin: 0; font-size: 11px; }
.course-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top: max(8px, var(--course-card-button-group-margin-top)); align-items: center; }
.course-actions .btn { flex: 1 1 calc(50% - 8px); min-width: 118px; text-align: center; }
.admin-quiet-action {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin-left: auto;
  opacity: .48;
  font-size: .72rem;
  padding: 4px 8px;
  border-color: rgba(130, 159, 234, .3);
}
.course-card:hover .admin-quiet-action,
.course-card:focus-within .admin-quiet-action { opacity: .92; }
.admin-quiet-meta { font-size: .67rem; opacity: .46; }
.hero-art { background: radial-gradient(circle at top right, rgba(94,126,255,.22), rgba(9,15,38,.9)); display:flex; flex-direction:column; gap: clamp(14px, 1.8vw, 20px); }
.hero-art--background::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,14,34,.45), rgba(6,14,34,.88)); pointer-events:none; }
.hero-art > * { position: relative; z-index: 2; }
.hero-art-copy { max-width: 40ch; display: grid; gap: 12px; }
.hero-art h2 { margin-bottom: 0; line-height: 1.22; max-width: 22ch; }
.hero-art .muted { margin: 0; line-height: 1.58; max-width: 38ch; }
.hero-art .list-clean { margin: 0; display: grid; gap: 8px; line-height: 1.5; padding-left: 19px; }
.hero-mini-stats { display:flex; flex-wrap:wrap; gap:9px; margin-top: 2px; }
.stat-chip { border-radius:999px; border:1px solid rgba(145,176,255,.45); background:rgba(14,27,61,.75); color:#dce9ff; font-size:.8rem; font-weight:700; padding:6px 10px; }
.hero-right-media { margin-top: 4px; border-radius:20px; border:1px solid rgba(161,189,255,.5); overflow:hidden; min-height:176px; background:linear-gradient(150deg, rgba(12,22,49,.96), rgba(7,13,32,.92)); box-shadow:0 20px 46px rgba(16,34,84,.46), inset 0 1px 0 rgba(196,213,255,.25), inset 0 0 0 1px rgba(110,145,243,.18); padding: clamp(6px, .8vw, 10px); }
.hero-right-video { width:100%; height:100%; object-fit:cover; display:block; aspect-ratio:16/10; background: #050a1d; border-radius: 14px; }
.hero-right-media--placeholder { display: grid; place-items: center; aspect-ratio: 16/10; border: 1px dashed rgba(153, 182, 255, .4); }
.hero-right-media--placeholder span { color: rgba(220, 234, 255, .84); font-weight: 600; font-size: .92rem; letter-spacing: .02em; }
.hero-right-media--card { aspect-ratio:16/10; }
.hero-right-media--strip { min-height:96px; max-height:120px; }
.hero-right-media--background { min-height:190px; }
.course-hero { display:grid; grid-template-columns: 340px 1fr; gap:18px; align-items:start; }
.course-hero-thumb { width:100%; border-radius:14px; border:1px solid var(--line); object-fit:cover; aspect-ratio:16/10; }
.lesson-row { padding:10px 0; border-bottom:1px solid rgba(112,140,210,.2); }
.sidebar-layout { display:grid; grid-template-columns:300px 1fr; gap:18px; align-items:start; }
.home-section { padding-block: clamp(46px, 6.6vw, 74px); }
.home-section + .home-section { padding-top: clamp(54px, 7.4vw, 86px); }
.home-section--hero { padding-top: clamp(70px, 9vw, 90px); padding-bottom: clamp(36px, 5vw, 56px); }
.home-section--featured { padding-top: clamp(48px, 6.2vw, 72px); }
.home-section--videos .video-gallery { margin-top: 12px; }
.home-section--cta { padding-top: clamp(52px, 7vw, 78px); }

.admin-quick-actions {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  display: grid;
  justify-items: end;
  gap: 6px;
  opacity: .72;
  transition: opacity .18s ease;
}
.admin-quick-actions:hover,
.admin-quick-actions:focus-within {
  opacity: .98;
}
.admin-quick-toggle {
  border: 1px solid rgba(142, 170, 255, .26);
  background: rgba(9, 20, 49, .58);
  color: #d6e3ff;
  font-size: .7rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.admin-quick-links {
  display: grid;
  gap: 6px;
  justify-items: end;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.admin-quick-actions.open .admin-quick-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.admin-quick-links .btn {
  font-size: .74rem;
  padding: 5px 9px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(17, 34, 78, .34);
}
.admin-quick-links .btn-outline {
  background: rgba(8, 19, 45, .88);
  border-color: rgba(132, 162, 245, .42);
}
.hero-main[data-hero-left-card] { --hero-block-internal-padding: var(--hero-left-padding); }
.hero-debug-panel {
  position: fixed;
  top: 86px;
  right: 12px;
  z-index: 1300;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  padding: 14px;
  background: rgba(4, 11, 30, .92);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .5);
}
.hero-debug-panel h3 { margin: 0 0 4px; }
.hero-debug-stats {
  border: 1px solid rgba(160, 185, 255, .28);
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0 12px;
  background: rgba(8, 18, 49, .76);
  font-size: .82rem;
  display: grid;
  gap: 4px;
}
.hero-debug-controls { display: grid; gap: 10px; }
.hero-debug-controls label { margin: 0; font-size: .82rem; font-weight: 700; }
.hero-debug-controls input, .hero-debug-controls select { margin-top: 4px; width: 100%; }
.hero-debug-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-debug-warning { color: #ffd0d0; font-weight: 700; }
.hero-debug-active [data-hero-left-card] { outline: 2px solid #ffd84e; outline-offset: -2px; }
.hero-debug-active [data-hero-text-container] { outline: 2px dashed #2df7ff; outline-offset: -2px; }
.hero-debug-active [data-hero-image-container] { outline: 2px dashed #ff4dd6; outline-offset: -2px; }
.hero-debug-active [data-hero-heading] { outline: 1px solid rgba(45, 247, 255, .9); }
.hero-debug-active [data-hero-paragraph] { outline: 1px solid rgba(45, 247, 255, .66); }
.hero-debug-active [data-hero-cta] { outline: 1px solid rgba(45, 247, 255, .55); }
.hero-debug-active [data-hero-left-card].debug-overflow { box-shadow: inset 0 0 0 3px rgba(255, 64, 64, .82); }

@media (max-width: 980px) {
  .course-hero, .sidebar-layout { grid-template-columns:1fr; }
  .topic-groups-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { padding: clamp(18px, 4vw, var(--hero-block-internal-padding)); }
  .course-card { padding: clamp(14px, 3.6vw, var(--course-card-padding)); }
  .course-grid {
    row-gap: clamp(12px, 3.8vw, var(--course-grid-row-gap));
    column-gap: clamp(12px, 3.8vw, var(--course-grid-column-gap));
  }
  .admin-quick-actions { right: 10px; bottom: 10px; }
  .admin-quick-links .btn { min-width: 0; }
  .home-section + .home-section { padding-top: clamp(44px, 9vw, 62px); }
  .hero-debug-panel { top: auto; bottom: 10px; max-height: min(60vh, 520px); }
}

@media (max-width: 640px) {
  .topic-groups-grid { grid-template-columns: 1fr; }
  .home-section--domains h2 { max-width: none; }
  .hero-cta-row .btn { width: 100%; }
  .hero-art .list-clean { gap: 5px; }
  .admin-quick-toggle { font-size: .7rem; padding: 6px 10px; }
}

.account-menu { position: relative; margin-left: 8px; }
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(136, 166, 255, .42);
  background: rgba(13, 27, 64, .95);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  cursor: pointer;
}
.account-chip-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.account-chip-text small { color: var(--muted); font-size: .74rem; }
.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-main);
  font-size: .78rem;
  font-weight: 800;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, 84vw);
  background: #0b1536;
  border: 1px solid rgba(136, 166, 255, .32);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .4);
  padding: 10px;
  display: none;
  z-index: 140;
}
.account-menu.open .account-dropdown { display: block; }
.account-dropdown a { display: block; padding: 8px 10px; border-radius: 8px; }
.account-dropdown a:hover { background: rgba(255,255,255,.06); }
.account-head { margin: 4px 10px 8px; font-size: .88rem; color: var(--muted); }
.logout-link { border-top: 1px solid rgba(136, 166, 255, .22); margin-top: 6px; padding-top: 10px !important; }

.admin-layout { display: grid; gap: 16px; }
.admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mini-stat { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-on { background: #32d49f; }
.status-off { background: #de5f95; }

@media (max-width: 980px) {
  .account-menu { width: 100%; margin-left: 0; }
  .account-chip { width: 100%; justify-content: flex-start; border-radius: 12px; }
  .account-dropdown { position: static; width: 100%; margin-top: 8px; }
}

.presentation-viewer{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:14px;background:linear-gradient(145deg,#0a1731,#112852);padding:14px;border-radius:14px;border:1px solid rgba(120,180,255,.22)}
.presentation-rail{display:flex;flex-direction:column;gap:8px;max-height:520px;overflow:auto}
.presentation-thumb{border:1px solid rgba(255,255,255,.2);background:#12264b;color:#d7e5ff;border-radius:10px;padding:8px;cursor:pointer;font-weight:600}
.presentation-thumb.is-active{border-color:#6cb5ff;background:#1a3d74}
@media (max-width: 900px){.presentation-viewer{grid-template-columns:1fr}.presentation-rail{flex-direction:row;max-height:none;overflow:auto}}

.gfm-modern-player .presentation-main{background:#0b1020;border:1px solid rgba(255,255,255,.12);padding:12px;border-radius:14px;}
.gfm-runtime-slide{position:relative;width:100%;min-height:480px;color:#fff;overflow:hidden;}
.gfm-runtime-el{position:absolute;overflow:hidden;padding:4px 6px;}
.gfm-runtime-text{line-height:1.35;color:#f8fafc;}
.gfm-runtime-unsupported{background:rgba(255,255,255,.12);border:1px dashed rgba(255,255,255,.35);border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;color:#e2e8f0;}
@media (max-width: 900px){.gfm-runtime-slide{min-height:360px;}.gfm-runtime-el{transform:scale(.78);transform-origin:top left;}}

.home-section--cta .surface {
  text-align: center;
  padding: clamp(24px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(15, 31, 71, .92), rgba(8, 16, 40, .88));
  border-color: rgba(151, 182, 255, .42);
}

@media (max-width: 480px) {
  .container { width: min(1160px, 94%); }
  .hero-panel, .video-gallery { padding: 16px; }
  .hero-heading { max-width: 100%; }
  .course-actions .btn { min-width: 0; }
}
