:root {
  /* Atarim V5 design tokens adapted for Rayan */
  --ink: #16042E;
  --ink2: #23104A;
  --aura: #522B9E;
  --violet: #6D5DF3;
  --violet-light: #9385FF;
  --mint: #3ED696;
  --lav: #C8BCE8;
  --lav-dim: #998CC2;
  --panel-light: #F4F0FB;
  --light-text: #2a1747;

  --bg: var(--ink);
  --bg-2: var(--ink2);
  --card: var(--ink2);
  --border: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: var(--lav);
  --red: var(--violet);       /* primary actions (legacy token name) */
  --red-2: var(--violet-light);
  --gold: var(--mint);        /* CTA / accent (legacy token name) */
  --radius: 20px;
  --shadow: 0 30px 64px -24px rgba(22, 4, 46, 0.45);
  --font: "Roboto", system-ui, sans-serif;
  --display: "Fira Sans Condensed", "Roboto", system-ui, sans-serif;
  --lang-bar-h: 48px;
  --nav-bar-h: 64px;
  --header-height: calc(var(--lang-bar-h) + var(--nav-bar-h));
}

@media (max-width: 767px) {
  :root {
    --lang-bar-h: 48px;
    --nav-bar-h: 56px;
    --header-height: 104px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- FX layers ---------- */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 50; /* keep below interactive header (1100) */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.arena-lights {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.spot {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: spotPulse 8s ease-in-out infinite;
}

.spot-1 {
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(109, 93, 243, 0.7), transparent 70%);
}

.spot-2 {
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(62, 214, 150, 0.45), transparent 70%);
  animation-delay: -3s;
}

.spot-3 {
  top: 40%;
  left: 40%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(109, 93, 243, 0.25), transparent 70%);
  animation-delay: -5s;
}

@keyframes spotPulse {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.32;
    transform: scale(1.08);
  }
}

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

button {
  font: inherit;
  cursor: pointer;
}

/* ---------- NAV (main bar; dual header in site-header) ---------- */
.nav {
  padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left));
  padding-inline: max(1.25rem, 4vw);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.nav.scrolled {
  background: rgba(22, 4, 46, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color 0.2s, text-shadow 0.2s;
  flex-shrink: 0;
  z-index: 2;
}

.logo:hover {
  color: var(--red);
  text-shadow: 0 0 24px rgba(109, 93, 243, 0.5);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  z-index: 2;
}

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(109, 93, 243, 0.35);
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: rgba(109, 93, 243, 0.45);
  background: rgba(109, 93, 243, 0.12);
}

.lang-btn-chevron {
  opacity: 0.7;
  transition: transform 0.2s;
}

.lang-btn[aria-expanded="true"] .lang-btn-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 168px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 16, 24, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 220;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(109, 93, 243, 0.12);
  color: var(--text);
}

.lang-option-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  min-width: 1.6rem;
}

/* Mobile hamburger — tight 3-line icon, no excess gap */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.nav-backdrop[hidden] {
  display: none !important;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
  }

  /* Keep cart visible; hamburger opens menu */
  .nav-cart-label {
    display: none;
  }

  /* Professional mobile side drawer */
  .nav-menu {
    position: fixed;
    top: var(--header-height, 104px);
    inset-inline-end: 0;
    width: min(320px, calc(100vw - 2.5rem));
    height: calc(100dvh - var(--header-height, 104px));
    height: calc(100svh - var(--header-height, 104px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(109, 93, 243, 0.22), transparent 55%),
      linear-gradient(180deg, #1c0a34 0%, #120320 48%, #0b0218 100%);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -28px 0 64px rgba(0, 0, 0, 0.58);
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1095;
    overflow: hidden;
  }

  html.rtl .nav-menu,
  body.is-rtl .nav-menu {
    transform: translateX(-110%);
    box-shadow: 28px 0 64px rgba(0, 0, 0, 0.58);
  }

  .nav-menu.is-open {
    transform: translateX(0) !important;
  }

  .nav-menu a,
  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.15rem;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: #f7f3ff;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease,
      transform 0.15s ease,
      box-shadow 0.18s ease;
  }

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

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .nav-menu a:active {
    transform: scale(0.985);
    background: rgba(109, 93, 243, 0.16);
  }

  .nav-menu a[aria-current="page"] {
    border-color: rgba(62, 214, 150, 0.35);
    background: linear-gradient(135deg, rgba(62, 214, 150, 0.22), rgba(109, 93, 243, 0.28));
    color: #fff;
    box-shadow: 0 12px 28px -16px rgba(109, 93, 243, 0.7);
  }
}

/* Language never lives in the main nav / drawer */
.nav-lang-inline,
.nav-menu-langs {
  display: none !important;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 8rem 6vw 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(109, 93, 243, 0.28), transparent 55%),
    radial-gradient(ellipse 45% 40% at 88% 65%, rgba(62, 214, 150, 0.08), transparent 50%),
    linear-gradient(180deg, #16042E 0%, #23104A 55%, #16042E 100%);
  z-index: -2;
}

/* Fighting ring stage */
.ring-stage {
  position: absolute;
  right: -8%;
  bottom: -5%;
  width: min(720px, 70vw);
  height: min(720px, 70vw);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.ring-floor {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 85%;
  height: 28%;
  transform: translate(-50%, -50%) perspective(400px) rotateX(68deg);
  background: radial-gradient(ellipse at center, rgba(109, 93, 243, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
}

.ring-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 93, 243, 0.2), transparent 65%);
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.octagon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(109, 93, 243, 0.25));
  animation: octRotate 40s linear infinite;
  transform-origin: center;
}

@keyframes octRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.oct-ring {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawCage 2.5s ease forwards, octStroke 6s ease-in-out 2.5s infinite;
}

@keyframes drawCage {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes octStroke {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(62, 214, 150, 0.4));
  }
  50% {
    opacity: 0.75;
    filter: drop-shadow(0 0 14px rgba(109, 93, 243, 0.7));
  }
}

.post {
  fill: var(--gold);
  animation: postGlow 2.5s ease-in-out infinite;
}

.post:nth-child(odd) {
  animation-delay: 0.4s;
}

@keyframes postGlow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.ring-dust span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: dust 6s linear infinite;
}

.ring-dust span:nth-child(1) {
  left: 20%;
  top: 40%;
  animation-delay: 0s;
}
.ring-dust span:nth-child(2) {
  left: 55%;
  top: 30%;
  animation-delay: 1s;
}
.ring-dust span:nth-child(3) {
  left: 70%;
  top: 55%;
  animation-delay: 2s;
}
.ring-dust span:nth-child(4) {
  left: 35%;
  top: 65%;
  animation-delay: 3s;
}
.ring-dust span:nth-child(5) {
  left: 80%;
  top: 40%;
  animation-delay: 4s;
}
.ring-dust span:nth-child(6) {
  left: 45%;
  top: 25%;
  animation-delay: 5s;
}

@keyframes dust {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-80px) scale(0.4);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.hero h1,
.hero-title {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .line,
.hero-title .line {
  display: block;
}

.hero h1 .accent,
.hero-title .accent {
  color: var(--red);
  text-shadow: 0 0 40px rgba(109, 93, 243, 0.4);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 30px rgba(109, 93, 243, 0.3);
  }
  50% {
    text-shadow: 0 0 50px rgba(109, 93, 243, 0.65), 0 0 80px rgba(109, 93, 243, 0.25);
  }
}

.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--red);
  color: white;
}

.btn.primary:hover {
  background: var(--red-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(109, 93, 243, 0.35);
}

.btn.ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.pulse-btn {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(109, 93, 243, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(109, 93, 243, 0);
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-card {
  justify-self: end;
  width: min(100%, 380px);
  background: linear-gradient(160deg, rgba(28, 28, 38, 0.95), rgba(18, 18, 24, 0.98));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 0.85rem 0.85rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease-out, box-shadow 0.3s;
}

.hero-card:hover {
  box-shadow: 0 25px 70px rgba(109, 93, 243, 0.2);
}

.hero-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  aspect-ratio: 3 / 4;
  background: #0e0e12;
  box-shadow:
    0 0 0 1px rgba(109, 93, 243, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s ease;
}

.hero-card:hover .hero-photo {
  transform: scale(1.05);
}

.hero-photo-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(10, 10, 12, 0.8) 100%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(109, 93, 243, 0.28), transparent 70%);
}

.fight-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(109, 93, 243, 0.9);
  color: white;
  animation: tagPulse 2s ease-in-out infinite;
}

@keyframes tagPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(109, 93, 243, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(109, 93, 243, 0);
  }
}

.portrait-meta h2 {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
}

.portrait-meta p {
  color: var(--muted);
}

.portrait-meta .location {
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 500;
}

/* Hero load animations */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.22s;
}
.delay-3 {
  animation-delay: 0.34s;
}
.delay-4 {
  animation-delay: 0.46s;
}
.delay-5 {
  animation-delay: 0.58s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 5.5rem 6vw;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

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

.checklist {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 500;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 93, 243, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.info-card .icon {
  font-size: 1.5rem;
}

.info-card h3 {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.15rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* MMA */
.mma-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(109, 93, 243, 0.12), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.mma-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.mma-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  min-height: 200px;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mma-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.mma-card:hover::before {
  transform: scaleX(1);
}

.mma-card:hover {
  background: rgba(109, 93, 243, 0.08);
  border-color: rgba(109, 93, 243, 0.35);
  transform: translateY(-6px);
}

.mma-num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.mma-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.mma-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.banner {
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  background: linear-gradient(90deg, rgba(109, 93, 243, 0.2), rgba(62, 214, 150, 0.1));
  border: 1px solid rgba(109, 93, 243, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.banner p {
  font-size: 1.25rem;
  font-weight: 600;
}

.banner span {
  color: var(--gold);
  font-weight: 500;
}

/* ---------- SHOP / COMING SOON ---------- */
.shop-section {
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(62, 214, 150, 0.06), transparent 50%),
    var(--bg);
}

.shop-section .section-sub strong {
  color: var(--text);
}

.coming-soon {
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.coming-soon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.coming-soon-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(109, 93, 243, 0.15);
  border: 1px solid rgba(109, 93, 243, 0.4);
  color: var(--red-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coming-soon h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.coming-soon > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.coming-soon-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.5rem;
}

.coming-soon-list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.coming-soon-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.coming-soon-note {
  color: inherit;
  font-size: 0.95rem !important;
  margin-bottom: 1.25rem !important;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .coming-soon-list {
    grid-template-columns: 1fr;
  }

  .coming-soon {
    padding: 1.75rem 1.35rem;
  }
}

/* SCHOOL */
.school-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.school-wrap:hover {
  border-color: rgba(62, 214, 150, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.school-wrap h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.school-wrap p {
  color: var(--muted);
  margin-bottom: 0.85rem;
  max-width: 36rem;
}

.school-wrap strong {
  color: var(--text);
}

.school-badge {
  display: grid;
  place-items: center;
}

.badge-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px dashed rgba(62, 214, 150, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(109, 93, 243, 0.15), transparent 70%);
  gap: 0.35rem;
  animation: badgeSpin 20s linear infinite;
}

@keyframes badgeSpin {
  from {
    border-color: rgba(62, 214, 150, 0.4);
  }
  50% {
    border-color: rgba(109, 93, 243, 0.5);
  }
  to {
    border-color: rgba(62, 214, 150, 0.4);
  }
}

.badge-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}

.badge-inner strong {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.badge-city {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CONTACT */
.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: transform 0.25s, border-color 0.25s;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 214, 150, 0.35);
}

.contact-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  max-width: 800px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  background: #23104A;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: rgba(109, 93, 243, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 93, 243, 0.12);
}

.contact-form .btn {
  justify-self: start;
  border: none;
}

.form-note {
  color: #4ade80;
  font-weight: 500;
}

.form-note--error {
  color: #f87171;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  position: relative;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 6vw 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.15rem;
}

/* ---------- SCHOOL PAGE · HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  z-index: 1;
  min-height: min(100vh, 920px);
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #050508;
}

.hero-slider-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.1s;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 0;
}

.hero-slide-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.1s linear;
}

.hero-slide.is-active .hero-slide-bg {
  animation: kenBurns 7.5s ease-out forwards;
}

.hero-slide.is-active.ken-alt .hero-slide-bg {
  animation-name: kenBurnsAlt;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.08) translate(0, 0);
  }
  100% {
    transform: scale(1.18) translate(-1.5%, -1%);
  }
}

@keyframes kenBurnsAlt {
  0% {
    transform: scale(1.12) translate(1%, 0);
  }
  100% {
    transform: scale(1.2) translate(-1%, 1.5%);
  }
}

.hero-slide-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-slider-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.72) 38%, rgba(5, 5, 8, 0.35) 62%, rgba(5, 5, 8, 0.55) 100%),
    linear-gradient(to top, rgba(5, 5, 8, 0.95) 0%, rgba(5, 5, 8, 0.35) 38%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 70% 40%, rgba(109, 93, 243, 0.18), transparent 70%);
}

.hero-slider-glow {
  position: absolute;
  right: -10%;
  top: 15%;
  width: 50vw;
  height: 50vw;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 214, 150, 0.12), transparent 65%);
  filter: blur(20px);
  animation: sliderGlow 8s ease-in-out infinite;
}

@keyframes sliderGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-slider-content {
  position: relative;
  z-index: 5;
  height: 100%;
  min-height: inherit;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 2rem;
  padding: 7.5rem 6vw 9.5rem;
  pointer-events: none;
}

.hero-slider-content > * {
  pointer-events: auto;
}

.hero-slider-copy {
  max-width: 36rem;
  animation: heroCopyIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-slider-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(109, 93, 243, 0.55);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(109, 93, 243, 0.55);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(109, 93, 243, 0);
  }
}

.hero-slider h1 {
  font-family: var(--display);
  font-size: clamp(3.6rem, 11vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  margin-bottom: 1.15rem;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-slider h1 .line {
  display: block;
}

.hero-slider h1 .accent {
  color: var(--red);
  text-shadow:
    0 0 40px rgba(109, 93, 243, 0.45),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.page-hero-lead {
  color: rgba(244, 244, 245, 0.82);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-hero-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.88);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(12px);
}

.hero-slide-info {
  justify-self: end;
  align-self: end;
  width: min(100%, 320px);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(18, 18, 26, 0.72), rgba(8, 8, 12, 0.78));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform-origin: bottom right;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide-info.is-swap {
  opacity: 0;
  transform: translateY(10px);
}

.hero-slide-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.hero-slide-title {
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-slide-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  min-height: 2.6em;
}

.hero-slide-counter {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--display);
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.85rem;
}

.hero-slide-counter-sep {
  color: var(--muted);
  font-size: 1rem;
}

#heroSlideTotal {
  color: var(--muted);
  font-size: 1rem;
}

/* Progress */
.hero-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 8;
  background: rgba(255, 255, 255, 0.08);
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 16px rgba(109, 93, 243, 0.55);
  transform-origin: left center;
}

/* Controls */
.hero-slider-controls {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-ctrl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(14px);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-ctrl:hover {
  background: rgba(109, 93, 243, 0.28);
  border-color: rgba(109, 93, 243, 0.55);
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-ctrl:active {
  transform: scale(0.96);
}

.hero-play .icon-play[hidden],
.hero-play .icon-pause[hidden] {
  display: none;
}

/* Dots */
.hero-dots {
  position: absolute;
  left: 6vw;
  bottom: 7.25rem;
  z-index: 8;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.35s ease, background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.hero-dot.is-active {
  width: 36px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(var(--dot-progress, 0));
  transform-origin: left center;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Thumbnails */
.hero-thumbs {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 1.35rem;
  z-index: 8;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.hero-thumbs::-webkit-scrollbar {
  display: none;
}

.hero-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #111;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hero-thumb:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

.hero-thumb.is-active {
  opacity: 1;
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(109, 93, 243, 0.35), 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px) scale(1.04);
}

.hero-thumb.is-active img {
  transform: scale(1.08);
}

@media (max-width: 960px) {
  .hero-slider {
    min-height: 100svh;
    height: auto;
  }

  .hero-slider-content {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 6.5rem 5vw 9.5rem;
    gap: 1.25rem;
  }

  .hero-slide-info {
    justify-self: start;
    width: 100%;
    max-width: 100%;
  }

  .hero-slider-controls {
    right: 1rem;
    top: auto;
    bottom: 10.5rem;
    transform: none;
    flex-direction: row;
  }

  .hero-ctrl {
    width: 46px;
    height: 46px;
  }

  .hero-dots {
    bottom: 8rem;
    left: 5vw;
  }

  .hero-thumbs {
    left: 5vw;
    right: 5vw;
  }
}

@media (max-width: 700px) {
  .hero-slider h1 {
    font-size: 3.6rem;
  }

  .hero-thumb {
    width: 68px;
    height: 46px;
  }

  .hero-slide-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-slide-bg,
  .hero-slide.is-active.ken-alt .hero-slide-bg {
    animation: none;
    transform: scale(1.05);
  }

  .hero-slide {
    transition-duration: 0.01ms;
  }
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 214, 150, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.fact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.fact-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.fact-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.school-prose-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.school-prose-grid h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}

.school-prose-grid > div > p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.school-prose-grid strong {
  color: var(--text);
}

.school-checklist {
  margin-top: 1.25rem;
}

.school-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem 1.4rem;
  position: sticky;
  top: 5.5rem;
}

.school-side-card h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.contact-dl {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-dl dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-dl dd {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-dl a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(109, 93, 243, 0.45);
  text-underline-offset: 3px;
}

.contact-dl a:hover {
  color: var(--red-2);
}

.side-btn {
  width: 100%;
  border: none;
  text-align: center;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-stack {
  display: grid;
  gap: 0.85rem;
}

.stat-stack-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.stat-stack-item strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-stack-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-stack-note {
  color: var(--muted);
  font-size: 0.8rem !important;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.school-banner {
  align-items: center;
  gap: 2rem;
}

.school-banner .school-badge {
  flex-shrink: 0;
}

/* ---------- GALLERY ---------- */
.gallery-section {
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(109, 93, 243, 0.1), transparent 55%),
    var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #23104A;
  cursor: pointer;
  grid-column: span 1;
  grid-row: span 1;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 93, 243, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 0.85rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  opacity: 0.95;
}

.gallery-credit {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 48rem;
  line-height: 1.5;
}

.gallery-credit a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(109, 93, 243, 0.45);
  text-underline-offset: 3px;
}

.gallery-credit a:hover {
  color: var(--red-2);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  opacity: 1;
}

.lightbox-figure {
  max-width: min(960px, 92vw);
  max-height: 90vh;
  text-align: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.lightbox-figure figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  transition: background 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(109, 93, 243, 0.35);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-nav:hover {
  background: rgba(109, 93, 243, 0.25);
  border-color: rgba(109, 93, 243, 0.5);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .lightbox-nav {
    display: none;
  }
}

/* Testimonials */
.testimonials-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(62, 214, 150, 0.06), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--border);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(109, 93, 243, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

.testimonial-quote-mark {
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--red);
  opacity: 0.85;
}

.testimonial-card blockquote p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(145deg, rgba(109, 93, 243, 0.35), rgba(62, 214, 150, 0.2));
  border: 1px solid rgba(62, 214, 150, 0.35);
  color: var(--text);
  flex-shrink: 0;
}

.testimonial-card figcaption strong {
  display: block;
  font-size: 0.98rem;
}

.testimonial-card figcaption span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sources */
.sources-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.sources-list li {
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sources-list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(109, 93, 243, 0.45);
  text-underline-offset: 3px;
}

.sources-list a:hover {
  color: var(--red-2);
}

.sources-disclaimer {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 44rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.school-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem 2rem;
}

.school-cta h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.school-cta p {
  color: var(--muted);
}

.school-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .school-prose-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .school-side-card {
    position: static;
  }

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

  .school-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .fact-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
  }

  .hero-card {
    justify-self: start;
  }

  .ring-stage {
    opacity: 0.35;
    right: -20%;
    width: min(560px, 90vw);
    height: min(560px, 90vw);
  }

  .about-grid,
  .school-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {


  .mma-grid,
  .contact-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero-title {
    font-size: 4.2rem;
  }

  .ring-stage {
    opacity: 0.22;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .anim-fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ==========================================================================
   Professional polish · mobile · RTL · i18n
   ========================================================================== */

:root {
  --nav-h: 72px;
  --section-pad-x: clamp(1.15rem, 5vw, 6vw);
  --section-pad-y: clamp(3.25rem, 8vw, 5.5rem);
  --touch: 44px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

body.is-rtl,
html.rtl body {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

body.is-rtl .logo,
body.is-rtl .hero-title,
body.is-rtl .hero-slider h1,
body.is-rtl .section-head h2,
body.is-rtl .coming-soon h3,
body.is-rtl .fact-card strong,
body.is-rtl .stat strong,
body.is-rtl .mma-num,
body.is-rtl .product-price,
body.is-rtl .hero-slide-title,
body.is-rtl .hero-slide-counter,
body.is-rtl .badge-inner strong,
body.is-rtl .portrait-meta h2,
body.is-rtl .school-cta h2,
body.is-rtl .school-prose-grid h2 {
  font-family: var(--display), "Noto Sans Arabic", sans-serif;
  letter-spacing: 0.02em;
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.footer {
  padding: 1.75rem var(--section-pad-x) calc(2.25rem + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.hero {
  padding: calc(var(--nav-h) + 2rem) var(--section-pad-x) 3.5rem;
  min-height: 100svh;
}

.btn,
.nav-cta,
.lang-btn,
.nav-toggle,
.hero-ctrl,
.cart-btn,
.add-btn {
  min-height: var(--touch);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn {
  padding: 0.9rem 1.35rem;
}

input,
textarea,
select {
  font-size: 16px; /* prevents iOS zoom */
  min-height: var(--touch);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  max-width: 280px;
}

.field-row {
  gap: 0.85rem;
}

.error-section {
  padding-top: calc(var(--nav-h) + 3rem);
  min-height: 70svh;
}

/* Hero mobile refinements */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: calc(var(--nav-h) + 1.25rem);
    padding-bottom: 3rem;
  }

  .hero-card {
    justify-self: stretch;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .hero-title {
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
    justify-content: center;
  }

  .hero-stats {
    gap: 1rem 1.5rem;
  }

  .about-grid,
  .school-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .mma-grid,
  .contact-grid,
  .field-row,
  .fact-grid,
  .testimonial-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    padding-block: 0.65rem;
  }

  .coming-soon {
    padding: 1.5rem 1.2rem;
  }

  .coming-soon-list {
    grid-template-columns: 1fr;
  }

  .school-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
  }

  .school-cta-actions {
    width: 100%;
  }

  .school-cta-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .banner {
    padding: 1.25rem 1.15rem;
  }

  .banner p {
    font-size: 1.05rem;
  }

  .hero-slider-content {
    padding: 5.5rem 1.15rem 9rem;
  }

  .hero-slide-info {
    padding: 1.1rem 1.1rem;
  }

  .hero-slider-controls {
    bottom: 9.75rem;
    right: 0.75rem;
    left: auto;
  }

  html.rtl .hero-slider-controls,
  body.is-rtl .hero-slider-controls {
    right: auto;
    left: 0.75rem;
  }

  .hero-ctrl {
    width: 44px;
    height: 44px;
  }

  .hero-dots {
    left: 1.15rem;
    bottom: 7.5rem;
  }

  html.rtl .hero-dots,
  body.is-rtl .hero-dots {
    left: auto;
    right: 1.15rem;
  }

  .hero-thumbs {
    left: 1rem;
    right: 1rem;
    bottom: 0.85rem;
  }

  .section-head h2 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* RTL layout flips */
html.rtl .checklist li,
body.is-rtl .checklist li {
  padding-left: 0;
  padding-right: 1.6rem;
}

html.rtl .checklist li::before,
body.is-rtl .checklist li::before {
  left: auto;
  right: 0;
}

html.rtl .coming-soon-list li,
body.is-rtl .coming-soon-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

html.rtl .coming-soon-list li::before,
body.is-rtl .coming-soon-list li::before {
  left: auto;
  right: 0;
  content: "←";
}

html.rtl .hero-prev svg,
body.is-rtl .hero-prev svg {
  transform: scaleX(-1);
}

html.rtl .hero-next svg,
body.is-rtl .hero-next svg {
  transform: scaleX(-1);
}

html.rtl .lightbox-prev,
body.is-rtl .lightbox-prev {
  left: auto;
  right: 1rem;
}

html.rtl .lightbox-next,
body.is-rtl .lightbox-next {
  right: auto;
  left: 1rem;
}

/* Professional focus rings */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-cta:focus-visible,
.lang-btn:focus-visible {
  outline-offset: 3px;
}

/* Prevent horizontal overflow on small devices */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.hero-photo {
  height: 100%;
}

/* Slightly denser cards on mobile for professional feel */
@media (max-width: 560px) {
  .info-card,
  .fact-card,
  .contact-card,
  .mma-card,
  .testimonial-card {
    padding: 1.15rem 1.1rem;
  }

  .stat-stack-item strong {
    font-size: 1.7rem;
  }

  .page-hero-meta span {
    font-size: 0.75rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .lang-btn-code {
    font-size: 0.72rem;
  }

  .logo {
    font-size: 1.45rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Prefer reduced data: slightly less blur on low-power */
@media (max-width: 700px) {
  .nav {
    backdrop-filter: blur(12px);
  }

  .hero-slide-info {
    backdrop-filter: blur(12px);
  }
}

/* ==========================================================================
   Shahi-inspired: dual header, lang bar, compact switcher, home mobile hero
   ========================================================================== */

:root {
  --lang-bar-h: 48px;
  --nav-bar-h: 64px;
  --header-height: calc(var(--lang-bar-h) + var(--nav-bar-h));
}

@media (max-width: 767px) {
  :root {
    --lang-bar-h: 48px;
    --nav-bar-h: 56px;
    --header-height: 104px;
  }
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.scroll-mt-header {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(109, 93, 243, 0.12);
  border: 1px solid rgba(109, 93, 243, 0.28);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Dual header shell - above noise / page content (shahi-style chrome) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  isolation: isolate;
  box-shadow: 0 4px 20px rgba(22, 4, 46, 0.12);
}

/* Language banner - clean white bar */
.lang-banner {
  position: relative;
  height: var(--lang-bar-h, 48px);
  min-height: 48px;
  background: #ffffff;
  border-bottom: 1px solid rgba(26, 8, 48, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: visible;
}

.lang-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    transparent 70%
  );
  opacity: 0.5;
}

.lang-banner::after {
  content: none;
}

.lang-banner-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: max(0.85rem, 3vw);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-banner-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lang-banner-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ED696;
  box-shadow: 0 0 0 0 rgba(62, 214, 150, 0.55);
  animation: livePulse 1.8s ease-in-out infinite;
}

.lang-banner-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d2f55;
  text-shadow: none;
}

.lang-banner-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.lang-banner-label {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5c4d75;
}

@media (min-width: 900px) {
  .lang-banner-label {
    display: inline-flex;
  }
}

/*
 * Language bar only (Shahi pattern):
 *  - phones/tablets: compact dropdown
 *  - desktop (≥768px): flag pills
 */
.lang-pills {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  max-width: min(55vw, 18rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 0;
}

.lang-pills::-webkit-scrollbar {
  display: none;
}

.lang-compact {
  position: relative;
  z-index: 1200;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .lang-pills {
    display: flex;
  }

  .lang-compact {
    display: none !important;
  }
}

.lang-pill {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 999px;
  border: 2px solid rgba(26, 8, 48, 0.12);
  background: #f4f0fb;
  box-shadow: 0 2px 8px rgba(22, 4, 46, 0.08);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  touch-action: manipulation;
  text-decoration: none;
}

.lang-pill:hover {
  transform: scale(1.1);
  border-color: #6d5df3;
  background: rgba(109, 93, 243, 0.1);
}

.lang-pill.is-active {
  border-color: #3ed696;
  background: linear-gradient(145deg, rgba(62, 214, 150, 0.25), rgba(109, 93, 243, 0.15));
  box-shadow:
    0 0 0 3px rgba(62, 214, 150, 0.2),
    0 4px 12px rgba(22, 4, 46, 0.1);
}

@keyframes offers-glow-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.lang-pill-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-pill-tip {
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(62, 214, 150, 0.35);
  background: #23104A;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1300;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.lang-pill:hover .lang-pill-tip,
.lang-pill:focus-visible .lang-pill-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Compact mobile language switcher (shahi pattern) */
.lang-compact-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  border-radius: 9999px;
  border: 2px solid rgba(26, 8, 48, 0.12);
  background: #f4f0fb;
  padding: 0.28rem 0.55rem 0.28rem 0.3rem;
  color: #1a0b2e;
  box-shadow: 0 2px 8px rgba(22, 4, 46, 0.06);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
  touch-action: manipulation;
  cursor: pointer;
}

.lang-compact-trigger:hover,
.lang-compact-trigger.is-open {
  border-color: rgba(109, 93, 243, 0.45);
  background: rgba(109, 93, 243, 0.08);
}

.lang-compact-trigger:active {
  transform: scale(0.98);
}

.lang-compact-icon {
  display: grid;
  place-items: center;
  height: 1.7rem;
  width: 1.7rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(62, 214, 150, 0.5);
  background: linear-gradient(145deg, #3ED696 0%, #6D5DF3 100%);
  color: #16042E;
}

.lang-compact-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-compact-code {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a0b2e;
}

.lang-compact-chevron {
  opacity: 0.95;
  transition: transform 0.2s;
  color: #3ED696;
}

.lang-compact-trigger.is-open .lang-compact-chevron {
  transform: rotate(180deg);
}

.lang-compact-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 1300;
  width: min(17rem, calc(100vw - 1.25rem));
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(62, 214, 150, 0.45);
  background: linear-gradient(160deg, #23104A 0%, #16042E 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 40px -12px rgba(0, 0, 0, 0.85);
  animation: langMenuIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.lang-compact-menu-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(62, 214, 150, 0.2);
  padding: 0.7rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3ED696;
}

.lang-compact-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: min(60vh, 20rem);
  overflow-y: auto;
  padding: 0.4rem;
}

.lang-compact-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.65rem 0.7rem;
  color: var(--muted);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
  touch-action: manipulation;
  text-decoration: none;
  min-height: 48px;
}

.lang-compact-option:hover {
  border-color: rgba(62, 214, 150, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.lang-compact-option.is-active {
  border-color: rgba(62, 214, 150, 0.5);
  background: linear-gradient(135deg, rgba(109, 93, 243, 0.35) 0%, rgba(62, 214, 150, 0.14) 100%);
  color: var(--text);
}

.lang-compact-option-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-compact-option-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #F4F0FB;
  line-height: 1.2;
}

.lang-compact-option-native {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.lang-compact-option-code {
  margin-inline-start: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #3ED696;
}

.lang-compact-check {
  margin-inline-start: auto;
  color: #3ED696;
  font-weight: 800;
  font-size: 1rem;
}

/* Main nav under language bar */
.site-header .nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: var(--nav-bar-h, 64px);
  min-height: 56px;
  display: flex;
  align-items: center;
  background: rgba(22, 4, 46, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-header .nav.scrolled,
.site-header.is-scrolled .nav {
  background: rgba(22, 4, 46, 0.98);
  border-bottom-color: rgba(62, 214, 150, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.site-header .nav-inner {
  width: 100%;
}

/* Main content offset for dual header */
main#main {
  padding-top: var(--header-height);
}

/* Homepage cinematic hero (shahi full-viewport mobile) */
.site-hero.hero {
  min-height: calc(100svh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.hero-mobile-bg {
  display: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: start center;
  padding-top: 8px;
  z-index: 5;
}

.hero-scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

@media (max-width: 767px) {
  .site-hero.hero {
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: 1fr;
    align-content: end;
    padding: 1rem var(--section-pad-x) 4rem;
  }

  .hero-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  .hero-mobile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.04);
  }

  .hero-mobile-bg-scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.35) 0%, rgba(7, 7, 10, 0.55) 40%, rgba(22, 4, 46, 0.92) 100%),
      radial-gradient(ellipse 80% 50% at 50% 20%, rgba(109, 93, 243, 0.2), transparent 60%);
  }

  /* Hide heavy ring animation on phones for performance */
  .site-hero .ring-stage {
    display: none;
  }

  /* Card becomes compact strip under copy on small screens */
  .site-hero .hero-card {
    display: none;
  }

  .site-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  .site-hero .hero-title {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .site-hero .hero-actions {
    flex-direction: column;
  }

  .site-hero .hero-actions .btn {
    width: 100%;
  }

  .site-hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .site-hero .stat strong {
    font-size: 1.25rem;
  }

  .site-hero .stat span {
    font-size: 0.72rem;
  }
}

@media (min-width: 768px) {
  .site-hero.hero {
    min-height: min(100dvh - var(--header-height), 880px);
  }
}

/* Mobile drawer under dual header */
@media (max-width: 900px) {
  .nav-menu {
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
    height: calc(100vh - var(--header-height));
    padding-top: 1.25rem;
  }
}

/* Safe areas */
.safe-top {
  padding-top: env(safe-area-inset-top);
}

.touch-target {
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}

/* RTL lang menu */
html.rtl .lang-compact-menu,
body.is-rtl .lang-compact-menu {
  right: auto;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lang-pill.is-active,
  .lang-banner-live,
  .hero-scroll-hint span {
    animation: none;
  }
}

/* ==========================================================================
   Atarim V5 theme polish (atarim.io design system)
   ========================================================================== */

body {
  background: var(--ink);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--violet);
  color: #fff;
}

/* Soft purple stage glow instead of arena red spots */
.spot-1 {
  background: radial-gradient(circle, rgba(109, 93, 243, 0.55), transparent 70%) !important;
}
.spot-2 {
  background: radial-gradient(circle, rgba(62, 214, 150, 0.28), transparent 70%) !important;
}
.spot-3 {
  background: radial-gradient(circle, rgba(82, 43, 158, 0.4), transparent 70%) !important;
}

/* Nav - clean translucent Atarim chrome */
.site-header {
  box-shadow: var(--shadow-nav, 0 18px 44px -16px rgba(10, 2, 24, 0.55));
}

.site-header .nav {
  background: rgba(22, 4, 46, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-header.is-scrolled .nav,
.site-header .nav.scrolled {
  background: rgba(22, 4, 46, 0.96) !important;
  border-bottom-color: rgba(109, 93, 243, 0.35) !important;
}

.logo {
  font-family: var(--display);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.logo:hover {
  color: var(--violet-light);
  text-shadow: 0 0 24px rgba(109, 93, 243, 0.55);
}

.nav-menu a {
  color: var(--lav-dim);
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: #fff;
}

.nav-menu a::after {
  background: var(--mint);
}

/* Primary CTA - Signal Mint (Atarim) */
.btn.primary,
.nav-cta,
.pulse-btn {
  background: var(--mint) !important;
  color: #0a1620 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 28px -10px rgba(62, 214, 150, 0.55);
}

.btn.primary:hover,
.nav-cta:hover {
  background: #54e5a8 !important;
  color: #061018 !important;
  box-shadow: 0 14px 32px -10px rgba(62, 214, 150, 0.65);
}

/* Ghost buttons default for dark surfaces; light sections override below */
.btn.ghost {
  border-color: rgba(200, 188, 232, 0.28) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.btn.ghost:hover {
  border-color: rgba(109, 93, 243, 0.55) !important;
  background: rgba(109, 93, 243, 0.12) !important;
}

/* Readable ghost CTAs on any light surface parent */
.section--light .btn.ghost,
.section--panel .btn.ghost,
.section--light a.btn.ghost,
.section--panel a.btn.ghost {
  border-color: rgba(26, 8, 48, 0.22) !important;
  color: #1a0b2e !important;
  background: rgba(26, 8, 48, 0.04) !important;
}

.section--light .btn.ghost:hover,
.section--panel .btn.ghost:hover,
.section--light a.btn.ghost:hover,
.section--panel a.btn.ghost:hover {
  border-color: rgba(109, 93, 243, 0.5) !important;
  background: rgba(109, 93, 243, 0.1) !important;
  color: #1a0b2e !important;
}

/* Eyebrows / badges */
.eyebrow,
.section-badge,
.coming-soon-badge {
  color: var(--violet-light) !important;
  letter-spacing: 0.12em;
}

/* White language bar text */
.lang-banner-tag,
.lang-banner-label {
  color: #3d2f55 !important;
  letter-spacing: 0.12em;
  text-shadow: none !important;
}

.section-badge,
.coming-soon-badge {
  background: rgba(109, 93, 243, 0.14) !important;
  border-color: rgba(109, 93, 243, 0.35) !important;
}

/* Cards - premium glass at 80% opacity */
.info-card,
.fact-card,
.mma-card,
.contact-card,
.product-card,
.coming-soon,
.school-wrap,
.school-side-card,
.contact-form,
.testimonial-card,
.stat-stack-item,
.hero-card,
.hero-slide-info,
.value-card,
.banner,
.school-cta {
  background: linear-gradient(
    165deg,
    rgba(45, 22, 90, 0.8),
    rgba(35, 16, 74, 0.8)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 56px -24px rgba(22, 4, 46, 0.5) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.info-card:hover,
.fact-card:hover,
.mma-card:hover,
.contact-card:hover,
.testimonial-card:hover,
.value-card:hover {
  border-color: rgba(109, 93, 243, 0.5) !important;
  transform: translateY(-4px);
  background: linear-gradient(
    165deg,
    rgba(55, 28, 110, 0.85),
    rgba(40, 18, 85, 0.82)
  ) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 36px 70px -24px rgba(109, 93, 243, 0.4) !important;
}

/* Headings */
.hero-title,
.section-head h2,
.school-prose-grid h2,
.coming-soon h3,
.hero-slider h1,
.page-hero h1 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-title .accent,
.hero-slider h1 .accent {
  color: var(--violet-light) !important;
  text-shadow: 0 0 40px rgba(109, 93, 243, 0.45) !important;
}

/* Hero stage */
.hero-bg {
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(109, 93, 243, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 40% at 88% 65%, rgba(62, 214, 150, 0.1), transparent 50%),
    linear-gradient(180deg, #16042E 0%, #23104A 55%, #16042E 100%) !important;
}

.hero-mobile-bg-scrim {
  background:
    linear-gradient(180deg, rgba(22, 4, 46, 0.4) 0%, rgba(22, 4, 46, 0.65) 40%, rgba(22, 4, 46, 0.95) 100%),
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(109, 93, 243, 0.25), transparent 60%) !important;
}

/* Forms */
input,
textarea {
  background: rgba(22, 4, 46, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 14px !important;
}

input:focus,
textarea:focus {
  border-color: rgba(109, 93, 243, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(109, 93, 243, 0.18) !important;
}

/* Lang pills on white bar */
.lang-banner .lang-pill {
  border-color: rgba(26, 8, 48, 0.12) !important;
  background: #f4f0fb !important;
  box-shadow: 0 2px 8px rgba(22, 4, 46, 0.06) !important;
}

.lang-banner .lang-pill:hover {
  border-color: rgba(109, 93, 243, 0.45) !important;
  background: rgba(109, 93, 243, 0.1) !important;
}

.lang-banner .lang-pill.is-active {
  border-color: #3ed696 !important;
  background: linear-gradient(145deg, rgba(62, 214, 150, 0.28), rgba(109, 93, 243, 0.16)) !important;
  box-shadow: 0 0 0 3px rgba(62, 214, 150, 0.18) !important;
}

.lang-compact-trigger {
  border-color: rgba(26, 8, 48, 0.14) !important;
  background: #f4f0fb !important;
  color: #1a0b2e !important;
  box-shadow: 0 2px 8px rgba(22, 4, 46, 0.06) !important;
}

.lang-compact-trigger:hover,
.lang-compact-trigger.is-open {
  border-color: rgba(109, 93, 243, 0.45) !important;
  background: rgba(109, 93, 243, 0.08) !important;
}

.lang-compact-icon {
  background: linear-gradient(145deg, #3ED696 0%, #6D5DF3 100%) !important;
  color: #16042E !important;
}

.lang-compact-code {
  color: #1a0b2e !important;
}

.lang-compact-chevron {
  color: #6d5df3 !important;
}

/* Google auth on white language bar */
.lang-banner .lang-auth-btn {
  border-color: rgba(26, 8, 48, 0.14) !important;
  background: #f4f0fb !important;
  color: #1a0b2e !important;
  box-shadow: 0 2px 8px rgba(22, 4, 46, 0.06);
}

.lang-banner .lang-auth-btn:hover {
  border-color: rgba(109, 93, 243, 0.4) !important;
  background: rgba(109, 93, 243, 0.1) !important;
  color: #1a0b2e !important;
}

.lang-banner .lang-auth-btn--out {
  border-color: rgba(26, 8, 48, 0.12) !important;
  background: rgba(26, 8, 48, 0.04) !important;
  color: #3d2f55 !important;
}

.lang-banner .lang-auth-name {
  color: #1a0b2e !important;
}

.lang-banner .lang-auth-avatar {
  border-color: rgba(109, 93, 243, 0.35) !important;
  background: #f4f0fb !important;
}

/* MMA section backgrounds */
.mma-section {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(109, 93, 243, 0.18), transparent 55%),
    var(--ink2) !important;
  border-block-color: rgba(255, 255, 255, 0.08) !important;
}

.banner {
  background: linear-gradient(90deg, rgba(109, 93, 243, 0.22), rgba(62, 214, 150, 0.1)) !important;
  border-color: rgba(109, 93, 243, 0.3) !important;
}

.banner span {
  color: var(--mint) !important;
}

.stat strong,
.product-price,
.cart-total-row strong,
.fact-card strong {
  color: var(--mint) !important;
}

.fight-tag {
  background: rgba(109, 93, 243, 0.92) !important;
}

.footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--lav-dim) !important;
}

.footer strong {
  color: #fff !important;
}

/* Soft scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: #3a2363;
  border-radius: 8px;
  border: 3px solid var(--ink);
}

/* Hero slider veil */
.hero-slider-veil {
  background:
    linear-gradient(105deg, rgba(22, 4, 46, 0.92) 0%, rgba(22, 4, 46, 0.72) 38%, rgba(22, 4, 46, 0.35) 62%, rgba(22, 4, 46, 0.55) 100%),
    linear-gradient(to top, rgba(22, 4, 46, 0.95) 0%, rgba(22, 4, 46, 0.35) 38%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 70% 40%, rgba(109, 93, 243, 0.22), transparent 70%) !important;
}

.hero-progress-bar {
  background: linear-gradient(90deg, var(--violet), var(--mint)) !important;
}

/* Checklist ticks */
.checklist li::before {
  color: var(--mint) !important;
}

/* ==========================================================================
   Light / white contrast sections
   Never use var(--muted)/var(--text)/var(--lav) here - they are light colors
   for dark backgrounds and become unreadable on white.
   ========================================================================== */

.section--light,
.section--panel {
  --surface-text: #1a0b2e;
  --surface-body: #3d2f55;
  --surface-muted: #5c4d75;
  color: #1a0b2e !important;
  border-block: 1px solid rgba(26, 8, 48, 0.08);
}

.section--light {
  background: #ffffff !important;
}

.section--panel {
  background: #f4f0fb !important;
}

/* Headings */
.section--light :where(h1, h2, h3, h4, h5, h6),
.section--panel :where(h1, h2, h3, h4, h5, h6),
.section--light .section-head h2,
.section--panel .section-head h2,
.section--light .about-text strong,
.section--panel strong {
  color: #1a0b2e !important;
}

/* Body / secondary text - hard hex, not var(--muted) */
.section--light :where(p, li, label, td, th, dd, dt),
.section--panel :where(p, li, label, td, th, dd, dt),
.section--light .section-sub,
.section--panel .section-sub,
.section--light .about-text p,
.section--light .checklist li,
.section--panel .value-card p,
.section--light .info-card p,
.section--light .coming-soon p,
.section--light .coming-soon-note,
.section--light .product-card-desc,
.section--light .home-featured-label {
  color: #3d2f55 !important;
}

.section--light a:not(.btn):not(.product-add-btn):not(.nav-cta),
.section--panel a:not(.btn):not(.product-add-btn) {
  color: #4f3fd4 !important;
}

.section--light .section-badge,
.section--panel .section-badge {
  background: rgba(109, 93, 243, 0.12) !important;
  border-color: rgba(109, 93, 243, 0.35) !important;
  color: #4f3fd4 !important;
}

.section--light .info-card,
.section--panel .value-card,
.section--light .coming-soon,
.section--light .contact-card,
.section--light .contact-form,
.section--light .product-card,
.section--light .glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(26, 8, 48, 0.1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px -24px rgba(22, 4, 46, 0.14) !important;
  color: #1a0b2e !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section--light .info-card h3,
.section--panel .value-card h3,
.section--light .coming-soon h3,
.section--light .contact-card h3,
.section--light .contact-card p,
.section--light .product-card-title,
.section--light .product-card-price strong,
.section--light .product-card-features li,
.section--light .product-card-body {
  color: #1a0b2e !important;
}

.section--light .product-card-cat {
  color: #4f3fd4 !important;
}

.section--light .product-card-features li::before {
  color: #0d8a5a !important;
}

.section--light .info-card:hover,
.section--panel .value-card:hover,
.section--light .contact-card:hover,
.section--light .product-card:hover {
  border-color: rgba(109, 93, 243, 0.4) !important;
  background: #ffffff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 26px 50px -22px rgba(109, 93, 243, 0.22) !important;
}

.section--light .checklist li::before {
  color: #0d8a5a !important;
}

.section--light .coming-soon-badge {
  background: rgba(62, 214, 150, 0.16) !important;
  border-color: rgba(62, 214, 150, 0.45) !important;
  color: #0a5c3e !important;
}

.section--light .coming-soon-list li {
  color: #1a0b2e !important;
}

.section--light .coming-soon-list li::before {
  color: #4f3fd4 !important;
}

.section--light .value-num,
.section--panel .value-num {
  color: #4f3fd4 !important;
}

.section--light input,
.section--light textarea,
.section--light select {
  background: #f4f0fb !important;
  border: 1px solid rgba(26, 8, 48, 0.14) !important;
  color: #1a0b2e !important;
}

.section--light input::placeholder,
.section--light textarea::placeholder {
  color: #7a6b94 !important;
  opacity: 1 !important;
}

.section--light label {
  color: #3d2f55 !important;
  font-weight: 600 !important;
}

.section--light input:focus,
.section--light textarea:focus,
.section--light select:focus {
  border-color: rgba(109, 93, 243, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(109, 93, 243, 0.15) !important;
  color: #1a0b2e !important;
}

/* Override global .btn.ghost { color:#fff !important } */
.section--light .btn.ghost,
.section--panel .btn.ghost,
.section--light a.btn.ghost,
.section--panel a.btn.ghost {
  border-color: rgba(26, 8, 48, 0.2) !important;
  color: #1a0b2e !important;
  background: rgba(26, 8, 48, 0.04) !important;
}

.section--light .btn.ghost:hover,
.section--panel .btn.ghost:hover,
.section--light a.btn.ghost:hover {
  border-color: rgba(109, 93, 243, 0.5) !important;
  background: rgba(109, 93, 243, 0.1) !important;
  color: #1a0b2e !important;
}

.section--light .btn.primary,
.section--panel .btn.primary,
.section--light a.btn.primary {
  color: #061018 !important;
}

.section--light .form-note,
.section--light #formNote {
  color: #3d2f55 !important;
}

/* Values grid (white/panel contrast) */
.section-head--center {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto  auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.value-card {
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.value-num {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--violet, #6D5DF3);
  margin-bottom: 0.65rem;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.about-cards--4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-cards--4 {
    grid-template-columns: 1fr;
  }
}

/* Light footer strip */
.footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(26, 8, 48, 0.1) !important;
  color: #3d2f55 !important;
}

.footer strong,
.footer-brand strong {
  color: #1a0b2e !important;
}

.footer span,
.footer p,
.footer-copy,
.footer-brand span {
  color: #5c4d75 !important;
}

.footer-nav a {
  color: #3d2f55 !important;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #4f3fd4 !important;
}

/* School teaser on dark still; shop/contact light already */
.shop-section.section--light {
  background: #ffffff !important;
}

/* ==========================================================================
   School page - official content + class chat
   ========================================================================== */

.school-stats-strip {
  padding-block: 2rem !important;
}

.official-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.official-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 18px;
}

.official-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--mint, #3ED696);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.official-stat span {
  font-size: 0.88rem;
  color: #574a6e;
  font-weight: 600;
}

.lead-text {
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.school-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.school-official-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-rows: 180px !important;
}

.school-official-grid .gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.news-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
}

.news-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-light, #9385FF);
  margin: 0.35rem 0 0.85rem;
}

/* Class chat */
.class-chat {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.chat-nick-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #574a6e;
}

.chat-nick-label input {
  min-width: min(220px, 70vw);
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(26, 8, 48, 0.12) !important;
  color: #2a1747 !important;
  border-radius: 12px !important;
  padding: 0.65rem 0.85rem;
  font-size: 16px;
}

.chat-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint, #0d6b4a);
}

.chat-status.is-error {
  color: #b42318;
}

.chat-messages {
  height: min(420px, 55vh);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(244, 240, 251, 0.75);
  border: 1px solid rgba(26, 8, 48, 0.08);
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 8, 48, 0.08);
  box-shadow: 0 8px 20px -16px rgba(22, 4, 46, 0.25);
  backdrop-filter: blur(10px);
}

.chat-msg.is-me {
  align-self: flex-end;
  background: rgba(109, 93, 243, 0.12);
  border-color: rgba(109, 93, 243, 0.25);
}

.chat-msg-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.chat-msg-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--violet, #6D5DF3);
}

.chat-msg-time {
  font-size: 0.68rem;
  color: #8a7ea3;
}

.chat-msg-text {
  font-size: 0.95rem;
  color: #2a1747;
  line-height: 1.45;
  word-break: break-word;
}

.chat-empty {
  margin: auto;
  text-align: center;
  color: #8a7ea3;
  font-size: 0.92rem;
  padding: 2rem 1rem;
}

.chat-form {
  display: flex;
  gap: 0.55rem;
}

.chat-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(26, 8, 48, 0.12) !important;
  color: #2a1747 !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.1rem;
  font-size: 16px;
}

.chat-form .btn {
  border-radius: 999px !important;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

.chat-rules {
  font-size: 0.75rem;
  color: #8a7ea3;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .official-stats {
    grid-template-columns: 1fr 1fr;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .school-official-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 150px !important;
  }
  .school-official-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 560px) {
  .official-stats {
    grid-template-columns: 1fr 1fr;
  }
  .chat-form {
    flex-direction: column;
  }
  .chat-form .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Global mobile optimization pass
   ========================================================================== */

/* Prevent horizontal scroll & iOS quirks */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Cover / framed media must keep explicit height for object-fit */
.tech-hero-fallback,
.tech-hero-visual-video,
.tech-hero-visual-img,
.tech-hero-media img,
.tech-hero-media video,
.hero-mobile-bg img,
.hero-slide-bg img,
.hero-slide-bg video,
.site-hero video {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Comfortable touch targets sitewide on phones */
@media (max-width: 767px) {
  :root {
    --section-pad-x: 1rem;
    --section-pad-y: 2.75rem;
    --touch: 48px;
  }

  .section {
    padding: var(--section-pad-y) var(--section-pad-x) !important;
  }

  .section-inner {
    max-width: 100%;
    padding-inline: 0;
  }

  /* Header */
  .lang-banner-tag {
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-banner-inner {
    gap: 0.4rem !important;
    padding-inline: 0.75rem !important;
  }

  .site-header .nav-inner {
    gap: 0.4rem;
  }

  .logo {
    font-size: 1.4rem !important;
  }

  /* Hero home */
  .site-hero.hero {
    min-height: calc(100svh - var(--header-height)) !important;
    padding: 1rem 1rem 3.5rem !important;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14vw, 3.8rem) !important;
    line-height: 0.92 !important;
  }

  .hero-lead {
    font-size: 0.98rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.45rem !important;
    width: 100%;
  }

  .hero-stats .stat strong {
    font-size: 1.05rem !important;
  }

  .hero-stats .stat span {
    font-size: 0.68rem !important;
    line-height: 1.2;
  }

  /* School hero slider mobile */
  .hero-slider {
    min-height: calc(100svh - var(--header-height)) !important;
    height: auto !important;
  }

  .hero-slider-content {
    grid-template-columns: 1fr !important;
    padding: 5.5rem 1rem 8.5rem !important;
    gap: 1rem !important;
    align-content: end !important;
  }

  .hero-slider h1 {
    font-size: clamp(2.8rem, 14vw, 4rem) !important;
  }

  .page-hero-lead {
    font-size: 0.98rem !important;
  }

  .page-hero-meta {
    gap: 0.4rem !important;
  }

  .page-hero-meta span {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
  }

  .hero-slide-info {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    padding: 1rem !important;
  }

  .hero-slide-title {
    font-size: 1.35rem !important;
  }

  .hero-slider-controls {
    position: absolute !important;
    right: 0.65rem !important;
    left: auto !important;
    top: auto !important;
    bottom: 7.75rem !important;
    transform: none !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
  }

  .hero-ctrl {
    width: 44px !important;
    height: 44px !important;
  }

  .hero-dots {
    left: 1rem !important;
    right: auto !important;
    bottom: 6.5rem !important;
  }

  .hero-thumbs {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.65rem !important;
    gap: 0.4rem !important;
  }

  .hero-thumb {
    width: 56px !important;
    height: 40px !important;
  }

  /* Grids → single column */
  .about-grid,
  .school-prose-grid,
  .mma-grid,
  .values-grid,
  .pillar-grid,
  .fact-grid,
  .testimonial-grid,
  .area-grid,
  .contact-grid,
  .field-row,
  .official-stats,
  .shop-grid {
    grid-template-columns: 1fr !important;
  }

  .about-cards,
  .about-cards--4 {
    grid-template-columns: 1fr !important;
  }

  .official-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }

  .official-stat {
    padding: 1rem 0.75rem !important;
  }

  .official-stat strong {
    font-size: 1.55rem !important;
  }

  /* Gallery */
  .gallery-grid,
  .school-official-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 140px !important;
    gap: 0.55rem !important;
  }

  .school-official-grid .gallery-item:first-child,
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }

  .gallery-caption {
    font-size: 0.72rem !important;
    padding: 1.25rem 0.55rem 0.5rem !important;
  }

  /* Cards padding */
  .info-card,
  .fact-card,
  .mma-card,
  .value-card,
  .contact-card,
  .coming-soon,
  .testimonial-card,
  .school-side-card,
  .news-card {
    padding: 1.15rem 1rem !important;
  }

  .coming-soon-list {
    grid-template-columns: 1fr !important;
  }

  /* Buttons full-width where it helps */
  .school-quick-links {
    flex-direction: column;
  }

  .school-quick-links .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .school-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    padding: 1.25rem 1rem !important;
  }

  .school-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .school-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Chat mobile */
  .class-chat {
    padding: 1rem 0.85rem !important;
    border-radius: 18px !important;
  }

  .chat-messages {
    height: min(50vh, 360px) !important;
    padding: 0.65rem !important;
  }

  .chat-toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .chat-nick-label input {
    min-width: 100% !important;
    width: 100%;
  }

  .chat-form {
    flex-direction: column !important;
  }

  .chat-form input {
    width: 100%;
    border-radius: 14px !important;
  }

  .chat-form .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 14px !important;
  }

  .chat-msg {
    max-width: 95% !important;
  }

  /* Contact form */
  .contact-form {
    padding: 1.25rem 1rem !important;
  }

  .contact-form .btn {
    width: 100%;
    max-width: none !important;
  }

  /* Lightbox mobile */
  .lightbox {
    padding: 1rem !important;
  }

  .lightbox-figure img {
    max-height: 70vh !important;
  }

  .lightbox-close {
    top: 0.65rem !important;
    right: 0.65rem !important;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }

  /* Side card not sticky on mobile */
  .school-side-card {
    position: static !important;
  }

  /* Reduce motion-heavy effects on small screens for performance */
  .arena-lights .spot {
    opacity: 0.12 !important;
    filter: blur(60px) !important;
  }

  .ring-stage {
    display: none !important;
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .official-stats {
    grid-template-columns: 1fr !important;
  }

  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .gallery-grid,
  .school-official-grid {
    grid-template-columns: 1fr !important;
  }

  .school-official-grid .gallery-item:first-child {
    grid-column: span 1 !important;
  }

  .page-hero-meta span {
    width: 100%;
    text-align: center;
  }
}

/* Tablet sweet spot */
@media (min-width: 768px) and (max-width: 1024px) {
  .pillar-grid,
  .values-grid,
  .fact-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-slider-content {
    grid-template-columns: 1fr !important;
    padding-bottom: 9rem !important;
  }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
  }
  .nav-menu.is-open {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* ---------- SEO / a11y: skip link + crawlable footer ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--violet, #6d5df3);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: center;
}

.footer-nav a {
  color: var(--muted, rgba(255, 255, 255, 0.7));
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--mint, #3ed696);
  text-decoration: underline;
}

.footer-copy {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .footer-nav {
    width: 100%;
    gap: 0.5rem 0.9rem;
  }
}

/* ==========================================================================
   Imaginary webshop - product cards, cart, filters
   ========================================================================== */

.shop-hero {
  padding-top: calc(6rem + env(safe-area-inset-top, 0px));
  padding-bottom: 1.5rem;
}

.shop-hero-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0.35rem 0 0.85rem;
}

.shop-hero-lead {
  max-width: 40rem;
}

.shop-demo-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(109, 93, 243, 0.12);
  border: 1px solid rgba(109, 93, 243, 0.35);
  max-width: 48rem;
}

.shop-demo-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.shop-demo-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--mint, #3ed696);
  box-shadow: 0 0 0 4px rgba(62, 214, 150, 0.2);
  animation: shopPulse 1.6s ease-in-out infinite;
}

@keyframes shopPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.9); }
}

.shop-currency-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.shop-page-section {
  padding-top: 1.5rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  position: sticky;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  z-index: 20;
  padding: 0.65rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 8, 48, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px -24px rgba(22, 4, 46, 0.35);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-filter {
  appearance: none;
  border: 1px solid rgba(26, 8, 48, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #2a1747;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.shop-filter:hover {
  border-color: rgba(109, 93, 243, 0.4);
}

.shop-filter.is-active {
  background: linear-gradient(135deg, #6d5df3, #5a4ad4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(109, 93, 243, 0.7);
}

.shop-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  appearance: none;
  border: 1px solid rgba(109, 93, 243, 0.35);
  background: rgba(109, 93, 243, 0.1);
  color: #2a1747;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.shop-cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #6d5df3;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-block {
  margin-bottom: 3rem;
}

.shop-block-head {
  margin-bottom: 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.product-grid--home {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}

.home-featured-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet, #6d5df3);
  margin-bottom: 0.85rem;
}

.shop-home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 8, 48, 0.08);
  box-shadow: 0 18px 40px -28px rgba(22, 4, 46, 0.45);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -24px rgba(22, 4, 46, 0.5);
}

.product-card-visual {
  position: relative;
  min-height: 120px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(145deg, #16042e 0%, #2a0f52 55%, #1a0830 100%);
  overflow: hidden;
}

.product-card.accent-mint .product-card-visual {
  background: linear-gradient(145deg, #0d2a22 0%, #164a3a 50%, #0f1f2a 100%);
}
.product-card.accent-gold .product-card-visual {
  background: linear-gradient(145deg, #2a1c08 0%, #5a3d12 50%, #1a1020 100%);
}
.product-card.accent-red .product-card-visual {
  background: linear-gradient(145deg, #2a0a14 0%, #5a1830 50%, #16042e 100%);
}
.product-card.accent-violet .product-card-visual {
  background: linear-gradient(145deg, #16042e 0%, #3d2a8a 55%, #1a0830 100%);
}

.product-card-icon {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 1;
}

.product-card-glow {
  position: absolute;
  inset: 20% 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 214, 150, 0.35), transparent 70%);
  pointer-events: none;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.15rem 1.2rem;
  flex: 1;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.product-card-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d5df3;
}

.product-card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(62, 214, 150, 0.15);
  color: #0d6b4a;
  border: 1px solid rgba(62, 214, 150, 0.35);
}

.product-card-title {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin: 0;
  color: #1a0830;
  line-height: 1.15;
}

.product-card-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #574a6e;
  flex: 1;
}

.product-card-features {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.product-card-features li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2a1747;
}

.product-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3ed696;
  font-weight: 800;
}

.product-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26, 8, 48, 0.08);
}

.product-card-price {
  margin: 0;
}

.product-card-price strong {
  font-size: 1.2rem;
  color: #1a0830;
  font-weight: 800;
}

.product-add-btn {
  border: none;
  white-space: nowrap;
}

.product-add-btn.is-added {
  background: #0d6b4a !important;
}

/* Cart drawer - Shahi-style glass, Rayan arena palette */
.shop-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 2, 18, 0.52);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.shop-cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shop-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1210;
  width: min(400px, 100vw);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid rgba(147, 133, 255, 0.28);
  color: #f4f0ff;
  background: linear-gradient(
    165deg,
    rgba(14, 2, 28, 0.72) 0%,
    rgba(22, 4, 46, 0.7) 42%,
    rgba(28, 12, 58, 0.68) 72%,
    rgba(18, 60, 48, 0.55) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    -20px 0 48px -18px rgba(4, 8, 22, 0.5);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.shop-cart-drawer.is-open {
  transform: translateX(0);
}

html.rtl .shop-cart-drawer,
body.is-rtl .shop-cart-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(147, 133, 255, 0.28);
  transform: translateX(-105%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    20px 0 48px -18px rgba(4, 8, 22, 0.5);
}

html.rtl .shop-cart-drawer.is-open,
body.is-rtl .shop-cart-drawer.is-open {
  transform: translateX(0);
}

.shop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(109, 93, 243, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.shop-cart-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #faf8ff;
}

.shop-cart-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.shop-cart-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(62, 214, 150, 0.4);
  color: #fff;
}

.shop-cart-close:active {
  transform: scale(0.96);
}

.shop-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  -webkit-overflow-scrolling: touch;
}

.shop-cart-empty {
  text-align: center;
  color: rgba(220, 210, 245, 0.7);
  padding: 2.25rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.shop-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-cart-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(147, 133, 255, 0.28);
}

.shop-cart-item-info {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.shop-cart-item-info strong {
  font-size: 0.95rem;
  color: #faf8ff;
  font-weight: 600;
  line-height: 1.35;
}

.shop-cart-item-price {
  font-weight: 700;
  color: #3ed696;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shop-cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #faf8ff;
  cursor: pointer;
  font-weight: 700;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(62, 214, 150, 0.45);
}

.qty-btn:active {
  transform: scale(0.94);
}

.qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: rgba(250, 248, 255, 0.95);
  font-variant-numeric: tabular-nums;
}

.qty-remove {
  margin-inline-start: auto;
  appearance: none;
  border: none;
  background: none;
  color: rgba(255, 170, 170, 0.95);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.qty-remove:hover {
  color: #ffc9c9;
  opacity: 1;
  text-decoration: underline;
}

.shop-cart-footer {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 4, 28, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -12px 32px -20px rgba(0, 0, 0, 0.4);
}

.shop-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
  font-weight: 600;
  color: rgba(250, 248, 255, 0.92);
  letter-spacing: -0.02em;
}

.shop-cart-total-row strong {
  font-size: 1.25rem;
  color: #faf8ff;
  font-variant-numeric: tabular-nums;
}

.shop-cart-actions {
  display: flex;
  gap: 0.55rem;
}

.shop-cart-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.shop-cart-actions .btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(250, 248, 255, 0.92);
}

.shop-cart-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 133, 255, 0.35);
  color: #fff;
}

.shop-cart-actions .btn.primary {
  border: 1px solid rgba(62, 214, 150, 0.35);
  background: linear-gradient(135deg, #3ed696 0%, #6d5df3 100%);
  color: #0a1620;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 14px -10px rgba(109, 93, 243, 0.55);
}

.shop-cart-actions .btn.primary:hover {
  filter: brightness(1.05);
}

body.shop-cart-open {
  overflow: hidden;
}

/* Checkout modal - same glass language as cart */
/* Checkout modal */
.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 1220;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(10, 4, 20, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.shop-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.shop-modal-card {
  width: min(440px, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 22px;
  color: #f4f0ff;
  border: 1px solid rgba(147, 133, 255, 0.28);
  background: linear-gradient(
    165deg,
    rgba(14, 2, 28, 0.82) 0%,
    rgba(22, 4, 46, 0.8) 50%,
    rgba(18, 60, 48, 0.65) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 24px 56px -18px rgba(4, 8, 22, 0.55);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.shop-modal-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  letter-spacing: 0.03em;
}

.shop-modal-card p {
  margin: 0 0 1.25rem;
  color: #574a6e;
  line-height: 1.55;
}

.shop-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Dark-section product cards (if any on dark bg) */
.section:not(.section--light) .product-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.section:not(.section--light) .product-card-title,
.section:not(.section--light) .product-card-price strong,
.section:not(.section--light) .product-card-features li {
  color: var(--text, #fff);
}

.section:not(.section--light) .product-card-desc {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid,
  .product-grid--home {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    top: calc(3.75rem + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: stretch;
  }

  .shop-cart-btn {
    justify-content: center;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-add-btn {
    width: 100%;
  }
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.shop-breadcrumb a {
  color: var(--mint, #3ed696);
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  text-decoration: underline;
}

.shop-breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ==========================================================================
   Shahi-inspired mobile polish (Rayan scope: void purple + mint)
   ========================================================================== */

/* Safe areas on dual header chrome */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}

.lang-banner {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-header .nav {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* iOS: avoid zoom-on-focus + comfy taps */
@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  input,
  select,
  textarea,
  .contact-form input,
  .contact-form textarea,
  .chat-form input,
  .chat-nick-label input {
    font-size: 16px !important;
  }

  button,
  a.btn,
  .nav-toggle,
  .lang-compact-trigger,
  .shop-filter,
  .shop-cart-btn,
  .product-add-btn,
  .hero-ctrl {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Larger, clearer compact language control */
  .lang-compact-trigger {
    min-height: 2.5rem !important;
    min-width: 44px;
    padding: 0.3rem 0.6rem 0.3rem 0.32rem !important;
  }

  .lang-banner-tag {
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
    max-width: min(46vw, 11rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-banner-inner {
    padding-inline: max(0.75rem, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
  }

  /* Nav bar tighter like Shahi 56px */
  .site-header .nav-inner {
    padding-inline: max(0.75rem, env(safe-area-inset-left));
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.35rem !important;
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  /* Full-bleed sections with safe horizontal padding */
  .section {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
  }

  /* Home hero: cinematic poster (Shahi full-viewport mobile) */
  .site-hero.hero {
    min-height: calc(100svh - var(--header-height)) !important;
    min-height: calc(100dvh - var(--header-height)) !important;
    padding: 1rem max(1rem, env(safe-area-inset-left)) max(3.5rem, env(safe-area-inset-bottom)) !important;
  }

  .site-hero .hero-title {
    font-size: clamp(2.75rem, 14vw, 4rem) !important;
    line-height: 0.92 !important;
  }

  .site-hero .hero-lead {
    font-size: 0.98rem !important;
    max-width: 36ch;
  }

  .site-hero .hero-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 0.65rem !important;
  }

  .site-hero .hero-actions .btn {
    width: 100% !important;
    min-height: 48px;
    justify-content: center !important;
    border-radius: 999px !important;
  }

  .site-hero .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
    width: 100%;
  }

  .site-hero .stat {
    padding: 0.65rem 0.4rem !important;
    border-radius: 14px !important;
    text-align: center;
  }

  .site-hero .stat strong {
    font-size: 1rem !important;
  }

  .site-hero .stat span {
    font-size: 0.65rem !important;
    line-height: 1.2;
  }

  /* Cards & forms - softer mobile stacking */
  .glass-card,
  .coming-soon,
  .contact-card,
  .value-card,
  .pillar-card,
  .fact-card,
  .testimonial-card {
    border-radius: 18px !important;
  }

  .btn {
    min-height: 44px;
  }

  .btn.primary,
  .btn.ghost {
    padding-inline: 1.15rem;
  }

  /* Contact form mobile */
  .contact-form {
    gap: 0.85rem;
  }

  .field-row {
    grid-template-columns: 1fr !important;
  }

  /* Webshop mobile toolbar + cards */
  .shop-toolbar {
    top: calc(var(--header-height) + 0.35rem) !important;
    border-radius: 16px !important;
    padding: 0.55rem !important;
  }

  .shop-filters {
    width: 100%;
  }

  .shop-filter {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .shop-cart-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .product-grid,
  .product-grid--home {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-add-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* Footer stack */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-nav {
    width: 100%;
    gap: 0.55rem 0.85rem;
  }

  .footer-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* Slightly larger phones still get drawer polish */
@media (max-width: 900px) and (min-width: 768px) {
  .nav-menu a {
    min-height: 3.1rem;
    font-size: 1.05rem;
  }
}

/* Backdrop sits under drawer, above content */
.nav-backdrop {
  top: var(--header-height, 104px);
  background: rgba(8, 2, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Prevent double horizontal scroll from full-bleed heroes */
.site-hero,
.hero-slider,
.shop-hero {
  max-width: 100vw;
  overflow-x: clip;
}

/* ==========================================================================
   Google auth - language bar (compact, Shahi-style chrome)
   ========================================================================== */

.lang-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-inline-start: 0.35rem;
}

.lang-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.28rem 0.7rem 0.28rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 214, 150, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2));
  color: #f4f0fb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.lang-auth-btn:hover {
  border-color: #3ed696;
  background: linear-gradient(145deg, rgba(62, 214, 150, 0.2), rgba(109, 93, 243, 0.25));
}

.lang-auth-btn:active {
  transform: scale(0.98);
}

.lang-auth-btn--google .lang-auth-g {
  flex-shrink: 0;
}

.lang-auth-btn--out {
  padding-inline: 0.65rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.68rem;
}

.lang-auth-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(46vw, 16rem);
}

.lang-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(62, 214, 150, 0.55);
  background: #23104a;
  flex-shrink: 0;
}

.lang-auth-avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #16042e;
  background: linear-gradient(145deg, #3ed696, #6d5df3);
  border: none;
}

.lang-auth-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f4f0fb;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .lang-auth-name {
    display: none;
  }

  .lang-auth-btn--google span {
    display: none;
  }

  .lang-auth-btn--google {
    padding: 0.28rem;
    min-width: 2.35rem;
    justify-content: center;
  }

  .lang-auth-btn--google .lang-auth-g {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 768px) {
  .lang-auth-btn {
    font-size: 0.78rem;
    padding: 0.32rem 0.85rem 0.32rem 0.45rem;
  }

  .lang-auth-name {
    max-width: 10rem;
  }
}


/* ==========================================================================
   Nav cart button (replaces Open shop CTA)
   ========================================================================== */

.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 93, 243, 0.4);
  background: linear-gradient(145deg, rgba(109, 93, 243, 0.22), rgba(62, 214, 150, 0.12));
  color: #f4f0fb;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.nav-cart-btn:hover {
  border-color: rgba(62, 214, 150, 0.65);
  background: linear-gradient(145deg, rgba(109, 93, 243, 0.35), rgba(62, 214, 150, 0.2));
  box-shadow: 0 8px 22px -12px rgba(109, 93, 243, 0.7);
}

.nav-cart-btn:active {
  transform: scale(0.98);
}

.nav-cart-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.nav-cart-icon svg {
  display: block;
}

.nav-cart-label {
  letter-spacing: 0.02em;
}

.nav-cart-btn .nav-cart-count,
.nav-cart-btn .shop-cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #3ed696;
  color: #16042e;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-cart-btn .nav-cart-count[hidden],
.nav-cart-btn .shop-cart-count[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .nav-cart-btn {
    padding: 0.45rem 0.65rem;
  }
}

@media (max-width: 560px) {
  .nav-cart-label {
    display: none;
  }

  .nav-cart-btn {
    padding: 0.5rem;
    border-radius: 14px;
  }
}

/* ==========================================================================
   Hero Pro - main homepage hero (professional cinematic layout)
   ========================================================================== */

.hero-pro.site-hero {
  min-height: calc(100dvh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
}

.hero-pro .hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(109, 93, 243, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(62, 214, 150, 0.1), transparent 50%),
    radial-gradient(ellipse 30% 25% at 70% 10%, rgba(147, 133, 255, 0.12), transparent 45%),
    linear-gradient(165deg, #0e021c 0%, #16042e 40%, #1a0a38 70%, #12041f 100%);
}

.hero-grid-lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 20%, transparent 75%);
}

/* Kicker / location row */
.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1.15rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(62, 214, 150, 0.28);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(62, 214, 150, 0.5);
  animation: livePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-kicker-text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero-kicker-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(255, 255, 255, 0.18);
}

.hero-kicker-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(200, 188, 232, 0.85);
}

/* Title */
.hero-pro .hero-title {
  margin-bottom: 1.15rem;
}

.hero-title-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.6rem, 11vw, 6.8rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #c8bce8 55%, #9385ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 40px rgba(109, 93, 243, 0.35));
}

.hero-title-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-top: 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-title-word {
  color: rgba(255, 255, 255, 0.92);
}

.hero-title-word.is-mint {
  color: var(--mint);
  text-shadow: 0 0 28px rgba(62, 214, 150, 0.35);
}

.hero-title-dot {
  color: rgba(109, 93, 243, 0.85);
  font-weight: 400;
}

/* Manifesto + lead */
.hero-manifesto {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: #fff;
  max-width: 34rem;
  margin: 0 0 0.85rem;
  padding-inline-start: 0.95rem;
  border-inline-start: 3px solid var(--mint);
}

.hero-pro .hero-lead {
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: rgba(200, 188, 232, 0.92);
  margin-bottom: 1.25rem;
}

/* Quote */
.hero-quote {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  max-width: 34rem;
  border-radius: 16px;
  border: 1px solid rgba(109, 93, 243, 0.28);
  background:
    linear-gradient(135deg, rgba(109, 93, 243, 0.14), rgba(62, 214, 150, 0.06));
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.6);
}

.hero-quote-mark {
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0.65rem;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(62, 214, 150, 0.45);
  pointer-events: none;
}

.hero-quote p {
  margin: 0;
  padding-inline-start: 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

/* Actions */
.hero-pro .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-pro .hero-actions .btn {
  min-height: 48px;
  padding-inline: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-pro .btn.primary {
  background: linear-gradient(135deg, #6d5df3 0%, #5a4ad4 50%, #3ed696 160%);
  border: none;
  box-shadow: 0 12px 32px -12px rgba(109, 93, 243, 0.75);
}

.hero-pro .btn.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.hero-pro .btn.ghost:hover {
  border-color: rgba(62, 214, 150, 0.45);
  background: rgba(62, 214, 150, 0.08);
}

/* Stats */
.hero-pro .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
}

.hero-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.hero-stat:hover {
  border-color: rgba(109, 93, 243, 0.4);
  background: rgba(109, 93, 243, 0.1);
  transform: translateY(-2px);
}

.hero-stat-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
  color: #fff;
}

.hero-stat span {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(200, 188, 232, 0.85);
}

/* Portrait card */
.hero-pro .hero-card {
  justify-self: end;
  width: min(100%, 400px);
  padding: 0.75rem 0.75rem 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(35, 16, 74, 0.92), rgba(14, 2, 28, 0.96));
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(109, 93, 243, 0.12) inset;
  backdrop-filter: blur(16px);
}

.hero-pro .hero-photo-wrap {
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
}

.hero-photo-frame {
  pointer-events: none;
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(62, 214, 150, 0.08);
}

.hero-pro .fight-tag {
  background: linear-gradient(135deg, rgba(109, 93, 243, 0.95), rgba(62, 214, 150, 0.85));
  letter-spacing: 0.12em;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

.portrait-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.25rem;
}

.hero-pro .portrait-meta h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  background: linear-gradient(90deg, #fff, #c8bce8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portrait-role {
  font-size: 0.9rem;
  color: rgba(200, 188, 232, 0.9);
  margin-bottom: 0.55rem;
}

.hero-pro .portrait-meta .location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mint);
}

.location-pin {
  opacity: 0.85;
}

.portrait-line {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(200, 188, 232, 0.7);
}

/* Scroll hint */
.hero-pro .hero-scroll-hint {
  bottom: 1.1rem;
  width: auto;
  height: auto;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  text-decoration: none;
  color: rgba(200, 188, 232, 0.75);
}

.hero-scroll-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: start center;
  padding-top: 6px;
}

.hero-scroll-mouse i {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--mint);
  animation: scrollHint 1.6s ease-in-out infinite;
}

/* Mobile / tablet hero-pro */
@media (max-width: 960px) {
  .hero-pro.site-hero {
    grid-template-columns: 1fr;
    align-content: end;
    padding-bottom: 4.5rem;
  }

  .hero-pro .hero-card {
    display: none;
  }

  .hero-pro .hero-stats {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .hero-pro.site-hero {
    min-height: calc(100svh - var(--header-height)) !important;
    padding: 1.25rem 1rem 4.25rem !important;
    align-content: end;
  }

  .hero-title-name {
    font-size: clamp(3.1rem, 16vw, 4.2rem);
  }

  .hero-title-tagline {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }

  .hero-manifesto {
    font-size: 1.02rem;
  }

  .hero-pro .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-pro .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-pro .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-stat {
    padding: 0.75rem 0.85rem;
  }

  .hero-kicker-sub {
    display: none;
  }

  .hero-kicker-sep {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-pro .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-name {
    filter: none;
  }
  .hero-kicker-dot {
    animation: none;
  }
}

/* RTL tweaks */
html.rtl .hero-manifesto,
body.is-rtl .hero-manifesto {
  border-inline-start: 3px solid var(--mint);
}

html.rtl .hero-quote-mark,
body.is-rtl .hero-quote-mark {
  inset-inline-start: auto;
  inset-inline-end: 0.65rem;
}


/* LIGHT SURFACE TEXT SAFETY NET
   Global Atarim rules set ghost buttons / some cards to white text.
   Force readable dark ink on any white / light-panel background. */
.section--light,
.section--panel,
.section--light *,
.section--panel * {
  /* inheritance anchor - children with explicit colors still override */
}

.section--light .btn.ghost,
.section--panel .btn.ghost,
.section--light a.btn.ghost,
.shop-section.section--light .btn.ghost,
.contact-section.section--light .btn.ghost {
  color: #1a0b2e !important;
}

.section--light .product-card-title,
.section--light .product-card-price strong,
.section--light .product-card-features li,
.section--light .product-card-body {
  color: #1a0b2e !important;
}

.section--light .product-card-desc {
  color: #5c4d75 !important;
}

/* Shop page catalog sits on light section */
.shop-page-section.section--light,
.shop-page-section.section--light h1,
.shop-page-section.section--light h2,
.shop-page-section.section--light h3,
.shop-page-section.section--light p,
.shop-page-section.section--light .section-sub {
  color: #1a0b2e !important;
}

.shop-page-section.section--light .section-sub,
.shop-page-section.section--light .shop-currency-note,
.shop-page-section.section--light .product-card-desc {
  color: #5c4d75 !important;
}

.shop-page-section .shop-filter {
  color: #1a0b2e !important;
}

.shop-page-section .shop-filter.is-active {
  color: #ffffff !important;
}

.shop-hero .section-sub,
.shop-hero .shop-hero-lead,
.shop-hero .shop-currency-note {
  /* shop hero is on dark bg - keep light text */
  color: inherit;
}


/* Higher-specificity light text (beats global muted/white rules) */
.section--light p,
.section--panel p,
.section--light li,
.section--panel li,
.section--light .section-sub,
.section--panel .section-sub,
.section--light .about-text p,
.section--light .info-card p,
.section--panel .value-card p,
.section--light .contact-card p,
.section--light .product-card-desc {
  color: #3d2f55 !important;
}

.section--light h2,
.section--light h3,
.section--panel h2,
.section--panel h3,
.section--light .product-card-title,
.section--light .product-card-price strong {
  color: #1a0b2e !important;
}


/* Shop status banner + coming soon products */
.shop-status-banner,
.shop-demo-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(109, 93, 243, 0.12);
  border: 1px solid rgba(109, 93, 243, 0.35);
  max-width: 48rem;
}

.shop-status-banner p,
.shop-demo-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

.shop-status-dot,
.shop-demo-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--mint, #3ed696);
  box-shadow: 0 0 0 4px rgba(62, 214, 150, 0.2);
  animation: shopPulse 1.6s ease-in-out infinite;
}

.product-card--soon {
  position: relative;
}

.product-soon-ribbon {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a1620;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55);
}

.product-card-badge--soon {
  background: rgba(109, 93, 243, 0.14) !important;
  border: 1px solid rgba(109, 93, 243, 0.35);
  color: #4f3fd4 !important;
}

.product-price-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a6b94;
}

.product-add-btn--soon {
  opacity: 0.92;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(109, 93, 243, 0.85), rgba(62, 214, 150, 0.75)) !important;
  color: #061018 !important;
  border: none !important;
}

.product-add-btn--soon:hover {
  filter: brightness(1.05);
}

.section--light .product-price-note {
  color: #5c4d75 !important;
}

.section--light .product-card-badge--soon {
  color: #4f3fd4 !important;
}


/* School page - best teachers claim */
.school-best-claim {
  display: inline-block;
  margin: 0.35rem 0 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: #0a1620;
  background: linear-gradient(135deg, #3ed696 0%, #6d5df3 100%);
  box-shadow: 0 12px 28px -14px rgba(62, 214, 150, 0.55);
  max-width: 100%;
}

.school-best-claim--inline {
  margin: 0 0 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(62, 214, 150, 0.18), rgba(109, 93, 243, 0.16));
  color: #1a0b2e;
  border: 1px solid rgba(109, 93, 243, 0.28);
  box-shadow: none;
}

.section--light .school-best-claim--inline {
  color: #1a0b2e !important;
}

.hero-slider .school-best-claim {
  color: #0a1620;
}


.school-love-lead {
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 36rem;
}

.section .school-love-lead {
  color: #2a1747 !important;
}


/* Prevent page scroll jump when hero slider loops / thumbs update */
.hero-slider,
.hero-slider-track,
.hero-slide {
  overflow-anchor: none;
}

.hero-thumbs {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Navigation bar polish - white text + professional buttons
   ========================================================================== */

.site-header .nav {
  height: var(--nav-bar-h, 64px);
  min-height: 56px;
  display: flex;
  align-items: center;
  background: rgba(14, 2, 28, 0.92) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 32px -18px rgba(0, 0, 0, 0.55);
}

.site-header.is-scrolled .nav,
.site-header .nav.scrolled {
  background: rgba(14, 2, 28, 0.97) !important;
  border-bottom-color: rgba(109, 93, 243, 0.35) !important;
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.65);
}

/* Logo - pure white */
.site-header .logo {
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 1.45rem;
  text-shadow: 0 0 24px rgba(109, 93, 243, 0.25);
}

.site-header .logo:hover {
  color: #ffffff !important;
  text-shadow: 0 0 28px rgba(62, 214, 150, 0.45);
}

/* Desktop nav links as soft glass pills */
.site-header .nav-menu {
  gap: 0.35rem;
}

.site-header .nav-menu a {
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.site-header .nav-menu a::after {
  display: none !important;
}

.site-header .nav-menu a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.site-header .nav-menu a[aria-current="page"] {
  color: #0a1620 !important;
  background: linear-gradient(135deg, #3ed696 0%, #6d5df3 120%);
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 24px -12px rgba(62, 214, 150, 0.55);
  font-weight: 700;
}

.site-header .nav-menu a[aria-current="page"]:hover {
  color: #0a1620 !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Cart button - refined glass CTA */
.site-header .nav-cart-btn {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(109, 93, 243, 0.28) 55%,
    rgba(62, 214, 150, 0.18) 100%
  ) !important;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 10px 24px -14px rgba(109, 93, 243, 0.65);
  backdrop-filter: blur(10px);
}

.site-header .nav-cart-btn:hover {
  border-color: rgba(62, 214, 150, 0.55) !important;
  background: linear-gradient(
    145deg,
    rgba(62, 214, 150, 0.28) 0%,
    rgba(109, 93, 243, 0.38) 100%
  ) !important;
  color: #ffffff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 28px -12px rgba(62, 214, 150, 0.55);
  transform: translateY(-1px);
}

.site-header .nav-cart-btn .nav-cart-count,
.site-header .nav-cart-btn .shop-cart-count {
  background: #3ed696 !important;
  color: #0a1620 !important;
  box-shadow: 0 2px 8px rgba(62, 214, 150, 0.45);
}

/* Hamburger - compact white icon button */
.site-header .nav-toggle {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.site-header .nav-toggle:hover {
  border-color: rgba(62, 214, 150, 0.45) !important;
  background: rgba(109, 93, 243, 0.2) !important;
}

.site-header .nav-toggle-bar {
  background: #ffffff !important;
  width: 16px;
  height: 1.75px;
  border-radius: 2px;
}

.site-header .nav-toggle-box {
  width: 16px;
  height: 12px;
  gap: 3.5px;
}

.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}
.site-header .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* Mobile drawer links stay polished + white */
@media (max-width: 900px) {
  .site-header .nav-menu {
    gap: 0;
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(109, 93, 243, 0.24), transparent 55%),
      linear-gradient(180deg, #1c0a34 0%, #100320 50%, #0b0218 100%) !important;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .site-header .nav-menu a,
  .site-header .nav-menu .nav-link {
    color: #ffffff !important;
    padding: 0.72rem 0.85rem !important;
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    min-height: 3.1rem;
    font-size: 1.02rem !important;
  }

  .site-header .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: none;
  }

  .site-header .nav-menu a[aria-current="page"] {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(62, 214, 150, 0.28), rgba(109, 93, 243, 0.42)) !important;
    border-color: rgba(62, 214, 150, 0.35) !important;
    box-shadow: 0 12px 28px -14px rgba(62, 214, 150, 0.55) !important;
  }
}

@media (min-width: 901px) {
  .site-header .nav-menu a {
    opacity: 0.92;
  }
  .site-header .nav-menu a:hover,
  .site-header .nav-menu a[aria-current="page"] {
    opacity: 1;
  }
}


/* WhatsApp contact */
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.whatsapp-send-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  background: #25d366 !important;
  color: #062814 !important;
  border: none !important;
  box-shadow: 0 12px 28px -12px rgba(37, 211, 102, 0.55) !important;
}

.whatsapp-send-btn:hover {
  background: #2be072 !important;
  color: #04190d !important;
  filter: brightness(1.03);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.contact-whatsapp-link {
  color: #128c7e !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-whatsapp-link:hover {
  color: #0b6b5f !important;
}

.contact-whatsapp-hint {
  margin-top: 0.75rem !important;
  font-size: 0.88rem !important;
  color: #5c4d75 !important;
}

.section--light .whatsapp-send-btn {
  color: #062814 !important;
}

.section--light .contact-whatsapp-hint {
  color: #5c4d75 !important;
}

@media (max-width: 560px) {
  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Tech Journey page - professional presentation (desktop + mobile)
   ========================================================================== */

.page-tech {
  overflow-x: clip;
}

/* hero with animated media */
.tech-hero {
  position: relative;
  padding-top: calc(1.35rem + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(2.5rem, 6vw, 4.25rem);
  overflow: hidden;
  background: #0c0218;
  isolation: isolate;
}

.tech-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tech-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: tech-hero-ken 28s ease-in-out infinite alternate;
  z-index: 0;
}

.tech-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(10, 2, 20, 0.92) 0%, rgba(14, 4, 28, 0.78) 42%, rgba(12, 4, 24, 0.55) 68%, rgba(10, 2, 18, 0.72) 100%),
    radial-gradient(ellipse 55% 50% at 80% 40%, rgba(109, 93, 243, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(62, 214, 150, 0.12), transparent 55%);
}

.tech-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 15%, transparent 78%);
  animation: tech-grid-drift 40s linear infinite;
}

.tech-hero-orb {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.5;
  animation: tech-orb-pulse 8s ease-in-out infinite alternate;
}

.tech-hero-orb--a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  left: -6%;
  background: rgba(109, 93, 243, 0.38);
}

.tech-hero-orb--b {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  bottom: -10%;
  right: -4%;
  background: rgba(62, 214, 150, 0.2);
  animation-delay: -3s;
}

@keyframes tech-hero-ken {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes tech-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes tech-orb-pulse {
  from { opacity: 0.35; transform: scale(1); }
  to { opacity: 0.6; transform: scale(1.08); }
}

@keyframes tech-scan {
  0% { transform: translateY(-120%); opacity: 0; }
  15% { opacity: 0.55; }
  50% { opacity: 0.35; }
  100% { transform: translateY(220%); opacity: 0; }
}

@keyframes tech-frame-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.tech-hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1120px;
}

.tech-breadcrumb {
  margin-bottom: 1.25rem;
}

.tech-breadcrumb a {
  color: rgba(220, 210, 245, 0.85);
}

.tech-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.tech-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}

.tech-badge-soft {
  margin: 0;
}

.tech-in-progress {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a1620;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
  box-shadow: 0 8px 24px -12px rgba(62, 214, 150, 0.7);
}

.tech-hero-title {
  margin: 0 0 1rem;
  line-height: 1.05;
}

.tech-hero-title-main {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.tech-hero-title-accent {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #3ed696, #9385ff 55%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tech-claim {
  display: block;
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(62, 214, 150, 0.38);
  background: linear-gradient(135deg, rgba(62, 214, 150, 0.14), rgba(109, 93, 243, 0.14));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.45;
  color: #fff;
  max-width: 40rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.tech-lead {
  color: rgba(230, 222, 255, 0.96);
  font-size: clamp(1rem, 2.1vw, 1.08rem);
  line-height: 1.7;
  max-width: 40rem;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.tech-method-note {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  padding: 0.75rem 0 0.75rem 0.95rem;
  border-left: 3px solid rgba(147, 133, 255, 0.75);
  color: rgba(210, 200, 236, 0.95);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tech-hero-visual-col {
  display: grid;
  gap: 0.95rem;
}

.tech-hero-visual {
  margin: 0;
}

.tech-hero-visual-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 48px -20px rgba(0, 0, 0, 0.55);
  background: rgba(10, 2, 20, 0.5);
}

.tech-hero-visual-video,
.tech-hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-hero-visual-video {
  z-index: 1;
}

.tech-hero-visual-img {
  z-index: 0;
}

.tech-hero-visual-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(147, 133, 255, 0.25),
    inset 0 -40px 50px -20px rgba(14, 2, 28, 0.55);
  background: linear-gradient(180deg, rgba(109, 93, 243, 0.08), transparent 40%, rgba(10, 2, 20, 0.25));
  animation: tech-frame-glow 5s ease-in-out infinite;
}

.tech-hero-visual-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(62, 214, 150, 0.12),
    transparent
  );
  animation: tech-scan 7s ease-in-out infinite;
}

.tech-hero-visual-caption {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(210, 200, 236, 0.78);
  text-align: center;
}

.tech-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tech-stat-card {
  padding: 1rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 40px -28px rgba(0, 0, 0, 0.55);
}

.tech-stat-card--wide {
  grid-column: 1 / -1;
}

.tech-stat-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.3rem;
}

.tech-stat-value--sm {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
}

.tech-stat-label {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(210, 200, 236, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .tech-hero-fallback,
  .tech-hero-grid,
  .tech-hero-orb,
  .tech-hero-visual-scan,
  .tech-hero-visual-glow {
    animation: none !important;
  }
  .tech-hero-visual-video {
    display: none;
  }
  .tech-hero-visual-img {
    opacity: 1 !important;
  }
}


.tech-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr);
  gap: clamp(1.35rem, 3.5vw, 2.25rem);
  align-items: start;
}

.tech-vision-copy .lead-text {
  margin-top: 0.5rem;
}

.tech-side-card {
  padding: 1.45rem 1.35rem !important;
  border-radius: 22px;
  height: 100%;
}

.tech-side-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d5df3;
}

.section--light .tech-side-kicker {
  color: #5b4bd6;
}

.tech-side-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.tech-north-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.tech-north-quote p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.section--light .tech-north-quote p {
  color: #2a1747 !important;
}

.tech-relevance {
  max-width: 920px;
}

.tech-relevance-head {
  margin-bottom: 1.25rem;
}

.tech-pill-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 133, 255, 0.35);
  background: rgba(109, 93, 243, 0.12);
  color: rgba(230, 222, 255, 0.95);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tech-goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tech-goal-card {
  padding: 1.35rem 1.2rem !important;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tech-goal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -28px rgba(22, 4, 46, 0.45);
  }
}

.tech-goal-num {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: #3ed696;
  margin-bottom: 0.55rem;
}

.section--panel .tech-goal-num {
  color: #1f9f6a;
}

.tech-goal-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: #fff;
}

.section--panel .tech-goal-card h3 {
  color: #1a0b2e !important;
}

.tech-goal-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(200, 188, 232, 0.9);
}

.section--panel .tech-goal-card p {
  color: #3d2f55 !important;
}

/* Timeline path */
.tech-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.tech-timeline-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  align-items: stretch;
}

.tech-timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.35rem;
}

.tech-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
  box-shadow: 0 0 0 4px rgba(109, 93, 243, 0.15);
  flex-shrink: 0;
  z-index: 1;
}

.tech-timeline-line {
  flex: 1;
  width: 2px;
  margin-top: 0.35rem;
  min-height: 1.5rem;
  background: linear-gradient(180deg, rgba(109, 93, 243, 0.55), rgba(109, 93, 243, 0.08));
}

.tech-phase-card {
  margin-bottom: 0.9rem;
  padding: 1.2rem 1.25rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(26, 8, 48, 0.1);
  background: #fff;
  box-shadow: 0 16px 36px -28px rgba(22, 4, 46, 0.22);
}

.tech-phase-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.tech-phase-num {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #6d5df3;
  line-height: 1;
  min-width: 2.2rem;
}

.tech-phase-label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c6bb5;
}

.tech-phase-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #1a0b2e;
}

.tech-phase-card > p {
  margin: 0 0 0.75rem;
  color: #3d2f55;
  line-height: 1.55;
}

.tech-phase-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-phase-tags li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(109, 93, 243, 0.1);
  color: #3b2d63 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Skills */
.tech-skills-head {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.tech-skills-note {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(200, 188, 232, 0.9);
}

.tech-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 0.25rem;
}

.tech-skill-card {
  padding: 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tech-skill-card:hover {
    transform: translateY(-3px);
    border-color: rgba(62, 214, 150, 0.35);
  }
}

.tech-skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.7rem;
  border-radius: 12px;
  background: rgba(109, 93, 243, 0.16);
  font-size: 1.2rem;
}

.tech-skill-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #fff;
}

.tech-skill-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(200, 188, 232, 0.9);
}

/* Done / outcomes */
.tech-done {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.tech-done-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.tech-done-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(26, 8, 48, 0.08);
  background: #fff;
  box-shadow: 0 14px 32px -28px rgba(22, 4, 46, 0.2);
  color: #2a1747 !important;
  line-height: 1.5;
  font-size: 0.98rem;
}

.tech-done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
  color: #0a1620;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* CTA */
.tech-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 24px;
  border: 1px solid rgba(147, 133, 255, 0.28);
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(109, 93, 243, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 70% at 100% 100%, rgba(62, 214, 150, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.04);
}

.tech-cta-copy {
  flex: 1 1 16rem;
  max-width: 36rem;
}

.tech-cta-copy h2 {
  margin-bottom: 0.4rem;
}

.tech-cta-copy .section-sub {
  margin: 0;
}

.tech-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .tech-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tech-hero-layout,
  .tech-two-col,
  .tech-done {
    grid-template-columns: 1fr;
  }

  .tech-goals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-hero-panel {
    max-width: 28rem;
  }

  .tech-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .tech-hero {
    padding-top: calc(1.15rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2.1rem;
  }

  .tech-hero-title-main {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .tech-claim {
    padding: 0.75rem 0.95rem;
  }

  .tech-hero-actions,
  .tech-cta-actions {
    width: 100%;
  }

  .tech-hero-actions .btn,
  .tech-cta-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .tech-goals-grid,
  .tech-skills-grid {
    grid-template-columns: 1fr;
  }

  .tech-stat-card {
    padding: 0.9rem 0.85rem;
  }

  .tech-timeline-item {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.65rem 0.75rem;
  }

  .tech-phase-card {
    padding: 1.05rem 1rem 1.1rem;
  }

  .tech-phase-head {
    gap: 0.65rem;
  }

  .tech-done-item {
    padding: 0.85rem 0.9rem;
    font-size: 0.94rem;
  }

  .tech-pill {
    font-size: 0.82rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .tech-skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* RTL polish */
.is-rtl .tech-method-note {
  border-left: none;
  border-right: 3px solid rgba(147, 133, 255, 0.75);
  padding-left: 0;
  padding-right: 0.95rem;
}

.is-rtl .tech-timeline-item {
  direction: rtl;
}


/* ==========================================================================
   Mobile pass 2026-08 - tech + sitewide
   ========================================================================== */

/* Cart drawer: full-bleed feel on phones + home indicator safe area */
@media (max-width: 640px) {
  .shop-cart-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
    border-radius: 0;
  }

  html.rtl .shop-cart-drawer,
  body.is-rtl .shop-cart-drawer {
    border-right: none;
  }

  .shop-cart-header {
    padding-top: max(0.95rem, env(safe-area-inset-top, 0px));
  }

  .shop-cart-footer {
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  }

  .shop-cart-actions {
    flex-direction: column;
  }

  .shop-cart-actions .btn {
    min-height: 48px;
    width: 100%;
  }

  .qty-btn {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
  }

  .qty-remove {
    min-height: 44px;
    padding-inline: 0.35rem;
    display: inline-flex;
    align-items: center;
  }

  .shop-modal {
    padding: 1rem max(0.75rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom));
    align-items: end;
  }

  .shop-modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 16px 16px;
  }

  .shop-modal-actions {
    flex-direction: column;
  }

  .shop-modal-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

/* Language bar: prevent crowding with auth on small phones */
@media (max-width: 420px) {
  .lang-auth-name {
    display: none !important;
  }

  .lang-auth-btn--google span {
    display: none;
  }

  .lang-auth-btn--google {
    padding: 0.35rem !important;
    min-width: 40px;
    justify-content: center;
  }

  .lang-banner-tag {
    max-width: 28vw !important;
  }

  .lang-auth-user {
    max-width: none;
  }
}

/* Tech Journey - phone & tablet polish */
@media (max-width: 900px) {
  .tech-hero {
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
    padding-bottom: 2rem;
  }

  .tech-hero-layout {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  /* Visual first on mobile for stronger first impression */
  .tech-hero-visual-col {
    order: -1;
    max-width: 100%;
  }

  .tech-hero-visual-frame {
    aspect-ratio: 16 / 11;
    border-radius: 18px;
  }

  .tech-hero-panel {
    max-width: 100%;
  }

  .tech-hero-scrim {
    background:
      linear-gradient(180deg, rgba(10, 2, 20, 0.72) 0%, rgba(14, 4, 28, 0.88) 48%, rgba(10, 2, 18, 0.95) 100%),
      radial-gradient(ellipse 70% 45% at 50% 15%, rgba(109, 93, 243, 0.22), transparent 62%);
  }

  .tech-two-col,
  .tech-done {
    grid-template-columns: 1fr;
  }

  .tech-goals-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-cta-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.1rem;
  }

  .tech-cta-actions {
    width: 100%;
  }

  .tech-cta-actions .btn {
    flex: 1 1 auto;
    min-height: 48px;
    justify-content: center;
  }

  .tech-breadcrumb {
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .page-tech .section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .page-tech .tech-hero.section {
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 1.75rem !important;
  }

  .tech-hero-title-main {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .tech-hero-title-accent {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    letter-spacing: 0.06em;
  }

  .tech-claim {
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
  }

  .tech-lead {
    font-size: 0.98rem;
  }

  .tech-method-note {
    font-size: 0.9rem;
    margin-bottom: 1.1rem;
  }

  .tech-hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .tech-hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .tech-goals-grid,
  .tech-skills-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tech-goal-card,
  .tech-skill-card {
    padding: 1.15rem 1rem !important;
  }

  .tech-stat-card {
    padding: 0.85rem 0.75rem;
  }

  .tech-stat-value {
    font-size: 1.35rem;
  }

  .tech-stat-label {
    font-size: 0.75rem;
  }

  .tech-timeline-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.55rem 0.65rem;
  }

  .tech-timeline-dot {
    width: 12px;
    height: 12px;
  }

  .tech-phase-card {
    padding: 1rem 0.9rem 1.05rem;
    margin-bottom: 0.75rem;
  }

  .tech-phase-num {
    font-size: 1.35rem;
    min-width: 1.9rem;
  }

  .tech-phase-label {
    font-size: 0.68rem;
  }

  .tech-phase-card h3 {
    font-size: 1.05rem;
  }

  .tech-phase-tags li {
    font-size: 0.72rem;
    padding: 0.24rem 0.55rem;
  }

  .tech-pill-row {
    gap: 0.4rem;
  }

  .tech-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .tech-skills-note {
    font-size: 0.9rem;
    padding-inline: 0.25rem;
  }

  .tech-done-item {
    font-size: 0.92rem;
    padding: 0.8rem 0.85rem;
  }

  .tech-hero-visual-caption {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  /* Prevent double-scroll bounce on framed video */
  .tech-hero-visual-frame {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .tech-hero-panel {
    grid-template-columns: 1fr;
  }

  .tech-stat-card--wide {
    grid-column: auto;
  }

  .logo {
    font-size: 1.2rem !important;
  }

  .nav-cart-btn {
    min-width: 44px;
    padding-inline: 0.55rem !important;
  }
}

/* Tablet mid: keep 2-col goals/skills */
@media (min-width: 641px) and (max-width: 900px) {
  .tech-goals-grid,
  .tech-skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-hero-actions {
    flex-direction: row;
  }

  .tech-hero-actions .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

/* School + home residual mobile safety */
@media (max-width: 767px) {
  .section-head {
    margin-bottom: 1.5rem;
  }

  .section-head h2,
  .section--light h2,
  .section--panel h2 {
    font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
    line-height: 1.15;
  }

  .section-sub,
  .lead-text {
    font-size: 0.98rem;
  }

  /* Sticky shop toolbar under dual header */
  .shop-toolbar {
    position: sticky;
    z-index: 40;
    top: calc(var(--header-height) + 0.35rem);
  }

  .shop-hero {
    padding-bottom: 1.5rem !important;
  }

  .shop-status-banner {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
  }

  /* Footer safe bottom */
  .footer {
    padding-bottom: max(1.75rem, calc(1rem + env(safe-area-inset-bottom))) !important;
  }

  /* Nav cart icon-only clarity */
  .nav-cart-btn {
    min-width: 48px;
    min-height: 48px;
  }

  /* Contact CTAs full width */
  .contact-card .btn,
  .hero-actions .btn {
    min-height: 48px;
  }

  /* Prevent Arabic/RTL overflow */
  body.is-rtl .tech-hero-title-main,
  html.rtl .tech-hero-title-main {
    letter-spacing: 0.01em;
  }

  body.is-rtl .section-badge,
  html.rtl .section-badge {
    letter-spacing: 0.06em;
  }
}

/* Landscape phones: shorter hero */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  .tech-hero {
    padding-bottom: 1.25rem;
  }

  .tech-hero-visual-frame {
    aspect-ratio: 21 / 9;
    max-height: 42vh;
  }

  .site-hero.hero,
  .hero-pro.site-hero {
    min-height: auto !important;
    padding-top: 0.75rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Ensure main never slides under header on iOS address-bar resize */
@supports (height: 100dvh) {
  @media (max-width: 900px) {
    .nav-menu {
      height: calc(100dvh - var(--header-height));
    }
  }
}


/* Shop filters: horizontal scroll when labels are long (SV/AR) */
@media (max-width: 767px) {
  .shop-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.45rem;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


/* Tech Journey current phase highlight */
.tech-current-note {
  margin: 0 0 0.85rem;
  max-width: 40rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(62, 214, 150, 0.4);
  background: linear-gradient(135deg, rgba(62, 214, 150, 0.16), rgba(109, 93, 243, 0.12));
  color: #f4fff8;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.tech-path-current {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3d2f55;
}

.section:not(.section--light):not(.section--panel) .tech-path-current {
  color: rgba(220, 210, 245, 0.92);
}

.tech-path-current-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a1620;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
}

.tech-phase-card.is-current {
  border-color: rgba(109, 93, 243, 0.35);
  box-shadow:
    0 0 0 1px rgba(62, 214, 150, 0.25),
    0 18px 40px -24px rgba(109, 93, 243, 0.45);
  background: linear-gradient(165deg, #fff 0%, #f6f3ff 100%);
}

.tech-timeline-item.is-current .tech-timeline-dot {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 5px rgba(62, 214, 150, 0.28);
}

.tech-phase-now,
.tech-phase-upcoming {
  display: inline-block;
  margin-inline-start: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tech-phase-now {
  color: #0a1620;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
}

.tech-phase-upcoming {
  color: #5b4bd6;
  background: rgba(109, 93, 243, 0.12);
  border: 1px solid rgba(109, 93, 243, 0.2);
}

@media (max-width: 640px) {
  .tech-current-note {
    font-size: 0.92rem;
    padding: 0.65rem 0.8rem;
  }
  .tech-path-current {
    font-size: 0.9rem;
  }
}


/* Class chat Google auth gate */
.chat-auth-gate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(109, 93, 243, 0.28);
  background: linear-gradient(135deg, rgba(109, 93, 243, 0.1), rgba(62, 214, 150, 0.08));
}

.section--light .chat-auth-gate {
  background: linear-gradient(135deg, rgba(109, 93, 243, 0.08), rgba(62, 214, 150, 0.06));
  border-color: rgba(109, 93, 243, 0.22);
}

.chat-auth-gate-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a0b2e;
}

.section:not(.section--light) .chat-auth-gate-title {
  color: #fff;
}

.chat-auth-gate-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3d2f55;
  max-width: 36rem;
}

.section:not(.section--light) .chat-auth-gate-text {
  color: rgba(220, 210, 245, 0.9);
}

.chat-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  min-height: 48px;
}

.chat-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(62, 214, 150, 0.55);
  flex-shrink: 0;
}

.chat-user-avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0a1620;
  background: linear-gradient(135deg, #3ed696, #6d5df3);
  border: none;
}

.chat-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.chat-user-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c6bb5;
}

.chat-user-name {
  font-size: 0.95rem;
  color: #1a0b2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

.chat-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline-end: 0.25rem;
  vertical-align: middle;
}

.chat-nick-label--locked input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.chat-form input:disabled {
  cursor: pointer;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .chat-auth-btn {
    width: 100%;
    justify-content: center;
  }
  .chat-user-name {
    max-width: 12rem;
  }
}


/* ==========================================================================
   Mobile nav polish v2 — professional drawer + tight header actions
   ========================================================================== */

/* Drawer chrome (hidden on desktop) */
.nav-drawer-head,
.nav-drawer-foot,
.nav-link-icon,
.nav-link-chevron {
  display: none;
}

.nav-drawer-list {
  display: contents;
}

/* Desktop: keep clean pill row (text only) */
@media (min-width: 901px) {
  .nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
  }

  .nav-menu .nav-link-text {
    display: inline;
  }
}

/* Mobile / tablet drawer shell */
@media (max-width: 900px) {
  .nav-actions {
    gap: 0.35rem !important;
  }

  .site-header .nav-inner {
    gap: 0.5rem !important;
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.7rem, env(safe-area-inset-right)) !important;
  }

  .site-header .nav {
    padding-inline: 0 !important;
  }

  .site-header .logo {
    font-size: 1.28rem !important;
    letter-spacing: 0.1em;
  }

  /* Compact cart next to hamburger */
  .site-header .nav-cart-btn {
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 11px !important;
    justify-content: center;
    gap: 0;
  }

  .site-header .nav-cart-label {
    display: none !important;
  }

  .site-header .nav-cart-btn .nav-cart-count,
  .site-header .nav-cart-btn .shop-cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: 0.62rem;
  }

  .site-header .nav-cart-btn {
    position: relative;
  }

  .site-header .nav-cart-icon svg {
    width: 18px;
    height: 18px;
  }

  /* Drawer interior layout */
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    flex-shrink: 0;
  }

  .nav-drawer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }

  .nav-drawer-kicker {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3ed696;
  }

  .nav-drawer-title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1.1;
  }

  .nav-drawer-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }

  .nav-drawer-close:hover,
  .nav-drawer-close:focus-visible {
    background: rgba(109, 93, 243, 0.25);
    border-color: rgba(109, 93, 243, 0.45);
    outline: none;
  }

  .nav-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
  }

  .nav-link-icon,
  .nav-link-chevron {
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .nav-link-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c8bce8;
  }

  .nav-link-icon svg {
    display: block;
  }

  .nav-link-text {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
  }

  .nav-link-chevron {
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, color 0.15s ease;
  }

  html.rtl .nav-link-chevron,
  body.is-rtl .nav-link-chevron {
    transform: scaleX(-1);
  }

  .nav-menu .nav-link:hover .nav-link-chevron,
  .nav-menu .nav-link:focus-visible .nav-link-chevron {
    color: #3ed696;
    transform: translateX(2px);
  }

  html.rtl .nav-menu .nav-link:hover .nav-link-chevron,
  body.is-rtl .nav-menu .nav-link:hover .nav-link-chevron {
    transform: scaleX(-1) translateX(2px);
  }

  .nav-menu .nav-link[aria-current="page"] .nav-link-icon {
    background: rgba(62, 214, 150, 0.2);
    border-color: rgba(62, 214, 150, 0.4);
    color: #3ed696;
  }

  .nav-menu .nav-link[aria-current="page"] .nav-link-chevron {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-drawer-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.85rem 1rem max(1rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(220, 210, 245, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .nav-drawer-foot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ed696;
    box-shadow: 0 0 0 4px rgba(62, 214, 150, 0.18);
    flex-shrink: 0;
  }

  /* Soft staggered open feel */
  .nav-menu.is-open .nav-link {
    animation: navLinkIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .nav-menu.is-open .nav-link:nth-child(1) { animation-delay: 0.03s; }
  .nav-menu.is-open .nav-link:nth-child(2) { animation-delay: 0.05s; }
  .nav-menu.is-open .nav-link:nth-child(3) { animation-delay: 0.07s; }
  .nav-menu.is-open .nav-link:nth-child(4) { animation-delay: 0.09s; }
  .nav-menu.is-open .nav-link:nth-child(5) { animation-delay: 0.11s; }
  .nav-menu.is-open .nav-link:nth-child(6) { animation-delay: 0.13s; }
  .nav-menu.is-open .nav-link:nth-child(7) { animation-delay: 0.15s; }

  .nav-backdrop {
    background: rgba(6, 1, 14, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html.rtl .nav-menu.is-open .nav-link,
body.is-rtl .nav-menu.is-open .nav-link {
  animation-name: navLinkInRtl;
}

@keyframes navLinkInRtl {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu.is-open .nav-link {
    animation: none !important;
  }
}

/* Small phones: even tighter header controls */
@media (max-width: 380px) {
  .site-header .nav-toggle,
  .site-header .nav-cart-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .site-header .logo {
    font-size: 1.15rem !important;
  }

  .nav-menu {
    width: min(300px, calc(100vw - 1.75rem)) !important;
  }
}


/* ==========================================================================
   Webshop mobile fix v3 — layout, stacking, cards, toolbar
   ========================================================================== */

/* Cart / checkout must sit ABOVE fixed dual header (z-index 1100) */
.shop-cart-backdrop {
  z-index: 1200 !important;
}

.shop-cart-drawer {
  z-index: 1210 !important;
}

.shop-modal {
  z-index: 1220 !important;
}

/* Shop hero: account for dual header already offset by main padding */
.page-shop .shop-hero {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  overflow-x: visible;
}

.page-shop .shop-hero .section-inner {
  padding-inline: 0;
  max-width: 1120px;
}

.page-shop .shop-hero-title {
  font-size: clamp(1.85rem, 8vw, 3.2rem);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.page-shop .shop-status-banner,
.page-shop .shop-demo-banner {
  max-width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
}

.page-shop .shop-currency-note {
  max-width: 100%;
}

/* Sticky filter bar always clears dual header */
.shop-toolbar {
  top: calc(var(--header-height) + 0.4rem) !important;
  z-index: 40 !important;
  max-width: 100%;
  box-sizing: border-box;
}

.shop-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.shop-page-section .section-inner {
  max-width: 1120px;
  width: 100%;
  box-sizing: border-box;
}

.product-grid {
  width: 100%;
  min-width: 0;
}

.product-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.product-card-body {
  min-width: 0;
}

.product-card-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-card-meta {
  gap: 0.35rem;
}

.product-card-badge,
.product-card-cat {
  max-width: 100%;
}

/* Tablet: 2 columns without crushing */
@media (max-width: 1000px) and (min-width: 641px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

/* Phones: single column, tight, readable */
@media (max-width: 767px) {
  .page-shop .section,
  .page-shop .shop-hero.section,
  .page-shop .shop-page-section {
    padding-left: max(0.9rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.9rem, env(safe-area-inset-right)) !important;
  }

  .page-shop .shop-page-section {
    padding-top: 1rem !important;
    padding-bottom: 2.5rem !important;
  }

  .page-shop .shop-hero {
    padding-top: 0.85rem !important;
    padding-bottom: 1rem !important;
  }

  .page-shop .shop-hero-title {
    font-size: clamp(1.7rem, 9vw, 2.35rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.65rem !important;
  }

  .page-shop .shop-hero-lead,
  .page-shop .shop-status-banner p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .page-shop .shop-breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    gap: 0.35rem;
  }

  /* Toolbar: filters scroll, cart full-width below */
  .shop-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    margin-bottom: 1.35rem !important;
    padding: 0.55rem !important;
    border-radius: 16px !important;
    top: calc(var(--header-height) + 0.3rem) !important;
  }

  .shop-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem !important;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .shop-filters::-webkit-scrollbar {
    display: none;
  }

  .shop-filter {
    flex: 1 0 auto !important;
    min-height: 42px !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.84rem !important;
    white-space: nowrap;
  }

  .shop-cart-btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    border-radius: 14px !important;
    font-size: 0.9rem !important;
  }

  .product-grid,
  .product-grid--home {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.95rem !important;
  }

  .shop-block {
    margin-bottom: 2.25rem !important;
  }

  .shop-block-head {
    margin-bottom: 0.95rem !important;
  }

  .shop-block-head h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.15 !important;
  }

  .shop-block-head .section-sub {
    font-size: 0.92rem !important;
  }

  /* Product cards — mobile compact */
  .product-card {
    border-radius: 18px !important;
  }

  .product-card-visual {
    min-height: 96px !important;
  }

  .product-card-icon {
    font-size: 2.25rem !important;
  }

  .product-soon-ribbon {
    top: 0.55rem !important;
    inset-inline-end: 0.55rem !important;
    font-size: 0.62rem !important;
    padding: 0.25rem 0.5rem !important;
    letter-spacing: 0.05em !important;
  }

  .product-card-body {
    padding: 0.95rem 0.95rem 1rem !important;
    gap: 0.45rem !important;
  }

  .product-card-title {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
  }

  .product-card-desc {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .product-card-features {
    gap: 0.2rem !important;
  }

  .product-card-features li {
    font-size: 0.78rem !important;
    padding-left: 1.05rem !important;
    padding-inline-start: 1.05rem !important;
  }

  .product-card-features li::before {
    left: 0;
    inset-inline-start: 0;
  }

  .product-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.7rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
  }

  .product-card-price strong {
    font-size: 1.15rem !important;
  }

  .product-price-note {
    font-size: 0.68rem !important;
  }

  .product-add-btn,
  .product-add-btn--soon {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 14px !important;
    font-size: 0.92rem !important;
  }

  /* Cart drawer full-screen polish */
  .shop-cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .shop-cart-header {
    padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.85rem !important;
  }

  .shop-cart-header h2 {
    font-size: 1.2rem !important;
  }

  .shop-cart-body {
    padding: 0.85rem !important;
  }

  .shop-cart-item {
    padding: 0.75rem !important;
    gap: 0.55rem !important;
  }

  .shop-cart-footer {
    padding: 0.85rem 1rem max(1rem, env(safe-area-inset-bottom)) !important;
  }

  .shop-cart-actions {
    flex-direction: column !important;
  }

  .shop-cart-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }

  .shop-modal {
    padding: 0.75rem max(0.65rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-bottom)) !important;
    align-items: flex-end !important;
  }

  .shop-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px 18px 14px 14px !important;
    padding: 1.15rem !important;
  }

  .shop-modal-actions {
    flex-direction: column !important;
  }

  .shop-modal-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .page-shop .shop-hero-title {
    font-size: 1.55rem !important;
  }

  .shop-filter {
    padding-inline: 0.7rem !important;
    font-size: 0.8rem !important;
  }

  .product-card-body {
    padding: 0.85rem !important;
  }
}

/* Prevent body scroll jank when cart open under fixed header */
body.shop-cart-open {
  overflow: hidden !important;
  touch-action: none;
}


/* Shop products must always be visible (tall section broke scroll-reveal) */
.shop-page-section.reveal,
.shop-page-section.reveal:not(.visible),
#shopCatalog.reveal,
#shopCatalog.reveal:not(.visible),
.shop-page-section .product-card,
.shop-page-section .product-grid,
.shop-page-section .shop-block {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.product-card {
  opacity: 1;
  visibility: visible;
}
