/* ============================================================
   ADMZ Driving School — design tokens
   Palette and type carried over from the original design.
   ============================================================ */
:root {
  --bg:          #070B16;
  --bg-mid:      #0A1020;
  --panel:       rgba(255, 255, 255, .035);
  --panel-solid: #0B1120;
  --line:        rgba(255, 255, 255, .09);
  --line-soft:   rgba(255, 255, 255, .07);

  --ink:         #EFE9DC;
  --ink-strong:  #F7F4EC;
  --ink-title:   #F4F1EA;
  --muted:       #A9B6CE;
  --muted-2:     #9FACC6;
  --muted-3:     #8FA0BC;
  --muted-4:     #6F7E98;

  --rose:        #C65C72;
  --rose-dark:   #8E3B4E;
  --rose-light:  #D86A80;
  --gold:        #D7B36B;
  --gold-soft:   #E7CF9A;
  --amber:       #F0B429;
  --blue:        #15356B;
  --asphalt:     #1B2B4E;
  --blue-light:  #6FA0E8;
  --orange:      #E8743B;
  --green:       #5BCB8B;
  --whatsapp:    #25D366;
  --danger:      #E0727E;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shell: 1240px;
  --nav-h: 78px;

  --font-body: 'Tajawal', system-ui, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(155, 59, 80, .20), transparent 60%),
    radial-gradient(900px 600px at 0% 10%, rgba(40, 70, 140, .18), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--rose); color: #0A0F1C; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0A1120; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#9B3B50, #5E2333);
  border-radius: 10px;
}

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: #10141F;
  font-weight: 800;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { inset-inline-start: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================ animations ============================ */
@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glowpulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes rise    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: 200% 0; } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .28, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ layout ============================ */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 40px;
}

.section { padding-block: 90px 30px; }
.section--tight { padding-block: 70px 20px; }

.section-head { text-align: center; margin-bottom: 48px; }

.eyebrow {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--rose);
  margin-bottom: 12px;
}
.eyebrow--orange { color: var(--orange); }
.eyebrow--blue   { color: var(--blue-light); }
.eyebrow--gold   { color: var(--gold); }
.eyebrow--green  { color: var(--green); }
.eyebrow--rose   { color: var(--rose); }

.section-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 900;
  margin: 0 0 14px;
  color: #F5F2EA;
  line-height: 1.2;
}

.section-sub {
  font-size: 18px;
  color: #A0AEC8;
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.6;
}

/* ============================ buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(198, 92, 114, .65);
}
.btn--primary:hover { filter: brightness(1.07); }

.btn--ghost {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
  color: #EDE7DA;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), #128C4B);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .5);
}
.btn--whatsapp:hover { filter: brightness(1.06); }

.btn--orange {
  background: linear-gradient(135deg, var(--orange), #C25325);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(232, 116, 59, .7);
}
.btn--orange:hover { filter: brightness(1.08); }

.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ============================ nav ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 40px;
  background: rgba(8, 12, 22, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.brand__mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--rose), #7A2A3C);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand__mark span {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--panel-solid);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: .5px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 17px; color: var(--ink-title); }
/* The handle is Latin text starting with '@'. Without an explicit LTR
   direction, RTL layout moves the '@' to the end ("admz.teacher@"). */
.brand__handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-3);
  letter-spacing: .6px;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

.nav__links { display: flex; gap: 4px; padding: 5px; }
.nav__links a {
  padding: 9px 15px;
  color: #C3CEE2;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.nav__links a:hover,
.nav__links a.is-active { background: rgba(255, 255, 255, .06); color: #fff; }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(215, 179, 107, .45);
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 42px;
  transition: background .2s;
}
.lang-toggle:hover { background: rgba(215, 179, 107, .12); }

.nav__book {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 24px -8px rgba(198, 92, 114, .7);
  transition: filter .2s, transform .2s;
}
.nav__book:hover { filter: brightness(1.08); transform: translateY(-1px); }

.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}

/* ============================ hero ============================ */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 70px 40px 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid rgba(215, 179, 107, .35);
  border-radius: 999px;
  background: rgba(215, 179, 107, .07);
  margin-bottom: 22px;
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: glowpulse 2s ease-in-out infinite;
}
.pill span:last-child { font-size: 14px; font-weight: 700; color: var(--gold-soft); letter-spacing: .3px; }

.hero__title {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  margin: 0 0 20px;
  color: var(--ink-strong);
  text-wrap: balance;
  letter-spacing: -.5px;
}

.hero__sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 560px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stats__item { display: flex; flex-direction: column; gap: 2px; }
.stats__value { font-family: var(--font-mono); font-weight: 700; font-size: 30px; color: var(--gold); }
.stats__label { font-size: 14px; color: var(--muted-3); }
.stats__rule { width: 1px; background: rgba(255, 255, 255, .1); }

.hero__art { position: relative; animation: floaty 7s ease-in-out infinite; }
.hero__art::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 50%, rgba(198, 92, 114, .18), transparent 70%);
  filter: blur(10px);
}
.frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7);
}
.frame svg { display: block; width: 100%; height: auto; }

.frame__badge {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: rgba(8, 12, 22, .7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #D8E2F0;
}
.frame__badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ============================ badges strip ============================ */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
}
.badges__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 18px;
}
.badges__item + .badges__item { border-inline-start: 1px solid rgba(255, 255, 255, .09); }
.badges__item span { font-weight: 700; font-size: 16px; color: #E7EDF6; }

/* ============================ lesson cards ============================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  text-decoration: none;
  display: block;
  padding: 28px;
  background: linear-gradient(165deg, rgba(198, 92, 114, .12), rgba(255, 255, 255, .025));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(198, 92, 114, .5); }
.card--blue { background: linear-gradient(165deg, rgba(40, 80, 160, .16), rgba(255, 255, 255, .025)); }
.card--blue:hover { border-color: rgba(91, 138, 224, .5); }
.card--gold { background: linear-gradient(165deg, rgba(215, 179, 107, .14), rgba(255, 255, 255, .025)); }
.card--gold:hover { border-color: rgba(215, 179, 107, .5); }

.card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(232, 116, 59, .14);
}
.card__icon--blue { background: rgba(91, 138, 224, .16); }
.card__icon--gold { background: rgba(215, 179, 107, .16); }

.card h3 { font-size: 23px; font-weight: 800; margin: 0 0 10px; color: var(--ink-title); }
.card p  { font-size: 16px; line-height: 1.65; color: var(--muted-2); margin: 0 0 16px; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #D88A9C;
}
.card__link--blue { color: #88AEEC; }
.card__link--gold { color: #E0C079; }
.card__link .arrow { font-family: var(--font-mono); transition: transform .2s; }
.card:hover .card__link .arrow { transform: translateX(-4px); }
[dir='ltr'] .card__link .arrow { transform: scaleX(-1); }
[dir='ltr'] .card:hover .card__link .arrow { transform: scaleX(-1) translateX(-4px); }

/* ============================ library index ============================ */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(198, 92, 114, .12), rgba(255, 255, 255, .025));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.index-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 92, 114, .5);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .8);
}
.index-card--blue   { background: linear-gradient(165deg, rgba(40, 80, 160, .18), rgba(255, 255, 255, .025)); }
.index-card--blue:hover   { border-color: rgba(91, 138, 224, .5); }
.index-card--orange { background: linear-gradient(165deg, rgba(232, 116, 59, .15), rgba(255, 255, 255, .025)); }
.index-card--orange:hover { border-color: rgba(232, 116, 59, .5); }
.index-card--gold   { background: linear-gradient(165deg, rgba(215, 179, 107, .14), rgba(255, 255, 255, .025)); }
.index-card--gold:hover   { border-color: rgba(215, 179, 107, .5); }
.index-card--green  { background: linear-gradient(165deg, rgba(91, 203, 139, .13), rgba(255, 255, 255, .025)); }
.index-card--green:hover  { border-color: rgba(91, 203, 139, .5); }

.index-card__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.index-card__icon svg { width: 30px; height: 30px; }

.index-card h3 { font-size: 21px; font-weight: 800; margin: 0; color: var(--ink-title); }

.index-card__count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.index-card__topics {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  flex: 1;
}

.index-card__cta {
  font-size: 15px;
  font-weight: 700;
  color: #D88A9C;
}
.index-card--blue  .index-card__cta { color: #88AEEC; }
.index-card--gold  .index-card__cta { color: #E0C079; }
.index-card--green .index-card__cta { color: #A9E7C3; }

/* ============================ library sections ============================ */
.lib { padding-block: 70px 10px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.lib__head { text-align: center; margin-bottom: 26px; }
.lib__sub { margin-bottom: 0; }

/* ============================ reels grid ============================ */
.reels-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.chip {
  padding: 10px 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #C3CEE2;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.chip[aria-pressed='true'] {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(198, 92, 114, .8);
}
.chip__count {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .75;
  margin-inline-start: 6px;
}

.reels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.reel {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(40, 80, 160, .14), rgba(255, 255, 255, .02));
  aspect-ratio: 9 / 14;
  transition: transform .28s cubic-bezier(.22, .8, .28, 1), border-color .28s, box-shadow .28s;
}
.reel:hover {
  transform: translateY(-7px);
  border-color: rgba(198, 92, 114, .55);
  box-shadow: 0 26px 54px -24px rgba(0, 0, 0, .8);
}

.reel__media { position: absolute; inset: 0; }
.reel__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, opacity .3s ease;
}
.reel:hover .reel__media img { transform: scale(1.06); }
.reel__media img[hidden] { display: none; }

/* Fallback artwork drawn when a thumbnail is missing or expired. */
.reel__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(198, 92, 114, .28), transparent 65%),
    linear-gradient(160deg, var(--asphalt), #0E1626);
}

.reel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 17, .94) 12%, rgba(6, 9, 17, .35) 45%, transparent 72%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  gap: 8px;
}

.reel__play {
  position: absolute;
  top: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(8, 12, 22, .6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  transition: transform .28s, background .28s;
}
[dir='ltr'] .reel__play { transform: translate(-50%, -50%); }
.reel:hover .reel__play { background: rgba(198, 92, 114, .85); transform: translate(50%, -50%) scale(1.08); }
[dir='ltr'] .reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.08); }

.reel__tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(215, 179, 107, .18);
  border: 1px solid rgba(215, 179, 107, .4);
  color: var(--gold-soft);
}
.reel__tag--barrels { background: rgba(232, 116, 59, .18); border-color: rgba(232, 116, 59, .45); color: #F3AE85; }
.reel__tag--tracks  { background: rgba(91, 138, 224, .18); border-color: rgba(91, 138, 224, .45); color: #A6C4F5; }
.reel__tag--signs   { background: rgba(200, 32, 43, .2);  border-color: rgba(220, 80, 90, .45);  color: #F2B6BC; }
.reel__tag--theory  { background: rgba(91, 203, 139, .16); border-color: rgba(91, 203, 139, .45); color: #A9E7C3; }
.reel__tag--general { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); color: #C3CEE2; }

.reel__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-title);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-3);
}

.reel__featured {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #A8823C);
  color: #1A1407;
  font-size: 11px;
  font-weight: 800;
}

.reel-skeleton {
  border-radius: 20px;
  aspect-ratio: 9 / 14;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.reels-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1.7;
}

.reels-footer { text-align: center; margin-top: 34px; }

/* ============================ barrels simulator ============================ */
.sim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(160deg, rgba(232, 116, 59, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-xl);
  padding: 38px;
}

.sim__progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sim__step-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  padding: 5px 12px;
  border: 1px solid rgba(232, 116, 59, .4);
  border-radius: 999px;
  white-space: nowrap;
}
.sim__bar { flex: 1; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; }
.sim__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  border-radius: 99px;
  transition: width .5s ease;
}

.sim__text {
  font-size: 19px;
  line-height: 1.7;
  color: #D6DEEC;
  min-height: 90px;
  margin: 0 0 24px;
  font-weight: 500;
}

.sim__controls { display: flex; gap: 12px; flex-wrap: wrap; }

.sim__car { transition: transform .9s cubic-bezier(.45, .05, .25, 1); transform-box: fill-box; transform-origin: center; }

/* ============================ quiz ============================ */
.quiz {
  max-width: 880px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .6);
}

.quiz__grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; }

.quiz__sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.quiz__sign-box {
  width: 230px; height: 230px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .06), transparent 70%);
  border-radius: 24px;
}
.quiz__counter { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--muted-3); letter-spacing: 1px; }

.quiz__prompt { font-size: 24px; font-weight: 800; margin: 0 0 20px; color: var(--ink-title); }
.quiz__options { display: flex; flex-direction: column; gap: 12px; }

.quiz__option {
  text-align: start;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #E7EDF6;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: background .18s, border-color .18s, opacity .18s;
}
.quiz__option:hover:not(:disabled) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.quiz__option:disabled { cursor: default; }
.quiz__option.is-correct { background: rgba(91, 203, 139, .18); border-color: rgba(91, 203, 139, .6); color: #BDF0CD; }
.quiz__option.is-wrong   { background: rgba(200, 32, 43, .16); border-color: rgba(220, 80, 90, .6); color: #F2B6BC; }
.quiz__option.is-dim     { opacity: .5; }

.quiz__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  min-height: 48px;
}
.quiz__feedback { font-size: 18px; font-weight: 800; }
.quiz__feedback.is-correct { color: var(--green); }
.quiz__feedback.is-wrong   { color: var(--danger); }

.quiz__explain {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(215, 179, 107, .08);
  border: 1px solid rgba(215, 179, 107, .25);
  font-size: 15px;
  line-height: 1.65;
  color: #DCD3BC;
}

.quiz__result { text-align: center; padding: 24px 10px; }
.quiz__medal {
  width: 96px; height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #A8823C);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px -12px rgba(215, 179, 107, .6);
}
.quiz__result h3 { font-size: 30px; font-weight: 900; margin: 0 0 8px; color: #F5F2EA; }
.quiz__result p  { font-size: 20px; color: #B7C2D6; margin: 0 0 6px; }
.quiz__score {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
  color: var(--gold);
  margin: 14px 0 26px;
}
.quiz__score small { color: #5D6B85; font-size: 30px; }

/* ============================ booking ============================ */
.book-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(135deg, rgba(155, 59, 80, .22), rgba(40, 70, 140, .16));
  padding: 56px 48px;
}
.book-panel::before {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 179, 107, .25), transparent 70%);
  filter: blur(20px);
}
.book-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.book-title { font-size: clamp(28px, 4.2vw, 42px); font-weight: 900; margin: 0 0 16px; color: var(--ink-strong); line-height: 1.15; }
.book-sub   { font-size: 19px; line-height: 1.7; color: #C3CEE2; margin: 0 0 30px; max-width: 520px; }
.book-cta   { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(8, 12, 22, .4);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}
.info-row__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(215, 179, 107, .15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-row__title { font-weight: 700; font-size: 16px; color: #F0EADC; }
.info-row__value { font-size: 14px; color: #94A2BC; }
.info-row a { color: inherit; text-decoration: none; }
.info-row a:hover { color: var(--gold); }

/* ============================ direct WhatsApp panel ============================ */
.book-direct {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 38px 28px;
  text-align: center;
  background: rgba(8, 12, 22, .45);
  border: 1px solid rgba(37, 211, 102, .28);
  border-radius: var(--radius-lg);
}

.book-direct__icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .3);
}

.book-direct__number {
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: .5px;
}

/* ============================ form ============================ */
.form {
  background: rgba(8, 12, 22, .5);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: #C3CEE2; }
.field input,
.field select,
.field textarea {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(215, 179, 107, .6);
  background: rgba(255, 255, 255, .07);
}
.field textarea { resize: vertical; min-height: 84px; }
.field select option { background: var(--panel-solid); color: var(--ink); }
.field--error input,
.field--error select { border-color: rgba(220, 80, 90, .7); }
.field__error { font-size: 13px; color: var(--danger); min-height: 17px; }

.form__honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form__status { font-size: 15px; font-weight: 700; line-height: 1.6; min-height: 22px; }
.form__status.is-ok    { color: var(--green); }
.form__status.is-error { color: var(--danger); }

/* ============================ floating whatsapp ============================ */
.wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--whatsapp), #128C4B);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .7);
  transition: transform .22s, filter .22s;
}
.wa-float:hover { transform: translateY(-3px); filter: brightness(1.06); }

/* ============================ footer ============================ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 40px 44px;
  max-width: var(--shell);
  margin: 60px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__note { font-size: 13px; color: var(--muted-4); }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--muted-3); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer__links a:hover { color: var(--gold); }

/* ============================ responsive ============================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__art { order: -1; max-width: 460px; }
  .sim { grid-template-columns: 1fr; padding: 28px; }
  .book-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .quiz__grid { grid-template-columns: 1fr; }
  .quiz__sign { order: -1; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 12px;
    flex-direction: column;
    padding: 12px;
    background: rgba(10, 15, 28, .97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  }
  .nav__burger { display: grid; place-items: center; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 20px; }
  .nav { padding: 14px 20px; }
  .hero { padding-inline: 20px; }
  .section { padding-block: 60px 20px; }
  .book-panel { padding: 32px 22px; }
  .quiz { padding: 22px; }
  .form { padding: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer { padding-inline: 20px; }
  .badges__item { border-inline-start: none !important; padding-inline: 0; }
  .badges { flex-direction: column; gap: 14px; }
  .stats { gap: 18px; }
  .stats__rule { display: none; }
  .reels { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .wa-float { inset-inline-end: 14px; bottom: 14px; padding: 13px 16px; font-size: 15px; }
  .wa-float span { display: none; }
  .quiz__sign-box { width: 190px; height: 190px; }
}

.reel__meta { justify-content: space-between; }
.reel__duration {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(8, 12, 22, .75);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #D8E2F0;
  font-weight: 600;
}
