/* ==========================================================================
   IRON ARENA — Luxury Fitness Club
   Design System & Component Library  (RTL-first, logical properties only)
   --------------------------------------------------------------------------
   01. Fonts            09. Hero / Page hero      17. Pricing
   02. Tokens           10. Trust bar             18. Blog & article
   03. Reset / base     11. Shifts                19. BMI / diet tools
   04. Typography       12. Gender split          20. Accordion / tabs
   05. Layout           13. Features / programs   21. Modal / lightbox
   06. Buttons & chips  14. Coaches               22. Forms / toasts
   07. Header / drawer  15. Gallery               23. Footer / floating UI
   08. Loader / cursor  16. Testimonials          24. Motion / themes / utils
   ========================================================================== */

/* 01. FONTS — self-hosted (Google Fonts / CDNs are unreliable for Iranian users) */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
}

/* 02. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* palette */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-elevated: #1a1a1a;
  --accent-gold: #d4af37;
  --accent-amber: #ffb800;
  --accent-crimson: #e11d2e;
  --accent-rose: #e94e77;
  --text-primary: #f5f5f5;
  --text-muted: #9ca3af;
  --border-subtle: rgba(212, 175, 55, 0.15);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* derived */
  --gold-text: var(--accent-gold);
  --gold-grad: linear-gradient(135deg, #f1d77a 0%, #d4af37 42%, #a8841f 100%);
  --accent: var(--accent-crimson);            /* gender-driven energy accent */
  --accent-soft: rgba(225, 29, 46, 0.14);
  --glass-bg: rgba(20, 20, 20, 0.6);
  --overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  --input-bg: rgba(255, 255, 255, 0.04);

  /* type */
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Bebas Neue", "Vazirmatn", Impact, sans-serif;
  --fs-display: clamp(3rem, 8vw, 7rem);
  --fs-h1: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  /* radius */
  --r-btn: 4px; --r-card: 16px; --r-pill: 999px;

  /* shadows */
  --sh-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --sh-glow: 0 0 40px rgba(212, 175, 55, 0.25);
  --sh-hover: 0 12px 48px rgba(212, 175, 55, 0.35);

  /* layout */
  --container: 1440px;
  --gutter: 24px;
  --pad-inline: clamp(16px, 4vw, 64px);
  --header-h: 84px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.2s; --t-med: 0.45s; --t-slow: 0.9s;

  color-scheme: dark;
}

/* gender mode — switches the energy accent site-wide */
html[data-gender="female"] {
  --accent: var(--accent-rose);
  --accent-soft: rgba(233, 78, 119, 0.14);
}

/* light theme */
html[data-theme="light"] {
  --bg-primary: #f7f4ee;
  --bg-secondary: #efeae0;
  --bg-elevated: #ffffff;
  --text-primary: #141414;
  --text-muted: #55534e;
  --gold-text: #876712;
  --border-subtle: rgba(135, 103, 18, 0.22);
  --border-glass: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --card-bg: linear-gradient(180deg, #ffffff, #fbf9f4);
  --input-bg: #ffffff;
  --sh-soft: 0 4px 24px rgba(40, 30, 0, 0.08);
  color-scheme: light;
}

/* 03. RESET / BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  min-height: 100vh;
  font-family: var(--font-fa);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--t-med), color var(--t-med);
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--accent-gold); color: #0a0a0a; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.ic--lg { width: 1.75rem; height: 1.75rem; }
.skip-link {
  position: fixed; inset-inline-start: 16px; inset-block-start: -100px; z-index: 1000;
  padding: 12px 20px; background: var(--accent-gold); color: #0a0a0a; font-weight: 700; border-radius: var(--r-btn);
}
.skip-link:focus { inset-block-start: 16px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* scrollbar */
html { scrollbar-color: #3a3a3a transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 10px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-gold); }

/* 04. TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; text-wrap: balance; }
.display { font-size: var(--fs-display); font-weight: 900; line-height: 1.12; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; }
p { text-wrap: pretty; }
small, .small { font-size: var(--fs-small); }
.latin { font-family: var(--font-display); letter-spacing: 0.04em; direction: ltr; unicode-bidi: isolate; }
.latin-tight { letter-spacing: -0.03em; }
.text-gold { color: var(--gold-text); }
.text-grad {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-muted); line-height: 1.9; }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.28em;
  color: var(--gold-text); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow__fa { font-family: var(--font-fa); letter-spacing: 0; font-weight: 600; font-size: 0.9rem; }

/* 05. LAYOUT -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad-inline) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-secondary); }
.section__head { display: grid; gap: 16px; max-width: 760px; margin-block-end: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head--split {
  max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: var(--s-3); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); border: 0; }

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-glass);
}
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-card);
  box-shadow: var(--sh-soft);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.card--hover:hover { transform: translateY(-6px); border-color: var(--border-subtle); box-shadow: var(--sh-hover); }

/* media wrapper with blur-up */
.media { position: relative; overflow: hidden; background: var(--bg-elevated) center / cover no-repeat; }
.media > img { width: 100%; height: 100%; object-fit: cover; }
.media.is-loading > img { opacity: 0; filter: blur(14px); transform: scale(1.05); }
.media > img { transition: opacity 0.6s var(--ease-out), filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.media.is-loading::after {
  content: ""; position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* 06. BUTTONS & CHIPS ----------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text-primary); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  font-weight: 700; font-size: 0.975rem; line-height: 1.2; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-btn);
  transform: translateY(0);
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.35), var(--sh-glow); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.35); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn--gold { --btn-bg: var(--accent-gold); --btn-fg: #0a0a0a; background-image: var(--gold-grad); box-shadow: 0 4px 0 0 #7a5f14; }
.btn--gold:hover { background-image: linear-gradient(135deg, #ffd766, var(--accent-amber) 50%, #c9961a); box-shadow: 0 6px 0 0 #7a5f14, var(--sh-hover); }
.btn--gold:active { box-shadow: 0 1px 0 0 #7a5f14; }
.btn--ghost { --btn-bd: rgba(255, 255, 255, 0.28); --btn-bg: rgba(255, 255, 255, 0.04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.btn--ghost:hover { --btn-bd: var(--accent-gold); --btn-fg: var(--accent-gold); box-shadow: var(--sh-glow); }
html[data-theme="light"] .btn--ghost { --btn-bd: rgba(0, 0, 0, 0.2); }
html[data-theme="light"] .hero .btn--ghost, html[data-theme="light"] .on-dark .btn--ghost { --btn-bd: rgba(255, 255, 255, 0.35); --btn-fg: #fff; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.45); }
.btn--accent:hover { box-shadow: 0 6px 0 0 rgba(0, 0, 0, 0.45), 0 12px 40px var(--accent-soft); }
.btn--outline { --btn-bd: var(--border-subtle); --btn-fg: var(--gold-text); box-shadow: none; }
.btn--outline:hover { --btn-bd: var(--accent-gold); box-shadow: var(--sh-glow); }
.btn--pill { border-radius: var(--r-pill); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ripple 0.7s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-glass); color: var(--text-primary);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.icon-btn:active { transform: scale(0.94); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; min-height: 36px;
  border-radius: var(--r-pill); border: 1px solid var(--border-glass);
  font-size: var(--fs-small); font-weight: 600; color: var(--text-muted);
  transition: all var(--t-fast);
}
button.chip:hover { color: var(--text-primary); border-color: var(--border-subtle); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-active {
  background: var(--accent-gold); background-image: var(--gold-grad); color: #0a0a0a; border-color: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(212, 175, 55, 0.12); color: var(--gold-text); border: 1px solid var(--border-subtle);
}
.badge--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge--solid { background: var(--accent-gold); background-image: var(--gold-grad); color: #0a0a0a; border: 0; }
.badge--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: live 1.8s infinite;
}
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* 07. HEADER / NAV / DRAWER ---------------------------------------------- */
.site-header {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 100;
  transition: background-color var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out);
  border-block-end: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-block-end-color: var(--border-subtle);
}
html[data-theme="light"] .site-header.is-scrolled { background: rgba(247, 244, 238, 0.78); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); transition: height var(--t-med) var(--ease-out);
}
.site-header.is-scrolled .nav { height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-gold); flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; transition: transform var(--t-slow) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-60deg); }
.brand__text { display: grid; line-height: 1; direction: ltr; text-align: start; }
.brand__text b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.12em; color: var(--text-primary); }
.brand__text small { font-size: 0.62rem; letter-spacing: 0.32em; color: var(--gold-text); text-transform: uppercase; margin-block-start: 3px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; display: block; padding: 8px 12px; font-size: 0.93rem; font-weight: 500;
  color: var(--text-muted); transition: color var(--t-fast);
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 12px; inset-block-end: 2px; height: 1px;
  background: var(--accent-gold); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text-primary); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.site-header:not(.is-scrolled) .nav__links a { color: rgba(245, 245, 245, 0.78); }
.site-header:not(.is-scrolled) .nav__links a:hover,
.site-header:not(.is-scrolled) .nav__links a[aria-current="page"] { color: #fff; }
html[data-theme="light"] .site-header:not(.is-scrolled) .brand__text b,
html[data-theme="light"] .site-header:not(.is-scrolled) .icon-btn { color: #fff; }
html[data-theme="light"] .site-header:not(.is-scrolled) .icon-btn { border-color: rgba(255, 255, 255, 0.3); }

/* gender segmented toggle */
.gender-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px;
  border-radius: var(--r-pill); border: 1px solid var(--border-glass); background: rgba(255, 255, 255, 0.04);
}
.gender-toggle::before {
  content: ""; position: absolute; inset-block: 4px; inset-inline-start: 4px; width: calc(50% - 4px);
  border-radius: var(--r-pill); background: var(--accent); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med);
  box-shadow: 0 4px 18px var(--accent-soft);
}
html[data-gender="female"] .gender-toggle::before { transform: translateX(-100%); }
.gender-toggle button {
  position: relative; z-index: 1; padding: 6px 14px; font-size: 0.82rem; font-weight: 700;
  border-radius: var(--r-pill); color: var(--text-muted); transition: color var(--t-med);
}
.gender-toggle button[aria-pressed="true"] { color: #fff; }
html[data-theme="light"] .site-header:not(.is-scrolled) .gender-toggle button:not([aria-pressed="true"]) { color: rgba(255, 255, 255, 0.8); }
.theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav__burger { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity var(--t-med); }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(380px, 88vw);
  display: flex; flex-direction: column; gap: 24px; padding: 24px; overflow-y: auto;
  background: var(--bg-secondary); border-inline-end: 1px solid var(--border-subtle);
  transform: translateX(100%); transition: transform var(--t-med) var(--ease-out);
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__links { display: grid; gap: 2px; }
.drawer__links a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 4px;
  font-size: 1.1rem; font-weight: 600; border-block-end: 1px solid var(--border-glass);
}
.drawer__links a[aria-current="page"] { color: var(--gold-text); }
.drawer__links .ic { color: var(--text-muted); width: 1rem; height: 1rem; }
.drawer__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drawer__foot { margin-block-start: auto; display: grid; gap: 12px; }

/* 08. LOADER / CURSOR / PROGRESS ----------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #0a0a0a;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
html.no-loader .loader, .loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .loader { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__icon { width: 120px; height: 60px; color: var(--accent-gold); }
.loader__icon path, .loader__icon rect { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-in-out) forwards; }
.loader__icon .lift { animation: draw 1s var(--ease-in-out) forwards, lift 1.1s 0.6s var(--ease-in-out) infinite; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lift { 50% { transform: translateY(-6px); } }
.loader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: right; transform: scaleX(0); animation: loadbar 1.1s var(--ease-out) forwards; }
@keyframes loadbar { to { transform: scaleX(1); } }
.loader__brand { font-family: var(--font-display); letter-spacing: 0.5em; color: #f5f5f5; font-size: 0.9rem; direction: ltr; padding-inline-start: 0.5em; }

.cursor-dot, .cursor-ring {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 10000; pointer-events: none;
  border-radius: 50%; opacity: 0; will-change: transform; direction: ltr;
}
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent-gold); left: 0; right: auto; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; left: 0; right: auto;
  border: 1px solid rgba(212, 175, 55, 0.6);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(212, 175, 55, 0.1); border-color: var(--accent-gold); }
.cursor-ring.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [role="button"], html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }

.read-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 150; height: 3px;
  background: var(--gold-grad); transform-origin: right; transform: scaleX(0);
}

/* 09. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding-block: calc(var(--header-h) + 40px) 160px; overflow: hidden; color: #f5f5f5; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.18) translate(-1.5%, 1%); } }
.hero__overlay { position: absolute; inset: 0; z-index: -2; background: var(--overlay); }
.hero__overlay::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 75% 35%, rgba(212, 175, 55, 0.14), transparent 70%),
              radial-gradient(ellipse 50% 40% at 15% 85%, var(--accent-soft), transparent 70%);
  transition: background var(--t-slow);
}
.grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); } 60% { transform: translate(-7%, 2%); } 80% { transform: translate(4%, 5%); } }
.hero__inner { display: grid; gap: 28px; max-width: 1100px; }
.hero__title { font-size: var(--fs-display); font-weight: 900; line-height: 1.15; }
.hero__title .line { display: block; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.06em; margin-block: -0.06em; }
.word__inner { display: inline-block; }
html.js .hero__title[data-split] { visibility: hidden; }
html.js .hero__title[data-split].is-split { visibility: visible; }
.hero__lead { max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(245, 245, 245, 0.82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__stats {
  position: absolute; inset-block-end: 48px; inset-inline-end: var(--pad-inline);
  display: flex; gap: 16px;
}
.stat-card {
  display: grid; gap: 2px; min-width: 170px; padding: 18px 22px; border-radius: var(--r-card);
  color: #f5f5f5; animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -2s; }
.stat-card:nth-child(3) { animation-delay: -4s; }
.stat-card b { font-size: 2rem; font-weight: 900; line-height: 1.2; color: var(--accent-gold); }
.stat-card span { font-size: 0.85rem; color: rgba(245, 245, 245, 0.72); }
.hero .glass { background: rgba(20, 20, 20, 0.55); border-color: rgba(255, 255, 255, 0.1); }
@keyframes float { 50% { transform: translateY(-10px); } }
.scroll-cue {
  position: absolute; inset-block-end: 40px; inset-inline-start: var(--pad-inline);
  display: grid; justify-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.3em; color: rgba(245, 245, 245, 0.7);
}
.scroll-cue .ic { animation: bounce 1.8s var(--ease-in-out) infinite; color: var(--accent-gold); }
@keyframes bounce { 50% { transform: translateY(8px); } }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #f5f5f5;
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 110px)) clamp(56px, 7vw, 96px);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(10, 10, 10, 0.94)); }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-gold), transparent); opacity: 0.4; }
.page-hero__inner { display: grid; gap: 18px; max-width: 820px; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 900; }
.page-hero p { color: rgba(245, 245, 245, 0.78); font-size: 1.1rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: var(--fs-small); color: rgba(245, 245, 245, 0.6); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb .ic { width: 14px; height: 14px; }

/* 10. TRUST BAR ----------------------------------------------------------- */
.trust { padding-block: 40px; border-block: 1px solid var(--border-glass); background: var(--bg-primary); overflow: hidden; }
.trust__inner { display: flex; align-items: center; gap: 48px; }
.trust__label { flex-shrink: 0; font-size: var(--fs-small); color: var(--text-muted); max-width: 160px; line-height: 1.6; }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); direction: ltr; }
.marquee__track { display: flex; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cert { display: flex; align-items: center; gap: 12px; color: var(--text-muted); opacity: 0.65; transition: opacity var(--t-fast), color var(--t-fast); }
.cert:hover { opacity: 1; color: var(--text-primary); }
.cert b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: 0.08em; line-height: 1; }
.cert small { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; max-width: 120px; }
.cert .ic { width: 28px; height: 28px; color: var(--accent-gold); }

/* 11. SHIFTS -------------------------------------------------------------- */
.shifts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.shift-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 24px; align-content: start;
  min-height: 520px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.shift-card__bg { position: absolute; inset: 0; z-index: -2; opacity: 0.22; transition: opacity var(--t-slow) var(--ease-out), transform 1.6s var(--ease-out); }
.shift-card__bg img { width: 100%; height: 100%; object-fit: cover; }
.shift-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.92) 70%); }
html[data-theme="light"] .shift-card { color: #f5f5f5; background: #151515; }
.shift-card:hover { transform: translateY(-8px); box-shadow: var(--sh-hover); border-color: var(--border-subtle); }
.shift-card:hover .shift-card__bg { opacity: 0.55; transform: scale(1.06); }
.shift-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shift-card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--border-subtle); color: var(--accent-gold); background: rgba(212, 175, 55, 0.08);
}
.shift-card__icon .ic { width: 30px; height: 30px; }
.shift-card h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 900; }
.shift-card__time { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; color: var(--accent-gold); line-height: 1.1; direction: ltr; text-align: end; unicode-bidi: isolate; }
.shift-card__list { display: grid; gap: 10px; }
.shift-card__list li { display: flex; align-items: center; gap: 10px; color: rgba(245, 245, 245, 0.85); }
.shift-card__list .ic { color: var(--accent-gold); width: 18px; height: 18px; }
.shift-card .btn { justify-self: start; margin-block-start: auto; }

/* 12. GENDER SPLIT -------------------------------------------------------- */
.split {
  --pos: 0.5;
  position: relative; display: flex; height: clamp(520px, 72vh, 720px); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--border-glass); direction: ltr; color: #f5f5f5;
}
.split__panel {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  padding: clamp(24px, 4vw, 56px); direction: rtl; text-align: start; cursor: pointer;
  transition: flex-grow 0.7s var(--ease-out);
  width: 100%; border: 0; color: inherit;
}
.split__panel--male { flex-grow: calc(var(--pos) * 2); }
.split__panel--female { flex-grow: calc((1 - var(--pos)) * 2); }
.split__panel .split__img { position: absolute; inset: 0; z-index: -2; }
.split__panel .split__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split__panel:hover .split__img img { transform: scale(1.05); }
.split__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity var(--t-med); }
.split__panel--male::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(10, 0, 0, 0.92)), linear-gradient(90deg, rgba(225, 29, 46, 0.35), transparent 60%); }
.split__panel--female::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(12, 0, 4, 0.92)), linear-gradient(270deg, rgba(233, 78, 119, 0.35), transparent 60%); }
.split__content { display: grid; gap: 14px; max-width: 420px; min-width: 260px; }
.split__tag { font-family: var(--font-display); letter-spacing: 0.3em; font-size: 0.9rem; direction: ltr; text-align: end; }
.split__panel--male .split__tag { color: #ff4d5c; }
.split__panel--female .split__tag { color: #ff7a9c; }
.split__content h3 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 900; }
.split__list { display: grid; gap: 8px; }
.split__list li { display: flex; gap: 10px; align-items: center; color: rgba(245, 245, 245, 0.85); }
.split__list .ic { width: 18px; height: 18px; }
.split__panel--male .split__list .ic { color: #ff4d5c; }
.split__panel--female .split__list .ic { color: #ff7a9c; }
.split__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-block-start: 6px; }
.split__more .ic { transition: transform var(--t-fast); }
.split__panel:hover .split__more .ic { transform: translateX(-6px); }
.split__divider {
  position: absolute; inset-block: 0; left: calc(var(--pos) * 100%); width: 2px; z-index: 3;
  background: linear-gradient(180deg, transparent, var(--accent-gold), transparent); pointer-events: none;
  transition: left 0.7s var(--ease-out);
}
.split__divider span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(10, 10, 10, 0.75); border: 1px solid var(--accent-gold); color: var(--accent-gold);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* 13. FEATURES / PROGRAMS ------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.feature { padding: 36px 32px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.feature::after {
  content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -30%; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%); opacity: 0; transition: opacity var(--t-med);
}
.feature:hover::after { opacity: 1; }
.feature__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px;
  background: rgba(212, 175, 55, 0.08); border: 1px solid var(--border-subtle); color: var(--accent-gold);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med);
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.06); background: rgba(212, 175, 55, 0.16); }
.feature__icon .ic { width: 28px; height: 28px; }
.feature__num { position: absolute; inset-block-start: 24px; inset-inline-end: 28px; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--text-muted); opacity: 0.5; }
.feature p { color: var(--text-muted); }

.programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.program-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 460px; padding: 28px; border-radius: var(--r-card); color: #f5f5f5;
  border: 1px solid var(--border-glass); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.program-card .media { position: absolute; inset: 0; z-index: -2; }
.program-card .media img { transition: transform 1.2s var(--ease-out), opacity 0.6s, filter 0.8s; }
.program-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.92)); }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); }
.program-card:hover .media img { transform: scale(1.08); }
.program-card__num { position: absolute; inset-block-start: 22px; inset-inline-start: 24px; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: rgba(255, 255, 255, 0.16); }
.program-card h3 { font-size: 1.5rem; margin-block: 10px 6px; }
.program-card p { color: rgba(245, 245, 245, 0.75); font-size: 0.92rem; }
.program-card__meta { display: flex; gap: 16px; margin-block-start: 14px; font-size: 0.82rem; color: rgba(245, 245, 245, 0.7); }
.program-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.program-card__meta .ic { width: 15px; height: 15px; color: var(--accent-gold); }
.program-card__arrow {
  position: absolute; inset-block-start: 22px; inset-inline-end: 22px; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); transition: all var(--t-med) var(--ease-out);
}
.program-card:hover .program-card__arrow { background: var(--accent-gold); color: #0a0a0a; border-color: transparent; transform: rotate(45deg); }

/* 14. COACHES ------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gutter)) / 4); gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding-block: 8px 24px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; }
.carousel__nav .icon-btn { width: 52px; height: 52px; }
.coach-card { overflow: hidden; display: flex; flex-direction: column; }
.coach-card .media { aspect-ratio: 4 / 5; }
.coach-card .media img { transition: transform 1s var(--ease-out), filter 0.6s, opacity 0.6s; filter: grayscale(0.35); }
.coach-card:hover .media img { transform: scale(1.06); filter: grayscale(0); }
.coach-card__badges { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.coach-card__badges .badge { background: rgba(10, 10, 10, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--accent-gold); }
.coach-card__body { display: grid; gap: 4px; padding: 20px 22px 22px; }
.coach-card__body h3 { font-size: 1.2rem; }
.coach-card__role { color: var(--text-muted); font-size: 0.9rem; }
.coach-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 12px; }
.coach-card__ig { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); direction: ltr; }
.coach-card__ig:hover { color: var(--accent-gold); }
.coach-card__ig .ic { width: 16px; height: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold-text); font-size: 0.92rem; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover .ic { transform: translateX(-4px); }
.coaches-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }

.coach-modal { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.coach-modal .media { min-height: 100%; aspect-ratio: auto; }
.coach-modal__body { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); align-content: start; }
.coach-modal__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.coach-modal__stats div { padding: 14px; border-radius: 12px; border: 1px solid var(--border-glass); text-align: center; }
.coach-modal__stats b { display: block; font-size: 1.4rem; color: var(--gold-text); }
.coach-modal__stats span { font-size: 0.78rem; color: var(--text-muted); }
.list-check { display: grid; gap: 8px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check .ic { color: var(--accent-gold); width: 18px; height: 18px; margin-block-start: 5px; }

/* 15. GALLERY ------------------------------------------------------------- */
.masonry { columns: 4 260px; column-gap: var(--gutter); }
.masonry__item {
  position: relative; display: block; width: 100%; margin-block-end: var(--gutter); break-inside: avoid;
  border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; border: 1px solid var(--border-glass);
}
.masonry__item .media img { transition: transform 1s var(--ease-out), opacity 0.6s, filter 0.8s; }
.masonry__item:hover .media img { transform: scale(1.06); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85));
  opacity: 0; transition: opacity var(--t-med);
}
.masonry__item:hover::after, .masonry__item:focus-visible::after { opacity: 1; }
.masonry__cap {
  position: absolute; z-index: 1; inset-inline: 18px; inset-block-end: 16px; display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-weight: 700; transform: translateY(12px); opacity: 0; transition: all var(--t-med) var(--ease-out);
}
.masonry__item:hover .masonry__cap, .masonry__item:focus-visible .masonry__cap { transform: none; opacity: 1; }
.masonry__item.is-hidden { display: none; }

/* 16. TESTIMONIALS / BEFORE-AFTER ---------------------------------------- */
.testimonials { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.quote-slider { position: relative; min-height: 340px; }
.quote {
  position: absolute; inset: 0; display: grid; gap: 24px; align-content: start;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all 0.7s var(--ease-out);
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.quote__mark { width: 56px; height: 56px; color: var(--accent-gold); opacity: 0.8; }
.quote blockquote { font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 600; line-height: 1.8; }
.quote__author { display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent-gold); }
.quote__author b { display: block; }
.quote__author span { font-size: 0.88rem; color: var(--text-muted); }
.quote__result { display: inline-flex; gap: 8px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent-gold); }
.stars .ic { width: 16px; height: 16px; fill: currentColor; }
.stars .ic.is-off { fill: none; opacity: 0.35; }
.dots { display: flex; gap: 8px; margin-block-start: 28px; }
.dots button { width: 28px; height: 4px; border-radius: 4px; background: rgba(127, 127, 127, 0.35); transition: all var(--t-med); }
.dots button[aria-current="true"] { width: 52px; background: var(--accent-gold); }

.ba {
  --ba: 50%;
  position: relative; aspect-ratio: 9 / 10; border-radius: var(--r-card); overflow: hidden; user-select: none; touch-action: pan-y;
  border: 1px solid var(--border-subtle); box-shadow: var(--sh-glow); direction: ltr;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--ba)); }
.ba__label {
  position: absolute; inset-block-start: 16px; z-index: 2; padding: 4px 14px; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 700; color: #fff; background: rgba(10, 10, 10, 0.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; background: var(--accent-gold); color: #0a0a0a; }
.ba__handle {
  position: absolute; inset-block: 0; left: var(--ba); z-index: 3; width: 2px; background: var(--accent-gold); transform: translateX(-1px); pointer-events: none;
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-gold); color: #0a0a0a; box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.25);
}
.ba input[type="range"] {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.ba input[type="range"]:focus-visible + .ba__handle span { outline: 3px solid #fff; outline-offset: 3px; }
.ba__caption { margin-block-start: 14px; font-size: var(--fs-small); color: var(--text-muted); text-align: center; }

/* 17. PRICING ------------------------------------------------------------- */
.billing { display: inline-flex; align-items: center; gap: 14px; padding: 6px; border-radius: var(--r-pill); border: 1px solid var(--border-glass); }
.billing button { padding: 8px 20px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.92rem; color: var(--text-muted); transition: all var(--t-fast); }
.billing button[aria-pressed="true"] { background: var(--accent-gold); background-image: var(--gold-grad); color: #0a0a0a; }
.billing .badge { margin-inline-start: 4px; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 3vw, 40px); overflow: hidden; }
.price-card--featured {
  border-color: rgba(212, 175, 55, 0.55); box-shadow: var(--sh-glow);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.01) 60%), var(--card-bg);
}
@media (min-width: 1024px) { .price-card--featured { transform: scale(1.04); } .price-card--featured:hover { transform: scale(1.04) translateY(-6px); } }
.price-card__ribbon { position: absolute; inset-block-start: 22px; inset-inline-end: 22px; }
.price-card__tier { display: flex; align-items: center; gap: 12px; }
.price-card__gem { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; }
.tier-silver .price-card__gem { background: linear-gradient(135deg, #f1f1f1, #9ca3af); color: #1a1a1a; }
.tier-gold .price-card__gem { background: var(--gold-grad); color: #1a1a1a; }
.tier-diamond .price-card__gem { background: linear-gradient(135deg, #e0f2fe, #93c5fd 40%, #a78bfa); color: #1a1a1a; }
.price-card__tier h3 { font-size: 1.5rem; }
.price-card__tier small { display: block; color: var(--text-muted); font-family: var(--font-display); letter-spacing: 0.2em; direction: ltr; text-align: end; }
.price { display: grid; gap: 4px; min-height: 96px; }
.price__amount { display: flex; align-items: baseline; gap: 8px; }
.price__amount b { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.1; }
.price__amount span { color: var(--text-muted); font-size: 0.92rem; }
.price__old { color: var(--text-muted); text-decoration: line-through; font-size: 0.9rem; }
.price__note { font-size: 0.85rem; color: var(--gold-text); }
.price-card ul { display: grid; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.price-card li .ic { width: 18px; height: 18px; margin-block-start: 5px; color: var(--accent-gold); }
.price-card li.is-off { color: var(--text-muted); opacity: 0.55; }
.price-card li.is-off .ic { color: var(--text-muted); }

.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--border-glass); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-block-end: 1px solid var(--border-glass); }
.compare th:first-child, .compare td:first-child { text-align: start; }
.compare thead th { position: sticky; top: 0; background: var(--bg-elevated); font-size: 1.05rem; }
.compare thead th.is-featured { color: var(--gold-text); }
.compare tbody tr:hover { background: rgba(212, 175, 55, 0.04); }
.compare td .ic { margin-inline: auto; width: 20px; height: 20px; }
.compare .yes { color: var(--accent-gold); }
.compare .no { color: var(--text-muted); opacity: 0.5; }
.compare .group td { background: rgba(212, 175, 55, 0.06); font-weight: 800; color: var(--gold-text); text-align: start; }

/* 18. BLOG / ARTICLE ------------------------------------------------------ */
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-block-end: 40px; }
.search { position: relative; flex: 0 1 380px; }
.search input { padding-inline-start: 48px; }
.search .ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .media { aspect-ratio: 16 / 10; }
.post-card .media img { transition: transform 1s var(--ease-out), opacity 0.6s, filter 0.8s; }
.post-card:hover .media img { transform: scale(1.06); }
.post-card__cat { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 1; }
.post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.post-card__body h3 { font-size: 1.15rem; line-height: 1.6; }
.post-card__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.post-card__body p { color: var(--text-muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-block-start: auto; padding-block-start: 14px; border-block-start: 1px solid var(--border-glass); font-size: 0.82rem; color: var(--text-muted); }
.post-meta .avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.post-meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .ic { width: 14px; height: 14px; }
.post-meta__author { flex: 1; font-weight: 600; color: var(--text-primary); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 16px; text-align: center; color: var(--text-muted); grid-column: 1 / -1; }
.empty .ic { width: 48px; height: 48px; color: var(--accent-gold); }

.skeleton { pointer-events: none; }
.skeleton .sk { background: linear-gradient(90deg, rgba(127, 127, 127, 0.08) 25%, rgba(127, 127, 127, 0.18) 50%, rgba(127, 127, 127, 0.08) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
.skeleton .sk-media { aspect-ratio: 16 / 10; border-radius: 0; }
.skeleton .sk-line { height: 14px; }
.skeleton .sk-line--lg { height: 22px; width: 85%; }
.skeleton .sk-line--sm { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.article-hero { padding-block: calc(var(--header-h) + 56px) 0; }
.article-hero__inner { display: grid; gap: 20px; max-width: 900px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 3.25rem); font-weight: 900; line-height: 1.4; }
.article-cover { margin-block: 40px 0; border-radius: var(--r-card); aspect-ratio: 21 / 9; border: 1px solid var(--border-glass); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.prose { font-size: 1.075rem; line-height: 2.05; max-width: 760px; }
.prose > * + * { margin-block-start: 1.3em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-block-start: 2em; scroll-margin-top: calc(var(--header-h) + 24px); position: relative; padding-inline-start: 20px; }
.prose h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0.35em; width: 4px; border-radius: 4px; background: var(--gold-grad); }
.prose h3 { font-size: 1.2rem; margin-block-start: 1.6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--text-primary) 86%, transparent); }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--accent-gold); }
.prose strong { color: var(--text-primary); font-weight: 800; }
.prose blockquote {
  padding: 24px 28px; border-radius: var(--r-card); border: 1px solid var(--border-subtle);
  background: rgba(212, 175, 55, 0.06); font-size: 1.15rem; font-weight: 600; border-inline-start: 4px solid var(--accent-gold);
}
.prose .callout { padding: 20px 24px; border-radius: 12px; background: var(--accent-soft); border-inline-start: 4px solid var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border-glass); padding: 10px 14px; text-align: start; }
.prose th { background: var(--bg-elevated); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.toc__box { padding: 24px; }
.toc__title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-block-end: 12px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc ol a {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6;
  border-inline-start: 2px solid transparent; transition: all var(--t-fast);
}
.toc ol a:hover { color: var(--text-primary); background: rgba(127, 127, 127, 0.08); }
.toc ol a.is-active { color: var(--gold-text); border-inline-start-color: var(--accent-gold); background: rgba(212, 175, 55, 0.08); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share .icon-btn .ic { width: 18px; height: 18px; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; margin-block-start: 48px; }
.author-box .avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--accent-gold); }

/* 19. BMI / DIET TOOLS ---------------------------------------------------- */
.tool { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.tool__panel { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-card); position: relative; overflow: hidden; }
.tool__panel--sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.tool__panel::before {
  content: ""; position: absolute; inset-block-start: -120px; inset-inline-end: -120px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 70%); pointer-events: none;
}
.results { display: grid; gap: var(--gutter); }
.results.is-empty .results__body { display: none; }
.results__placeholder { display: grid; place-items: center; gap: 16px; text-align: center; min-height: 520px; padding: 40px; }
.results:not(.is-empty) .results__placeholder { display: none; }
.results__placeholder svg.big { width: 140px; height: 140px; color: var(--accent-gold); opacity: 0.9; }
.results__body { display: grid; gap: var(--gutter); }
.gauge-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); }
.gauge { position: relative; max-width: 380px; width: 100%; margin-inline: auto; }
.gauge__canvas { position: relative; aspect-ratio: 2 / 1.1; }
.gauge canvas { width: 100% !important; height: 100% !important; }
.gauge__value { margin-block-start: 6px; text-align: center; }
.gauge__value b { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; line-height: 1; color: var(--text-primary); }
.gauge__value span { font-size: 0.85rem; color: var(--text-muted); }
.bmi-class { display: grid; gap: 12px; }
.bmi-class__label { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.bmi-scale { display: flex; height: 8px; border-radius: 8px; overflow: hidden; direction: ltr; }
.bmi-scale span { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.stat { padding: 22px; display: grid; gap: 6px; }
.stat__icon { color: var(--accent-gold); }
.stat b { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; line-height: 1.2; }
.stat small { color: var(--text-muted); }
.macros { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 3vw, 36px); }
.macros__chart { position: relative; aspect-ratio: 1; width: 100%; max-width: 240px; margin-inline: auto; }
.macros__chart canvas { width: 100% !important; height: 100% !important; }
.macros__list { display: grid; gap: 14px; }
.macro { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.macro__dot { width: 12px; height: 12px; border-radius: 4px; }
.macro__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(127, 127, 127, 0.15); overflow: hidden; }
.macro__bar span { display: block; height: 100%; border-radius: 6px; transform-origin: right; transition: transform 1.2s var(--ease-out); }
.workout-plan { padding: clamp(24px, 3vw, 36px); display: grid; gap: 20px; }
.plan-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.plan-day { padding: 18px; border-radius: 12px; border: 1px solid var(--border-glass); background: rgba(127, 127, 127, 0.04); display: grid; gap: 8px; align-content: start; }
.plan-day h4 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.plan-day ul { display: grid; gap: 4px; font-size: 0.88rem; color: var(--text-muted); padding-inline-start: 1.1em; list-style: disc; }
.plan-day ul li::marker { color: var(--accent-gold); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.disclaimer { display: flex; gap: 12px; padding: 16px 20px; border-radius: 12px; background: rgba(212, 175, 55, 0.06); border: 1px solid var(--border-subtle); font-size: 0.88rem; color: var(--text-muted); }
.disclaimer .ic { color: var(--accent-gold); margin-block-start: 4px; }

.meal-day__head { display: flex; align-items: center; gap: 14px; flex: 1; }
.meal-day__kcal { margin-inline-start: auto; font-size: 0.85rem; color: var(--gold-text); font-weight: 700; white-space: nowrap; }
.meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.meal { padding: 16px; border-radius: 12px; border: 1px solid var(--border-glass); background: rgba(127, 127, 127, 0.04); display: grid; gap: 6px; align-content: start; }
.meal__slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--gold-text); font-weight: 700; }
.meal__slot .ic { width: 16px; height: 16px; }
.meal__name { font-weight: 600; font-size: 0.93rem; line-height: 1.7; }
.meal__kcal { font-size: 0.78rem; color: var(--text-muted); }

.exercise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.exercise { overflow: hidden; display: flex; flex-direction: column; }
.exercise__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.exercise__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; animation: kenburns 14s ease-in-out infinite alternate; }
.exercise__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75)); }
.motion { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.motion svg { width: 62%; height: 78%; overflow: visible; }
.motion .track { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 2; stroke-dasharray: 4 8; }
.motion .trail { fill: none; stroke: var(--accent-gold); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8)); }
.motion .dot { fill: var(--accent-gold); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.9)); }
.exercise__tag { position: absolute; z-index: 2; inset-block-start: 14px; inset-inline-start: 14px; }
.exercise__loop { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-end: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.1em; font-family: var(--font-display); direction: ltr; }
.exercise__body { display: grid; gap: 10px; padding: 20px 22px 22px; flex: 1; align-content: start; }
.exercise__title { display: grid; gap: 0; }
.exercise__title h3 { font-size: 1.15rem; }
.exercise__title span { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--text-muted); font-size: 0.95rem; direction: ltr; text-align: end; }
.exercise__specs { display: flex; flex-wrap: wrap; gap: 8px; }
.exercise__tip { display: flex; gap: 8px; font-size: 0.86rem; color: var(--text-muted); padding-block-start: 12px; border-block-start: 1px solid var(--border-glass); margin-block-start: auto; }
.exercise__tip .ic { color: var(--accent-gold); width: 16px; height: 16px; margin-block-start: 5px; }
.difficulty { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }

.routine-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.routine-table th, .routine-table td { padding: 14px 16px; border-block-end: 1px solid var(--border-glass); text-align: start; vertical-align: top; font-size: 0.93rem; }
.routine-table thead th { background: var(--bg-elevated); color: var(--gold-text); font-size: 0.85rem; }
.routine-table td:first-child { font-weight: 800; white-space: nowrap; }
.routine-table .rest { color: var(--text-muted); font-style: italic; }
.routine-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-block-end: 24px; }

.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.info-card { padding: 32px; display: grid; gap: 16px; align-content: start; }
.info-card__head { display: flex; align-items: center; gap: 14px; }
.food-list { display: grid; gap: 10px; }
.food-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; background: rgba(127, 127, 127, 0.05); font-size: 0.93rem; }
.food-list li span:last-child { color: var(--text-muted); font-size: 0.85rem; }

.water { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.water__glass { position: relative; width: 170px; height: 240px; margin-inline: auto; border: 3px solid rgba(212, 175, 55, 0.5); border-block-start: 0; border-radius: 0 0 36px 36px; overflow: hidden; }
.water__fill { position: absolute; inset-inline: 0; bottom: 0; height: 0%; background: linear-gradient(180deg, rgba(56, 189, 248, 0.6), rgba(14, 116, 144, 0.9)); transition: height 1.4s var(--ease-out); }
.water__fill::before { content: ""; position: absolute; inset-inline: -50%; top: -14px; height: 28px; border-radius: 45%; background: rgba(125, 211, 252, 0.55); animation: wave 4s linear infinite; }
@keyframes wave { to { transform: translateX(25%) rotate(360deg); } }
.water__result { text-align: center; margin-block-start: 20px; }
.water__result b { font-size: 2.6rem; font-weight: 900; color: var(--gold-text); }

/* 20. ACCORDION / TABS ---------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.acc { border-radius: 14px; border: 1px solid var(--border-glass); background: var(--card-bg); overflow: hidden; transition: border-color var(--t-fast); }
.acc.is-open { border-color: var(--border-subtle); }
.acc__btn {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 24px; text-align: start; font-weight: 700; font-size: 1.02rem;
}
.acc__btn:hover { color: var(--gold-text); }
.acc__icon { margin-inline-start: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-glass); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med); flex-shrink: 0; }
.acc.is-open .acc__icon { transform: rotate(180deg); background: var(--accent-gold); color: #0a0a0a; border-color: transparent; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__content { padding: 0 24px 24px; color: var(--text-muted); }
.acc__content > * + * { margin-block-start: 12px; }
.acc__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(212, 175, 55, 0.1); color: var(--gold-text); font-weight: 800; flex-shrink: 0; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 32px; }
.tabs--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block-end: 4px; }
.tabs--scroll::-webkit-scrollbar { display: none; }
.tabs .chip { flex-shrink: 0; min-height: 44px; padding: 8px 20px; font-size: 0.93rem; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: fadeUp 0.5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* 21. MODAL / LIGHTBOX ---------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--t-med); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  border-radius: 20px; background: var(--bg-secondary); border: 1px solid var(--border-subtle); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(24px) scale(0.98); transition: all var(--t-med) var(--ease-out);
}
.modal--sm .modal__dialog { width: min(620px, 100%); }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 3; background: rgba(10, 10, 10, 0.6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.wing-modal .media { aspect-ratio: 21 / 9; }

.tour { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: #fff; }
.tour__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.tour__slide.is-active { opacity: 1; }
.tour__slide img { width: 100%; height: 100%; object-fit: cover; }
.tour__slide.is-active img { animation: kenburns 9s ease-out forwards; }
.tour__cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 32px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85)); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tour__cap h3 { font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.tour__progress { position: absolute; inset-block-start: 16px; inset-inline: 16px; display: flex; gap: 6px; z-index: 2; direction: ltr; }
.tour__progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.tour__progress span i { display: block; height: 100%; width: 0; background: var(--accent-gold); }
.tour__progress span.is-done i { width: 100%; }
.tour__progress span.is-active i { animation: tourbar 5s linear forwards; }
@keyframes tourbar { to { width: 100%; } }

.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(5, 5, 5, 0.94); visibility: hidden; opacity: 0; transition: opacity var(--t-med), visibility var(--t-med); }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; max-width: min(1200px, 92vw); }
.lightbox__img { max-height: 80vh; max-height: 80dvh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.lightbox__img.is-swapping { opacity: 0; transform: scale(0.97); }
.lightbox__cap { color: #f5f5f5; display: flex; gap: 16px; align-items: center; }
.lightbox__count { font-family: var(--font-display); letter-spacing: 0.15em; color: var(--accent-gold); direction: ltr; }
.lightbox__btn { position: absolute; color: #fff; border-color: rgba(255, 255, 255, 0.2); width: 56px; height: 56px; }
.lightbox__btn--close { inset-block-start: 20px; inset-inline-end: 20px; }
.lightbox__btn--prev { inset-inline-start: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { inset-inline-end: 20px; top: 50%; transform: translateY(-50%); }

/* 22. FORMS / TOASTS ------------------------------------------------------ */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; position: relative; }
.field label, .field__label { font-size: 0.9rem; font-weight: 600; }
.field__hint { font-size: 0.78rem; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 10px;
  background: var(--input-bg); border: 1px solid var(--border-glass); color: var(--text-primary);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 0.75; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(212, 175, 55, 0.35); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15); }
.select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center;
}
.select option { background: var(--bg-secondary); color: var(--text-primary); }
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input--ltr { direction: ltr; text-align: right; }
.input-unit { position: relative; }
.input-unit .input { padding-inline-end: 56px; }
.input-unit span { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font-size: 0.82rem; color: var(--text-muted); pointer-events: none; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12); }
.field__error { display: none; align-items: center; gap: 6px; font-size: 0.8rem; color: #f87171; }
html[data-theme="light"] .field__error { color: #b91c1c; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: currentColor; color: var(--bg-primary); font-size: 0.7rem; font-weight: 900; }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border-glass); background: var(--input-bg); cursor: pointer; font-weight: 700; transition: all var(--t-fast);
}
.choice label:hover { border-color: var(--border-subtle); }
.choice input:checked + label { border-color: var(--accent-gold); background: rgba(212, 175, 55, 0.12); color: var(--gold-text); box-shadow: var(--sh-glow); }
.choice input:focus-visible + label { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.check input { accent-color: var(--accent-gold); width: 18px; height: 18px; margin-block-start: 5px; }

.newsletter { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px); border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--border-subtle); background: radial-gradient(ellipse at 10% 0%, rgba(212, 175, 55, 0.16), transparent 60%), var(--bg-elevated); }
.newsletter__form { display: flex; gap: 12px; align-items: flex-start; }
.newsletter__form .field { flex: 1; }
.newsletter__success { display: flex; align-items: center; gap: 12px; }
.lottie-box { width: 56px; height: 56px; flex-shrink: 0; }

.toasts { position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(50%); z-index: 500; display: grid; gap: 10px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 14px; pointer-events: auto;
  background: rgba(22, 20, 14, 0.92); color: #f5f5f5; border: 1px solid rgba(212, 175, 55, 0.4); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), var(--sh-glow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: toastIn 0.5s var(--ease-out);
}
.toast.is-leaving { animation: toastOut 0.35s var(--ease-in-out) forwards; }
.toast__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-gold); color: #0a0a0a; flex-shrink: 0; }
.toast__icon .ic { width: 16px; height: 16px; }
.toast--error { border-color: rgba(239, 68, 68, 0.5); }
.toast--error .toast__icon { background: #ef4444; color: #fff; }
.toast b { display: block; font-size: 0.95rem; }
.toast p { font-size: 0.85rem; color: rgba(245, 245, 245, 0.75); line-height: 1.6; }
.toast__close { margin-inline-start: auto; opacity: 0.6; }
.toast__close:hover { opacity: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(0.96); } }

/* 23. FOOTER / FLOATING UI ------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; color: #f5f5f5; border: 1px solid var(--border-subtle); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(10, 10, 10, 0.96) 35%, rgba(10, 10, 10, 0.55)); }
.cta-band__visual { justify-self: center; }
.mini-gauge { width: min(300px, 70vw); }

.site-footer { position: relative; background: var(--bg-secondary); border-block-start: 1px solid var(--border-subtle); padding-block: 80px 0; margin-block-start: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }
.footer__about p { color: var(--text-muted); margin-block: 20px; font-size: 0.93rem; }
.footer h3 { font-size: 1rem; margin-block-end: 20px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.footer h3::before { content: ""; width: 14px; height: 2px; background: var(--accent-gold); }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--text-muted); font-size: 0.93rem; transition: color var(--t-fast), padding var(--t-fast); }
.footer__links a:hover { color: var(--accent-gold); padding-inline-start: 6px; }
.hours { display: grid; gap: 10px; font-size: 0.9rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding-block-end: 10px; border-block-end: 1px dashed var(--border-glass); }
.hours li span:first-child { color: var(--text-muted); }
.hours li span:last-child { direction: ltr; unicode-bidi: isolate; font-weight: 600; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-glass); color: var(--text-muted); transition: all var(--t-fast); }
.socials a:hover { color: #0a0a0a; background: var(--accent-gold); border-color: transparent; transform: translateY(-3px); }
.socials .ic { width: 18px; height: 18px; }
.contact-list { display: grid; gap: 12px; font-size: 0.92rem; color: var(--text-muted); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { color: var(--accent-gold); width: 18px; height: 18px; margin-block-start: 5px; }
.contact-list a:hover { color: var(--accent-gold); }
.map-facade {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; margin-block-start: 16px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-glass); color: #f5f5f5; text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.18), transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px), #141414;
}
.map-facade span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; padding: 8px 16px; border-radius: var(--r-pill); background: rgba(10, 10, 10, 0.75); border: 1px solid var(--border-subtle); }
.map-facade .pin { position: absolute; top: 30%; color: var(--accent-gold); animation: bounce 2s infinite; }
.map-facade iframe, .map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.85); }
html[data-theme="light"] .map-facade iframe, html[data-theme="light"] .map-embed iframe { filter: grayscale(0.4); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-block-start: 64px; padding-block: 24px; border-block-start: 1px solid var(--border-glass); font-size: 0.85rem; color: var(--text-muted); }
.footer__bottom nav { display: flex; gap: 20px; }
.footer__bottom a:hover { color: var(--accent-gold); }
.footer__mega { font-family: var(--font-display); font-size: clamp(4rem, 17vw, 16rem); line-height: 0.8; text-align: center; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px var(--border-subtle); user-select: none; direction: ltr; margin-block-start: 48px; white-space: nowrap; overflow: hidden; }

.fab-stack { position: fixed; inset-inline-start: 24px; inset-block-end: 24px; z-index: 90; display: grid; gap: 12px; }
.fab {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #0a0a0a; background: var(--gold-grad);
  box-shadow: var(--sh-soft), var(--sh-glow); transition: transform var(--t-med) var(--ease-out), opacity var(--t-med), visibility var(--t-med);
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab .ic { width: 22px; height: 22px; }
.to-top { position: relative; opacity: 0; visibility: hidden; transform: translateY(16px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg.ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--accent-gold); stroke-width: 2; stroke-dasharray: 182; stroke-dashoffset: 182; }
.chat { position: fixed; inset-inline-end: 24px; inset-block-end: 24px; z-index: 90; display: grid; justify-items: end; gap: 12px; }
.chat__toggle { background: #25d366; color: #fff; }
.chat__toggle .i-close { display: none; }
.chat.is-open .chat__toggle .i-open { display: none; }
.chat.is-open .chat__toggle .i-close { display: block; }
.chat__toggle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.2s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
.chat__menu { display: grid; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--t-med) var(--ease-out); }
.chat.is-open .chat__menu { opacity: 1; visibility: visible; transform: none; }
.chat__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: var(--r-pill); color: #fff; font-weight: 700; font-size: 0.9rem; box-shadow: var(--sh-soft); }
.chat__menu a .ic { width: 22px; height: 22px; }
.chat__wa { background: #25d366; }
.chat__tg { background: #229ed9; }
.chat__toggle { position: relative; }

.book-bar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 95; display: none; gap: 10px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-block-start: 1px solid var(--border-subtle); transform: translateY(110%); transition: transform var(--t-med) var(--ease-out);
}
.book-bar.is-visible { transform: none; }
.book-bar__info { flex: 1; display: grid; line-height: 1.4; color: #f5f5f5; }
.book-bar__info small { color: #9ca3af; font-size: 0.75rem; }
.book-bar__info b { font-size: 0.92rem; }

/* contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gutter); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { padding: 24px; display: grid; gap: 10px; align-content: start; }
.contact-card .ic { color: var(--accent-gold); width: 26px; height: 26px; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: 0.93rem; }
.contact-card a:hover { color: var(--accent-gold); }
.map-embed { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--border-subtle); }
.map-embed .map-facade { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; border: 0; border-radius: 0; height: 100%; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.ig-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(212, 175, 55, 0.35); opacity: 0; transition: opacity var(--t-fast); }
.ig-grid a:hover::after { opacity: 1; }
.ig-grid .ic { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6); color: #fff; opacity: 0; transition: all var(--t-fast); width: 32px; height: 32px; }
.ig-grid a:hover .ic { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 16px 80px; }
.notfound__num { font-family: var(--font-display); font-size: clamp(8rem, 30vw, 20rem); line-height: 0.85; direction: ltr; }

/* 24. MOTION / REVEALS ---------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="scale"] { transform: scale(0.94); }
html.js [data-reveal="left"] { transform: translateX(-40px); }
html.js [data-reveal="right"] { transform: translateX(40px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
.view-reveal { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------------------- */
/* RESPONSIVE                                                                */
/* ------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --pad-inline: 80px; }
}
@media (max-width: 1279px) {
  .nav__menu { display: none; }
  .nav__burger { display: inline-grid; }
}
@media (max-width: 1100px) {
  .carousel__track { grid-auto-columns: calc((100% - 2 * var(--gutter)) / 3); }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { grid-template-columns: 1fr; }
  .tool__panel--sticky { position: relative; top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: relative; top: 0; order: -1; }
  .toc__box--side { display: none; }
}
@media (max-width: 1023px) {
  .grid--3, .grid--4, .features, .blog-grid, .exercise-grid, .coaches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .testimonials, .newsletter, .cta-band, .contact-layout, .water { grid-template-columns: 1fr; }
  .hero__stats { position: relative; inset: auto; margin-block-start: 40px; flex-wrap: wrap; }
  .hero { padding-block-end: 120px; }
  .hero__stats-wrap { order: 3; }
  .gauge-card, .macros { grid-template-columns: 1fr; }
  .macros__chart { margin-inline: auto; }
  .meals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach-modal { grid-template-columns: 1fr; }
  .coach-modal .media { aspect-ratio: 4 / 3; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .info-cards { grid-template-columns: 1fr; }
  .cta-band__visual { display: none; }
}
@media (max-width: 767px) {
  :root { --header-h: 68px; --gutter: 16px; }
  .gender-toggle, .nav__cta, .theme-toggle--desktop { display: none; }
  .brand__text small { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .grid--2, .grid--3, .grid--4, .features, .programs, .blog-grid, .exercise-grid, .coaches-grid, .shifts, .stats, .form__row, .contact-cards { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 82%; }
  .section__head--split { grid-template-columns: 1fr; }
  .hero__stats { gap: 10px; }
  .stat-card { min-width: 0; flex: 1 1 140px; padding: 14px 16px; }
  .stat-card b { font-size: 1.5rem; }
  .scroll-cue { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .trust__inner { flex-direction: column; gap: 20px; }
  .trust__label { max-width: none; text-align: center; }
  .split { flex-direction: column; height: auto; direction: rtl; }
  .split__panel { min-height: 420px; flex-grow: 1 !important; }
  .split__divider { display: none; }
  .shift-card { min-height: 0; }
  .meals { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .newsletter__form { flex-direction: column; align-items: stretch; }
  .book-bar { display: flex; }
  .fab-stack { inset-block-end: 88px; inset-inline-start: 16px; }
  .chat { inset-block-end: 88px; inset-inline-end: 16px; }
  .toasts { inset-block-end: 96px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 24px; transform: none; }
  .masonry { columns: 2 140px; column-gap: 12px; }
  .masonry__item { margin-block-end: 12px; }
  .article-cover { aspect-ratio: 16 / 10; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .map-embed { aspect-ratio: 4 / 3; }
  .price-card--featured { transform: none; }
  body { padding-block-end: 0; }
  .site-footer { padding-block-end: 72px; }
}
@media (max-width: 380px) {
  .brand__text b { font-size: 1.3rem; }
  .choice { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------------- */
/* REDUCED MOTION                                                            */
/* ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__media img, .exercise__media img { animation: none; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- PDF sheet (rendered off-screen, captured by html2canvas) ---------- */
.pdf-sheet { position: absolute; top: 0; left: -10000px; width: 794px; background: #fff; color: #18181b; font-family: "Vazirmatn", Tahoma, sans-serif; direction: rtl; font-size: 13px; line-height: 1.8; }
.pdf-sheet * { color: inherit; }
.pdf-block { padding: 14px 44px; }
.pdf-head { display: flex; justify-content: space-between; align-items: center; background: #0a0a0a; color: #f5f5f5; padding: 28px 44px; }
.pdf-head b { font-family: "Bebas Neue", sans-serif; font-size: 34px; letter-spacing: 0.06em; color: #d4af37; line-height: 1; direction: ltr; }
.pdf-head small { display: block; color: #9ca3af; font-size: 12px; }
.pdf-title { font-size: 18px; font-weight: 800; margin: 0 0 8px; padding-inline-start: 10px; border-inline-start: 4px solid #d4af37; line-height: 1.5; }
.pdf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdf-box { border: 1px solid #e4e4e7; border-radius: 10px; padding: 10px 12px; }
.pdf-box span { display: block; font-size: 11px; color: #71717a; }
.pdf-box b { font-size: 17px; font-weight: 800; }
.pdf-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pdf-table th, .pdf-table td { border-bottom: 1px solid #ececef; padding: 6px 8px; text-align: start; vertical-align: top; }
.pdf-table th { width: 110px; color: #a16207; font-weight: 700; }
.pdf-table td:last-child { width: 90px; color: #71717a; white-space: nowrap; }
.pdf-day { display: flex; justify-content: space-between; font-weight: 800; background: #faf7ec; border-radius: 8px; padding: 6px 10px; margin-bottom: 4px; }
.pdf-days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pdf-days ul, .pdf-tips { margin: 0; padding: 0; list-style: none; }
.pdf-days li::before, .pdf-tips li::before { content: "•"; color: #a16207; margin-inline-end: 8px; }
.pdf-foot { font-size: 11px; color: #71717a; border-top: 1px solid #e4e4e7; margin-top: 10px; padding-top: 12px; }

.ic.spin { animation: ia-spin 0.9s linear infinite; }
@keyframes ia-spin { to { transform: rotate(360deg); } }

/* split-word headline: re-apply gradient clip per word (transformed children break parent background-clip) */
.text-grad .word__inner { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-inline: 0.04em; }
/* .latin sets direction:ltr → keep logical insets resolving in RTL */
.program-card__num { direction: rtl; }
.program-card .badge { align-self: flex-start; }
.feature__num { direction: rtl; }
@media (max-width: 1023px) {
  .hero__stats { margin-inline: var(--pad-inline); }
}
@media (max-width: 767px) {
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-card { min-width: 0; padding: 12px 8px; text-align: center; }
  .stat-card b { font-size: 1.45rem; }
  .stat-card span { font-size: 0.72rem; }
}

/* Animated KarenSoft footer credit ---------------------------------------- */
.footer__bottom {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  text-align: center;
}
.footer__bottom > p { text-align: center; }
.footer__bottom nav { flex-wrap: wrap; justify-content: center; row-gap: 10px; }

.ks-credit {
  --ks-label-base: rgba(245, 241, 234, 0.7);
  --ks-label-static: rgba(245, 241, 234, 0.75);
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.ks-credit:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
  border-radius: 18px;
}
.ks-credit__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  direction: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.ks-label-gradient {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--ks-label-base) 0%, #7dd3fc 25%, #fff 50%, #7dd3fc 75%, var(--ks-label-base) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ks-flow 3s linear infinite;
  animation-delay: calc(var(--word-index, 0) * 0.15s);
}
.ks-credit--motion-ready:not(.is-visible) .ks-label-gradient { animation-play-state: paused; }
.ks-credit--motion-ready .ks-label-gradient {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.1s + var(--word-index, 0) * 0.12s);
}
.ks-credit--motion-ready.is-visible .ks-label-gradient {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.ks-credit--motion-ready .ks-card-border {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transition-delay: 0.1s;
}
.ks-credit--motion-ready.is-visible .ks-card-border { opacity: 1; transform: scale(1); }

.ks-card-border {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: hidden;
  padding: 1.5px;
  border-radius: 16px;
  transition: box-shadow 0.35s ease;
}
.ks-ring {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 260%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, #0b1f6b, #1d4ed8, #22d3ee, #0ea5e9, #1d4ed8, #0b1f6b);
  animation: ks-spin 5s linear infinite;
}
.ks-credit:hover .ks-ring { animation-duration: 1.6s; }
.ks-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  overflow: hidden;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  background: #fff;
  line-height: 1;
  isolation: isolate;
}
.ks-credit:hover .ks-card-border { box-shadow: 0 0 30px -4px rgba(34, 211, 238, 0.6); }
.ks-shine {
  position: absolute;
  z-index: 5;
  inset-block: -35%;
  left: 0;
  width: 24%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.14) 35%, rgba(255, 255, 255, 0.82) 52%, rgba(34, 211, 238, 0.18) 68%, transparent 100%);
  transform: translateX(-120%) skewX(-20deg);
  animation: ks-shine 5s ease-in-out 1.6s infinite;
}
.ks-credit:hover .ks-shine { animation: ks-shine-once 0.9s ease-out; }
.ks-logo-wrap {
  position: relative;
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
.ks-ripple {
  position: absolute;
  z-index: 0;
  inset: 4px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ks-ripple 2.4s ease-out infinite;
}
.ks-ripple:nth-child(2) { border-color: rgba(59, 130, 246, 0.6); animation-delay: 1.2s; }
.ks-logo-ring {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #22d3ee, #1d4ed8 30%, rgba(29, 78, 216, 0.08) 55%, #0ea5e9 80%, #22d3ee);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: ks-rotate 2.8s linear infinite;
}
.ks-orbit {
  position: absolute;
  z-index: 4;
  inset: 0;
  animation: ks-rotate 2.8s linear infinite reverse;
}
.ks-orbit-dot {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px 2px rgba(34, 211, 238, 0.85);
  transform: translateX(-50%);
}
.ks-credit:hover .ks-logo-ring,
.ks-credit:hover .ks-orbit { animation-duration: 1s; }
.ks-inner-bg {
  position: absolute;
  z-index: 2;
  inset: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f9ff, #fff);
}
.ks-mark {
  position: relative;
  z-index: 3;
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ks-credit--motion-ready .ks-mark {
  opacity: 0;
  transform: scale(0.3) rotate(-180deg);
  transition-delay: 0.2s;
}
.ks-credit--motion-ready.is-visible .ks-mark { opacity: 1; transform: scale(1) rotate(0deg); }
.ks-credit:hover .ks-mark { animation: ks-mark-hover 0.8s ease-in-out both; }
.ks-float {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  animation: ks-float 3.2s ease-in-out infinite;
}
.ks-pixel {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: -3px;
  width: 3px;
  height: 3px;
  background: #2563eb;
  opacity: 0;
  animation: ks-pixel 2.6s ease-in-out infinite;
}
.ks-pixel--1 { --pixel-x: -6px; top: 14px; left: -2px; width: 4px; height: 4px; animation-delay: 0s; }
.ks-pixel--2 { --pixel-x: 4px; top: 20px; left: -5px; width: 3px; height: 3px; animation-delay: 0.5s; }
.ks-pixel--3 { --pixel-x: -4px; top: 25px; left: -1px; width: 2.5px; height: 2.5px; animation-delay: 1s; }
.ks-pixel--4 { --pixel-x: 6px; top: 29px; left: -6px; width: 3.5px; height: 3.5px; animation-delay: 1.5s; }
.ks-divider {
  display: block;
  flex: 0 0 1px;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, #7dd3fc 50%, transparent);
}
.ks-wordmarks {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}
.ks-wordmark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.ks-wordmark img {
  display: block;
  max-width: none;
  height: auto;
}
.ks-wordmark--fa img { width: 96px; height: 24px; }
.ks-wordmark--en img { width: 94px; height: 11px; }
.ks-credit--motion-ready .ks-wordmark--fa {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.35s;
}
.ks-credit--motion-ready .ks-wordmark--en {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.55s;
}
.ks-credit--motion-ready.is-visible .ks-wordmark--fa,
.ks-credit--motion-ready.is-visible .ks-wordmark--en { clip-path: inset(0 0 0 0); }
.ks-text-mask {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.ks-wordmark--fa .ks-text-mask {
  -webkit-mask-image: url("../img/karensoft/wordmark-fa.png");
  mask-image: url("../img/karensoft/wordmark-fa.png");
}
.ks-wordmark--en .ks-text-mask {
  -webkit-mask-image: url("../img/karensoft/wordmark-en.png");
  mask-image: url("../img/karensoft/wordmark-en.png");
}
.ks-text-shine {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 211, 238, 0.9) 40%, rgba(255, 255, 255, 0.95) 50%, rgba(34, 211, 238, 0.9) 60%, transparent 100%);
  transform: translateX(-110%);
  animation: ks-text-sweep 3.6s ease-in-out infinite;
}
.ks-wordmark--fa .ks-text-shine { animation-delay: 1.4s; }
.ks-wordmark--en .ks-text-shine { animation-delay: 1.9s; }

@keyframes ks-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ks-rotate { to { transform: rotate(360deg); } }
@keyframes ks-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ks-shine { 0% { transform: translateX(-120%) skewX(-20deg); } 25%, 100% { transform: translateX(420%) skewX(-20deg); } }
@keyframes ks-shine-once { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(420%) skewX(-20deg); } }
@keyframes ks-ripple { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes ks-text-sweep { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(220%); } }
@keyframes ks-flow { to { background-position: -200% center; } }
@keyframes ks-pixel {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  28%, 48% { transform: translate(var(--pixel-x, -5px), 2px); opacity: 0.9; }
}
@keyframes ks-mark-hover { from { transform: rotate(0deg) scale(1); } to { transform: rotate(360deg) scale(1.08); } }

html[data-theme="light"] .ks-credit {
  --ks-label-base: rgba(36, 47, 62, 0.72);
  --ks-label-static: rgba(36, 47, 62, 0.78);
}
html[data-theme="light"] .ks-label-gradient {
  background-image: linear-gradient(90deg, var(--ks-label-base) 0%, #0ea5e9 25%, #1d4ed8 50%, #0ea5e9 75%, var(--ks-label-base) 100%);
}

@media (min-width: 640px) {
  .ks-credit { flex-direction: row; gap: 12px; }
}
@media (min-width: 1024px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: start; }
  .footer__bottom > p { text-align: start; }
  .footer__bottom nav { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .ks-ring, .ks-float, .ks-shine, .ks-credit:hover .ks-shine, .ks-logo-ring, .ks-orbit,
  .ks-ripple, .ks-text-shine, .ks-label-gradient, .ks-credit:hover .ks-mark {
    animation: none !important;
  }
  .ks-label-gradient {
    color: var(--ks-label-static, rgba(245, 241, 234, 0.75));
    -webkit-text-fill-color: currentColor;
    background: none;
  }
  .ks-pixel, .ks-ripple, .ks-orbit, .ks-text-mask { display: none !important; }
  .ks-credit--motion-ready .ks-label-gradient,
  .ks-credit--motion-ready .ks-card-border,
  .ks-credit--motion-ready .ks-mark {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
  .ks-credit--motion-ready .ks-wordmark--fa,
  .ks-credit--motion-ready .ks-wordmark--en {
    clip-path: inset(0) !important;
    transition: none !important;
  }
}
