/* =========================================================
   TechLight — Fraud Prevention Course · Shared Styles
   ========================================================= */

:root {
  --tl-cyan: #2cc1ff;
  --tl-cyan-soft: #7fd9ff;
  --tl-blue: #0d7cd9;
  --tl-deep: #062f6e;
  --tl-ink: #04102b;
  --tl-chrome: #b9d8ee;

  --bg: #03070f;
  --bg-1: #070b18;
  --bg-2: #0c1428;
  --bg-card: rgba(20, 36, 71, 0.42);
  --bg-card-strong: rgba(20, 36, 71, 0.72);

  --border: rgba(140, 180, 255, 0.14);
  --border-strong: rgba(140, 180, 255, 0.32);
  --border-cyan: rgba(44, 193, 255, 0.45);

  --text: #eaf1ff;
  --text-dim: #a3b5d6;
  --text-mute: #6d80a8;

  --warn: #ff4d6d;
  --warn-deep: #b9143d;
  --ok: #29d391;
  --gold: #ffd86b;

  --grad-blue: linear-gradient(135deg, #2cc1ff 0%, #0d7cd9 45%, #062f6e 100%);
  --grad-text: linear-gradient(135deg, #b9e5ff 0%, #2cc1ff 50%, #0d7cd9 100%);
  --grad-warn: linear-gradient(135deg, #ff7a8e 0%, #b9143d 100%);
  --grad-glass: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01));

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-xl: 36px;

  --shadow-glow: 0 24px 60px -20px rgba(44, 193, 255, 0.45);
  --shadow-soft: 0 18px 40px -12px rgba(4, 16, 43, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Ambient background painted directly on the root element so it is always
   the deepest paint layer regardless of any stacking-context shenanigans
   downstream. Fixed attachment keeps it locked to the viewport on scroll.
   Desaturated ~60% from the original cyan pull — reads as a sophisticated
   gray-navy with subtle hint of blue rather than a saturated cyan glow. */
html {
  background:
    radial-gradient(80vw 70vh at 50% -10%,  rgba(120,150,180,.22), transparent 65%),
    radial-gradient(70vw 65vh at 100% 50%,  rgba(90,120,160,.20),  transparent 60%),
    radial-gradient(70vw 65vh at 0%   60%,  rgba(90,120,160,.18),  transparent 60%),
    radial-gradient(65vw 60vh at 50% 110%,  rgba(120,150,180,.14), transparent 65%),
    linear-gradient(180deg, #1a1f2c 0%, #131722 35%, #0d1019 70%, #07090f 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body { background: transparent; }
/* `overflow-x: hidden` on html/body breaks `position: sticky` for any
   descendant. Use `overflow-x: clip` on body only — same horizontal-scroll
   prevention without disabling sticky positioning. */
body { overflow-x: clip; }

body {
  direction: rtl;
  font-size: 17px;
  line-height: 1.55;
}

::selection { background: rgba(44, 193, 255, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

/* =========================================================
   Atmospheric background — global
   ========================================================= */
/* Constant ambient background — base navy + persistent multi-radial wash so
   the page never looks pitch black. Layer order: base color → broad blue wash
   (covers the whole viewport) → corner pools. */
.bg-atmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* Viewport-proportional radial pools so the cyan ambient scales with the
     display. Absolute-pixel gradients shrank to a center spot on 4K screens
     and the edges went flat black. */
  background:
    radial-gradient(80vw 70vh at 50% -10%,  rgba(44,193,255,.50), transparent 65%),
    radial-gradient(70vw 65vh at 100% 50%,  rgba(13,124,217,.48), transparent 60%),
    radial-gradient(70vw 65vh at 0%   60%,  rgba(13,124,217,.42), transparent 60%),
    radial-gradient(65vw 60vh at 50% 110%,  rgba(44,193,255,.34), transparent 65%),
    linear-gradient(180deg, #102352 0%, #0a1838 30%, #07112a 65%, #050b1e 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140,180,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,180,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 85%);
  opacity: .9;
}

/* Floating orbs — gradient-based glow (filter:blur was unreliable at 4K
   sizes; gradient gives the same look with predictable rendering). */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: orbFloat 22s ease-in-out infinite;
  will-change: transform;
}
/* Orbs scale with viewport so they stay ambient on 4K displays — at fixed
   px sizes they shrink to dots on wide monitors. */
.orb-1 {
  width: clamp(640px, 55vw, 1500px); height: clamp(640px, 55vw, 1500px);
  background: radial-gradient(circle, rgba(44,193,255,.55) 0%, rgba(44,193,255,.18) 40%, transparent 70%);
  top: -18vh; right: -12vw;
}
.orb-2 {
  width: clamp(560px, 48vw, 1300px); height: clamp(560px, 48vw, 1300px);
  background: radial-gradient(circle, rgba(13,124,217,.55) 0%, rgba(13,124,217,.16) 42%, transparent 72%);
  top: 30%; left: -14vw; animation-delay: -7s;
}
.orb-3 {
  width: clamp(500px, 42vw, 1180px); height: clamp(500px, 42vw, 1180px);
  background: radial-gradient(circle, rgba(95,211,255,.32) 0%, rgba(95,211,255,.10) 42%, transparent 72%);
  top: 62%; right: -10vw; animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* =========================================================
   Glass utility
   ========================================================= */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glass);
  pointer-events: none;
  border-radius: inherit;
}
.glass-strong {
  background: var(--bg-card-strong);
  border-color: var(--border-strong);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.3,1.2), box-shadow .25s, background .3s, color .3s, border-color .3s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  background: transparent;
  color: var(--text);
}
.btn-primary {
  background: var(--grad-blue);
  color: #04102b;
  font-weight: 800;
  box-shadow: 0 20px 50px -16px rgba(44,193,255,.7), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(44,193,255,.85); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(44,193,255,.1); border-color: var(--border-cyan); }

.btn-warn {
  background: var(--grad-warn);
  color: #fff;
}

.btn-lg { padding: 20px 40px; font-size: 19px; }
.btn-xl { padding: 22px 48px; font-size: 22px; }

/* =========================================================
   Type
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(44,193,255,.08);
  border: 1px solid rgba(44,193,255,.25);
  color: var(--tl-cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.eyebrow.warn { color: var(--warn); background: rgba(255,77,109,.08); border-color: rgba(255,77,109,.3); }
.eyebrow.ok { color: var(--ok); background: rgba(41,211,145,.08); border-color: rgba(41,211,145,.3); }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.warn-text { color: var(--warn); }
.cyan-text { color: var(--tl-cyan); }
.ok-text { color: var(--ok); }
.dim { color: var(--text-dim); }
.mute { color: var(--text-mute); }

/* =========================================================
   Page transitions — full-screen fade in/out between navigations.
   Gate on `html.has-transition` so non-JS users still see the page.
   The inline script in layout.php sets that class synchronously
   before paint, so we avoid a flash of unstyled body.
   ========================================================= */
html.has-transition body {
  opacity: 0;
  transition: opacity .35s ease;
}
html.has-transition body.is-ready { opacity: 1; }
html.has-transition body.is-leaving {
  opacity: 0;
  transition-duration: .22s;
}
@media (prefers-reduced-motion: reduce) {
  html.has-transition body,
  html.has-transition body.is-leaving {
    opacity: 1 !important;
    transition: none !important;
  }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }

.h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 900; line-height: 1; letter-spacing: -1.5px; }
.h2 { font-size: clamp(32px, 4.5vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
.h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; }
.h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 24px); color: var(--text-dim); line-height: 1.55; font-weight: 400; }

/* =========================================================
   Scroll fade-in
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 60px 0; }

/* =========================================================
   Logo lockup
   ========================================================= */
/* =========================================================
   Top navigation — global on every page. Always-on backdrop
   blur (no see-through on scroll), polished link hover with
   underline-sweep, scrolled state tightens the border + glow.
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(7, 11, 24, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    padding .35s ease;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 9, 20, 0.88);
  border-bottom-color: rgba(127,217,255,.18);
  box-shadow:
    0 12px 32px -16px rgba(0,0,0,.6),
    0 0 24px -8px rgba(44,193,255,.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  border-radius: 999px;
  white-space: nowrap;
  transition:
    color .25s ease,
    background .25s ease,
    transform .25s cubic-bezier(.2,.7,.3,1.2);
  isolation: isolate;
}
/* Underline-sweep: starts at 0 width, expands to ~50% on hover. */
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tl-cyan), transparent);
  transform: translateX(-50%);
  transition: width .35s cubic-bezier(.2,.7,.3,1.2);
}
.nav-link:hover {
  color: var(--text);
  background: rgba(127,217,255,.06);
  transform: translateY(-1px);
}
.nav-link:hover::after { width: 60%; }
.nav-link.active {
  color: var(--tl-cyan);
  background: rgba(44,193,255,.08);
}
.nav-link.active::after { width: 50%; }
.nav-link:focus-visible {
  outline: 2px solid var(--tl-cyan);
  outline-offset: 2px;
}
.nav-cta-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* ============= Logged-in user menu (<details> dropdown) ============= */
.nav-user {
  position: relative;
}
.nav-user > summary { list-style: none; cursor: pointer; }
.nav-user > summary::-webkit-details-marker { display: none; }
.nav-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(127,217,255,.18);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.nav-user[open] .nav-user-toggle,
.nav-user-toggle:hover {
  background: rgba(44,193,255,.08);
  border-color: rgba(127,217,255,.4);
  color: var(--text);
}
.nav-user-toggle svg { transition: transform .3s ease; }
.nav-user[open] .nav-user-toggle svg { transform: rotate(180deg); }
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tl-cyan), #0d7cd9);
  color: #04102b;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 12px;
}
.nav-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    rgba(7, 11, 24, 0.96);
  border: 1px solid rgba(127,217,255,.22);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.7), 0 0 32px -10px rgba(44,193,255,.3);
  z-index: 60;
  animation: navUserMenuIn .25s cubic-bezier(.2,.7,.3,1.2);
}
@keyframes navUserMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-user-head {
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.nav-user-name { font-weight: 800; font-size: 14px; color: var(--text); }
.nav-user-email {
  font-size: 12px; color: var(--text-mute); margin-top: 2px;
  direction: ltr; text-align: right;
}
.nav-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s cubic-bezier(.2,.7,.3,1.2);
}
.nav-user-item svg { color: var(--text-mute); transition: color .2s ease, transform .25s cubic-bezier(.2,.7,.3,1.4); }
.nav-user-item:hover {
  background: rgba(44,193,255,.08);
  color: var(--text);
  transform: translateX(-2px);
}
.nav-user-item:hover svg { color: var(--tl-cyan); transform: scale(1.1); }
.nav-user-item--danger { color: var(--warn); }
.nav-user-item--danger svg { color: var(--warn); }
.nav-user-item--danger:hover {
  background: rgba(255,77,109,.08);
  color: #ff8a9b;
}
.nav-user-item--danger:hover svg { color: #ff8a9b; }
.nav-user-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}
@media (max-width: 880px) { .nav-links { display: none; } }

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1.2), filter .3s ease;
}
.logo-lockup:hover { transform: translateY(-1px); }
.logo-lockup img {
  width: 48px; height: 48px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter:
    brightness(1.2) contrast(1.05)
    drop-shadow(0 0 14px rgba(44,193,255,.55))
    drop-shadow(0 0 28px rgba(44,193,255,.25));
  transition: filter .3s ease;
  /* Asset protection — block dragging & selection. */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.logo-lockup:hover img {
  filter:
    brightness(1.35) contrast(1.05)
    drop-shadow(0 0 18px rgba(44,193,255,.75))
    drop-shadow(0 0 36px rgba(44,193,255,.35));
}
.logo-lockup .wm {
  font-weight: 900;
  letter-spacing: 4px;
  font-size: 21px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr;
  text-shadow: 0 0 24px rgba(44,193,255,.25);
}

/* =========================================================
   Currency symbol (₪) — globally enforce a visible cyan color
   so it doesn't inherit a parent's `color: transparent` with
   `background-clip: text` (which leaves the glyph rendered with
   a gradient that starts near-black). Reset both background and
   color so the symbol shows everywhere.
   ========================================================= */
.currency {
  background: none !important;
  -webkit-background-clip: initial !important;
          background-clip: initial !important;
  -webkit-text-fill-color: var(--tl-cyan) !important;
  color: var(--tl-cyan) !important;
  text-shadow: 0 0 18px rgba(44,193,255,.35);
}

/* =========================================================
   Lucrative buy buttons (shared mega-button) — globally loaded
   so every page (landing, FAQ, checkout, login, dashboard) renders
   .buy-* CTAs with the same gradient flow + breathing glow +
   shimmer sweep + outer aura ring. Two sizes: large (hero, main,
   final, faq-cta) and compact (nav-buy, sticky).
   ========================================================= */
.buy-hero, .buy-main, .buy-final, .buy-cta, .buy-sticky, .nav-buy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;       /* never wrap to a second line */
  background:
    linear-gradient(135deg, #7fd9ff 0%, #2cc1ff 28%, #0d7cd9 62%, #062f6e 100%) !important;
  background-size: 250% 250% !important;
  color: #04102b !important;
  box-shadow:
    0 26px 70px -16px rgba(44,193,255,.85),
    0 0 0 1px rgba(127,217,255,.5),
    0 0 30px rgba(127,217,255,.3),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -3px 0 rgba(6,47,110,.32) !important;
  /* Smooth slow gradient flow + property transitions for hover. No discrete
     pulse animation — the prior keyframe-driven box-shadow change was visible
     as a "pop". The shadow is now constant and bright. */
  animation: buyShift 9s ease-in-out infinite;
  transition:
    transform .35s cubic-bezier(.2,.7,.3,1.2),
    box-shadow .45s ease;
  border: none !important;
}
.buy-hero  { padding: 22px 30px !important; font-size: 19px !important; letter-spacing: .3px; }
.buy-main  { padding: 26px 32px !important; font-size: 21px !important; letter-spacing: .3px; }
.buy-final { padding: 26px 36px !important; font-size: 22px !important; letter-spacing: .3px; }
.buy-cta   { padding: 20px 32px !important; font-size: 17px !important; letter-spacing: .2px; }
.buy-sticky, .nav-buy {
  padding: 12px 22px !important;
  font-size: 14px !important;
  box-shadow:
    0 16px 40px -12px rgba(44,193,255,.8),
    0 0 0 1px rgba(127,217,255,.45),
    0 0 20px rgba(127,217,255,.28),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(6,47,110,.3) !important;
}
@keyframes buyShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* Seamless shimmer — translate a child highlight band rather than
   animating background-position (which is wrap-around-sensitive and can
   visibly pop at the boundary). The band lives off-screen on the right at
   start, travels across, and exits off-screen on the left. Since it's
   absolutely-positioned and overflow-hidden on the parent, the reset from
   off-left → off-right is completely invisible. */
.buy-hero::before, .buy-main::before, .buy-final::before,
.buy-cta::before,  .buy-sticky::before, .nav-buy::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  left: -50%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,.4) 45%,
    rgba(255,255,255,.75) 50%,
    rgba(255,255,255,.4) 55%,
    transparent 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: buyMegaShimmer 7s linear infinite;
  z-index: 1;
  border-radius: inherit;
}
@keyframes buyMegaShimmer {
  0%   { transform: translateX(0); }     /* start off-screen left (-50% offset) */
  100% { transform: translateX(400%); }  /* exit off-screen right */
}
/* Constant soft outer glow — no animated ring (the prior pulsing ring was
   what the user saw as "popping"). */
.buy-hero::after, .buy-main::after, .buy-final::after, .buy-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(127,217,255,.4) 0%,
    rgba(44,193,255,.3) 50%,
    rgba(127,217,255,.4) 100%);
  z-index: -1;
  filter: blur(10px);
  opacity: .7;
}
.buy-hero > *, .buy-main > *, .buy-final > *,
.buy-cta > *, .buy-sticky > *, .nav-buy > * {
  position: relative;
  z-index: 2;
}
.buy-hero svg, .buy-main svg, .buy-final svg,
.buy-cta svg, .buy-sticky svg, .nav-buy svg {
  filter: drop-shadow(0 1px 0 rgba(6,47,110,.25));
}
/* Strikethrough "before" price used inside buy buttons — keeps the
   urgency that the user is getting a discount. */
.buy-hero .price-old, .buy-main .price-old, .buy-final .price-old,
.buy-cta .price-old, .buy-sticky .price-old, .nav-buy .price-old {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(6,47,110,.65);
  opacity: .55;
  font-weight: 600;
  font-size: .75em;
  margin: 0 4px;
  vertical-align: middle;
}
.buy-hero:hover, .buy-main:hover, .buy-final:hover, .buy-cta:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 34px 78px -14px rgba(44,193,255,.95),
    0 0 0 1px rgba(127,217,255,.65),
    0 0 50px rgba(127,217,255,.45),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -3px 0 rgba(6,47,110,.32) !important;
}
.buy-sticky:hover, .nav-buy:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 22px 50px -12px rgba(44,193,255,.95),
    0 0 0 1px rgba(127,217,255,.65),
    0 0 30px rgba(127,217,255,.45),
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -2px 0 rgba(6,47,110,.3) !important;
}
@media (prefers-reduced-motion: reduce) {
  .buy-hero, .buy-main, .buy-final, .buy-cta, .buy-sticky, .nav-buy,
  .buy-hero::before, .buy-main::before, .buy-final::before,
  .buy-cta::before, .buy-sticky::before, .nav-buy::before,
  .buy-hero::after, .buy-main::after, .buy-final::after, .buy-cta::after {
    animation: none !important;
  }
}

/* =========================================================
   Glass cards — unified hover system
   Any card that gets the .glass-card class (or qualifies via the
   list below — stat-card, chapter, testimonial, principle, pattern,
   demo-side) shares the same smooth liftoff + cursor-reactive radial
   glow on hover. JS in page-landing.js writes --mx/--my so a soft
   spotlight follows the pointer.
   ========================================================= */
.glass-card,
.stat-card,
.chapter,
.testimonial,
.principle,
.reframe-locks .pattern,
.demo-side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Stronger glass: deeper blur + saturation + soft inner highlight. */
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.005)),
    rgba(10, 16, 36, 0.55);
  box-shadow:
    0 12px 32px -16px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition:
    transform   .45s cubic-bezier(.2,.7,.3,1.2),
    border-color .35s ease,
    box-shadow  .45s cubic-bezier(.2,.7,.3,1.2),
    background  .35s ease !important;
  --mx: 50%;
  --my: 50%;
}
/* Cursor-tracked border-glow only (no fill — kept clean per user feedback).
   A masked radial outline follows the pointer along the card's edge. */
.glass-card::after,
.stat-card::after,
.chapter::after,
.testimonial::after,
.principle::after,
.reframe-locks .pattern::after,
.demo-side::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    300px circle at var(--mx) var(--my),
    rgba(127,217,255,.55),
    transparent 45%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 0;
}
/* Inner content sits above the hover layers. */
.glass-card > *,
.stat-card > *,
.chapter > *,
.testimonial > *,
.principle > *,
.reframe-locks .pattern > *,
.demo-side > * {
  position: relative;
  z-index: 1;
}
.glass-card:hover,
.stat-card:hover,
.chapter:hover,
.testimonial:hover,
.principle:hover,
.reframe-locks .pattern:hover,
.demo-side:hover {
  transform: translateY(-6px);
  border-color: rgba(127,217,255,.35) !important;
  box-shadow:
    0 30px 60px -22px rgba(44,193,255,.55),
    0 1px 0 rgba(255,255,255,.06) inset,
    0 0 0 1px rgba(255,255,255,.04) inset !important;
}
/* Warn-flavored cards (stat-card.warn etc.) inherit the same cyan hover
   treatment as the rest — only their static gradient text stays red, but
   the lift/glow animation is identical across the board. */
.glass-card:hover::after,
.stat-card:hover::after,
.chapter:hover::after,
.testimonial:hover::after,
.principle:hover::after,
.reframe-locks .pattern:hover::after,
.demo-side:hover::after  { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .glass-card, .stat-card, .chapter, .testimonial, .principle,
  .reframe-locks .pattern, .demo-side {
    transition: none !important;
  }
  .glass-card:hover, .stat-card:hover, .chapter:hover, .testimonial:hover,
  .principle:hover, .reframe-locks .pattern:hover, .demo-side:hover {
    transform: none !important;
  }
}

/* =========================================================
   Footer — global so every page (landing, login, checkout,
   FAQ, legal, course panel) renders identically.
   ========================================================= */
.footer {
  position: relative;
  padding: 72px 0 44px;
  border-top: 1px solid rgba(127,217,255,.1);
  color: var(--text-mute);
  font-size: 13px;
  /* Solid opaque base — nothing bleeds through (the buy button used to be
     visible behind it). Subtle cyan ambient pool over the top for depth. */
  background:
    radial-gradient(800px 220px at 50% 100%, rgba(44,193,255,.08), transparent 70%),
    linear-gradient(180deg, rgba(7,11,24,.92), rgba(3,7,15,.98) 60%, #03070f);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  z-index: 1;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-brand img { transition: filter .4s ease; }
.footer-brand:hover img { filter: brightness(1.25) drop-shadow(0 0 18px rgba(44,193,255,.55)); }

.footer-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1px;
  text-decoration: none;
  border-radius: 100px;
  transition:
    color .35s ease,
    background .35s ease,
    transform .35s cubic-bezier(.2,.7,.3,1.2);
  isolation: isolate;
}
.footer-link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tl-cyan);
  box-shadow: 0 0 10px rgba(44,193,255,.7);
  opacity: 0;
  transform: scale(0);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.3,1.4);
}
.footer-link span { position: relative; display: inline-block; }
.footer-link span::after {
  content: '';
  position: absolute;
  right: 0; bottom: -3px;
  height: 1.5px;
  width: 0;
  background: linear-gradient(90deg, var(--tl-cyan), rgba(127,217,255,.4));
  transition: width .4s cubic-bezier(.2,.7,.3,1.2);
  border-radius: 1px;
}
.footer-link:hover {
  color: var(--text);
  background: rgba(44,193,255,.06);
  transform: translateY(-1px);
}
.footer-link:hover::before { opacity: 1; transform: scale(1); }
.footer-link:hover span::after { width: 100%; }
.footer-link:focus-visible {
  outline: 2px solid var(--tl-cyan);
  outline-offset: 2px;
}

.footer-meta {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-mute);
  font-size: 12px;
}
.footer-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: .5px;
  transition: border-color .35s ease, color .35s ease, background .35s ease;
}
.footer-secure:hover {
  border-color: rgba(127,217,255,.35);
  background: rgba(44,193,255,.05);
  color: var(--text-dim);
}
.footer-secure svg { color: var(--ok); }
.footer-secure b {
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 1.5px;
}
@media (max-width: 700px) {
  .footer-grid, .footer-meta { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* =========================================================
   Sticky footer (global) — short pages were leaving the
   footer floating mid-viewport. Make <body> a flex column
   and let <main> grow.
   ========================================================= */
html, body { min-height: 100vh; }
body {
  display: flex;
  flex-direction: column;
}
main#main {
  flex: 1 0 auto;
  padding-bottom: clamp(48px, 6vw, 96px);
}
.footer { flex-shrink: 0; }

/* =========================================================
   Variable aliases — earlier auth/checkout pages were
   authored against a different token set. Map them onto the
   live design tokens so existing inline styles render.
   ========================================================= */
:root {
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;

  --accent-cyan:   var(--tl-cyan);
  --accent-blue:   var(--tl-blue);
  --accent-danger: var(--warn);
  --accent-warn:   var(--gold);
  --accent-ok:     var(--ok);

  --text-0: #ffffff;
  --text-1: var(--text);
  --text-2: var(--text-dim);
  --text-3: var(--text-mute);

  --t-xs: 12px;
  --t-sm: 13px;
  --t-md: 15px;
  --t-lg: 17px;
  --t-xl: 22px;
}

/* =========================================================
   Auth / secondary pages — shared shell + card + form
   controls (password change, reset, checkout success/failed).
   Visual language matches login.php's .login-card.
   ========================================================= */
.auth-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 80px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 44px 40px 36px;
  position: relative;
  z-index: 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(44,193,255,.08), transparent 55%),
    rgba(7, 11, 24, 0.82);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(127,217,255,.18);
  box-shadow:
    0 40px 100px -30px rgba(44,193,255,.35),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 1px 0 rgba(255,255,255,.08) inset;
}
.auth-card__head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(44,193,255,.18), rgba(13,124,217,.08));
  border: 1px solid var(--border-cyan);
  color: var(--tl-cyan);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(44,193,255,.3), inset 0 1px 0 rgba(255,255,255,.1);
  animation: authIconPulse 3s ease-in-out infinite;
}
.auth-card__icon svg { width: 26px; height: 26px; }
.auth-card__icon--ok {
  background: linear-gradient(135deg, rgba(41,211,145,.22), rgba(41,211,145,.06));
  border-color: rgba(41,211,145,.45);
  color: var(--ok);
  box-shadow: 0 0 28px rgba(41,211,145,.3);
  animation: authIconPulseOk 3s ease-in-out infinite;
}
.auth-card__icon--danger {
  background: linear-gradient(135deg, rgba(255,77,109,.22), rgba(255,77,109,.06));
  border-color: rgba(255,138,155,.45);
  color: var(--warn);
  box-shadow: 0 0 28px rgba(255,77,109,.3);
  animation: authIconPulseDanger 3s ease-in-out infinite;
}
@keyframes authIconPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(44,193,255,.3), inset 0 1px 0 rgba(255,255,255,.1); }
  50%      { box-shadow: 0 0 40px rgba(44,193,255,.5), inset 0 1px 0 rgba(255,255,255,.1); }
}
@keyframes authIconPulseOk {
  0%, 100% { box-shadow: 0 0 28px rgba(41,211,145,.3); }
  50%      { box-shadow: 0 0 40px rgba(41,211,145,.5); }
}
@keyframes authIconPulseDanger {
  0%, 100% { box-shadow: 0 0 28px rgba(255,77,109,.3); }
  50%      { box-shadow: 0 0 40px rgba(255,77,109,.5); }
}
.auth-card h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin: 0 0 8px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.auth-card__sub {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0;
  text-align: center;
  line-height: 1.55;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-submit { margin-top: 8px; }
.auth-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.auth-cancel:hover { color: var(--text); background: rgba(255,255,255,.04); }
.auth-cancel svg { transition: transform .25s cubic-bezier(.2,.7,.3,1.2); }
.auth-cancel:hover svg { transform: translateX(3px); }
[dir="rtl"] .auth-cancel:hover svg { transform: translateX(-3px); }
.auth-card__footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-mute);
}
.auth-card__footer a {
  color: var(--tl-cyan);
  font-weight: 600;
  transition: color .2s;
}
.auth-card__footer a:hover { color: var(--tl-cyan-soft); }

/* Form field — static label above input. */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: .2px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.input:focus {
  border-color: var(--border-cyan);
  background: rgba(44,193,255,.04);
  box-shadow: 0 0 0 3px rgba(44,193,255,.12);
}
.input.ltr { direction: ltr; text-align: left; }
.input::placeholder { color: var(--text-mute); }

/* Inline alert banner (errors, warnings, success). */
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.banner svg { flex-shrink: 0; }
.banner--error   { background: rgba(255,77,109,.08);  border: 1px solid rgba(255,77,109,.3);  color: var(--warn); }
.banner--warning { background: rgba(255,216,107,.08); border: 1px solid rgba(255,216,107,.3); color: var(--gold); }
.banner--ok      { background: rgba(41,211,145,.08);  border: 1px solid rgba(41,211,145,.3);  color: var(--ok); }

/* BEM aliases — pages were authored with double-dash modifiers
   while design.css ships single-dash. Map both. */
.btn--primary {
  background: var(--grad-blue);
  color: #04102b;
  font-weight: 800;
  box-shadow: 0 20px 50px -16px rgba(44,193,255,.7), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(44,193,255,.85); }
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(44,193,255,.1); border-color: var(--border-cyan); }
.btn--block { width: 100%; }

/* Card entrance animation. */
.anim { animation: cardFadeIn .55s cubic-bezier(.2,.7,.3,1) both; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Soft pulsing glow — checkout success/failed icon circles use this. */
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 32px rgba(44,193,255,.30); }
  50%      { box-shadow: 0 0 48px rgba(44,193,255,.55); }
}

/* =========================================================
   Utilities — spacing, layout, text helpers used by the
   auth/checkout pages.
   ========================================================= */
.muted { color: var(--text-mute); }
.text-center { text-align: center; }

.flex        { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.grow        { flex: 1 1 0; min-width: 0; }

/* Linear progress bar — used by dashboard course cards. */
.progress {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tl-cyan), var(--tl-blue));
  border-radius: 100px;
  transition: width .6s cubic-bezier(.2,.7,.3,1);
  box-shadow: 0 0 12px rgba(44,193,255,.5);
}

/* Circular progress (progress_arc helper output) */
.progress-arc {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.progress-arc svg {
  transform: rotate(-90deg);
  width: 100%; height: 100%;
}
.progress-arc__track {
  stroke: rgba(140,180,255,.12);
}
.progress-arc__fill {
  stroke: var(--tl-cyan);
  filter: drop-shadow(0 0 4px rgba(44,193,255,.6));
  transition: stroke-dashoffset .8s cubic-bezier(.2,.7,.3,1);
}
.progress-arc__label {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Container widths */
.container--wide   { max-width: 1480px; }
.container--narrow { max-width: 760px; }

/* Card hover lift */
.card--hover {
  transition: transform .25s cubic-bezier(.2,.7,.3,1.2), border-color .3s, box-shadow .3s;
}
.card--hover:hover {
  transform: translateY(-3px);
  border-color: rgba(127,217,255,.3);
  box-shadow: 0 28px 60px -28px rgba(44,193,255,.45);
}

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; }

/* =========================================================
   Admin shell — sidebar + main area. Authored against a
   design system that wasn't wired in; this fills the gap so
   admin pages render with structure instead of raw HTML.
   ========================================================= */
.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.app-side {
  position: sticky;
  top: 0;
  z-index: 2;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  gap: 20px;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(44,193,255,.07), transparent 60%),
    linear-gradient(180deg, rgba(10,20,48,.92), rgba(4,7,18,.95)),
    rgba(7,11,24,.85);
  border-inline-start: 1px solid rgba(127,217,255,.1);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.app-side__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .5px;
  text-decoration: none;
  transition: color .2s ease;
}
.app-side__brand:hover { color: var(--tl-cyan); }
.app-side__brand img {
  width: 34px; height: 34px;
  filter: brightness(1.2) drop-shadow(0 0 14px rgba(44,193,255,.55));
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
  scrollbar-width: thin;
}
.app-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background .25s ease,
    color .25s ease,
    transform .35s cubic-bezier(.2,.7,.3,1.2),
    box-shadow .35s ease;
  white-space: nowrap;
}
.app-nav a svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--text-mute);
  transition: color .2s, transform .35s cubic-bezier(.2,.7,.3,1.4);
}
.app-nav a:hover {
  background: rgba(44,193,255,.06);
  color: var(--text);
  transform: translateX(-2px);
}
[dir="ltr"] .app-nav a:hover { transform: translateX(2px); }
.app-nav a:hover svg { color: var(--tl-cyan); transform: scale(1.08); }

.app-nav a.is-active {
  color: #04102b;
  background: linear-gradient(135deg, #7fd9ff 0%, #2cc1ff 50%, #0d7cd9 100%);
  box-shadow:
    0 14px 30px -14px rgba(44,193,255,.65),
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 0 rgba(6,47,110,.3);
  transform: translateX(0);
}
.app-nav a.is-active:hover { color: #04102b; transform: translateX(0); }
.app-nav a.is-active svg { color: #04102b; transform: scale(1); }

.app-side__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.app-side__footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-mute);
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.app-side__footer a:hover { color: var(--text); background: rgba(44,193,255,.06); }
.app-side__footer svg { width: 13px; height: 13px; flex-shrink: 0; }

.app-main {
  padding: 36px clamp(24px, 4vw, 56px) 60px;
  position: relative;
  z-index: 0;
  min-width: 0;
}
.app-main > h1,
.app-main > h2:first-child {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--text);
}
.app-main .container { padding: 0; max-width: none; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side {
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }
  .app-nav { flex-direction: row; overflow-x: auto; flex: 1 1 100%; }
  .app-side__footer { flex-direction: row; padding-top: 12px; }
}

/* =========================================================
   Admin pages — kpi cards, section cards, tables, pills,
   form rows, empty states, dropzones. Visual language
   inherits from landing.php: glass cards, cyan accents,
   gradient text on titles.
   ========================================================= */
.app-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.app-main__header > div.muted,
.app-main__header > p.muted { margin: 4px 0 0; }
.app-main__title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* KPI grid */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.kpi {
  position: relative;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(44,193,255,.10), transparent 60%),
    rgba(10,16,32,.78);
  border: 1px solid rgba(127,217,255,.18);
  box-shadow:
    0 20px 44px -22px rgba(4,16,43,.7),
    inset 0 1px 0 rgba(255,255,255,.05);
  animation-delay: var(--delay, 0s);
  overflow: hidden;
  transition:
    border-color .35s ease,
    transform .45s cubic-bezier(.2,.7,.3,1.2),
    box-shadow .45s cubic-bezier(.2,.7,.3,1.2);
}
.kpi:hover {
  border-color: rgba(127,217,255,.4);
  transform: translateY(-3px);
  box-shadow:
    0 30px 60px -22px rgba(44,193,255,.5),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(127,217,255,.18), transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.kpi:hover::before { opacity: 1; }
.kpi__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}
.kpi__value {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff 0%, #d6f1ff 60%, #2cc1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.kpi__delta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-dim);
  position: relative;
}
.kpi .sparkline {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 16px;
  width: 96px;
  height: 38px;
  opacity: .9;
  pointer-events: none;
}

/* Sections */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}
.admin-section {
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(13,124,217,.06), transparent 55%),
    rgba(10,16,32,.82);
  border: 1px solid rgba(127,217,255,.14);
  box-shadow:
    0 24px 56px -28px rgba(4,16,43,.7),
    inset 0 1px 0 rgba(255,255,255,.03);
  animation-delay: var(--delay, 0s);
  transition: border-color .35s ease, box-shadow .45s cubic-bezier(.2,.7,.3,1.2);
}
.admin-section:hover {
  border-color: rgba(127,217,255,.3);
  box-shadow:
    0 30px 64px -24px rgba(44,193,255,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
}
.admin-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.2px;
}
.admin-section__title a {
  color: var(--tl-cyan);
  font-weight: 700;
  font-size: 12px;
  transition: color .2s, transform .2s;
  text-decoration: none;
}
.admin-section__title a:hover { color: var(--tl-cyan-soft); transform: translateX(-2px); }
[dir="ltr"] .admin-section__title a:hover { transform: translateX(2px); }

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table thead th {
  text-align: start;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-mute);
  letter-spacing: .8px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(255,255,255,.015);
}
.table tbody td {
  padding: 12px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(140,180,255,.06);
  vertical-align: middle;
  transition: background .25s ease;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(44,193,255,.04); color: var(--text); }
.table .actor { color: var(--text); font-weight: 600; }
.table .action {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--tl-cyan);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(44,193,255,.08);
  border: 1px solid rgba(127,217,255,.22);
  display: inline-block;
}
.table .payload { color: var(--text-mute); font-size: 11px; font-family: 'JetBrains Mono', ui-monospace, monospace; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Translations table */
.translations-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.translations-table th { text-align: start; padding: 10px 12px; color: var(--text-mute); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.translations-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid rgba(140,180,255,.06); }
.translations-table .t-key { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--text); white-space: nowrap; }
.translations-table .t-input { width: 100%; }
.translations-table .t-val { color: var(--text-dim); }
.translations-table .t-missing { background: rgba(255,216,107,.04); }
.translations-table .t-missing .t-val { color: var(--gold); }

/* Lesson rows (admin/courses sortable list) */
.lesson-row {
  display: grid;
  grid-template-columns: auto 60px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20,36,71,.32);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: background .2s, border-color .2s, transform .15s;
}
.lesson-row:hover { background: rgba(44,193,255,.05); border-color: rgba(127,217,255,.25); }
.lesson-row__drag { cursor: grab; color: var(--text-mute); user-select: none; }
.lesson-row__drag:active { cursor: grabbing; }
.lesson-row__pos { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--text-mute); }
.lesson-row__title { color: var(--text); font-weight: 500; }
.lesson-row .badge-free { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 100px; background: rgba(41,211,145,.12); border: 1px solid rgba(41,211,145,.3); color: var(--ok); font-size: 10px; font-weight: 700; letter-spacing: .5px; }

/* Pills (status, role badges) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}
.pill--ok   { background: rgba(41,211,145,.12);  border: 1px solid rgba(41,211,145,.3);  color: var(--ok); }
.pill--warn { background: rgba(255,216,107,.10); border: 1px solid rgba(255,216,107,.35); color: var(--gold); }
.pill--bad  { background: rgba(255,77,109,.10);  border: 1px solid rgba(255,77,109,.35);  color: var(--warn); }
.pill--info { background: rgba(44,193,255,.10);  border: 1px solid rgba(127,217,255,.32); color: var(--tl-cyan); }

/* Form row layouts (admin forms) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.items-center { align-items: center; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  font-size: 14px;
}
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--tl-cyan); flex-shrink: 0; }

.textarea,
textarea.input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color .2s, background .2s;
}
.textarea:focus,
textarea.input:focus { border-color: var(--border-cyan); background: rgba(44,193,255,.04); }

.select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 32px;
}
[dir="rtl"] .select {
  background-position: 18px 50%, 13px 50%;
  padding-inline-end: 16px;
  padding-inline-start: 32px;
}
.select:focus { border-color: var(--border-cyan); background-color: rgba(44,193,255,.04); }

/* =========================================================
   Custom select — progressive enhancement of a native <select>
   inside [data-tl-select]. Ported from mdshare's glass dropdown,
   recolored to the TechLight cyan theme. JS: assets/js/tl-select.js
   (the menu is portaled to <body> so card overflow can't clip it).
   ========================================================= */
.tl-select { position: relative; }
.tl-select > select { /* hidden once JS builds the trigger; still submits */ }
.tl-select.is-enhanced > select {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none;
}
.tl-select__trigger {
  display: none;
  width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit; font-size: 14px;
  cursor: pointer; text-align: start;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.tl-select.is-enhanced > .tl-select__trigger { display: flex; }
.tl-select__trigger:hover { border-color: var(--border-cyan); }
.tl-select.is-open > .tl-select__trigger,
.tl-select__trigger:focus-visible {
  border-color: var(--border-cyan);
  background: rgba(44,193,255,.04);
  box-shadow: 0 0 0 3px rgba(44,193,255,.12);
  outline: none;
}
.tl-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-select__chev { flex: none; color: var(--text-mute); transition: transform .25s ease; }
.tl-select.is-open .tl-select__chev { transform: rotate(180deg); }

.tl-select__menu {
  position: fixed; z-index: 1000;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), rgba(10,16,36,.94);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border-strong, rgba(255,255,255,.1));
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 56px rgba(0,0,0,.55);
  max-height: 280px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top center;
  transition: opacity .14s ease, transform .14s ease;
  pointer-events: none;
}
.tl-select__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.tl-select__option {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 11px;
  font-family: inherit; font-size: 14px; text-align: start;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-dim); cursor: pointer;
  transition: background .12s, color .12s;
}
.tl-select__option:hover,
.tl-select__option.is-active { background: rgba(255,255,255,.05); color: var(--text); }
.tl-select__option.is-selected { background: rgba(44,193,255,.1); color: var(--text); }
.tl-select__check { margin-inline-start: auto; flex: none; color: var(--tl-cyan); opacity: 0; }
.tl-select__option.is-selected .tl-select__check { opacity: 1; }

.code-editor {
  width: 100%;
  min-height: 280px;
  padding: 14px 16px;
  background: #050914;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}
.code-editor:focus { border-color: var(--border-cyan); }

.email-preview {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-family: -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  min-height: 280px;
  border: 1px solid var(--border);
}

/* Editor grid (forms with main + side panel) */
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1024px) { .editor-grid { grid-template-columns: 1fr; } }

/* Dropzone (uploads) */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  background: rgba(44,193,255,.03);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--border-cyan);
  background: rgba(44,193,255,.07);
}
.dropzone__icon { color: var(--tl-cyan); width: 32px; height: 32px; }
.dropzone__title { color: var(--text); font-weight: 700; font-size: 14px; }
.dropzone__hint { color: var(--text-mute); font-size: 12px; }

/* Empty states */
.empty {
  padding: 56px 32px;
  text-align: center;
  border-radius: 18px;
  background: rgba(10,16,32,.5);
  border: 1px dashed var(--border);
}
.empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(44,193,255,.08);
  border: 1px solid rgba(127,217,255,.25);
  color: var(--tl-cyan);
}
.empty__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.empty p, .empty + p { color: var(--text-mute); font-size: 13px; }

/* Text utilities used by admin */
.text-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.text-ltr  { direction: ltr; text-align: start; unicode-bidi: isolate; }

/* Banner success variant (admin flash) */
.banner--success { background: rgba(41,211,145,.08); border: 1px solid rgba(41,211,145,.3); color: var(--ok); }
