/* CorsiIslamici.it — Glass + Glow UI */
:root {
  --blue: #0263B7;
  --sky: #049AD5;
  --teal: #72CFAD;
  --navy: #0B2D5B;
  --ink: #12305A;
  --muted: #5B7193;
  --bg: #EEF6FF;
  --white: #FFFFFF;
  --danger: #E5484D;
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --stroke: rgba(2, 99, 183, 0.12);
  --shadow: 0 18px 50px -12px rgba(2, 64, 140, 0.22), 0 4px 14px -4px rgba(2, 64, 140, 0.10);
  --glow: 0 0 0 1px rgba(4, 154, 213, 0.35), 0 10px 40px -6px rgba(4, 154, 213, 0.55);
  --grad: linear-gradient(135deg, #0263B7 0%, #049AD5 55%, #72CFAD 100%);
  --grad-soft: linear-gradient(135deg, rgba(2,99,183,.12), rgba(114,207,173,.16));
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
a { color: var(--blue); text-decoration: none; }
.ar { font-family: 'Cairo', sans-serif; direction: rtl; unicode-bidi: isolate; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambient scene ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; perspective: 900px; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.a1 { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, #6EC3FF 0%, transparent 65%); animation: drift1 22s var(--ease) infinite alternate; }
.a2 { width: 46vw; height: 46vw; right: -14vw; top: 10vh; background: radial-gradient(circle, #8BE3C7 0%, transparent 65%); animation: drift2 26s var(--ease) infinite alternate; }
.a3 { width: 60vw; height: 60vw; left: 25vw; bottom: -35vw; background: radial-gradient(circle, #9FC9FF 0%, transparent 62%); animation: drift1 30s var(--ease) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(.92); } }
.pattern {
  position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230263B7' stroke-opacity='.10' stroke-width='1'%3E%3Cpath d='M60 18l12 30 30 12-30 12-12 30-12-30-30-12 30-12z'/%3E%3Crect x='38' y='38' width='44' height='44' transform='rotate(45 60 60)'/%3E%3Crect x='38' y='38' width='44' height='44'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.float3d { position: absolute; transform-style: preserve-3d; animation: bob 9s ease-in-out infinite; }
.f1 { left: 1.5vw; top: 64vh; animation-delay: -2s; }
.f2 { right: 1vw; top: 26vh; }
.f3 { right: 2.5vw; bottom: 8vh; animation-delay: -4s; }
.f4 { left: 2vw; top: 16vh; animation-delay: -6s; }
.f5 { left: 46vw; bottom: -30px; animation-delay: -3s; }
@media (max-width: 1360px) { .float3d { opacity: .45; } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }

.orb {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, rgba(255,255,255,.75) 14%, rgba(4,154,213,.45) 48%, rgba(2,99,183,.75) 100%);
  box-shadow: inset -10px -14px 30px rgba(2,64,140,.35), 0 20px 50px rgba(4,154,213,.35);
}
.orb.small { width: 46px; height: 46px; background: radial-gradient(circle at 32% 28%, #fff 0%, rgba(114,207,173,.6) 45%, rgba(4,154,213,.8) 100%); }

.cube { width: 64px; height: 64px; position: relative; transform-style: preserve-3d; animation: spin3d 18s linear infinite; }
.cube i {
  position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(4,154,213,.22));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 0 18px rgba(4,154,213,.35);
  backdrop-filter: blur(4px);
}
.cube i:nth-child(1) { transform: translateZ(32px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(32px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(32px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(32px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(32px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(32px); }
@keyframes spin3d { to { transform: rotateX(360deg) rotateY(720deg); } }

.star8 { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: tumble 16s linear infinite; }
.star8 i {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(135deg, rgba(114,207,173,.75), rgba(4,154,213,.55));
  box-shadow: 0 10px 30px rgba(114,207,173,.45), inset 0 0 0 1px rgba(255,255,255,.7);
}
.star8 i:nth-child(2) { transform: rotate(45deg); }
@keyframes tumble { to { transform: rotateY(360deg) rotateZ(180deg); } }

.ring3d {
  width: 84px; height: 84px; border-radius: 50%;
  border: 10px solid transparent;
  background: linear-gradient(#fff0, #fff0) padding-box, var(--grad) border-box;
  box-shadow: 0 0 30px rgba(4,154,213,.35);
  animation: ringSpin 14s linear infinite;
  opacity: .8;
}
@keyframes ringSpin { to { transform: rotateX(70deg) rotateZ(360deg); } from { transform: rotateX(70deg) rotateZ(0); } }

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

/* ---------- Layout ---------- */
.app { position: relative; z-index: 1; min-height: 100vh; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.seo-fallback { padding: 48px 0; line-height: 1.6; }
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Glass primitives ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: var(--radius);
}
.glass-strong { background: var(--glass-strong); }

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .3s var(--ease), background .3s, opacity .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 28px -8px rgba(2,99,183,.7), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow), 0 16px 34px -10px rgba(2,99,183,.8); background-position: 100% 0; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,.65); color: var(--blue); box-shadow: inset 0 0 0 1px var(--stroke); }
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(4,154,213,.4), 0 8px 24px -10px rgba(4,154,213,.6); transform: translateY(-1px); }
.btn-wa { color: #fff; background: linear-gradient(135deg, #1FAF5A, #25D366); box-shadow: 0 10px 26px -10px rgba(37,211,102,.8); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(37,211,102,.4), 0 14px 34px -8px rgba(37,211,102,.75); }
.btn-danger { color: var(--danger); background: rgba(229,72,77,.08); box-shadow: inset 0 0 0 1px rgba(229,72,77,.2); }
.btn-danger:hover { background: rgba(229,72,77,.14); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--stroke); color: var(--blue); transition: .25s var(--ease);
}
.icon-btn:hover { background: #fff; box-shadow: var(--glow); }
.icon-btn svg { width: 20px; height: 20px; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--sky); pointer-events: none; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; outline: none;
  background: rgba(255,255,255,.75); border: 1px solid rgba(2,99,183,.14);
  transition: border-color .2s, box-shadow .3s var(--ease), background .2s;
}
.input-wrap > svg + .input { padding-left: 46px; }
.input:disabled { background: rgba(2,99,183,.05); color: var(--muted); border-style: dashed; cursor: not-allowed; }
.input:focus { border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(4,154,213,.15), 0 8px 24px -12px rgba(4,154,213,.8); }
.input-wrap .toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: none; box-shadow: none; }
.form-error { min-height: 22px; color: var(--danger); font-size: 14px; font-weight: 600; margin: 4px 0 12px; }
.form-error:empty { visibility: hidden; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px) } 40%, 80% { transform: translateX(8px) } }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: rgba(255,255,255,.7); color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.chip svg { width: 16px; height: 16px; }
.chip.teal { color: #138A66; background: rgba(114,207,173,.22); }
.chip.lock { color: #6A5A00; background: rgba(255, 200, 60, .2); }

/* ---------- Login ---------- */
.login-card { padding: 4px 4px 0; width: 100%; position: relative; }
.login-card .logo { width: 70px; margin: 0 auto 6px; filter: drop-shadow(0 8px 20px rgba(4,154,213,.25)); }
.login-card h2 { font-size: 24px; margin: 0 0 4px; text-align: center; letter-spacing: -.01em; }
.login-card .lead { text-align: center; color: var(--muted); margin: 0 0 10px; font-size: 15px; }
.login-card .field { margin-bottom: 8px; }
.login-card .field label { margin-bottom: 4px; }
.login-card .privacy-check { margin: 4px 0 6px; }
.login-card .socials.compact { margin-top: 8px; }
.login-card .login-foot { margin-top: 10px; font-size: 13px; }
.privacy-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.4; }
.privacy-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.privacy-check a { font-weight: 700; }
.privacy-doc { max-height: min(70vh, 620px); overflow-y: auto; }
.privacy-doc h3 { display: flex; align-items: center; gap: 8px; }
.privacy-doc h3 svg { width: 20px; height: 20px; }
.privacy-doc p { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.seen { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.seen i { width: 8px; height: 8px; border-radius: 50%; background: #b6c2d1; }
.seen.online { color: #12805c; font-weight: 700; }
.seen.online i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.login-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.login-foot a { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.login-foot svg { width: 16px; height: 16px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; padding: 14px 0; }
.topbar-inner { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.brand img { width: 34px; }
.brand span b { color: var(--sky); }
.topbar .spacer { flex: 1; }
.nav-link { font-weight: 700; font-size: 14px; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: .2s; display: inline-flex; gap: 8px; align-items: center; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: rgba(4,154,213,.1); }
.overall-pill .pct { color: var(--blue); }
.overall-pill { white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--stroke); font-size: 13px; font-weight: 700; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  color: #fff; font-weight: 800; font-size: 17px; background: var(--grad);
  box-shadow: 0 0 0 3px #fff, 0 8px 20px -6px rgba(2,99,183,.7); transition: transform .3s var(--spring), box-shadow .3s;
}
.avatar:hover, .avatar[aria-expanded='true'] { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, var(--glow); }
.avatar.lg { width: 84px; height: 84px; font-size: 34px; cursor: default; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 290px; padding: 10px; z-index: 60;
  transform-origin: top right; animation: menuIn .3s var(--spring);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.95) rotateX(-12deg); } }
.menu-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--stroke); margin-bottom: 6px; }
.menu-head .avatar { width: 44px; height: 44px; cursor: default; }
.menu-head b { display: block; }
.menu-head small { color: var(--muted); word-break: break-all; }
.menu a, .menu button.item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; transition: .2s;
}
.menu a:hover, .menu button.item:hover { background: rgba(4,154,213,.1); color: var(--blue); }
.menu svg { width: 18px; height: 18px; color: var(--sky); }
.menu .wa svg { color: #1FAF5A; }
.menu .out { color: var(--danger); }
.menu .out svg { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--stroke); margin: 6px 0; }

/* ---------- Progress UI ---------- */
.top-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 4px; background: rgba(2,99,183,.08); }
.top-progress .bar { height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px rgba(4,154,213,.9), 0 0 2px #fff; transition: width .9s var(--ease); border-radius: 0 4px 4px 0; }

.ring { --size: 120px; --stroke-w: 10; position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(2,99,183,.1); }
.ring .val { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 0 6px rgba(4,154,213,.7)); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: calc(var(--size) * .24); color: var(--navy); line-height: 1; }
.ring .num small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.ring.sm { --size: 34px; }
.ring.sm .num { font-size: 0; }

.bar-line { height: 8px; border-radius: 999px; background: rgba(2,99,183,.1); overflow: hidden; }
.bar-line i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px rgba(4,154,213,.8); transition: width 1.1s var(--ease); }

/* ---------- Dashboard ---------- */
.page { padding: 18px 0 80px; }
.welcome { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px; margin-top: 10px; position: relative; overflow: hidden; }
.welcome::before { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(114,207,173,.35), transparent 70%); }
.welcome .salam { text-align: left; font-family: 'Cairo', sans-serif; color: var(--sky); font-size: 18px; margin: 0 0 4px; }
.welcome h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; }
.welcome h1 .name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome p { margin: 0; color: var(--muted); max-width: 52ch; line-height: 1.6; }
.welcome-stats { display: flex; gap: 22px; align-items: center; position: relative; }
.stat-tiles { display: grid; gap: 12px; }
.stat-tile { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--stroke); min-width: 200px; }
.stat-tile .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(2,99,183,.8); flex: none; }
.stat-tile .ic svg { width: 20px; height: 20px; }
.stat-tile b { display: block; font-size: 22px; color: var(--navy); line-height: 1.1; }
.stat-tile b small { font-size: 14px; color: var(--muted); }
.stat-tile span { font-size: 13px; color: var(--muted); font-weight: 600; }

.resume { display: grid; grid-template-columns: 220px 1fr auto; gap: 22px; align-items: center; padding: 16px; margin-top: 20px; }
.resume .thumb { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; position: relative; box-shadow: 0 10px 24px -10px rgba(2,64,140,.5); }
.resume .thumb img { width: 100%; height: 100%; object-fit: cover; }
.resume .kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.resume h3 { margin: 4px 0 6px; font-size: 20px; }
.resume p { margin: 0; color: var(--muted); font-size: 14px; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 40px 0 18px; gap: 16px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 26px; }
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .4s var(--ease); will-change: transform; }
.tilt .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 45%); mix-blend-mode: soft-light; }
.tilt:hover .shine { opacity: 1; }

.course-card { position: relative; padding: 12px; cursor: pointer; outline: none; }
.course-card:hover, .course-card:focus-visible { box-shadow: var(--glow), var(--shadow); }
.course-card .cover { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; transform: translateZ(30px); box-shadow: 0 16px 34px -14px rgba(2,64,140,.55); }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.course-card:hover .cover img { transform: scale(1.05); }
.course-card .body { padding: 18px 10px 8px; transform: translateZ(18px); }
.course-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-card h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.course-card .ar { color: var(--sky); font-size: 16px; }
.course-card .tag { margin: 6px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.course-card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.course-card .meta span { display: inline-flex; gap: 6px; align-items: center; }
.course-card .meta svg { width: 16px; height: 16px; color: var(--sky); }
.course-card .prog { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.course-card .prog b { font-size: 15px; color: var(--blue); min-width: 44px; text-align: right; }
.course-card .actions { display: flex; gap: 10px; }

.course-card.locked .cover img { filter: grayscale(.45) blur(1.5px) brightness(.92); }
.lock-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; z-index: 3;
  background: linear-gradient(180deg, rgba(1,40,90,.25), rgba(1,40,90,.7));
}
.lock-3d { width: 78px; height: 78px; margin: 0 auto 10px; border-radius: 24px; display: grid; place-items: center; transform-style: preserve-3d; animation: lockFloat 4s ease-in-out infinite;
  background: linear-gradient(145deg, rgba(255,255,255,.4), rgba(255,255,255,.1)); border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -10px rgba(0,0,0,.45), 0 0 30px rgba(4,154,213,.6), inset 0 1px 0 rgba(255,255,255,.7); }
.lock-3d svg { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(255,255,255,.8)); }
@keyframes lockFloat { 50% { transform: translateY(-6px) rotateY(18deg) rotateX(8deg); } }
.lock-overlay b { font-size: 18px; display: block; }
.lock-overlay small { opacity: .85; }

/* ---------- Course page ---------- */
.course-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 22px; align-items: center; margin-top: 10px; position: relative; overflow: hidden; }
.course-hero .cover { border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 20px 40px -16px rgba(2,64,140,.6); position: relative; }
.course-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { width: 14px; height: 14px; }
.course-hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0; letter-spacing: -.02em; }
.course-hero .ar { font-size: 20px; color: var(--sky); margin: 2px 0 10px; display: block; text-align: left; }
.course-hero p { color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
.course-hero .hero-prog { display: flex; align-items: center; gap: 22px; }
.course-hero .hero-prog .txt b { font-size: 18px; display: block; }
.course-hero .hero-prog .txt span { color: var(--muted); font-size: 14px; }

.locked-banner { display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-top: 20px; border: 1px solid rgba(255,200,60,.5); background: linear-gradient(135deg, rgba(255,246,214,.85), rgba(255,255,255,.7)); }
.locked-banner .lock-3d { width: 56px; height: 56px; border-radius: 18px; margin: 0; background: linear-gradient(145deg, #FFC94A, #F59E0B); animation: none; box-shadow: 0 10px 24px -8px rgba(245,158,11,.8); }
.locked-banner .lock-3d svg { width: 26px; height: 26px; color: #fff; }
.locked-banner .txt { flex: 1; }
.locked-banner b { display: block; font-size: 17px; }
.locked-banner span { color: #7A6420; font-size: 14px; }

.levels { display: grid; gap: 18px; margin-top: 26px; }
.level { overflow: hidden; }
.level-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left; }
.level-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--grad); box-shadow: 0 10px 22px -8px rgba(2,99,183,.8), inset 0 1px 0 rgba(255,255,255,.4); transform: perspective(300px) rotateY(-12deg); }
.level-head h2 { margin: 0; font-size: 20px; }
.level-head .sub { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 4px; display: flex; gap: 12px; align-items: center; }
.level-head .sub .bar-line { width: 140px; height: 6px; }
.level-head .chev { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,154,213,.1); color: var(--blue); transition: transform .4s var(--spring); }
.level-head .chev svg { width: 20px; height: 20px; }
.level.open .chev { transform: rotate(180deg); }
.level-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.level.open .level-body { grid-template-rows: 1fr; }
.level-body > div { overflow: hidden; }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; padding: 4px 22px 24px; }

.lesson { position: relative; border-radius: 18px; padding: 10px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 8px 22px -14px rgba(2,64,140,.4); cursor: pointer; text-align: left; transition: transform .35s var(--spring), box-shadow .3s; animation: viewIn .5s var(--ease) both; }
.lesson:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.lesson.is-done { background: linear-gradient(160deg, rgba(114,207,173,.22), rgba(255,255,255,.75) 55%); border-color: rgba(114,207,173,.7); box-shadow: 0 0 0 1px rgba(114,207,173,.35), 0 10px 26px -14px rgba(47,180,135,.6); }
.lesson.is-done .ep { color: #2FB487; }
.lesson .thumb, .resume .thumb, .pl-item .t, .course-card .cover { background: linear-gradient(100deg, #E3EEFA 30%, #F4F9FF 50%, #E3EEFA 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.lesson .thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; }
.lesson .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lesson:hover .thumb img { transform: scale(1.06); }
.lesson .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: .3s; background: rgba(1,40,90,.25); }
.lesson:hover .play { opacity: 1; }
.lesson .play span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.3); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 0 30px rgba(4,154,213,.8); color: #fff; }
.lesson .play svg { width: 22px; height: 22px; margin-left: 3px; }
.lesson .dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(1,30,70,.65); backdrop-filter: blur(6px); }
.lesson .done-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(255,255,255,.92); color: #138A66; font-size: 12px; font-weight: 800; box-shadow: 0 0 18px rgba(114,207,173,.9); }
.lesson .done-badge svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--teal); color: #fff; }
.lesson .free-badge { color: var(--blue); box-shadow: 0 0 18px rgba(4,154,213,.55); }
.lesson .free-badge svg { background: var(--blue); padding: 3px; }
.lesson .info { padding: 12px 6px 4px; }
.lesson .ep { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.lesson h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }
.lesson.is-locked { cursor: not-allowed; }
.lesson.is-locked .thumb img { filter: grayscale(.5) blur(1px) brightness(.9); }
.lesson.is-locked:hover { transform: none; box-shadow: 0 8px 22px -14px rgba(2,64,140,.4); }
.lesson .lock-mini { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(1,40,90,.35); }
.lesson .lock-mini span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); color: #fff; }
.lesson .lock-mini svg { width: 22px; height: 22px; }
.lesson.soon .thumb::after { content: 'Presto disponibile'; position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.9); color: var(--blue); }

/* ---------- Lesson player ---------- */
.player-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 10px; align-items: start; }
.player-card { padding: 14px; }
.player-frame { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #021B3A center / cover no-repeat; box-shadow: 0 0 0 1px rgba(4,154,213,.3), 0 0 60px -10px rgba(4,154,213,.55); }
.player-frame iframe, .player-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-frame .msg { display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; background: rgba(2,27,58,.45); backdrop-filter: blur(3px); }
.player-info { padding: 18px 8px 6px; display: flex; gap: 16px; align-items: start; justify-content: space-between; flex-wrap: wrap; }
.ep-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.player-info h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.01em; }
.player-nav { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px; }
.player-nav .grow { flex: 1; }
.btn-done.is-done { background: linear-gradient(135deg, #2FB487, #72CFAD); box-shadow: 0 0 0 1px rgba(114,207,173,.4), 0 10px 30px -8px rgba(47,180,135,.8); }

.playlist { padding: 14px; position: sticky; top: 96px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.playlist h3 { margin: 6px 8px 4px; font-size: 16px; }
.playlist .sub { margin: 0 8px 12px; font-size: 13px; color: var(--muted); }
.playlist .list { overflow: auto; display: grid; gap: 6px; padding-right: 4px; }
.pl-item { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 14px; border: 0; background: none; text-align: left; cursor: pointer; transition: .2s; }
.pl-item:hover { background: rgba(4,154,213,.08); }
.pl-item.current { background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px rgba(4,154,213,.35), 0 0 20px -6px rgba(4,154,213,.6); }
.pl-item .t { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.pl-item .t img { width: 100%; height: 100%; object-fit: cover; }
.pl-item .t .ok { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 0 10px rgba(114,207,173,1); }
.pl-item .t .ok svg { width: 13px; height: 13px; }
.pl-item .t .ok.lk { background: rgba(20,30,50,.6); box-shadow: none; }
.pl-item small { color: var(--sky); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pl-item b { display: block; font-size: 13px; line-height: 1.3; }
.pl-level { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.card { padding: 28px; }
.card h2 { margin: 0 0 6px; font-size: 20px; display: flex; gap: 10px; align-items: center; }
.card h2 svg { width: 22px; height: 22px; color: var(--sky); }
.card .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.profile-head b { font-size: 22px; display: block; }
.profile-head span { color: var(--muted); }
.teacher-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: end; overflow: hidden; position: relative; padding-bottom: 0; }
.teacher-card .pic { align-self: end; position: relative; }
.teacher-card .pic::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; top: 25%; border-radius: 50% 50% 0 0; background: var(--grad); opacity: .85; filter: blur(2px); }
.teacher-card .pic img { position: relative; height: 210px; width: auto; margin: 0 auto; }
.teacher-card .txt { padding-bottom: 28px; }
.teacher-name { display: block; font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.teacher-name small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-top: 2px; }
.teacher-card .num { font-weight: 800; color: var(--navy); margin: 6px 0 16px; display: block; }

/* ---------- Admin ---------- */
.admin-head { align-items: center; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-tabs a { text-decoration: none; }
.admin-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-stats .stat-tile { min-width: 0; padding-right: 22px; }
.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; margin-top: 4px; align-items: start; }
.admin-grid > * { min-width: 0; }
.new-user { position: sticky; top: 96px; }
.users-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.users-head h2 { margin: 0; }
.users-head .search { width: min(300px, 100%); }
.users-head .search .input { height: 44px; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 14px; }
table.users th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 14px 0; white-space: nowrap; }
table.users th.act-h { text-align: right; }
table.users td { background: rgba(255,255,255,.78); padding: 12px 14px; vertical-align: middle; transition: background .2s; }
table.users tr:hover td { background: #fff; }
table.users td:first-child { border-radius: 16px 0 0 16px; }
table.users td:last-child { border-radius: 0 16px 16px 0; }
table.users .who { display: flex; align-items: center; gap: 12px; min-width: 220px; }
table.users .who b { display: block; }
table.users .who small { color: var(--muted); word-break: break-all; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; cursor: default; box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgba(2,99,183,.7); flex: none; }
table.users .acts { white-space: nowrap; text-align: right; }
table.users .acts .icon-btn { display: inline-grid; width: 38px; height: 38px; margin-left: 6px; }
.icon-btn.danger { color: var(--danger); }
.icon-btn.danger:hover { box-shadow: 0 0 0 1px rgba(229,72,77,.35), 0 8px 20px -8px rgba(229,72,77,.6); }
.switch.access { gap: 12px; }
.switch.access .state { display: grid; line-height: 1.2; }
.switch.access .state b { font-size: 13px; color: var(--muted); }
.switch.access .state small { font-size: 12px; color: var(--muted); font-weight: 500; }
.switch.access.on .state b { color: var(--blue); }
.empty-search { text-align: center; color: var(--muted); padding: 24px; margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: rgba(2,99,183,.15); position: relative; transition: .3s; flex: none; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.switch input:checked + .track { background: var(--grad); box-shadow: 0 0 14px rgba(4,154,213,.6); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--sky); outline-offset: 2px; }
.checks { display: grid; gap: 8px; margin-bottom: 6px; }
.check-row { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--stroke); }
.role-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(4,154,213,.12); color: var(--blue); margin-left: 6px; text-transform: uppercase; letter-spacing: .05em; }
.cred-box { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(4,154,213,.25); margin-bottom: 18px; }
.cred-box div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cred-box span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cred-box b { word-break: break-all; text-align: right; }
.cred-actions { flex-wrap: wrap; }

@media (max-width: 1020px) {
  .new-user { position: static; }
  .users-card { order: -1; }
}
@media (max-width: 720px) {
  .admin-stats { width: 100%; }
  .admin-stats .stat-tile { flex: 1 1 140px; }
  table.users, table.users tbody, table.users tr, table.users td { display: block; }
  table.users thead { display: none; }
  table.users tr { background: rgba(255,255,255,.78); border-radius: 18px; padding: 6px 4px; margin-bottom: 12px; position: relative; }
  table.users tr[hidden] { display: none; }
  table.users td, table.users td:first-child, table.users td:last-child { background: none; border-radius: 0; padding: 8px 12px; }
  table.users .who { min-width: 0; padding-right: 96px; }
  table.users td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--stroke); }
  table.users td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; }
  table.users .acts { position: absolute; top: 10px; right: 8px; padding: 0; }
  .cred-actions .btn { flex: 1; }
}

/* ---------- Toasts / modal / misc ---------- */
.toasts { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; font-weight: 600; font-size: 14px; animation: toastIn .45s var(--spring); }
.toast svg { width: 22px; height: 22px; flex: none; color: var(--sky); }
.toast.success svg { color: #2FB487; }
.toast.error svg { color: var(--danger); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }

.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(4,30,70,.35); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(440px, 100%); padding: 28px; animation: menuIn .4s var(--spring); }
.modal h3 { margin: 0 0 8px; font-size: 20px; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

.burst { position: fixed; pointer-events: none; z-index: 95; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: burst 1s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

.loader { display: grid; place-items: center; min-height: 60vh; }
.loader span { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(4,154,213,.15); border-top-color: var(--sky); animation: spin 1s linear infinite; box-shadow: 0 0 24px rgba(4,154,213,.35); }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 60px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .player-layout, .admin-grid, .profile-grid { grid-template-columns: 1fr; }
  .playlist { position: static; max-height: 520px; }
  .course-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .topbar-inner { padding: 8px 8px 8px 14px; gap: 8px; }
  .brand span, .overall-pill .txt, .nav-link span { display: none; }
  .welcome { grid-template-columns: 1fr; padding: 24px; }
  .resume { grid-template-columns: 1fr; }
  .resume .btn { width: 100%; }
  .login-card { padding: 24px 20px; }
  .login-card h2 { font-size: 24px; }
  .login-card .lead { margin-bottom: 18px; }
  .player-nav .grow { display: none; }
  .player-nav .btn { flex: 1; }
  .btn-done { width: 100%; }
  .overall-pill { padding: 6px 12px 6px 6px; }
  .stat-tile { min-width: 0; }
  .level-head { grid-template-columns: auto 1fr auto; padding: 16px; gap: 12px; }
  .level-head .chip { display: none; }
  .level-head .sub .bar-line { width: 80px; }
  .lessons { padding: 4px 14px 18px; }
  .locked-banner { flex-wrap: wrap; }
  .locked-banner .btn { width: 100%; }
  .teacher-card { grid-template-columns: 1fr; }
  .teacher-card .pic { order: 2; }
  .teacher-card .txt { padding-bottom: 0; }
  .card { padding: 22px; }
  .float3d { display: none; }
  .course-card .actions { flex-direction: column; }
}

.field small { font-weight: 500; color: var(--muted); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(2,99,183,.06); }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); transition: .25s var(--ease); }
.segmented span svg { width: 18px; height: 18px; }
.segmented input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 6px 16px -8px rgba(2,99,183,.6); }
.segmented input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ---------- Public programme (visitors) ---------- */
.explore { padding: 8px 0 80px; }
.explore > .section-head:first-child { margin-top: 12px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2 svg { width: 24px; height: 24px; color: var(--sky); flex: none; }
.section-head > .btn { flex: none; }

/* Reels: vertical 9:16 cards in a horizontal swipe row. */
.reels { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; scrollbar-width: thin; }
.reel { flex: 0 0 clamp(200px, 22vw, 260px); scroll-snap-align: start; }
.reel-frame { position: relative; display: block; width: 100%; aspect-ratio: 9/16; border: 0; padding: 0; border-radius: 24px; overflow: hidden; cursor: pointer; background: #0B2D5B; color: #fff; text-align: left;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 5px rgba(4,154,213,.45), 0 22px 44px -16px rgba(2,64,140,.65); transition: transform .4s var(--spring), box-shadow .3s; }
.reel-frame:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sky), 0 0 40px rgba(4,154,213,.6); }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reel-frame:hover img { transform: scale(1.06); }
.reel-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,30,70,.15), transparent 35%, transparent 50%, rgba(1,25,60,.88)); pointer-events: none; }
.reel-frame.playing::after { display: none; }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-play { position: absolute; z-index: 1; left: 50%; top: 45%; translate: -50% -50%; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.28); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 0 34px rgba(4,154,213,.9); transition: transform .35s var(--spring); }
.reel-frame:hover .reel-play { transform: scale(1.12); }
.reel-play svg { width: 26px; height: 26px; margin-left: 4px; }
.reel-cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; }
.reel-cap b { display: block; font-size: 16px; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.reel-cap small { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; opacity: .85; }
.reel-cap small svg { width: 12px; height: 12px; }

/* Course map */
.map-tabs { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; }
.map-tab { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 18px; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--stroke); transition: .3s var(--ease); }
.map-tab img { width: 74px; aspect-ratio: 16/9; object-fit: cover; border-radius: 11px; }
.map-tab b { display: block; font-size: 15px; }
.map-tab small { color: var(--muted); font-weight: 600; }
.map-tab:hover { background: #fff; transform: translateY(-2px); }
.map-tab.active { background: #fff; box-shadow: var(--glow); }
.map-tab.active b { color: var(--blue); }

.map-panel { padding: 22px; }
.map-head { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; animation: viewIn .45s var(--ease) both; }
.map-head .cover { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 16px 34px -14px rgba(2,64,140,.55); }
.map-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.map-head h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.map-head .ar { color: var(--sky); font-size: 16px; }
.map-head p { margin: 6px 0 12px; color: var(--muted); line-height: 1.5; }
.map-head .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }
.map-head .meta span { display: inline-flex; gap: 6px; align-items: center; }
.map-head .meta svg { width: 16px; height: 16px; color: var(--sky); }

/* Collapsible body: "Nascondi dettagli" keeps only tabs + course header. */
.map-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease); }
.map-body > div { overflow: hidden; }
.course-map.collapsed .map-body { grid-template-rows: 0fr; }

/* Level steps joined by a line. */
.map-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; margin: 22px 0 16px; }
.map-steps::before { content: ''; position: absolute; left: 26px; right: 26px; top: 26px; height: 3px; border-radius: 3px; background: rgba(4,154,213,.18); }
.map-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.map-step .level-badge { flex: none; background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px rgba(4,154,213,.35); transform: none; transition: .35s var(--spring); }
.map-step > span:last-child { padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.85); }
.map-step b { display: block; font-size: 15px; }
.map-step small { color: var(--muted); font-weight: 600; font-size: 12px; }
.map-step:hover .level-badge { transform: scale(1.08); }
.map-step.active .level-badge, .map-step.past .level-badge { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(2,99,183,.8); }
.map-step.active .level-badge { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(4,154,213,.18), 0 10px 22px -8px rgba(2,99,183,.8); }
.map-step.active b { color: var(--blue); }

.map-carousel { position: relative; }
.map-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 19%, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 12px; scrollbar-width: none; }
.map-track::-webkit-scrollbar { display: none; }
.map-arrow { position: absolute; z-index: 2; top: calc(50% - 26px); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--blue); background: rgba(255,255,255,.95); box-shadow: 0 8px 22px -8px rgba(2,64,140,.5); transition: .25s; }
.map-arrow svg { width: 20px; height: 20px; }
.map-arrow:hover { background: #fff; box-shadow: var(--glow); }
.map-arrow.prev { left: -12px; } .map-arrow.next { right: -12px; }
.map-arrow[disabled] { opacity: 0; pointer-events: none; }
.map-ep { scroll-snap-align: start; border-radius: 16px; padding: 8px; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 8px 22px -14px rgba(2,64,140,.4); cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: transform .35s var(--spring), box-shadow .3s; animation: viewIn .45s var(--ease) both; }
.map-ep:hover { transform: translateY(-5px); box-shadow: var(--glow); }
.map-ep .thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: linear-gradient(100deg, #E3EEFA 30%, #F4F9FF 50%, #E3EEFA 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.map-ep .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.map-ep:hover .thumb img { transform: scale(1.07); }
.map-ep .peek { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(1,40,90,.3); color: #fff; opacity: 0; transition: .3s; }
.map-ep .peek svg { width: 26px; height: 26px; }
.map-ep:hover .peek { opacity: 1; }
.map-ep .dur { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 7px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(1,30,70,.65); }
.map-ep .info { padding: 9px 4px 2px; }
.map-ep .ep { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.map-ep b { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; }

.ep-preview .thumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 16px 34px -14px rgba(2,64,140,.55); }
.ep-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-preview .lock-badge { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(1,30,70,.55); backdrop-filter: blur(6px); }
.ep-preview .lock-badge svg { width: 18px; height: 18px; }
.ep-preview .ep-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.ep-preview h3 { margin: 6px 0 8px; }

.explore-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; margin-top: 26px; }
.explore-cta b { display: block; font-size: 18px; }
.explore-cta span { color: var(--muted); }
.follow-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; margin-top: 18px; }
.follow-cta b { display: block; font-size: 18px; }
.follow-cta span { color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { --sc: #0263B7; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; background: var(--sc); box-shadow: 0 8px 20px -10px var(--sc); transition: transform .2s, box-shadow .2s; }
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px var(--sc); }
.social.facebook { --sc: #1877F2; }
.social.instagram { --sc: #E1306C; background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.social.tiktok { --sc: #111; }
.social.youtube { --sc: #FF0000; }
.follow-cta .social span { color: inherit; }
.socials.compact { justify-content: center; margin-top: 14px; }
.socials.compact .social { padding: 0; width: 40px; height: 40px; justify-content: center; }
.socials.compact .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
  .reel { flex-basis: 62%; }
  .map-panel { padding: 14px; }
  .map-head { grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
  .map-head h3 { font-size: 18px; }
  .map-head p { display: none; }
  .map-head .meta { margin-top: 6px; gap: 10px; font-size: 12px; }
  .map-step { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map-step > span:last-child { padding: 0; background: none; }
  .map-track { grid-auto-columns: 62%; }
  .map-arrow { display: none; }
  .section-head:has(#mapToggle) { flex-wrap: wrap; align-items: center; }
  .explore-cta { flex-direction: column; align-items: stretch; }
  .follow-cta { flex-direction: column; align-items: stretch; }
  .follow-cta .socials { justify-content: center; }
}

/* ---------- End-of-level exam ---------- */
.exam-tile { display: flex; align-items: center; gap: 16px; margin: 0 22px 24px; padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(2,99,183,.1), rgba(114,207,173,.18)); box-shadow: inset 0 0 0 1px rgba(4,154,213,.28); }
.exam-tile.locked { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--stroke); }
.exam-ic { width: 54px; height: 54px; flex: none; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -8px rgba(2,99,183,.8); }
.exam-tile.locked .exam-ic { background: linear-gradient(145deg, #FFC94A, #F59E0B); box-shadow: 0 10px 22px -8px rgba(245,158,11,.8); }
.exam-ic svg { width: 28px; height: 28px; }
.exam-tile .txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.exam-tile .txt b { font-size: 16px; }
.exam-tile .kicker, .quiz-hero .kicker, .quiz-start .kicker, .quiz-run .kicker, .quiz-result .kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.exam-scores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.score-pill { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(255,255,255,.85); color: var(--muted); box-shadow: inset 0 0 0 1px var(--stroke); }
.score-pill b { font-size: 13px; }
.score-pill.pass { color: #138A66; background: rgba(114,207,173,.25); box-shadow: inset 0 0 0 1px rgba(19,138,102,.25); }
.score-pill.low { color: #B4232A; background: rgba(229,72,77,.1); box-shadow: inset 0 0 0 1px rgba(229,72,77,.25); }
.score-pill.blank { opacity: .75; }

.quiz-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px; }
.quiz-hero-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 16px 34px -12px rgba(2,99,183,.9), inset 0 1px 0 rgba(255,255,255,.4); transform: perspective(300px) rotateY(-12deg); }
.quiz-hero-ic svg { width: 44px; height: 44px; }
.quiz-hero h1 { margin: 4px 0 6px; font-size: clamp(22px, 3vw, 30px); }
.quiz-hero p { margin: 0 0 12px; color: var(--muted); }
.quiz-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.8); color: var(--navy); box-shadow: inset 0 0 0 1px var(--stroke); }
.quiz-facts svg { width: 16px; height: 16px; color: var(--sky); }
.rules-btn { align-self: start; }
.quiz-start { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 20px; padding: 20px 22px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(4,154,213,.3); }
.quiz-start > div:first-child { display: grid; gap: 4px; }
.quiz-start b { font-size: 18px; }
.quiz-start span:not(.kicker) { color: var(--muted); font-size: 14px; }
.quiz-start .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.locked-banner .bar-line { margin-top: 10px; max-width: 320px; }
.quiz-history { margin-top: 20px; }
.quiz-history h2, .review-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.quiz-history h2 svg, .review-card h2 svg, .with-ic svg { width: 22px; height: 22px; color: var(--sky); }
.with-ic { display: flex; align-items: center; gap: 10px; }
.attempt-list { display: grid; gap: 10px; }
.attempt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--stroke); }
.attempt .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: rgba(2,99,183,.08); color: var(--blue); }
.attempt.pass .n { background: rgba(114,207,173,.3); color: #138A66; }
.attempt.low .n { background: rgba(229,72,77,.12); color: #B4232A; }
.attempt.blank { opacity: .7; }
.attempt div { display: grid; gap: 2px; }
.attempt small { color: var(--muted); }
.modal.wide { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.quiz-rules { margin: 6px 0 16px; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; color: var(--ink); }
.quiz-rules li::marker { color: var(--sky); font-weight: 800; }
.modal p.quiz-warn { display: flex; gap: 8px; align-items: center; color: #8A5A00; background: rgba(255,200,60,.18); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.quiz-warn svg { width: 20px; height: 20px; flex: none; }

.quiz-run { padding: 24px; }
.quiz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quiz-top h2 { margin: 4px 0 0; font-size: 22px; }
.q-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin: 18px 0 22px; }
.q-dot { height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted); background: rgba(2,99,183,.06); transition: .3s var(--ease); }
.q-dot.done { color: #fff; background: var(--grad); box-shadow: 0 6px 14px -8px rgba(2,99,183,.9); }
.q-dot.miss { color: #B4232A; background: rgba(229,72,77,.12); text-decoration: line-through; }
.q-dot.cur { color: var(--blue); background: #fff; box-shadow: 0 0 0 2px var(--sky), 0 0 18px rgba(4,154,213,.6); transform: scale(1.06); }
.q-dot.next { color: var(--blue); background: #fff; box-shadow: inset 0 0 0 2px rgba(4,154,213,.5); }
.q-card { border-radius: 22px; background: rgba(255,255,255,.82); box-shadow: inset 0 0 0 1px var(--stroke); padding: 24px; animation: menuIn .4s var(--spring); }
.q-card.closed { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 36px 24px; }
.q-card.closed span { color: var(--muted); }
.q-card.closed .btn { margin-top: 12px; }
.q-num { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }
.q-num.big { width: 76px; height: 76px; border-radius: 24px; font-size: 30px; box-shadow: 0 14px 30px -12px rgba(2,99,183,.9); }
.q-num.done svg { width: 36px; height: 36px; }
.q-last { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #138A66; }
.q-last.miss { color: #B4232A; }
.q-last svg { width: 16px; height: 16px; }
.q-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.q-head h3 { margin: 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.4; }
.q-timer { --size: 78px; position: relative; width: var(--size); height: var(--size); }
.q-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.q-timer .track { stroke: rgba(2,99,183,.1); }
.q-timer .val { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.q-timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: var(--navy); }
.q-timer.hurry .val { stroke: var(--danger); }
.q-timer.hurry b { color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.q-opts { display: grid; gap: 10px; margin: 22px 0 18px; }
.q-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; font: inherit; font-weight: 600; color: var(--ink);
  background: rgba(2,99,183,.05); box-shadow: inset 0 0 0 1px var(--stroke); transition: .2s var(--ease); }
.q-opt:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(4,154,213,.45); }
.q-opt .l { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1px var(--stroke); }
.q-opt.sel { background: #fff; box-shadow: 0 0 0 2px var(--sky), 0 10px 24px -12px rgba(4,154,213,.9); }
.q-opt.sel .l { color: #fff; background: var(--grad); box-shadow: none; }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-foot .hint { color: var(--muted); font-size: 13px; }

.quiz-result { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px; }
.score-ring .num { font-size: 40px; }
.score-ring.low .val { stroke: var(--danger); filter: drop-shadow(0 0 6px rgba(229,72,77,.5)); }
.quiz-result h1 { margin: 4px 0 6px; font-size: clamp(24px, 3.4vw, 34px); }
.quiz-result p { margin: 0 0 16px; color: var(--muted); }
.quiz-result .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.review-card { margin-top: 20px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.review-head h2 { margin: 0; }
.review-head .segmented { min-width: 280px; }
.review { display: grid; gap: 12px; }
.review.only-ko .rv.ok { display: none; }
.rv { border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--stroke); border-left: 4px solid var(--teal); }
.rv.ko { border-left-color: var(--danger); }
.rv-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.rv-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(2,99,183,.08); color: var(--blue); }
.rv-head b { line-height: 1.45; padding-top: 4px; }
.rv .chip { padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.chip.bad { color: #B4232A; background: rgba(229,72,77,.1); }
.rv ul { list-style: none; margin: 12px 0 0; padding: 0 0 0 42px; display: grid; gap: 6px; }
.rv li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.rv li svg { width: 16px; height: 16px; flex: none; }
.rv li em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rv li.right { color: #0F6E52; background: rgba(114,207,173,.22); font-weight: 700; }
.rv li.wrong { color: #B4232A; background: rgba(229,72,77,.1); font-weight: 700; text-decoration: line-through; text-decoration-thickness: 1px; }
.rv li.wrong em { text-decoration: none; }

.exams-cell { min-width: 240px; }
.exam-mini { display: grid; gap: 6px; padding: 8px 10px; border: 0; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--stroke); text-align: left; font: inherit; transition: .2s var(--ease); }
.exam-mini:hover { background: #fff; box-shadow: var(--glow); }
.exam-mini .row-l { display: flex; align-items: center; gap: 4px; }
.exam-mini small { font-size: 11px; font-weight: 800; color: var(--muted); min-width: 44px; }
.exam-mini .score-pill { padding: 2px 7px; font-size: 11px; }
.muted-sm { color: var(--muted); font-size: 13px; }
.exam-detail { display: grid; gap: 8px; margin: 14px 0; }
.exam-detail > b { color: var(--navy); }
.exam-detail .attempt { grid-template-columns: auto 1fr; }
.modal .exam-detail p { margin: 0; }

@media (max-width: 720px) {
  .exam-tile { flex-wrap: wrap; margin: 0 14px 18px; }
  .exam-tile .btn { width: 100%; }
  .quiz-hero { grid-template-columns: 1fr; padding: 20px; }
  .quiz-hero-ic { width: 64px; height: 64px; border-radius: 20px; }
  .quiz-hero-ic svg { width: 34px; height: 34px; }
  .quiz-start .acts, .quiz-start .acts .btn, .quiz-result .acts .btn { width: 100%; }
  .quiz-run { padding: 16px; }
  .q-dots { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .q-dot { height: 28px; font-size: 11px; border-radius: 8px; }
  .q-card { padding: 18px; }
  .q-head { grid-template-columns: 1fr auto; }
  .q-head .q-num { display: none; }
  .q-timer { --size: 64px; }
  .q-foot .btn { width: 100%; }
  .quiz-result { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px; }
  .quiz-result .acts { justify-content: center; }
  .review-head .segmented { min-width: 0; width: 100%; }
  .rv-head { grid-template-columns: auto 1fr; }
  .rv-head .chip { grid-column: 2; justify-self: start; }
  .rv ul { padding-left: 0; }
  .attempt { grid-template-columns: auto 1fr; }
  .attempt .btn { grid-column: 1 / -1; }
  table.users td.exams-cell { min-width: 0; }
}

/* Exam shown as the last item of each level (course grid, playlist, last episode). */
.exam-card { display: block; color: inherit; text-decoration: none; border: 1px dashed rgba(4,154,213,.5); }
.exam-card .exam-thumb { animation: none; display: grid; place-items: center; align-content: center; gap: 8px;
  background: linear-gradient(135deg, rgba(2,99,183,.14), rgba(114,207,173,.26)); }
.exam-card.is-open .exam-thumb { background: var(--grad); }
.exam-badge { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #FFC94A, #F59E0B); box-shadow: 0 10px 22px -8px rgba(245,158,11,.8); }
.exam-card.is-open .exam-badge { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 0 26px rgba(255,255,255,.5); }
.exam-badge svg { width: 30px; height: 30px; }
.exam-word { font-weight: 800; font-size: 18px; color: var(--navy); }
.exam-card.is-open .exam-word { color: #fff; }
.exam-card h4 { font-size: 14px; color: var(--muted); }
.exam-card.is-open h4 { color: var(--blue); }
.pl-exam { text-decoration: none; color: inherit; margin-top: 4px; box-shadow: inset 0 0 0 1px rgba(4,154,213,.3); background: rgba(2,99,183,.04); }
.pl-exam .t { display: grid; place-items: center; animation: none; color: #fff; background: linear-gradient(145deg, #FFC94A, #F59E0B); }
.pl-exam.is-open .t { background: var(--grad); }
.pl-exam .t svg { width: 26px; height: 26px; }
.pl-exam b { color: var(--muted); font-weight: 600; }
.exam-next { display: flex; align-items: center; gap: 14px; margin: 4px 8px 8px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(2,99,183,.1), rgba(114,207,173,.2)); box-shadow: inset 0 0 0 1px rgba(4,154,213,.3); }
.exam-next .exam-ic { width: 44px; height: 44px; border-radius: 14px; }
.exam-next .exam-ic svg { width: 24px; height: 24px; }
.exam-next > div { flex: 1; display: grid; gap: 2px; }
.exam-next span:not(.exam-ic) { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .exam-next { flex-wrap: wrap; } .exam-next .btn { width: 100%; } }

/* Stripe buy button (courses with a Payment Link) */
.btn-buy {
  --h: 62px; position: relative; overflow: visible; gap: 12px; padding: 0 10px 0 8px; color: #fff;
  background: linear-gradient(120deg, #0E9F5A, #16C172 55%, #0E9F5A); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(14,159,90,.45), 0 14px 30px -12px rgba(14,159,90,.95);
  transition: transform .25s, box-shadow .25s, background-position .6s;
  animation: buy-nudge 4s ease-in-out infinite, buy-glow 2s ease-out infinite;
}
.btn-buy:hover { animation-play-state: paused; }
.btn-buy::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%) no-repeat;
  background-size: 200% 100%; background-position: 150% 0;
  animation: buy-shine 3.2s ease-in-out infinite;
}
.btn-buy:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 0 0 1px rgba(14,159,90,.6), 0 20px 38px -12px rgba(14,159,90,1); }
.btn-buy .buy-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-buy .buy-ic svg { width: 22px; height: 22px; }
.btn-buy .buy-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.btn-buy .buy-txt b, .locked-banner .btn-buy .buy-txt b { display: block; font-size: 16px; color: #fff; }
.locked-banner .btn-buy .buy-txt small { color: #fff; }
.btn-buy .buy-txt small { font-size: 12px; font-weight: 600; opacity: .85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.btn-buy .buy-price { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; padding: 6px 12px; border-radius: 14px; background: #fff; color: #0B8A4D; }
.btn-buy .buy-price s { font-size: 12px; font-weight: 600; color: #9AA5B1; }
.btn-buy .buy-price b, .locked-banner .btn-buy .buy-price b { display: block; font-size: 22px; font-weight: 800; color: #0B8A4D; }
.btn-buy .buy-badge {
  position: absolute; top: -10px; right: 14px; z-index: 1; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #FF4D4F, #E5484D); box-shadow: 0 6px 14px -4px rgba(229,72,77,.8);
  animation: buy-pulse 1.8s ease-in-out infinite;
}
.course-card .actions:has(.btn-buy) { flex-wrap: wrap; }
.course-card .actions .btn-buy { flex: 1 1 100%; margin-top: 6px; }
@keyframes buy-shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
/* Every 4 s a little jump + shake invites the click; the green ring keeps pulsing outwards. */
@keyframes buy-nudge {
  0%, 70%, 100% { transform: none; }
  74% { transform: translateY(-4px) scale(1.03); }
  78% { transform: translateY(0) rotate(-1.5deg); }
  82% { transform: rotate(1.5deg); }
  86% { transform: rotate(-1deg); }
  90% { transform: rotate(0); }
}
@keyframes buy-glow {
  0% { box-shadow: 0 0 0 0 rgba(22,193,114,.55), 0 14px 30px -12px rgba(14,159,90,.95); }
  100% { box-shadow: 0 0 0 14px rgba(22,193,114,0), 0 14px 30px -12px rgba(14,159,90,.95); }
}
@keyframes buy-pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .btn-buy, .btn-buy::after, .btn-buy .buy-badge { animation: none; } }

/* Buy button on phones: smaller icon, text and price so everything fits on one line. */
@media (max-width: 720px) {
  .btn-buy { --h: 56px; gap: 8px; padding: 0 6px 0 6px; width: 100%; }
  .btn-buy .buy-ic { width: 36px; height: 36px; border-radius: 11px; }
  .btn-buy .buy-ic svg { width: 18px; height: 18px; }
  .btn-buy .buy-txt b, .locked-banner .btn-buy .buy-txt b { font-size: 14px; }
  .btn-buy .buy-txt small { font-size: 11px; }
  .btn-buy .buy-extra { display: none; }
  .btn-buy .buy-price { padding: 5px 9px; border-radius: 11px; }
  .btn-buy .buy-price s { font-size: 11px; }
  .btn-buy .buy-price b, .locked-banner .btn-buy .buy-price b { font-size: 18px; }
  .btn-buy .buy-badge { top: -9px; right: 10px; font-size: 11px; padding: 2px 7px; }
}
@media (max-width: 360px) { .btn-buy .buy-txt small { display: none; } }

/* ---------- Public landing page ---------- */
.landing { --header-h: 76px; }
.landing .spacer { flex: 1; }
.landing section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.utility-bar { position: relative; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(90deg, #0B2D5B 0%, #0A3D7A 55%, #0263B7 100%); }
.utility-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); opacity: .9; }
.utility-bar .container { display: flex; align-items: center; gap: 16px; height: 44px; }
.ub-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.ub-item b { font-weight: 700; color: #fff; letter-spacing: .02em; }
.ub-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.ub-ic svg { width: 15px; height: 15px; color: var(--teal); }
.ub-wa .ub-ic { background: #25D366; }
.ub-wa .ub-ic svg { color: #fff; }
.ub-wa:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ub-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.ub-follow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.socials.mini { gap: 8px; flex-wrap: nowrap; }
.socials.mini .social { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background .2s, box-shadow .2s, transform .2s; }
.socials.mini .social svg { width: 15px; height: 15px; color: #fff; }
.socials.mini .social:hover { background: var(--sc); box-shadow: 0 6px 16px -6px var(--sc); transform: translateY(-2px); }
.socials.mini .social.instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.socials.mini .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--stroke); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(2,64,140,.45); }
.site-header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.site-brand img { width: 42px; height: auto; }
.site-brand b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.site-brand b i { font-style: normal; color: var(--sky); }
.site-brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2BAE8A; }
.site-brand.light b { color: #fff; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { position: relative; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink); transition: color .2s, background .2s; }
.site-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--blue); background: rgba(2,99,183,.06); }
.site-nav a.active { color: var(--blue); }
.site-nav a.active::after { transform: scaleX(1); }
.burger { display: none; }

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--stroke); }
.kicker svg { width: 16px; height: 16px; color: var(--sky); }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.03em; margin: 20px 0 16px; color: var(--navy); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); }
.hero-trust b { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(2,99,183,.8); }
.hero-trust svg { width: 19px; height: 19px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.arch { position: relative; width: min(400px, 82%); aspect-ratio: 4 / 5.2; transition: translate .4s var(--ease); }
.arch-bg { position: absolute; inset: 0; border-radius: 999px 999px 32px 32px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1C8FE0 0%, #0263B7 50%, #013D7A 100%);
  box-shadow: 0 40px 80px -30px rgba(2,64,140,.7), inset 0 0 0 8px rgba(255,255,255,.18); }
.arch-bg::before { content: ''; position: absolute; inset: 0; opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.45'%3E%3Crect x='27' y='27' width='36' height='36' transform='rotate(45 45 45)'/%3E%3Crect x='27' y='27' width='36' height='36'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000, transparent 80%); }
.arch-bg::after { content: ''; position: absolute; left: 50%; top: 30%; width: 80%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(114,207,173,.55), transparent 65%); filter: blur(10px); }
.arch::after { content: ''; position: absolute; inset: -14px; border-radius: 999px 999px 40px 40px; border: 2px solid rgba(4,154,213,.35); pointer-events: none; }
.arch .teacher { position: absolute; left: 50%; bottom: 0; height: 104%; width: auto; max-width: none; translate: -50% 0; z-index: 1;
  border-radius: 0 0 32px 32px; filter: drop-shadow(0 24px 30px rgba(0,20,60,.35)); }
.badge-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 700; transition: translate .4s var(--ease);
  animation: bob 7s ease-in-out infinite; }
.badge-card small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.logo-badge { left: 0; top: 12%; }
.logo-badge img { width: 34px; height: auto; }
.logo-badge b { color: var(--sky); }
.name-badge { right: 0; bottom: 16%; animation-delay: -2.5s; }
.name-badge .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.name-badge .dot svg { width: 18px; height: 18px; }
.ar-badge { right: 4%; top: 6%; font-family: 'Cairo', sans-serif; font-size: 18px; color: var(--blue); animation-delay: -4s; }

.band { position: relative; padding: 84px 0; }
.band.alt { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25)); border-block: 1px solid rgba(255,255,255,.8); }
.band-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #2BAE8A; }
.band h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; margin: 8px 0 12px; color: var(--navy); }
.band-head p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 12px; transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .4s; }
.price-card:hover { box-shadow: var(--glow), var(--shadow); }
.price-card .cover { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 16px 34px -14px rgba(2,64,140,.55); }
.price-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.off-badge, .soon-badge { position: absolute; top: 12px; right: 12px; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #E5484D, #FF7A45); box-shadow: 0 8px 20px -8px rgba(229,72,77,.9); }
.off-badge { top: auto; bottom: 12px; }
.soon-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(2,99,183,.9); }
.soon-badge svg { width: 15px; height: 15px; }
.price-card .body { display: flex; flex-direction: column; flex: 1; padding: 18px 10px 8px; }
.price-card h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.price-card .ar { color: var(--sky); font-size: 17px; text-align: left; }
.price-card .tag { color: var(--muted); line-height: 1.55; margin: 8px 0 14px; }
.feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.feats svg { width: 18px; height: 18px; flex: none; color: #2BAE8A; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-top: auto; border-radius: 16px; background: var(--grad-soft); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price s { color: #8A9AB0; font-weight: 700; font-size: 18px; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); line-height: 1; }
.price-row small { text-align: right; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.price-card .actions { display: flex; gap: 10px; margin-top: 16px; }
.price-card .actions .btn { flex: 1; }
.price-card.upcoming .actions { margin-top: auto; }
.price-card.upcoming .cover img { filter: saturate(.9); }
.program { margin-top: 30px; }

.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: center; }
.about-logo { padding: 40px; display: grid; place-items: center; }
.about-logo img { width: min(260px, 100%); height: auto; }
.about-grid p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.value { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--stroke); }
.value .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 10px; }
.value .ic svg { width: 20px; height: 20px; }
.value b { display: block; font-size: 16px; }
.value small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.method { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.method li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; line-height: 1.45; }
.method svg { width: 20px; height: 20px; flex: none; color: var(--sky); }

.learn-grid { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.learn-videos .reels { overflow: visible; padding: 0; }
.learn-videos .reel { flex-basis: clamp(200px, 20vw, 250px); }
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 18px; overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--sky); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.6; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: var(--ink); transition: transform .25s var(--spring), box-shadow .3s; }
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--glow), var(--shadow); }
.contact-card > div { flex: 1; }
.contact-card b { display: block; font-size: 17px; }
.contact-card small { color: var(--muted); font-weight: 600; }
.contact-card > svg { width: 20px; height: 20px; color: var(--sky); }
.contact-card .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad); flex: none; }
.contact-card .ic.wa { background: linear-gradient(135deg, #1FAF5A, #25D366); }
.contact-card .ic svg { width: 24px; height: 24px; }
.social-card { flex-direction: column; align-items: flex-start; }
.contact-form { padding: 26px; }
.contact-form h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 20px; }
.contact-form h3 svg { width: 22px; height: 22px; color: var(--sky); }
.contact-form textarea.input { height: auto; padding: 14px 16px; resize: vertical; font: inherit; }
.contact-form select.input { appearance: auto; }
.contact-form .hint { display: block; margin-top: 10px; color: var(--muted); text-align: center; }

.policy-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.policy-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px;
  color: var(--ink); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--stroke); transition: .25s var(--ease); }
.policy-tab svg { width: 17px; height: 17px; color: var(--sky); }
.policy-tab:hover { background: #fff; }
.policy-tab.active { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(2,99,183,.8); }
.policy-tab.active svg { color: #fff; }
.policy-doc { max-width: 860px; margin: 0 auto; padding: 30px 34px; animation: viewIn .4s var(--ease) both; }
.policy-doc h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 22px; }
.policy-doc h3 svg { width: 22px; height: 22px; color: var(--sky); }
.policy-doc p { line-height: 1.7; color: #33496B; margin: 0 0 12px; }

.site-footer { background: linear-gradient(160deg, #0B2D5B, #022A57 60%, #013D7A); color: rgba(255,255,255,.75); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-brand p { line-height: 1.6; margin: 16px 0 18px; max-width: 36ch; }
.site-footer h4 { color: #fff; margin: 4px 0 14px; font-size: 15px; letter-spacing: .04em; }
.site-footer .footer-grid > div > a { display: block; padding: 5px 0; color: rgba(255,255,255,.75); font-weight: 600; font-size: 14px; }
.site-footer .footer-grid > div > a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.75); }

.modal.login-modal { width: min(430px, 100%); position: relative; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.login-card .logo { width: 56px; margin: 0 auto 8px; }

@media (max-width: 1080px) {
  .site-nav a { padding: 10px 9px; font-size: 14px; }
  .login-btn span { display: none; }
}
@media (max-width: 920px) {
  .hide-md { display: none !important; }
  .burger { display: grid; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: calc(var(--header-h) - 4px); flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 16px; }
  .site-nav a::after { display: none; }
  .login-btn { margin-left: auto; }
  .hero-grid, .about-grid, .contact-grid, .learn-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .hero-visual { min-height: 0; order: -1; }
  .arch { width: min(300px, 70%); }
  .about-logo { max-width: 320px; margin: 0 auto; padding: 28px; }
  .learn-videos .reels { justify-content: center; }
  .learn-videos .reel { flex: 0 1 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .landing { --header-h: 66px; }
  .hide-sm { display: none !important; }
  .site-brand img { width: 34px; }
  .site-brand b { font-size: 17px; }
  .site-brand small { font-size: 9px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .logo-badge { left: -4px; } .name-badge { right: -4px; } .ar-badge { display: none; }
  .badge-card { padding: 9px 12px; font-size: 14px; }
  .band { padding: 60px 0; }
  .values, .method { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price b { font-size: 34px; }
  .price-card .actions { flex-direction: column; }
  .policy-doc { padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .utility-bar .container { gap: 10px; height: 42px; }
  .ub-label { display: none; }
  .socials.mini { gap: 6px; }
  .socials.mini .social { width: 28px; height: 28px; }
}

/* "Prezzo simbolico" note above the course cards */
.symbolic-note { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 0 auto 28px; padding: 16px 20px; border-radius: 18px;
  border: 1px solid rgba(43,174,138,.35); }
.symbolic-note > svg { width: 26px; height: 26px; flex: none; color: #2BAE8A; margin-top: 2px; }
.symbolic-note p { margin: 0; font-size: 15px; line-height: 1.55; }
.symbolic-note b { color: #2BAE8A; }
.level-chip { align-self: flex-start; margin: 2px 0 10px; }
.teacher-card { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 18px; margin: 18px 0 22px; max-width: 460px; }
.teacher-card img { width: 64px; height: 64px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--grad); flex: none; }
.teacher-card small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.teacher-card b { display: block; font-size: 18px; }
.teacher-card span { font-size: 14px; opacity: .85; }
