/* =========================================================
   VOLT Fitness Club — gym website demo by Nuzum
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #161619;
  --surface-2: #1d1d21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f4;
  --muted: #a1a1a6;
  --volt: #d7ff3a;
  --volt-dim: rgba(215, 255, 58, 0.14);
  --ink: #0a0a0b;
  --danger: #ff5a4e;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Cairo", system-ui, sans-serif;
  --font-display: "Cairo", system-ui, sans-serif;
  --display-weight: 900;
  --header-h: 76px;
}

html[lang="en"] {
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Anton", "Inter", sans-serif;
  --display-weight: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--volt);
  color: var(--ink);
}

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

.container {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

html[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--volt);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 17px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-volt {
  background: var(--volt);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(215, 255, 58, 0.55);
}

.btn-volt:hover {
  box-shadow: 0 16px 40px -10px rgba(215, 255, 58, 0.75);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.btn-dark {
  background: var(--ink);
  color: var(--volt);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .flip-rtl {
  transform: translateX(4px);
}

html[dir="rtl"] .btn:hover .flip-rtl {
  transform: scaleX(-1) translateX(4px);
}

/* ---------- Demo bar ---------- */
.demo-bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 48px;
  background: var(--volt);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.demo-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: blink 1.6s ease-in-out infinite;
}

.demo-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--volt);
  font-size: 13px;
  white-space: nowrap;
}

.demo-bar-cta .icon {
  width: 14px;
  height: 14px;
}

.demo-bar-close {
  position: absolute;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.demo-bar-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--volt);
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(6deg) scale(1.05);
}

.logo-mark svg {
  width: 24px;
  height: 24px;
  fill: var(--ink);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 24px;
  letter-spacing: 0.04em;
}

.logo-text small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}

html[lang="ar"] .logo-text small {
  letter-spacing: 0;
  font-size: 11px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  position: relative;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.lang-btn .icon {
  width: 16px;
  height: 16px;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 60px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  transform: scale(1.12);
  animation: heroZoom 14s var(--ease) forwards;
  will-change: transform;
}

/* Mirror the photo in Arabic so the athlete sits opposite the text */
html[dir="rtl"] .hero-media {
  transform: scaleX(-1);
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.82) 38%, rgba(10, 10, 11, 0.25) 75%, rgba(10, 10, 11, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

html[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.82) 38%, rgba(10, 10, 11, 0.25) 75%, rgba(10, 10, 11, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 25% 50%, #000 0%, transparent 70%);
  opacity: 0.6;
}

html[dir="rtl"] .hero-grid-lines {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 0%, transparent 70%);
}

.hero-inner {
  max-width: 1240px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  animation: rise 0.8s var(--ease) 0.1s backwards;
}

.live-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: ping 1.8s ease-out infinite;
}

.live-pill.closed .live-dot {
  background: var(--danger);
}

.live-pill.closed .live-dot::after {
  border-color: var(--danger);
}

.live-sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

#liveCrowd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

#liveCrowd .meter {
  display: inline-flex;
  gap: 3px;
}

#liveCrowd .meter i {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--line-strong);
}

#liveCrowd .meter i.on {
  background: var(--volt);
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero-eyebrow {
  margin-bottom: 14px;
  color: var(--volt);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: rise 0.8s var(--ease) 0.2s backwards;
}

html[lang="ar"] .hero-eyebrow {
  letter-spacing: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(56px, 10.5vw, 150px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

html[lang="ar"] .hero-title {
  font-size: clamp(54px, 9vw, 128px);
  line-height: 1.12;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-title .line > span {
  display: inline-block;
  animation: lineUp 1s var(--ease) backwards;
}

.hero-title .line:nth-child(1) > span {
  animation-delay: 0.25s;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.38s;
}

.hero-title .line:nth-child(3) > span {
  animation-delay: 0.51s;
}

.line-volt {
  color: var(--volt);
}

.line-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

/* Connected Arabic letters overlap, so outlines draw strokes through words.
   Use solid, softer text in Arabic instead. */
html[lang="ar"] .line-outline {
  color: rgba(245, 245, 244, 0.55);
  -webkit-text-stroke: 0;
}

html[lang="ar"] .marquee-item:nth-child(even) {
  color: rgba(255, 255, 255, 0.35);
  -webkit-text-stroke: 0;
}

html[lang="ar"] .coach-initial {
  color: rgba(255, 255, 255, 0.85);
  -webkit-text-stroke: 0;
}

@keyframes lineUp {
  from {
    transform: translateY(105%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero-sub {
  max-width: 540px;
  margin-top: 26px;
  color: #d4d4d8;
  font-size: clamp(16px, 1.6vw, 19px);
  animation: rise 0.9s var(--ease) 0.6s backwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: rise 0.9s var(--ease) 0.72s backwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 18px 46px;
  margin: 56px 0 0;
  animation: rise 0.9s var(--ease) 0.85s backwards;
}

.hero-stats div {
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--volt);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.count {
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 22px;
  height: 36px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--volt);
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  direction: ltr;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-inline-end: 34px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5);
}

.marquee-item svg {
  width: 26px;
  height: 26px;
  color: var(--volt);
  fill: var(--volt);
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-dark {
  background: var(--bg-2);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head-start {
  margin-inline: 0;
  text-align: start;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(215, 255, 58, 0.35);
  border-radius: 999px;
  background: var(--volt-dim);
  color: var(--volt);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[lang="ar"] .tag {
  letter-spacing: 0;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag-dark {
  border-color: rgba(10, 10, 11, 0.25);
  background: rgba(10, 10, 11, 0.08);
  color: var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
}

html[lang="ar"] .section-title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.25;
}

.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
}

/* Scroll reveal (enabled once JS runs) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  isolation: isolate;
}

.program-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.75);
  transform: scale(1.08);
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}

.program::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.15) 0%, rgba(10, 10, 11, 0.7) 50%, rgba(10, 10, 11, 0.97) 100%);
  transition: background 0.5s ease;
}

.program::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--volt);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.program:hover .program-img img {
  transform: scale(1.0);
  filter: grayscale(0.2) contrast(1.1) brightness(0.85);
}

.program:hover::after {
  opacity: 0.22;
}

.program-icon {
  position: absolute;
  top: 24px;
  inset-inline-start: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--volt);
  transition: background 0.3s ease, color 0.3s ease, transform 0.5s var(--ease);
}

.program:hover .program-icon {
  background: var(--volt);
  color: var(--ink);
  transform: rotate(-8deg);
}

.program-icon .icon {
  width: 24px;
  height: 24px;
}

.program-count {
  position: absolute;
  top: 28px;
  inset-inline-end: 26px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 15px;
  color: var(--muted);
}

.program h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
}

html[lang="ar"] .program h3 {
  font-size: 26px;
  line-height: 1.35;
}

.program p {
  margin-top: 10px;
  color: #c9c9ce;
  font-size: 15px;
}

.program-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

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

.intensity-bars {
  display: inline-flex;
  gap: 3px;
}

.intensity-bars i {
  width: 14px;
  height: 6px;
  border-radius: 2px;
  background: var(--line-strong);
}

.intensity-bars i.on {
  background: var(--volt);
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--volt);
}

.program-link .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Facilities bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bento-a {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-b {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.6);
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}

.bento-photo:hover img {
  transform: scale(1.06);
  filter: grayscale(0.3) brightness(0.7);
}

.bento-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 11, 0.92));
}

.bento-copy {
  position: absolute;
  inset-inline: 26px;
  bottom: 24px;
  z-index: 1;
}

.bento-copy .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--volt);
}

.bento-copy h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.bento-copy p {
  margin-top: 6px;
  max-width: 420px;
  color: #c9c9ce;
  font-size: 15px;
}

.bento-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
  transition: border-color 0.3s ease, transform 0.4s var(--ease), background 0.3s ease;
}

.bento-feature .icon {
  width: 30px;
  height: 30px;
  color: var(--volt);
}

.bento-feature:hover {
  border-color: rgba(215, 255, 58, 0.4);
  transform: translateY(-4px);
}

.bento-accent {
  background: var(--volt);
  color: var(--ink);
}

.bento-accent .icon {
  color: var(--ink);
}

/* ---------- Schedule ---------- */
.schedule {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-tab {
  position: relative;
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.day-tab small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.day-tab:hover {
  border-color: var(--line-strong);
}

.day-tab[aria-selected="true"] {
  border-color: var(--volt);
  background: var(--volt);
  color: var(--ink);
}

.day-tab[aria-selected="true"] small {
  color: rgba(10, 10, 11, 0.7);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--ink);
}

.class-list {
  display: grid;
  gap: 10px;
}

.class-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 190px auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  animation: rowIn 0.5s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: border-color 0.25s ease, transform 0.3s var(--ease);
}

.class-row:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

html[dir="rtl"] .class-row:hover {
  transform: translateX(-4px);
}

.class-row.past {
  opacity: 0.45;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.class-time {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 24px;
  line-height: 1;
  direction: ltr;
  text-align: start;
}

html[lang="ar"] .class-time {
  direction: rtl;
  font-family: "Inter", "Cairo", sans-serif;
  font-weight: 800;
  font-size: 21px;
}

.class-time small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}

.class-info h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
}

.class-info p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-cat {
  background: var(--surface-2);
  color: var(--volt);
}

.badge-ladies {
  background: rgba(244, 114, 182, 0.15);
  color: #f9a8d4;
}

.badge-today {
  background: var(--volt);
  color: var(--ink);
}

.spots small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.spots small b {
  color: var(--text);
}

.spots-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.spots-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--volt);
  transform-origin: left;
  animation: grow 0.9s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms + 0.15s);
}

html[dir="rtl"] .spots-bar i {
  transform-origin: right;
}

.spots.low .spots-bar i {
  background: #fb923c;
}

.spots.full .spots-bar i {
  background: var(--danger);
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.class-row .btn {
  min-width: 128px;
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text);
}

.class-empty {
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

/* Crowd chart */
.crowd {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.crowd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.crowd-head h3 {
  font-size: 22px;
  font-weight: 800;
}

.crowd-head p {
  color: var(--muted);
  font-size: 15px;
}

.crowd-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.crowd-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crowd-legend b {
  font-weight: 700;
}

.lv {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.lv-1 {
  background: #3f3f46;
}

.lv-2 {
  background: #a3c43a;
}

.lv-3 {
  background: var(--volt);
}

.crowd-chart {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: end;
  gap: 6px;
  height: 180px;
  direction: ltr;
}

.crowd-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 8px;
}

.crowd-bar {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: #3f3f46;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 35ms);
}

.crowd.in .crowd-bar {
  transform: scaleY(1);
}

.crowd-bar.lv2 {
  background: #a3c43a;
}

.crowd-bar.lv3 {
  background: var(--volt);
}

.crowd-col span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.crowd-col.now .crowd-bar {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.crowd-col.now em {
  position: absolute;
  top: -6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Coaches ---------- */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.coach {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.3s ease;
}

.coach:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.coach-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--h), 90%, 60%, 0.45), transparent 55%),
    radial-gradient(circle at 80% 90%, hsla(var(--h), 90%, 50%, 0.3), transparent 50%),
    var(--surface-2);
}

.coach-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px);
}

.coach-initial {
  position: relative;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 120px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85);
  transition: transform 0.6s var(--ease);
}

html[lang="ar"] .coach-initial {
  font-size: 110px;
}

.coach:hover .coach-initial {
  transform: scale(1.08) rotate(-4deg);
}

.coach-cert {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
  direction: ltr;
}

.coach-cert .icon {
  width: 14px;
  height: 14px;
  color: var(--volt);
}

.coach-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.coach-body h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.coach-role {
  color: var(--volt);
  font-size: 14px;
  font-weight: 700;
}

.coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.coach-tags span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.coach-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  text-align: center;
}

.coach-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 22px;
  line-height: 1.1;
}

html[lang="ar"] .coach-stats strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 19px;
}

.coach-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.coach .btn {
  margin-top: auto;
}

/* ---------- Plans ---------- */
.billing-toggle {
  position: relative;
  display: flex;
  width: max-content;
  margin: 0 auto 44px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.billing-toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: color 0.3s ease;
}

.billing-toggle button.active {
  color: var(--ink);
}

.billing-toggle em {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--volt-dim);
  color: var(--volt);
  font-size: 12px;
  font-style: normal;
  transition: background 0.3s ease, color 0.3s ease;
}

.billing-toggle button.active em {
  background: var(--ink);
  color: var(--volt);
}

.billing-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  z-index: 0;
  border-radius: 999px;
  background: var(--volt);
  transition: left 0.45s var(--ease), width 0.45s var(--ease);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.5s var(--ease), border-color 0.3s ease;
}

.plan:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.plan.featured {
  border-color: var(--volt);
  background:
    radial-gradient(circle at 100% 0%, rgba(215, 255, 58, 0.16), transparent 50%),
    var(--surface);
  box-shadow: 0 30px 70px -30px rgba(215, 255, 58, 0.35);
}

.plan-badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 30px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.plan h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

html[lang="ar"] .plan h3 {
  font-size: 30px;
  line-height: 1.3;
}

.plan-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 4px;
}

.plan-price strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 64px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

html[lang="ar"] .plan-price strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 56px;
}

.plan-price span {
  color: var(--muted);
  font-weight: 700;
}

.plan-billed {
  min-height: 22px;
  color: var(--volt);
  font-size: 13px;
  font-weight: 700;
}

.plan-features {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.plan-features .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  padding: 3px;
  border-radius: 6px;
  background: var(--volt-dim);
  color: var(--volt);
}

.plan-features li.off {
  color: #6b6b72;
}

.plan-features li.off .icon {
  background: var(--surface-2);
  color: #6b6b72;
}

.plan .btn {
  margin-top: auto;
}

/* ---------- Calculator ---------- */
.tools-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(30px, 5vw, 70px);
}

.tools-wrap .section-head {
  position: sticky;
  top: calc(var(--header-h) + 30px);
}

.calc {
  display: grid;
  gap: 18px;
}

.calc-form,
.trial-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.calc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a1a1a6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-inline-end: 42px;
}

html[dir="rtl"] .field select {
  background-position: left 16px center;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 4px var(--volt-dim);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.field input[dir="ltr"] {
  text-align: start;
}

html[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.err {
  min-height: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.err:empty {
  display: none;
}

.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.seg-3 {
  grid-template-columns: repeat(3, 1fr);
}

.seg legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
}

.seg span {
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.seg input:checked + span {
  border-color: var(--volt);
  background: var(--volt-dim);
  color: var(--volt);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

.calc-result {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.calc-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.calc-placeholder .icon {
  width: 36px;
  height: 36px;
  color: var(--volt);
}

.bmi-gauge {
  position: relative;
  margin: 6px 0 26px;
}

.bmi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bmi-head small {
  color: var(--muted);
  font-weight: 700;
}

.bmi-head strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
}

.bmi-head em {
  font-style: normal;
  font-weight: 800;
  color: var(--volt);
}

.bmi-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1.6fr;
  gap: 4px;
  height: 10px;
  direction: ltr;
}

.bmi-track i {
  border-radius: 999px;
}

.bmi-track i:nth-child(1) {
  background: #60a5fa;
}

.bmi-track i:nth-child(2) {
  background: var(--volt);
}

.bmi-track i:nth-child(3) {
  background: #fb923c;
}

.bmi-track i:nth-child(4) {
  background: var(--danger);
}

.bmi-pin {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--text);
  transform: translateY(-50%);
  transition: left 0.9s var(--ease);
}

.calc-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calc-figures div {
  padding: 16px 12px;
  border-radius: 14px;
  background: var(--bg-2);
  text-align: center;
}

.calc-figures strong {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
}

.calc-figures small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.calc-reco {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(215, 255, 58, 0.3);
  border-radius: 14px;
  background: var(--volt-dim);
}

.calc-reco p {
  font-weight: 700;
}

.calc-reco b {
  color: var(--volt);
}

.calc-error {
  color: var(--danger);
  font-weight: 700;
}

/* ---------- Results ---------- */
.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.results-stats > div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.results-stats strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 58px;
  line-height: 1;
  color: var(--volt);
}

html[lang="ar"] .results-stats strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 50px;
}

.results-stats .star {
  width: 30px;
  height: 30px;
  fill: var(--volt);
}

.results-stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  inset-inline-end: 22px;
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  color: var(--volt);
  opacity: 0.18;
}

.quote-stars {
  display: flex;
  gap: 3px;
  color: var(--volt);
}

.quote-stars .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.quote blockquote {
  flex: 1;
  margin: 18px 0 24px;
  font-size: 17px;
  line-height: 1.75;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-weight: 900;
  color: var(--volt);
}

.quote footer > div {
  flex: 1;
  min-width: 0;
}

.quote footer strong {
  display: block;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote footer .avatar,
.quote-result {
  flex-shrink: 0;
}

.quote footer small {
  color: var(--muted);
  font-size: 13px;
}

.quote-result {
  margin-inline-start: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Owner dashboard ---------- */
.section-volt {
  overflow: hidden;
  background: var(--volt);
  color: var(--ink);
}

.section-volt .section-sub {
  color: rgba(10, 10, 11, 0.72);
}

.owner-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.owner-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 34px;
}

.owner-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.owner-list .icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--volt);
}

.dash {
  padding: 18px;
  border-radius: 22px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(10, 10, 11, 0.6);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}

html[dir="rtl"] .dash {
  transform: perspective(1400px) rotateY(8deg) rotateX(4deg);
}

.dash:hover,
html[dir="rtl"] .dash:hover {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 16px;
  font-size: 14px;
}

.dash-dots {
  display: inline-flex;
  gap: 6px;
}

.dash-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  color: #4ade80;
  font-size: 12px;
}

.dash-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 1.4s ease-in-out infinite;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-kpis div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.dash-kpis small {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.dash-kpis strong {
  display: block;
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.dash-kpis em {
  display: inline-block;
  unicode-bidi: isolate;
  color: #4ade80;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.dash-kpis em.warn {
  color: #fb923c;
}

.dash-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.dash-chart,
.dash-renewals {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.dash-chart small,
.dash-renewals small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 8px;
  height: 130px;
  margin-top: 12px;
  direction: ltr;
}

.dash-bars div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.dash-bars i {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--volt), #8fae1f);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 0.2s);
}

.dash.in .dash-bars i {
  transform: scaleY(1);
}

.dash-bars span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.dash-renewals ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dash-renewals li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 13px;
}

.dash-renewals li strong {
  display: block;
  font-size: 13px;
}

.dash-renewals li small {
  font-size: 11px;
}

.dash-renewals .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.dash-renewals .sent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.dash-renewals .sent .icon {
  width: 14px;
  height: 14px;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(30px, 5vw, 70px);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(215, 255, 58, 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--volt);
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
  background: var(--volt);
  color: var(--ink);
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--muted);
  animation: rise 0.4s var(--ease);
}

/* ---------- Trial ---------- */
.trial {
  overflow: hidden;
}

.trial-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(215, 255, 58, 0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(215, 255, 58, 0.08), transparent 40%);
}

.trial-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.display {
  font-size: clamp(48px, 7vw, 100px);
}

html[lang="ar"] .display {
  font-size: clamp(40px, 5.6vw, 76px);
}

.perks {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
}

.perks .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
}

.trial-card {
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

.trial-card form {
  display: grid;
  gap: 16px;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.form-note .icon {
  width: 16px;
  height: 16px;
}

.success {
  padding: 20px 6px;
  text-align: center;
  animation: rise 0.6s var(--ease);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--ink);
  box-shadow: 0 0 0 12px var(--volt-dim);
  animation: pop 0.6s var(--ease) 0.1s backwards;
}

.success-icon .icon {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.success h3 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
}

.success p {
  margin-top: 8px;
  color: var(--muted);
}

.ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 10px 16px;
  border: 1px dashed rgba(215, 255, 58, 0.5);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--volt);
  direction: ltr;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- Visit ---------- */
.visit-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: clamp(30px, 5vw, 60px);
}

.visit-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 18px;
  font-weight: 700;
}

.visit-address .icon {
  color: var(--volt);
}

.visit-hours-title {
  margin: 30px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .visit-hours-title {
  letter-spacing: 0;
}

.hours {
  display: grid;
  gap: 8px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 700;
}

.hours li b {
  font-family: "Inter", "Cairo", sans-serif;
  white-space: nowrap;
}

.hours li.today {
  border-color: var(--volt);
}

.hours li.today span::after {
  content: attr(data-today);
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--volt);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.map {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 380px;
  margin: 18px 0 22px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.socials a:hover {
  border-color: var(--volt);
  background: var(--volt);
  color: var(--ink);
  transform: translateY(-3px);
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .footer h4 {
  letter-spacing: 0;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer ul a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--volt);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer-hours b {
  color: var(--text);
  font-family: "Inter", "Cairo", sans-serif;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 60px;
  padding: 24px 0 70px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.made-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.made-by strong {
  color: var(--text);
}

.made-by:hover {
  border-color: var(--volt);
  color: var(--volt);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.3s var(--ease);
  animation: rise 0.6s var(--ease) 1.5s backwards;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.4s ease-out 2s infinite;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade 0.3s ease;
}

.modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  animation: modalIn 0.45s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.modal h3 {
  padding-inline-end: 44px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
}

.modal-steps {
  display: flex;
  gap: 8px;
  margin: 16px 0 22px;
}

.modal-steps span {
  flex: 1;
  padding-top: 8px;
  border-top: 3px solid var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-steps span.on {
  border-color: var(--volt);
  color: var(--text);
}

.summary {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-2);
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}

.summary-title .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: var(--volt);
  color: var(--ink);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.summary-row b {
  color: var(--text);
}

.modal form {
  display: grid;
  gap: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }

  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .class-row {
    grid-template-columns: 96px minmax(0, 1fr) 150px auto;
    gap: 14px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 11, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s;
  }

  .nav.open {
    transform: none;
    visibility: visible;
  }

  .nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    color: var(--text);
  }

  .nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .programs-grid,
  .plans-grid,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid .plan.featured {
    order: -1;
    grid-column: 1 / -1;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-wrap,
  .owner-wrap,
  .faq-wrap,
  .trial-wrap,
  .visit-wrap {
    grid-template-columns: 1fr;
  }

  .tools-wrap .section-head {
    position: static;
  }

  .dash,
  html[dir="rtl"] .dash {
    transform: none;
  }

  .results-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1240px, 100% - 32px);
  }

  .demo-bar {
    justify-content: flex-start;
    padding: 8px 44px 8px 14px;
    font-size: 12px;
    text-align: start;
  }

  html[dir="rtl"] .demo-bar {
    padding: 8px 14px 8px 44px;
  }

  .demo-bar-dot {
    display: none;
  }

  .lang-btn span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 40px) 0 90px;
  }

  .hero-media img {
    object-position: center 20%;
  }

  html[dir="rtl"] .hero-media {
    transform: none;
  }

  .hero-shade,
  html[dir="rtl"] .hero-shade {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.75) 45%, rgba(10, 10, 11, 0.97) 75%, var(--bg) 100%);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
    margin-top: 44px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .scroll-cue {
    display: none;
  }

  .programs-grid,
  .plans-grid,
  .testimonials,
  .coaches-grid,
  .results-stats {
    grid-template-columns: 1fr;
  }

  .program {
    min-height: 360px;
  }

  .bento {
    grid-auto-rows: 130px;
  }

  .bento-a,
  .bento-b {
    grid-column: span 2;
    grid-row: span 2;
  }

  .day-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -4px;
    padding: 2px 4px 4px;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tab {
    flex: 0 0 auto;
    min-width: 78px;
    scroll-snap-align: start;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -4px;
    padding: 2px 4px;
  }

  .filter-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .class-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time btn"
      "info info"
      "spots spots";
    gap: 12px;
    padding: 16px;
  }

  .class-time {
    grid-area: time;
  }

  .class-info {
    grid-area: info;
  }

  .spots {
    grid-area: spots;
  }

  .class-row .btn {
    grid-area: btn;
    min-width: 0;
  }

  .class-row:hover,
  html[dir="rtl"] .class-row:hover {
    transform: none;
  }

  .crowd-chart {
    gap: 3px;
    height: 150px;
  }

  .crowd-col span {
    font-size: 9px;
  }

  .crowd-col:nth-child(even) span {
    visibility: hidden;
  }

  .calc-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .map,
  .map iframe {
    min-height: 320px;
  }

  .wa-float {
    right: 16px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 420px) {
  .seg-3 span {
    font-size: 13px;
  }

  .calc-figures strong {
    font-size: 22px;
  }

  .plan-price strong {
    font-size: 52px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}
