:root {
  color-scheme: dark;
  --bg: #080a0b;
  --surface: #111416;
  --surface-2: #191d20;
  --text: #f7f7f4;
  --muted: #b8c0c4;
  --red: #f0412f;
  --red-dark: #9d2019;
  --amber: #f08a32;
  --steel: #44a9bd;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .hero-primary-cta,
body.modal-open .hero-primary-cta::after,
body.modal-open .hero-plans-note.has-seasonal-plan,
body.modal-open .hero-plans-note.has-seasonal-plan .hero-plans-note-badge,
body.modal-open .nav-client-link.is-guest {
  animation: none !important;
}

body.modal-open .site-header {
  backdrop-filter: none;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(8, 10, 11, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(240, 65, 47, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(240, 65, 47, 0.3);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.0);
}

.brand-copy {
  display: grid;
  gap: 0;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

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

.site-nav a,
.nav-link,
.language-switch button,
.admin-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 800;
}

.site-nav a:hover,
.nav-link:hover,
.language-switch button:hover,
.language-switch button.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.nav-client-link,
.nav-admin-link {
  position: relative;
  overflow: hidden;
}

.nav-client-link {
  padding-inline: 16px;
  color: #fff4ee;
  border-color: rgba(255, 162, 126, 0.26);
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.22), rgba(255, 166, 43, 0.18));
  box-shadow: 0 10px 24px rgba(255, 107, 61, 0.16);
  animation: nav-client-pulse 1.9s ease-in-out infinite;
}

.nav-client-link.is-guest {
  color: #fff4ee;
  border-color: rgba(255, 162, 126, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.28), rgba(255, 166, 43, 0.22));
  box-shadow: 0 12px 28px rgba(255, 107, 61, 0.2);
}

.nav-client-link.is-authenticated {
  color: #eafff4;
  border-color: rgba(116, 235, 182, 0.34);
  background: linear-gradient(135deg, rgba(35, 195, 118, 0.26), rgba(109, 213, 153, 0.24));
  box-shadow: 0 12px 28px rgba(35, 195, 118, 0.18);
  animation: none;
}

.nav-client-link:hover,
.nav-client-link:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.nav-admin-link {
  opacity: 1;
  font-size: 0.84rem;
  color: #fff7dc;
  border-color: rgba(248, 213, 105, 0.28);
  background: linear-gradient(135deg, rgba(248, 186, 37, 0.24), rgba(255, 221, 87, 0.18));
  box-shadow: 0 10px 22px rgba(248, 186, 37, 0.14);
}

.nav-admin-link:hover,
.nav-admin-link:focus-visible {
  color: #fffef5;
  border-color: rgba(255, 232, 143, 0.42);
  background: linear-gradient(135deg, rgba(248, 186, 37, 0.3), rgba(255, 221, 87, 0.24));
}

.language-switch {
  display: flex;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  --hero-edge: max(clamp(18px, 5vw, 72px), calc((100vw - 1920px) / 2 + 72px));
  position: relative;
  isolation: isolate;
  min-height: clamp(680px, 94svh, 1260px);
  display: grid;
  align-items: end;
  padding: 130px var(--hero-edge) 90px;
  overflow: hidden;
  background-color: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  left: 180px;
  right: -180px;
  background-image:
    linear-gradient(90deg, rgba(8, 10, 11, 0.97) 0%, rgba(8, 10, 11, 0.9) 36%, rgba(8, 10, 11, 0.58) 68%, rgba(8, 10, 11, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 10, 11, 0.24) 0%, rgba(8, 10, 11, 0.5) 58%, var(--bg) 100%),
    url("/assets/banner-simple.jpeg");
  background-position: center, center, center 10px;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 10, 11, 0.78) 9%, rgba(8, 10, 11, 0) 38%),
    linear-gradient(90deg, rgba(8, 10, 11, 0) 0%, rgba(8, 10, 11, 0) 70%, rgba(8, 10, 11, 0.58) 86%, var(--bg) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(240, 65, 47, 0.34), transparent 34%),
    linear-gradient(225deg, rgba(68, 169, 189, 0.2), transparent 32%);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero-primary-cta {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(240, 65, 47, 0.28);
  animation: hero-primary-vibrate 1.9s ease-in-out infinite;
}

.hero-primary-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.38) 48%, transparent 78%);
  transform: translateX(-145%);
  animation: hero-primary-shine 3.2s ease-out infinite;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: #101010;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

@keyframes hero-primary-vibrate {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 18px 36px rgba(240, 65, 47, 0.28);
  }
  14% {
    transform: translateX(-2px) rotate(-1deg) scale(1.018);
  }
  18% {
    transform: translateX(2px) rotate(1deg) scale(1.018);
  }
  22% {
    transform: translateX(-4px) rotate(-1.4deg) scale(1.032);
    box-shadow: 0 28px 50px rgba(240, 65, 47, 0.42);
  }
  26% {
    transform: translateX(4px) rotate(1.4deg) scale(1.032);
  }
  30% {
    transform: translateX(-3px) rotate(-1deg) scale(1.026);
  }
  34% {
    transform: translateX(3px) rotate(1deg) scale(1.026);
  }
  40% {
    transform: translateX(0) rotate(0deg) scale(1);
    box-shadow: 0 22px 40px rgba(240, 65, 47, 0.34);
  }
}

@keyframes hero-primary-shine {
  0%,
  52% {
    transform: translateX(-145%);
  }
  72% {
    transform: translateX(10%);
  }
  100% {
    transform: translateX(145%);
  }
}

@keyframes seasonal-plan-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 44px rgba(240, 65, 47, 0.24), 0 0 28px rgba(255, 166, 43, 0.16);
  }
  50% {
    transform: translateY(-2px) scale(1.018);
    box-shadow: 0 26px 54px rgba(240, 65, 47, 0.32), 0 0 40px rgba(255, 166, 43, 0.26);
  }
}

@keyframes seasonal-plan-badge-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.08);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 8vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-text,
.section p {
  color: var(--muted);
}

.hero-text {
  width: min(640px, 100%);
  margin-bottom: 28px;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
}

.hero-actions,
.social-links,
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-plans-cta {
  display: grid;
  gap: 10px;
}

.hero-side-stack {
  position: absolute;
  z-index: 2;
  right: var(--hero-edge);
  bottom: 82px;
  display: grid;
  justify-items: end;
  gap: 16px;
}

.hero-side-note {
  margin-top: 86px;
}

.hero-plans-note {
  display: grid;
  gap: 8px;
  max-width: 340px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.hero-plans-note-text,
.hero-plans-note-badge {
  margin: 0;
}

.hero-plans-note-text {
  color: #fff3e8;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.45;
}

.hero-plans-note-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 166, 43, 0.96), rgba(240, 65, 47, 0.96));
  color: #16110f;
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.hero-plans-note.has-seasonal-plan {
  border-color: rgba(255, 166, 43, 0.68);
  box-shadow: 0 20px 44px rgba(240, 65, 47, 0.24), 0 0 28px rgba(255, 166, 43, 0.16);
  animation: seasonal-plan-pulse 1.7s ease-in-out infinite;
}

.hero-plans-note.is-seasonal-ad {
  border-color: rgba(255, 166, 43, 0.68);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 44px rgba(240, 65, 47, 0.24), 0 0 28px rgba(255, 166, 43, 0.16);
}

.hero-plans-note.is-seasonal-ad .hero-plans-note-badge {
  width: 100%;
}

.hero-plans-note.has-seasonal-plan .hero-plans-note-badge {
  animation: seasonal-plan-badge-bounce 1.35s ease-in-out infinite;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 950;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: #101010;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero-panel {
  position: relative;
  z-index: 2;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2vw, 30px);
}

.hero-panel-item {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-weight: 950;
  text-align: center;
}

.hero-panel-item:focus-visible {
  outline: 2px solid rgba(255, 97, 61, 0.72);
  outline-offset: 8px;
  border-radius: 999px;
}

.hero-panel-img {
  height: clamp(88px, 5.8vw, 108px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.hero-panel-item:hover .hero-panel-img,
.hero-panel-item:focus-within .hero-panel-img {
  transform: scale(1.15);
}

.hero-panel-item-has-benefit::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 100%;
  width: 24px;
  height: min(66vh, 560px);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-panel-item-has-benefit.is-benefit-active::before {
  pointer-events: auto;
}

.hero-benefit-card {
  --benefit-enter: translate(18px, -50%) scale(0.96);
  --benefit-open: translate(0, -50%) scale(1);
  position: absolute;
  z-index: 6;
  top: 50%;
  right: calc(100% + 24px);
  width: min(470px, calc(100vw - 220px));
  max-height: min(66vh, 560px);
  overflow-y: auto;
  padding: 18px 20px;
  border: 1px solid rgba(240, 65, 47, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 65, 47, 0.2), transparent 36%),
    rgba(8, 10, 11, 0.94);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 28px rgba(240, 65, 47, 0.18);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: var(--benefit-enter);
  transform-origin: right center;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.hero-panel-item-bag .hero-benefit-card {
  --benefit-enter: translate(18px, 0) scale(0.96);
  --benefit-open: translate(0, 0) scale(1);
  top: 0;
  transform-origin: right top;
}

.hero-panel-item-cardio .hero-benefit-card {
  --benefit-enter: translateX(18px) scale(0.96);
  --benefit-open: translateX(0) scale(1);
  top: auto;
  bottom: 0;
  transform-origin: right bottom;
}

.hero-benefit-card p {
  margin: 0;
}

.hero-benefit-card p+p {
  margin-top: 8px;
}

.hero-benefit-title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(240, 65, 47, 0.45);
  color: var(--red);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.hero-benefit-card strong {
  color: #ffffff;
  font-weight: 950;
}

.hero-benefit-card .hero-benefit-title strong {
  color: var(--red);
}

.hero-panel-item-has-benefit.is-benefit-active .hero-benefit-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: var(--benefit-open);
  animation: heroBenefitCardIn 240ms ease-out both;
}

body.hero-benefit-scroll-hidden .hero-panel-item-has-benefit.is-benefit-active::before {
  pointer-events: none;
}

body.hero-benefit-scroll-hidden .hero-panel-item-has-benefit.is-benefit-active .hero-benefit-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: var(--benefit-enter);
  animation: none;
}

@keyframes heroBenefitCardIn {
  from {
    opacity: 0;
    transform: var(--benefit-enter);
  }

  to {
    opacity: 1;
    transform: var(--benefit-open);
  }
}

.section {
  padding: clamp(64px, 10vw, 116px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.split,
.register-layout,
.social-layout,
.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.68fr) minmax(260px, 0.52fr);
  gap: clamp(22px, 4vw, 56px);
}

.intro-copy p {
  max-width: 64ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.intro-video-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(360px, 52vw, 560px);
  overflow: hidden;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  background: #050606;
  box-shadow: 0 0 24px rgba(240, 65, 47, 0.35);
  transform: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.intro-video-shell:hover {
  transform: scale(1.02);
  box-shadow: 0 0 36px rgba(240, 65, 47, 0.6);
}

.feature-video-card {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(320px, 48vw, 520px);
  overflow: hidden;
  color: var(--text);
}

.feature-video-card.is-feature-logo-fallback {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at top, rgba(240, 65, 47, 0.22), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 143, 34, 0.18), transparent 38%),
    #050606;
}

.feature-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 2;
}

.feature-video-nav-prev {
  left: 14px;
}

.feature-video-nav-next {
  right: 14px;
}

.video-description {
  width: min(100%, 320px);
  align-self: center;
  padding: 16px;
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.video-description .video-desc-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  font-weight: 900;
  line-height: 1.2;
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  box-shadow: 0 18px 36px rgba(240, 65, 47, 0.28);
  color: #000000;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: none;
}

.video-desc-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.feature-video-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 14px;
  margin-top: 0;
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.82), rgba(5, 6, 6, 0.98));
}

.feature-video-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
}

.feature-video-dot.is-active {
  background: var(--red);
  box-shadow: 0 0 12px rgba(240, 65, 47, 0.42);
}

.feature-video-card iframe,
.feature-video-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  object-fit: cover;
}

.feature-video-card.is-feature-logo-fallback img {
  width: min(82%, 440px);
  height: auto;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.48));
}

.feature-video-card .instagram-card {
  min-height: inherit;
}

.intro-band {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(240, 65, 47, 0.15), transparent 36%),
    var(--surface);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.feature-grid,
.plans-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid {
  align-items: start;
}

.feature-card,
.plan-card,
.gallery-card,
.lead-form,
.modal-card,
.admin-shell,
.loading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.feature-card,
.plan-card,
.loading-card {
  padding: 22px;
}

.feature-number {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--steel);
  font-weight: 950;
}

.plans-section {
  background:
    linear-gradient(180deg, rgba(68, 169, 189, 0.09), transparent 35%),
    #0d1011;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card-body {
  padding-right: 94px;
}

.plan-card-quantity-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 12, 13, 0.76);
  color: #f7f3eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.plan-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 107, 0.98), rgba(255, 158, 52, 0.96));
  color: #26170b;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(255, 166, 43, 0.3);
}

.plan-card-seasonal {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 186, 64, 0.88);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 112, 0.34), transparent 34%),
    linear-gradient(160deg, rgba(255, 172, 48, 0.18), rgba(240, 65, 47, 0.08) 52%, rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 60px rgba(240, 138, 50, 0.28), 0 0 0 1px rgba(255, 214, 112, 0.14) inset;
}

.plan-card-seasonal::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -30%;
  width: 68%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0;
  transform: translate3d(-170%, 0, 0) rotate(18deg);
  animation: seasonalPlanShine 3.1s ease-out infinite;
  pointer-events: none;
}

.plan-card-seasonal .eyebrow,
.plan-card-seasonal h3 {
  color: #fff3cf;
}

.plan-card-seasonal .plan-price strong {
  color: #ffd978;
  text-shadow: 0 0 18px rgba(255, 200, 88, 0.22);
}

.plan-card-seasonal .button-primary {
  box-shadow: 0 16px 34px rgba(240, 65, 47, 0.34);
}

@keyframes seasonalPlanShine {
  0% {
    opacity: 0;
    transform: translate3d(-170%, 0, 0) rotate(18deg);
  }

  18% {
    opacity: 0.42;
  }

  52% {
    opacity: 0.72;
  }

  82% {
    opacity: 0.24;
  }

  100% {
    opacity: 0;
    transform: translate3d(250%, 0, 0) rotate(18deg);
  }
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 16px 0 20px;
}

.plan-price strong {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1;
}

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

.gallery-section {
  background:
    linear-gradient(180deg, transparent, rgba(240, 65, 47, 0.08)),
    var(--bg);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.gallery-heading {
  width: min(760px, 100%);
  margin-bottom: 0;
  align-self: center;
}

.gallery-title {
  max-width: 16ch;
  text-wrap: balance;
}

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #0e1112;
}

.gallery-media {
  width: 100%;
  height: clamp(190px, 22vw, 260px);
  overflow: hidden;
  background: #050606;
  object-fit: cover;
}

.gallery-card-instagram .gallery-media,
.gallery-card-video .gallery-media {
  height: clamp(190px, 22vw, 260px);
  min-height: 0;
  border: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(240, 65, 47, 0.35);
  transform: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.gallery-card-instagram:hover .gallery-media,
.gallery-card-video:hover .gallery-media {
  transform: scale(1.02);
  box-shadow: 0 0 36px rgba(240, 65, 47, 0.6);
}

.gallery-media>img.gallery-media {
  height: 100%;
  aspect-ratio: auto;
}

.gallery-card iframe,
.native-video {
  width: 100%;
  height: 100%;
  border: 0;
}

.native-video {
  background: #050606;
  object-fit: cover;
}

.gallery-body {
  padding: 16px;
}

.gallery-body h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.external-link,
.instagram-card {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 22px;
  color: var(--text);
  text-align: center;
}

.instagram-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-content: center;
  gap: 10px;
  background: #080a0b;
}

.instagram-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 11, 0.2), rgba(8, 10, 11, 0.84)),
    linear-gradient(135deg, rgba(240, 65, 47, 0.22), rgba(68, 169, 189, 0.14));
}

.instagram-thumb {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.instagram-card span,
.instagram-card strong,
.instagram-card em {
  position: relative;
}

.instagram-card span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.instagram-card strong {
  max-width: 22ch;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.12;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.instagram-card em {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  padding: 7px 12px;
  color: var(--text);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.register-section {
  background:
    linear-gradient(135deg, rgba(240, 65, 47, 0.18), transparent 36%),
    var(--surface);
}

.lead-form,
.modal-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

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

.admin-form input[readonly] {
  border-style: dashed;
  opacity: 0.68;
  cursor: not-allowed;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240, 65, 47, 0.76);
  box-shadow: 0 0 0 3px rgba(240, 65, 47, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--steel);
  font-weight: 850;
}

.contact-strip {
  margin-top: 28px;
  color: var(--muted);
  font-weight: 850;
}

.social-section {
  position: relative;
  padding-block: 52px;
  overflow: hidden;
}

.social-section::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -8%;
  width: clamp(180px, 28vw, 360px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 65, 47, 0.26), rgba(240, 65, 47, 0));
  filter: blur(8px);
  animation: social-orb-drift 8s ease-in-out infinite;
  pointer-events: none;
}

.social-section::after {
  content: "";
  position: absolute;
  inset: auto -6% -34% auto;
  width: clamp(220px, 32vw, 420px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 143, 34, 0.22), rgba(255, 143, 34, 0));
  filter: blur(12px);
  animation: social-orb-drift 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.social-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.social-heading {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.social-eyebrow {
  margin: 0;
  color: #ffd3b4;
}

.social-title {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff6eb;
  text-shadow: 0 0 22px rgba(240, 65, 47, 0.26);
  animation: social-title-pulse 3.2s ease-in-out infinite;
}

.social-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 65, 47, 0.12), rgba(240, 65, 47, 0.95), rgba(255, 143, 34, 0.95), rgba(240, 65, 47, 0.12));
  background-size: 220% 100%;
  box-shadow: 0 0 26px rgba(240, 65, 47, 0.34);
  animation: social-title-shine 2.9s linear infinite;
}

.social-text {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: #f6d6c2;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 900;
}

.social-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent, #ff6b3d);
  flex: 0 0 18px;
}

@keyframes social-title-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 22px rgba(240, 65, 47, 0.26);
  }

  50% {
    transform: translateY(-3px) scale(1.015);
    text-shadow: 0 0 36px rgba(255, 143, 34, 0.36);
  }
}

@keyframes social-title-shine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes social-orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(16px, -10px, 0) scale(1.08);
  }
}

.social-link-icon svg {
  width: 100%;
  height: 100%;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  background: var(--surface-2);
}

.modal-card-wide {
  width: min(1080px, 100%);
}

.lead-manage-card {
  width: min(680px, 100%);
  overflow: auto;
}

.lead-manage-card .lead-manage-layout {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.content-modal {
  background:
    radial-gradient(circle at 50% 32%, rgba(240, 65, 47, 0.16), transparent 36%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

[data-client-access-modal],
[data-login-modal] {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: none;
}

[data-client-portal-modal] {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: none;
}

[data-simulated-checkout-modal] {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: none;
}

[data-lead-manage-modal] {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: none;
}

.modal-heading {
  padding-right: 48px;
}

.modal-plans-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
}

.modal-plans-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.modal-plans-grid .plan-card {
  flex: 0 0 calc((100% - 18px) / 2);
  min-height: 340px;
  scroll-snap-align: start;
}

.modal-plans-grid::-webkit-scrollbar {
  height: 10px;
}

.modal-plans-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(240, 65, 47, 0.92), rgba(240, 138, 50, 0.92));
}

.modal-plans-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 700px) {
  .modal-plans-grid .plan-card {
    flex-basis: min(320px, calc(100vw - 72px));
  }

  .lead-filters {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .lead-weekday-filter {
    order: -1;
    min-width: 0;
    width: 100%;
  }

  .lead-filter-chip {
    width: 100%;
    justify-content: space-between;
  }
}

.register-modal-card {
  width: min(980px, 100%);
}

.modal-register-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(20px, 4vw, 44px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.confirm-modal {
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 65, 47, 0.2), transparent 34%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.confirm-card {
  width: min(460px, 100%);
  border-color: rgba(240, 65, 47, 0.38);
  background:
    linear-gradient(145deg, rgba(25, 18, 16, 0.98), rgba(12, 15, 16, 0.98)),
    var(--surface-2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.confirm-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.confirm-copy {
  color: var(--muted);
  font-weight: 780;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.button-danger {
  border-color: rgba(240, 65, 47, 0.72);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--text);
}

.admin-feedback-modal {
  --feedback-accent: var(--red);
  --feedback-glow: rgba(240, 65, 47, 0.24);
  z-index: 90;
  background:
    radial-gradient(circle at 50% 38%, var(--feedback-glow), transparent 34%),
    rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(14px);
}

.admin-feedback-modal[data-tone="success"] {
  --feedback-accent: var(--steel);
  --feedback-glow: rgba(68, 169, 189, 0.24);
}

.feedback-card {
  position: relative;
  isolation: isolate;
  width: min(500px, 100%);
  overflow: hidden;
  justify-items: center;
  border-color: var(--feedback-accent);
  background:
    linear-gradient(150deg, rgba(28, 31, 32, 0.99), rgba(8, 11, 12, 0.99)),
    var(--surface-2);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.64),
    0 0 46px var(--feedback-glow);
  text-align: center;
}

.feedback-card::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 999px;
  background: var(--feedback-accent);
  box-shadow: 0 0 26px var(--feedback-accent);
  content: '';
}

.feedback-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--feedback-accent);
  border-radius: 50%;
  background: var(--feedback-glow);
  box-shadow: 0 0 32px var(--feedback-glow);
  color: var(--feedback-accent);
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.feedback-card .eyebrow,
.feedback-card h2,
.feedback-copy {
  margin: 0;
}

.feedback-card h2 {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.05;
}

.feedback-copy {
  max-width: 42ch;
  color: var(--muted);
  font-weight: 750;
}

.feedback-actions {
  display: grid;
  width: 100%;
  margin-top: 8px;
}

.feedback-actions-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-feedback-modal[data-tone="success"] .feedback-actions .button {
  border-color: rgba(68, 169, 189, 0.76);
  background: linear-gradient(135deg, #2f8494, var(--steel));
  color: #071012;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(68, 169, 189, 0.48);
  border-radius: var(--radius);
  background: #0d171a;
  color: var(--text);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.toast.is-centered {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: max-content;
  max-width: min(420px, calc(100vw - 36px));
  text-align: center;
  transform: translate(-50%, -50%);
}

.admin-panel {
  padding: 110px clamp(18px, 5vw, 72px) 72px;
  background: #080a0b;
}

.admin-modal {
  place-items: start center;
  padding-block: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 50% 12%, rgba(68, 169, 189, 0.16), transparent 30%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.admin-modal .admin-panel {
  width: min(1540px, 100%);
  padding: 0;
  background: transparent;
}

.admin-modal .admin-shell {
  position: relative;
  width: 100%;
  max-height: calc(100svh - 48px);
  overflow: auto;
}

.admin-modal .admin-header {
  padding-right: 48px;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs button {
  border-color: var(--line);
}

.admin-tabs button.is-active {
  background: var(--red);
  color: #111;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: grid;
  gap: 18px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-panel-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.admin-section-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.plan-list-panel,
.plan-form-panel {
  display: grid;
  gap: 18px;
}

.plan-table-wrap {
  overscroll-behavior-x: contain;
}

.plan-admin-table {
  min-width: 1180px;
}

.plan-admin-table th {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.035);
}

.plan-admin-table tbody tr {
  transition: background 160ms ease;
}

.plan-admin-table tbody tr:hover {
  background: rgba(68, 169, 189, 0.06);
}

.plan-admin-table td {
  max-width: 240px;
}

.plan-admin-table code {
  color: var(--text);
  font-weight: 850;
}

.system-id-code {
  display: inline-flex;
  border: 1px solid rgba(68, 169, 189, 0.34);
  border-radius: 999px;
  background: rgba(68, 169, 189, 0.1);
  padding: 5px 9px;
  color: var(--steel) !important;
  letter-spacing: 0.08em;
}

.table-stack {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}


.table-empty {
  padding-block: 34px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.admin-form.plan-form {
  grid-template-columns: 1fr;
  gap: 18px;
  border: 0;
  background: transparent;
  padding: 0;
}

.plan-form-section {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(16px, 2.5vw, 22px);
}

.plan-form-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.plan-form-section-heading h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.language-badge {
  display: grid;
  min-width: 38px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(68, 169, 189, 0.46);
  border-radius: 999px;
  background: rgba(68, 169, 189, 0.1);
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.plan-form-grid {
  display: grid;
  gap: 14px;
}

.plan-general-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.class-schedule-settings {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

@keyframes nav-client-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(255, 107, 61, 0.18);
  }
  45% {
    transform: scale(1.045);
    box-shadow: 0 18px 38px rgba(255, 107, 61, 0.32);
  }
  70% {
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(255, 107, 61, 0.24);
  }
  100% {
    transform: scale(1);
  }
}

@property --client-action-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes client-action-border-run {
  from {
    --client-action-angle: 0deg;
  }
  to {
    --client-action-angle: 360deg;
  }
}

.admin-form.class-schedule-form {
  display: block;
  padding: 0 24px 24px 24px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.admin-view[data-admin-view="schedule"],
.admin-view[data-admin-view="schedule"] .admin-panel-section {
  min-width: 0;
  max-width: 100%;
}

.schedule-board-horizontal {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.schedule-days-row {
  display: flex;
  gap: 10px;
  width: max-content;
  min-width: 100%;
}

.admin-section-heading .class-schedule-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.class-schedule-heading-row {
  align-items: flex-end;
}

.class-schedule-header-fields {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-left: auto;
}

.class-schedule-header-fields .narrow-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-schedule-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
}

.class-schedule-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
  flex-wrap: wrap;
}

.class-schedule-general {
  display: flex;
  gap: 16px;
}

.narrow-control input {
  width: 140px;
}

.schedule-day-card {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-sizing: border-box;
}

.schedule-day-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.schedule-board-modal-card {
  width: 90vw;
  max-width: 480px;
  overflow-x: hidden !important;
}

.schedule-day-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
}

.schedule-day-windows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-window-row {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.schedule-window-time {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.schedule-window-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(255, 77, 109, 0.28);
}

.schedule-window-row button {
  font-size: 0.72rem;
  padding: 4px 8px;
  min-height: 24px;
}

.custom-time-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-time-picker select {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

select option {
  background: var(--surface-2, #1c1f20);
  color: var(--text, #ffffff);
}

.custom-time-picker select:focus {
  border-color: var(--red);
}

.custom-time-picker span {
  font-weight: 900;
  color: var(--muted);
}


.client-access-card {
  width: min(520px, calc(100vw - 32px));
}

.client-access-card form {
  display: grid;
  gap: 14px;
}

.client-access-card form > .button {
  margin-top: 6px;
  justify-self: center;
  width: auto;
  min-width: 180px;
}

.simulated-checkout-card {
  width: min(560px, calc(100vw - 32px));
}

.simulated-checkout-plan-shell {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 65, 47, 0.14), rgba(255, 166, 43, 0.06));
}

.simulated-checkout-plan-shell strong {
  color: var(--text);
  font-size: 1rem;
}

.simulated-checkout-plan-shell span {
  color: var(--muted);
}

.simulated-checkout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .simulated-checkout-grid {
    grid-template-columns: 1fr;
  }
}

.client-access-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-access-card [data-client-login-status],
.client-access-card [data-client-setup-status] {
  display: none;
}

.client-password-setup,
.client-portal-card,
.client-portal-actions,
.client-action-form {
  display: grid;
  gap: 18px;
}

.client-action-form > .button {
  justify-self: center;
  width: auto;
  min-width: 180px;
}

.client-action-counter {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(120, 227, 255, 0.18);
  border-radius: 999px;
  background: rgba(70, 196, 227, 0.12);
  color: #dffbff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.client-action-counter.is-limit {
  border-color: rgba(255, 128, 77, 0.28);
  background: rgba(255, 107, 61, 0.14);
  color: #ffe1d4;
}

.client-action-form .custom-time-picker {
  width: auto;
  justify-self: start;
}

.client-action-form .custom-time-picker select {
  flex: 0 1 auto;
  width: min(260px, 100%);
}

.client-portal-card > section {
  min-width: 0;
}

.client-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-portal-header > div {
  min-width: 0;
}

.client-portal-header h2 {
  font-size: clamp(2.1rem, 4.1vw, 3.1rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.client-portal-header [data-client-logout] {
  min-height: 44px;
  padding: 10px 18px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.94), rgba(255, 166, 43, 0.9));
  color: #16110f;
  box-shadow: 0 14px 30px rgba(255, 107, 61, 0.2);
}

.client-portal-header [data-client-logout]:hover,
.client-portal-header [data-client-logout]:focus-visible {
  border-color: rgba(255, 226, 200, 0.55);
  background: linear-gradient(135deg, rgba(255, 128, 77, 1), rgba(255, 189, 92, 0.96));
  box-shadow: 0 18px 34px rgba(255, 107, 61, 0.28);
}

.client-portal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-portal-summary article,
.client-plan-card,
.client-portal-actions {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  padding: 14px;
}

.client-portal-summary article {
  display: grid;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
}

.client-portal-summary article span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.client-plan-card span {
  color: var(--muted);
  font-size: .8rem;
}

.client-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}

.client-section-header h3 {
  margin: 0;
}

.client-history-export {
  min-height: 44px;
  margin-left: auto;
  padding: 10px 18px;
  border-color: rgba(120, 227, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(70, 196, 227, 0.96), rgba(123, 235, 197, 0.94));
  color: #0d1719;
  box-shadow: 0 16px 30px rgba(70, 196, 227, 0.22);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.client-history-export:hover,
.client-history-export:focus-visible {
  border-color: rgba(216, 255, 251, 0.62);
  background: linear-gradient(135deg, rgba(89, 211, 241, 1), rgba(145, 245, 213, 0.98));
  box-shadow: 0 20px 34px rgba(70, 196, 227, 0.3);
}

.client-summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.client-summary-chip.is-plan-completed {
  border-color: rgba(68, 169, 189, 0.34);
  background: rgba(68, 169, 189, 0.16);
  color: #baf5ff;
}

.client-summary-chip.is-plan-active,
.client-summary-chip.is-plan-class-scheduled {
  border-color: rgba(90, 190, 120, 0.34);
  background: rgba(90, 190, 120, 0.15);
  color: #c9ffd8;
}

.client-summary-chip.is-plan-expired,
.client-summary-chip.is-plan-inactive {
  border-color: rgba(240, 65, 47, 0.34);
  background: rgba(240, 65, 47, 0.14);
  color: #ffd5cf;
}

.client-summary-chip.is-class-scheduled,
.client-summary-chip.is-plan-pending {
  border-color: rgba(243, 177, 67, 0.34);
  background: rgba(243, 177, 67, 0.14);
  color: #ffe7bb;
}

.client-portal-actions {
  border: 1px solid transparent;
  background:
    radial-gradient(circle at top right, rgba(255, 166, 43, 0.12), transparent 30%),
    radial-gradient(circle at left center, rgba(70, 196, 227, 0.1), transparent 32%),
    linear-gradient(rgba(18, 24, 28, 0.94), rgba(20, 27, 31, 0.92)) padding-box,
    conic-gradient(
      from var(--client-action-angle),
      rgba(255, 107, 61, 0.18) 0deg,
      rgba(255, 107, 61, 0.98) 52deg,
      rgba(255, 189, 92, 0.82) 112deg,
      rgba(70, 196, 227, 0.92) 208deg,
      rgba(123, 235, 197, 0.76) 280deg,
      rgba(255, 107, 61, 0.18) 360deg
    ) border-box;
  box-shadow:
    0 0 0 1px rgba(255, 136, 72, 0.1),
    0 10px 28px rgba(255, 107, 61, 0.12),
    0 0 22px rgba(70, 196, 227, 0.08);
}

.client-portal-actions h3 {
  margin: 0;
}

.client-action-copy {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.client-plans-rail {
  position: relative;
  display: grid;
  justify-content: center;
  width: 100%;
}

.client-plans-scroll {
  position: relative;
  width: min(100%, 280px);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.client-plans-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.client-plans-hint {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
  cursor: pointer;
}

.client-plans-hint::before {
  position: absolute;
  inset: -24px;
  border-radius: 999px;
  content: '';
}

.client-plans-hint span {
  display: block;
  width: 14px;
  height: 14px;
  border-top: 3px solid rgba(255, 255, 255, 0.9);
  border-right: 3px solid rgba(255, 255, 255, 0.9);
}

.client-plans-hint.is-right {
  right: 0;
  left: auto;
}

.client-plans-hint.is-left {
  left: 0;
}

.client-plans-hint.is-right span {
  transform: rotate(45deg);
}

.client-plans-hint.is-left span {
  transform: rotate(-135deg);
}

.client-plans-rail.is-scrollable:not(.is-at-end) .client-plans-hint.is-right,
.client-plans-rail.is-scrollable.is-offset .client-plans-hint.is-left {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.client-plans-rail.is-at-end .client-plans-hint.is-right,
.client-plans-rail:not(.is-offset) .client-plans-hint.is-left {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.client-plans-rail.is-scrollable:not(.is-at-end)::before,
.client-plans-rail.is-scrollable.is-offset::after {
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 34px;
  z-index: 1;
  pointer-events: none;
  content: '';
}

.client-plans-rail.is-scrollable:not(.is-at-end)::before {
  right: 0;
  background: linear-gradient(90deg, rgba(12, 15, 16, 0), rgba(12, 15, 16, 0.94) 72%);
}

.client-plans-rail.is-scrollable.is-offset::after {
  left: 0;
  background: linear-gradient(270deg, rgba(12, 15, 16, 0), rgba(12, 15, 16, 0.94) 72%);
}

.schedule-modal-title {
  margin-bottom: 24px;
}

.client-plans-rail.is-at-end::before,
.client-plans-rail:not(.is-offset)::after {
  content: none;
}

.client-plans-rail.is-dragging .client-plans-hint {
  opacity: 0;
}

.client-plans-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  min-width: 0;
}

@media (min-width: 900px) {
  .client-plans-scroll {
    width: min(100%, 572px);
  }
}

.client-plan-card {
  position: relative;
  width: 280px;
  min-width: 280px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.client-plan-card-quantity-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 12, 13, 0.78);
  color: #f7f3eb;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.client-plan-card .button {
  justify-self: center;
  width: auto;
}

.client-plan-card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 107, 0.98), rgba(255, 158, 52, 0.96));
  color: #26170b;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(255, 166, 43, 0.26);
}

.client-plan-card-seasonal .client-plan-card-tag {
  animation: clientSeasonalPlanBadge 2.6s ease-in-out infinite;
}

.client-plan-card-seasonal {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 186, 64, 0.88);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 112, 0.32), transparent 34%),
    linear-gradient(160deg, rgba(255, 172, 48, 0.16), rgba(240, 65, 47, 0.07) 52%, rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 54px rgba(240, 138, 50, 0.18), 0 0 0 1px rgba(255, 214, 112, 0.12) inset;
  will-change: transform, box-shadow;
  animation: clientSeasonalPlanPulse 3.4s ease-in-out infinite;
}

.client-plan-card-seasonal::before {
  content: '';
  position: absolute;
  inset: -24% auto auto -34%;
  width: 72%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  opacity: 0;
  transform: translate3d(-165%, 0, 0) rotate(18deg);
  animation: clientSeasonalPlanShine 4.4s ease-in-out infinite;
  pointer-events: none;
}

.client-plan-card-seasonal strong {
  color: #fff3cf;
}

.client-plan-card-seasonal span {
  color: rgba(255, 237, 194, 0.86);
}

.client-plan-card-seasonal .button-primary {
  box-shadow: 0 16px 34px rgba(240, 65, 47, 0.32);
}

@keyframes clientSeasonalPlanPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 20px 54px rgba(240, 138, 50, 0.18), 0 0 0 1px rgba(255, 214, 112, 0.12) inset;
  }

  50% {
    transform: translate3d(0, -5px, 0) scale(1.016);
    box-shadow: 0 28px 64px rgba(240, 138, 50, 0.28), 0 0 0 1px rgba(255, 214, 112, 0.18) inset;
  }
}

@keyframes clientSeasonalPlanShine {
  0% {
    opacity: 0;
    transform: translate3d(-165%, 0, 0) rotate(18deg);
  }

  14% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.82;
  }

  86% {
    opacity: 0.28;
  }

  100% {
    opacity: 0;
    transform: translate3d(235%, 0, 0) rotate(18deg);
  }
}

@keyframes clientSeasonalPlanBadge {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 10px 24px rgba(255, 166, 43, 0.26);
  }

  50% {
    transform: translate3d(0, -2px, 0) scale(1.04);
    box-shadow: 0 14px 28px rgba(255, 166, 43, 0.34);
  }
}

@keyframes client-plan-scroll-hint {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.client-plans-hint.is-right,
.client-plans-hint.is-left,
.client-plans-hint.is-right span,
.client-plans-hint.is-left span {
  animation: none;
}

@keyframes client-plan-scroll-hint-right {
  0%,
  100% {
    transform: translateX(0) rotate(45deg);
  }

  50% {
    transform: translateX(7px) rotate(45deg);
  }
}

@keyframes client-plan-scroll-hint-left {
  0%,
  100% {
    transform: translateX(0) rotate(-135deg);
  }

  50% {
    transform: translateX(-7px) rotate(-135deg);
    opacity: 1;
  }
}

@media (max-width: 720px) {

  .class-schedule-general,
  .client-portal-summary {
    grid-template-columns: 1fr;
  }

  .schedule-days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-window-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .schedule-window-row input {
    width: auto;
    flex: 1;
  }
}


.plan-general-grid .plan-field-wide {
  grid-column: span 2;
}

.plan-active-field {
  align-self: end;
}

.plan-schedule-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(68, 169, 189, 0.3);
  border-radius: var(--radius);
  background: rgba(68, 169, 189, 0.06);
}

.plan-schedule-fields[hidden],
.plan-active-field[hidden] {
  display: none;
}

.plan-schedule-summary {
  display: grid;
  min-width: 190px;
  gap: 4px;
}

.plan-schedule-summary strong {
  color: var(--text);
}

.plan-schedule-summary span,
.plan-schedule-summary small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.plan-schedule-summary small {
  color: var(--steel);
  font-weight: 900;
}

.plan-language-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-language-section:first-child {
  border-color: rgba(68, 169, 189, 0.28);
}

.plan-language-section:last-child {
  border-color: rgba(240, 65, 47, 0.28);
}

.plan-language-section:last-child .language-badge {
  border-color: rgba(240, 65, 47, 0.46);
  background: rgba(240, 65, 47, 0.1);
  color: #ff8f83;
}

.plan-language-grid {
  grid-template-columns: 1fr;
}

.plan-form label textarea {
  min-height: 150px;
  grid-column: auto;
}

.plan-form-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.plan-active-cell {
  text-align: center;
  vertical-align: middle;
}

.plan-active-toggle {
  appearance: none;
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin: 0;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.plan-active-toggle::before {
  width: 10px;
  height: 5px;
  border-bottom: 3px solid #061014;
  border-left: 3px solid #061014;
  content: '';
  transform: rotate(-45deg) scale(0);
  transition: transform 140ms ease;
}

.plan-active-toggle:checked {
  border-color: var(--steel);
  background: var(--steel);
  box-shadow: 0 0 0 3px rgba(68, 169, 189, 0.14);
}

.plan-active-toggle:checked::before {
  transform: rotate(-45deg) scale(1);
}

.plan-active-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.plan-active-toggle:disabled {
  cursor: wait;
  opacity: 0.55;
}

.plan-active-toggle[data-schedule-locked="true"]:disabled {
  cursor: not-allowed;
}

.plan-row-actions {
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.admin-item-actions .plan-action-icon {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.plan-action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-item-actions .plan-action-icon.is-edit {
  border-color: rgba(68, 169, 189, 0.38);
  background: rgba(68, 169, 189, 0.1);
  color: var(--steel);
}

.admin-item-actions .plan-action-icon.is-delete {
  border-color: rgba(240, 65, 47, 0.38);
  background: rgba(240, 65, 47, 0.1);
  color: #ff8f83;
}

.admin-item-actions .plan-action-icon:hover {
  transform: translateY(-1px);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.admin-field-help {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.settings-form {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.label-with-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-help {
  position: relative;
  margin: 0;
}

.field-help summary {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.field-help summary::-webkit-details-marker {
  display: none;
}

.field-help[open] summary,
.field-help summary:hover,
.field-help summary:focus-visible {
  color: var(--text);
  border-color: rgba(255, 107, 61, 0.45);
}

.field-help-copy {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, 72vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  font-size: 0.8rem;
  line-height: 1.45;
  z-index: 20;
}

.admin-form .full-width {
  grid-column: 1 / -1;
}

.admin-form .form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}

/* Fix: schedule form children must span all 4 parent grid columns */
.class-schedule-form>.class-schedule-general,
.class-schedule-form>.schedule-days-grid,
.class-schedule-form>.form-actions {
  grid-column: 1 / -1;
}

.admin-form textarea {
  grid-column: span 2;
}

.check-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.media-toggle-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.media-featured-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.settings-toggle-row {
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
}

.settings-toggle-row span {
  display: grid;
  gap: 4px;
}

.settings-toggle-row strong {
  color: var(--text);
  font-size: 0.95rem;
}

.settings-toggle-row small {
  color: var(--muted);
  line-height: 1.45;
}

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

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-item-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 8px 10px;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.admin-subtabs button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
}

.admin-subtabs button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.admin-subtabs button.is-active {
  border-color: var(--steel);
  background: rgba(68, 169, 189, 0.15);
  color: var(--steel);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.pagination-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 4px 8px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
}

.pagination-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text);
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-controls button.is-active {
  border-color: var(--steel);
  background: var(--steel);
  color: #061014;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0 10px;
}

.schedule-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.days-remaining {
  display: inline-block;
  align-self: start;
  border-radius: 4px;
  background: rgba(68, 169, 189, 0.12);
  padding: 2px 6px;
  color: var(--steel);
  font-size: 0.74rem;
  font-weight: 900;
  margin-top: 2px;
}

.days-remaining.warning {
  background: rgba(240, 65, 47, 0.12);
  color: var(--red);
}

.status-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.status-badge.is-planScheduleCurrent,
.status-badge.is-active {
  background: rgba(68, 169, 189, 0.15);
  color: var(--steel);
}

.status-badge.is-planSchedulePending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-badge.is-planScheduleExpired,
.status-badge.is-planScheduleInactive,
.status-badge.is-hidden {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.purchased-plan-badge {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.purchased-plan-badge.has-plan {
  display: inline-block;
  border-radius: 4px;
  background: rgba(240, 65, 47, 0.15);
  padding: 4px 8px;
  color: var(--red);
  font-size: 0.8rem;
}

.plan-hired-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.plan-hired-badge.has-hires {
  background: rgba(68, 169, 189, 0.15);
  color: var(--steel);
}

.leads-stats-banner {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-end;
}

.lead-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lead-weekday-filter {
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lead-weekday-filter span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-weekday-filter select {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.lead-weekday-filter select:focus {
  border-color: rgba(68, 169, 189, 0.48);
}

.lead-weekday-filter select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  color: var(--muted);
}

.lead-weekday-filter.is-active {
  border-color: rgba(240, 65, 47, 0.44);
  background: linear-gradient(135deg, rgba(240, 65, 47, 0.16), rgba(255, 166, 43, 0.09));
  box-shadow: 0 0 0 1px rgba(240, 65, 47, 0.14), 0 10px 22px rgba(240, 65, 47, 0.12), 0 0 14px rgba(255, 166, 43, 0.12);
}

.lead-weekday-filter.is-active span {
  color: #ffd7c9;
}

.lead-weekday-filter.is-active select {
  border-color: rgba(255, 201, 178, 0.4);
  background: rgba(35, 14, 10, 0.46);
}

.lead-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 850;
}

.lead-filter-chip:hover,
.lead-filter-chip:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.lead-filter-chip.is-active {
  border-color: rgba(240, 65, 47, 0.5);
  background: linear-gradient(135deg, rgba(240, 65, 47, 0.22), rgba(255, 166, 43, 0.12));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(240, 65, 47, 0.12), 0 10px 20px rgba(240, 65, 47, 0.12), 0 0 12px rgba(255, 166, 43, 0.1);
}

.lead-filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 8px;
  border-radius: 999px;
  background: rgba(68, 169, 189, 0.16);
  color: #c8f7ff;
  font-size: 0.82rem;
  font-weight: 950;
}

.lead-filter-chip.is-active .lead-filter-count {
  background: rgba(255, 244, 231, 0.92);
  color: #28150f;
}

.leads-stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.leads-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.leads-stat-chip.is-highlight {
  border-color: rgba(240, 65, 47, 0.38);
  background: linear-gradient(135deg, rgba(240, 65, 47, 0.12), rgba(255, 166, 43, 0.06));
}

.leads-stat-chip.is-highlight strong {
  color: var(--red);
}

.leads-stat-chip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.leads-stat-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 8px;
  border-radius: 999px;
  background: rgba(68, 169, 189, 0.16);
  color: #c8f7ff;
  font-size: 0.9rem;
  font-weight: 900;
}

.leads-stat-chip.is-highlight strong {
  background: rgba(255, 244, 231, 0.92);
  color: #28150f;
}

.lead-row-status-inactive {
  opacity: 0.65;
}

.lead-row-status-banned {
  opacity: 0.5;
  background: rgba(240, 65, 47, 0.03) !important;
}

.lead-name-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.leads-admin-table {
  min-width: 1700px;
}

.leads-table-wrap tbody tr {
  cursor: grab;
}

.leads-table-wrap.is-dragging,
.leads-table-wrap.is-dragging tbody tr {
  cursor: grabbing;
}

.leads-table-wrap.is-dragging {
  user-select: none;
}

.leads-admin-table th,
.leads-admin-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.leads-admin-table th:nth-child(1),
.leads-admin-table td:nth-child(1),
.leads-admin-table th:nth-child(6),
.leads-admin-table td:nth-child(6),
.leads-admin-table th:nth-child(7),
.leads-admin-table td:nth-child(7),
.leads-admin-table th:nth-child(8),
.leads-admin-table td:nth-child(8) {
  min-width: 190px;
}

.leads-admin-table th:nth-child(2),
.leads-admin-table td:nth-child(2) {
  min-width: 165px;
}

.leads-admin-table th:nth-child(3),
.leads-admin-table td:nth-child(3) {
  min-width: 260px;
}

.leads-admin-table th:nth-child(5),
.leads-admin-table td:nth-child(5) {
  min-width: 240px;
}

.lead-follow-up-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 155px;
  border: 1px solid rgba(68, 169, 189, 0.42);
  border-radius: 9px;
  background: rgba(68, 169, 189, 0.12);
  color: var(--text);
  padding: 7px 11px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
}

.lead-follow-up-action:hover,
.lead-follow-up-action:focus-visible {
  border-color: var(--steel);
  background: rgba(68, 169, 189, 0.22);
}

.lead-follow-up-action.is-called-no-class {
  border-color: rgba(243, 177, 67, 0.48);
  background: rgba(243, 177, 67, 0.12);
}

.lead-follow-up-action.is-class-scheduled {
  border-color: rgba(164, 119, 255, 0.48);
  background: rgba(164, 119, 255, 0.12);
}

.lead-follow-up-action.is-plan-class-scheduled {
  border-color: rgba(90, 190, 120, 0.58);
  background: rgba(90, 190, 120, 0.14);
}

.lead-follow-up-empty {
  color: var(--muted);
}

.lifecycle-choice-actions,
.lifecycle-date-form {
  display: grid;
  gap: 12px;
}

.lifecycle-readable-date {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(68, 169, 189, 0.34);
  border-radius: var(--radius);
  background: rgba(68, 169, 189, 0.08);
  padding: 14px;
}

.lifecycle-readable-date span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lifecycle-readable-date strong {
  color: var(--steel);
  font-size: 1rem;
}

.lead-name-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.lead-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.lead-meta-chip.is-id {
  color: var(--steel);
}

.lead-meta-chip.is-language {
  color: #ffd17a;
}

.lead-status-select {
  min-width: 126px;
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.3);
  padding: 7px 30px 7px 10px;
  border-radius: 8px;
  background: #07090a;
  color: #f4f7f8;
  color-scheme: dark;
  font-size: 0.8rem;
  font-weight: 850;
}

.lead-status-select option {
  background: #07090a;
  color: #f4f7f8;
}

.lead-status-select.is-inactive {
  border-color: rgba(255, 255, 255, 0.24);
}

.lead-status-select.is-banned {
  border-color: rgba(240, 65, 47, 0.58);
  color: #ff8a7d;
}

.lead-status-reason-form {
  display: grid;
  gap: 18px;
}

.lead-status-reason-form textarea {
  min-height: 112px;
}

/* Modal Wide */
.modal-card-wide {
  max-width: 860px;
  width: 95%;
}

.modal-card-wide.lead-manage-card {
  width: min(760px, calc(100vw - 36px));
  max-width: min(760px, calc(100vw - 36px));
}

.modal-card-wide.lead-manage-card[data-active-view="hire"] {
  width: min(500px, calc(100vw - 36px));
  max-width: min(500px, calc(100vw - 36px));
}

.modal-card-wide.lead-manage-card[data-active-view="edit"],
.modal-card-wide.lead-manage-card[data-active-view="call"],
.modal-card-wide.lead-manage-card[data-active-view="first-class"],
.modal-card-wide.lead-manage-card[data-active-view="plan-class"] {
  width: min(680px, calc(100vw - 36px));
  max-width: min(680px, calc(100vw - 36px));
}

.modal-card-wide.lead-manage-card[data-active-view="hire"] .lead-manage-header {
  width: min(430px, 100%);
  margin: 0 auto;
  padding-bottom: 12px;
}

.modal-card-wide.lead-manage-card[data-active-view="hire"] #lead-manage-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 0.95;
}

.modal-card-wide.lead-manage-card[data-active-view="hire"] .lead-info-subtitle {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

.lead-manage-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-manage-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.lead-info-subtitle {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-call-time-value {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(68, 169, 189, 0.34);
  border-radius: 8px;
  background: rgba(68, 169, 189, 0.08);
  color: var(--text);
  padding: 7px 10px;
  white-space: nowrap;
}

.lead-process-date {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.lead-process-date small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-call-time-hidden {
  color: var(--muted);
}

.operational-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 230px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
}

.operational-status-badge.is-pending-call {
  background: rgba(243, 177, 67, 0.18);
  color: #ffd17a;
}

.operational-status-badge.is-called-no-class {
  background: rgba(68, 169, 189, 0.18);
  color: #8bd9e7;
}

.operational-status-badge.is-class-scheduled {
  background: rgba(164, 119, 255, 0.18);
  color: #c9aaff;
}

.operational-status-badge.is-class-completed-no-plan {
  background: rgba(90, 190, 120, 0.18);
  color: #9be3ae;
}

.operational-status-badge.is-plan-active {
  background: rgba(90, 190, 120, 0.22);
  color: #a8ebb8;
}

.operational-status-badge.is-plan-class-scheduled {
  background: rgba(164, 119, 255, 0.2);
  color: #d2b8ff;
}

.operational-status-badge.is-plan-completed {
  background: rgba(68, 169, 189, 0.2);
  color: #8bd9e7;
}

.operational-status-badge.is-plan-pending {
  background: rgba(68, 169, 189, 0.18);
  color: #8bd9e7;
}

.operational-status-badge.is-plan-expired,
.operational-status-badge.is-plan-inactive {
  background: rgba(240, 65, 47, 0.17);
  color: #ff9b90;
}

.lead-last-transaction {
  display: grid;
  gap: 4px;
  max-width: 230px;
  white-space: normal;
}

.lead-last-transaction strong {
  font-size: 0.82rem;
}

.lead-last-transaction span {
  color: var(--muted);
  font-size: 0.75rem;
}

.lead-plan-summary {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.lead-plan-summary small {
  color: var(--muted);
  font-size: 0.72rem;
}

.lead-manage-view {
  display: grid;
  gap: 20px;
}

.lead-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.lead-overview-card,
.lead-comment-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.lead-overview-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead-status-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-status-reason {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
}

.lead-comment-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.lead-comment-card.has-comment-attention {
  border-color: rgba(243, 177, 67, 0.82);
  background: linear-gradient(135deg, rgba(243, 177, 67, 0.14), rgba(240, 65, 47, 0.08));
  box-shadow: 0 0 0 1px rgba(243, 177, 67, 0.18), 0 10px 30px rgba(243, 177, 67, 0.12);
  animation: lead-comment-heartbeat 1.8s ease-in-out infinite;
}

@keyframes lead-comment-heartbeat {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 1px rgba(243, 177, 67, 0.18), 0 10px 30px rgba(243, 177, 67, 0.12);
  }
  14% {
    transform: scale(1.012);
    box-shadow: 0 0 0 3px rgba(243, 177, 67, 0.28), 0 12px 34px rgba(243, 177, 67, 0.22);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.008);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-comment-card.has-comment-attention {
    animation: none;
  }

  .client-plan-card-seasonal,
  .client-plan-card-seasonal::before,
  .client-plan-card-seasonal .client-plan-card-tag {
    animation: none;
  }
}

.lead-management-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-management-option {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lead-management-option strong {
  font-size: 1rem;
}

.lead-management-option span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.lead-management-option.is-edit {
  border-color: rgba(68, 169, 189, 0.36);
}

.lead-management-option.is-hire {
  border-color: rgba(240, 65, 47, 0.36);
}

.lead-management-option.is-call {
  border-color: rgba(68, 169, 189, 0.42);
}

.lead-management-option.is-class {
  border-color: rgba(243, 177, 67, 0.42);
}

.lead-management-option.is-plan-class {
  border-color: rgba(90, 190, 120, 0.44);
}

.lead-management-option.is-history {
  border-color: rgba(164, 119, 255, 0.42);
}

.lead-management-option:hover,
.lead-management-option:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.lead-management-option:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.lead-manage-back {
  width: max-content;
}

.lead-plan-class-summary {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(90, 190, 120, 0.34);
  border-radius: var(--radius);
  background: rgba(90, 190, 120, 0.08);
  padding: 14px;
}

.lead-plan-class-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-edit-comment,
.lead-edit-actions {
  grid-column: 1 / -1;
}

.lead-edit-actions {
  display: flex;
  justify-content: flex-end;
}

.lead-process-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-process-form {
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
}

.lead-process-form h4 {
  margin: 0;
}

.lead-manage-actions {
  display: flex;
  justify-content: flex-end;
}

.lead-history-status {
  margin: 0;
  color: var(--muted);
}

.lead-history-list {
  display: grid;
  gap: 0;
  max-height: min(52vh, 460px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 8px;
}

.client-history-rail {
  position: relative;
}

.client-history-list {
  position: relative;
  max-height: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  padding-right: 0;
  scrollbar-gutter: auto;
}

.client-history-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.client-history-hint {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
  cursor: pointer;
}

.client-history-hint::before {
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: 3px solid rgba(255, 255, 255, 0.9);
  border-right: 3px solid rgba(255, 255, 255, 0.9);
  content: '';
}

.client-history-hint.is-up {
  top: 8px;
}

.client-history-hint.is-up::before {
  transform: rotate(-45deg);
}

.client-history-hint.is-down {
  bottom: 18px;
}

.client-history-hint.is-down::before {
  transform: rotate(135deg);
}

.client-history-rail.is-scrollable.is-offset::before,
.client-history-rail.is-scrollable:not(.is-at-end)::after {
  position: absolute;
  left: 0;
  right: 8px;
  height: 36px;
  z-index: 1;
  pointer-events: none;
  content: '';
}

.client-history-rail.is-scrollable.is-offset::before {
  top: 0;
  background: linear-gradient(180deg, rgba(12, 15, 16, 0.94), rgba(12, 15, 16, 0));
}

.client-history-rail.is-scrollable:not(.is-at-end)::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(12, 15, 16, 0.94), rgba(12, 15, 16, 0));
}

.client-history-rail.is-scrollable.is-offset .client-history-hint.is-up,
.client-history-rail.is-scrollable:not(.is-at-end) .client-history-hint.is-down {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.client-history-rail.is-at-end .client-history-hint.is-down,
.client-history-rail:not(.is-offset) .client-history-hint.is-up {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.client-history-rail.is-at-end::after,
.client-history-rail:not(.is-offset)::before {
  content: none;
}

@keyframes client-history-hint-fade {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes client-history-hint-up {
  0%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }

  50% {
    transform: translateY(-5px) rotate(-45deg);
  }
}

@keyframes client-history-hint-down {
  0%,
  100% {
    transform: translateY(0) rotate(135deg);
  }

  50% {
    transform: translateY(5px) rotate(135deg);
  }
}

.lead-history-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 20px;
}

.lead-history-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
}

.lead-history-marker {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border: 2px solid var(--steel);
  border-radius: 50%;
  background: var(--panel);
}

.lead-history-item.is-current .lead-history-marker {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(243, 177, 67, 0.14);
}

.lead-history-content {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.lead-history-item.is-current .lead-history-content {
  border-color: rgba(243, 177, 67, 0.72);
  background: linear-gradient(135deg, rgba(243, 177, 67, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 12px 34px rgba(243, 177, 67, 0.1);
}

.lead-history-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lead-history-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.lead-history-current-badge {
  border: 1px solid rgba(243, 177, 67, 0.56);
  border-radius: 999px;
  background: rgba(243, 177, 67, 0.16);
  color: #ffd98b;
  padding: 3px 8px;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lead-history-item-heading time,
.lead-history-content>span {
  color: var(--muted);
  font-size: 0.78rem;
}

.lead-history-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 700px) {

  .lead-overview-grid,
  .lead-management-options,
  .lead-edit-form,
  .lead-process-sections {
    grid-template-columns: 1fr;
  }

  .lead-edit-comment,
  .lead-edit-actions {
    grid-column: auto;
  }

  .lead-edit-actions .button {
    width: 100%;
  }

  .lead-manage-actions .button {
    width: 100%;
  }

  .lead-history-item-heading {
    display: grid;
    gap: 5px;
  }
}

.lead-hire-section {
  display: grid;
  width: min(430px, 100%);
  margin: 0 auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.lead-plan-picker {
  position: relative;
  width: 100%;
}

.lead-plan-picker-field {
  display: grid;
  gap: 8px;
}

.lead-hire-section > h3,
.lead-hire-section > [data-lead-hire-form],
.lead-hire-section > .current-plan-info {
  width: 100%;
}

.lead-hire-section > [data-lead-hire-form] {
  display: grid;
  gap: 14px;
}

.lead-hire-section > h3 {
  margin: 0;
  text-align: left;
  font-size: 1.35rem;
}

.lead-plan-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(68, 169, 189, 0.32);
  border-radius: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(18, 22, 24, 0.98), rgba(8, 11, 12, 0.98));
  color: #f7f7f4;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lead-plan-picker-trigger:focus {
  border-color: rgba(68, 169, 189, 0.76);
  box-shadow: 0 0 0 3px rgba(68, 169, 189, 0.18);
}

.lead-plan-picker.is-open .lead-plan-picker-trigger {
  border-color: rgba(68, 169, 189, 0.76);
}

.lead-plan-picker-caret {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(247, 247, 244, 0.88);
  border-bottom: 2px solid rgba(247, 247, 244, 0.88);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 140ms ease;
}

.lead-plan-picker.is-open .lead-plan-picker-caret {
  transform: rotate(225deg) translateY(-1px);
}

.lead-plan-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 8px;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(68, 169, 189, 0.22);
  border-radius: 10px;
  background: rgba(10, 14, 15, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.lead-plan-picker-menu::-webkit-scrollbar {
  width: 8px;
}

.lead-plan-picker-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(68, 169, 189, 0.4);
}

.lead-plan-picker-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.lead-plan-picker-group {
  display: grid;
  gap: 4px;
}

.lead-plan-picker-group + .lead-plan-picker-group {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lead-plan-picker-group-label {
  margin: 0 4px 2px;
  color: #ffb347;
  text-shadow: 0 0 14px rgba(255, 179, 71, 0.18);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-plan-picker-group > div {
  display: grid;
  gap: 4px;
}

.lead-plan-picker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: #f7f7f4;
  font: inherit;
  text-align: left;
}

.lead-plan-picker-option:focus,
.lead-plan-picker-option:hover {
  border-color: rgba(68, 169, 189, 0.28);
  background: rgba(68, 169, 189, 0.1);
}

.lead-plan-picker-option.is-selected {
  border-color: rgba(240, 65, 47, 0.32);
  background: rgba(240, 65, 47, 0.1);
}

.lead-plan-picker-option-title {
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-plan-picker-option-meta {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.current-plan-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  font-size: 0.84rem;
  background: transparent;
  border: 0;
}

.current-plan-info > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.current-plan-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  border: 1px solid rgba(68, 169, 189, 0.22);
  border-radius: 999px;
  background: rgba(68, 169, 189, 0.08);
  color: var(--steel);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
}

.payment-options {
  flex-wrap: wrap;
  gap: 12px;
}

.payment-method-selector .selector-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.payment-options {
  display: flex;
  gap: 16px;
}

.payment-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.payment-option-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

/* Status specific colors */
.status-badge.is-inactive {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-badge.is-banned {
  background: rgba(240, 65, 47, 0.15);
  color: var(--red);
}

[hidden] {
  display: none !important;
}

@media (min-width: 2200px) {
  .hero::before {
    left: max(180px, calc((100vw - 1920px) / 2 + 180px));
    right: max(-180px, calc((100vw - 1920px) / 2 - 180px));
  }
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 18px;
    background: rgba(8, 10, 11, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-tabs button {
    width: auto;
    justify-self: center;
    min-width: min(100%, 160px);
    justify-content: center;
    padding-inline: 12px;
  }

  .site-nav a {
    justify-content: center;
    width: 100%;
  }

  .nav-link {
    justify-content: center;
    width: auto;
    align-self: center;
  }

  .language-switch {
    justify-content: center;
    border-left: 0;
    padding-left: 0;
  }

  .hero::before {
    display: none;
  }

  .hero {
    min-height: 92svh;
    align-items: center;
    padding-top: 104px;
    background-color: var(--bg);
    background-image:
      linear-gradient(180deg, rgba(8, 10, 11, 0.78) 0%, rgba(8, 10, 11, 0.88) 50%, var(--bg) 100%),
      linear-gradient(90deg, rgba(8, 10, 11, 0.88) 0%, rgba(8, 10, 11, 0.64) 100%),
      url("/assets/banner-simple.jpeg");
    background-position: center, center, center 160px;
    background-size: auto, auto, min(118vw, 680px) auto;
    background-repeat: no-repeat;
  }

  .hero-side-stack {
    position: relative;
    right: auto;
    bottom: auto;
    justify-items: start;
    margin-top: 32px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(16px, 5vw, 28px);
  }

  .hero-panel-img {
    height: 54px;
  }

  .hero-panel-item-has-benefit::before {
    top: auto;
    bottom: 100%;
    left: 0;
    right: auto;
    width: min(330px, calc(100vw - 36px));
    height: 14px;
    transform: none;
  }

  .hero-panel-item-punch::before {
    left: -76px;
  }

  .hero-panel-item-cardio::before {
    left: -150px;
  }

  .hero-benefit-card {
    --benefit-enter: translateY(8px) scale(0.97);
    --benefit-open: translateY(0) scale(1);
    top: calc(100% + 14px);
    bottom: auto;
    left: 0;
    right: auto;
    width: min(330px, calc(100vw - 36px));
    max-height: 62vh;
    padding: 16px;
    font-size: 0.76rem;
    transform: var(--benefit-enter);
    transform-origin: left top;
  }

  .hero-panel-item-bag .hero-benefit-card {
    --benefit-enter: translateY(-8px) scale(0.97);
    --benefit-open: translateY(0) scale(1);
    top: auto;
    bottom: calc(100% + 14px);
    left: 0;
    transform-origin: left bottom;
  }

  .hero-panel-item-punch .hero-benefit-card {
    --benefit-enter: translateY(-8px) scale(0.97);
    --benefit-open: translateY(0) scale(1);
    top: auto;
    bottom: calc(100% + 14px);
    left: -76px;
    transform-origin: left bottom;
  }

  .hero-panel-item-cardio .hero-benefit-card {
    left: -150px;
  }

  .split,
  .register-layout,
  .social-layout,
  .gallery-layout,
  .intro-layout,
  .feature-grid,
  .plans-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-title {
    text-wrap: balance;
  }

  .intro-video-shell,
  .feature-video-card {
    min-height: 420px;
  }

  .intro-video-shell {
    transform: none;
  }

  .intro-video-shell:hover {
    transform: scale(1.02);
  }

  .video-description {
    position: static;
    transform: none;
    width: auto;
    margin-top: 24px;
  }

  .modal-register-layout,
  .admin-form,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .admin-form textarea {
    grid-column: span 1;
  }

  .plan-general-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-language-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    display: none;
  }

  .hero {
    padding-bottom: 64px;
  }

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

  .hero-plans-cta {
    width: 100%;
  }

  .hero-side-note,
  .hero-plans-note {
    max-width: none;
  }

  .feature-card,
  .plan-card,
  .loading-card {
    padding: 18px;
  }

  .gallery-card-instagram .gallery-media,
  .gallery-card-video .gallery-media {
    height: 230px;
  }

  .intro-video-shell,
  .feature-video-card {
    min-height: 460px;
  }

  .admin-header,
  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .modal-card,
  .admin-modal .admin-shell {
    max-height: calc(100svh - 28px);
  }

  .admin-modal {
    padding: 14px;
    align-items: start;
  }

  .admin-modal .admin-shell {
    max-height: none;
    overflow: visible;
  }

  .modal {
    padding: 14px;
  }

  .admin-header,
  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-section-heading .button,
  .plan-form-actions .button {
    width: 100%;
  }

  .plan-general-grid,
  .plan-schedule-fields {
    grid-template-columns: 1fr;
  }

  .plan-general-grid .plan-field-wide {
    grid-column: span 1;
  }

  .plan-form-actions {
    flex-direction: column;
  }
}
