:root {
  --bg: #090a0d;
  --bg-soft: #121419;
  --panel: rgba(22, 24, 30, 0.85);
  --panel-strong: #171a20;
  --text: #f5f7fb;
  --muted: #aab1bc;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #d61f2c;
  --accent-dark: #981018;
  --success: #22c55e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --container: min(1160px, calc(100% - 24px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(214, 31, 44, 0.16), transparent 30%),
    linear-gradient(180deg, #090a0d 0%, #12141a 55%, #0b0d11 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent));
  box-shadow: 0 0 18px rgba(214, 31, 44, 0.7);
  pointer-events: none;
}

.section {
  padding: 88px 0;
}

h1,
h2,
h3,
.brand strong {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  font-size: 1.3rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.84rem;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 9, 12, 0.78);
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(8, 9, 12, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu a {
  position: relative;
  color: #e7ebf2;
  font-weight: 500;
  transition: color 180ms ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.menu a:hover,
.menu a.active {
  color: white;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1600&q=80") center/cover;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 11, 0.92) 8%, rgba(8, 8, 11, 0.56) 55%, rgba(8, 8, 11, 0.92) 100%),
    linear-gradient(180deg, rgba(214, 31, 44, 0.1), rgba(0, 0, 0, 0.35));
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.16) 47%, transparent 48% 100%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 240px 100%, 100% 16px;
  mix-blend-mode: screen;
  animation: scanLines 8s linear infinite;
}

.hero-energy {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 31, 44, 0.34), transparent 68%);
  filter: blur(10px);
  opacity: 0.7;
  animation: energyDrift 7s ease-in-out infinite;
}

.hero-energy-one {
  right: 16%;
  top: 16%;
}

.hero-energy-two {
  left: 48%;
  bottom: 8%;
  width: 190px;
  height: 190px;
  animation-delay: -2.4s;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-text {
  max-width: 620px;
  font-size: 1.08rem;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 24px 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 28px 0;
}

.site-footer .footer-layout {
  justify-items: center;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, box-shadow 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 22px 46px rgba(152, 16, 24, 0.46);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 18px 36px rgba(152, 16, 24, 0.3);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.glass-card,
.panel-card,
.contact-form,
.map-box,
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-sm);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.stat-card::before,
.glass-card::before,
.power-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(214, 31, 44, 0.16), transparent 42%);
  transition: opacity 220ms ease;
  pointer-events: none;
}

.stat-card:hover,
.glass-card:hover,
.power-item:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 31, 44, 0.26);
}

.stat-card:hover::before,
.glass-card:hover::before,
.power-item:hover::before {
  opacity: 1;
}

.stat-card strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  color: white;
  line-height: 1.1;
}

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

#grindStartTime {
  max-width: 100%;
  min-height: 2rem;
  overflow-wrap: anywhere;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

#grindStartLabel {
  display: block;
  margin-top: 6px;
}

.panel-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 410px);
  margin-left: auto;
  padding: 20px;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease;
}

.panel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.13), transparent 58%);
  transform: translateX(-120%);
  animation: panelSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.panel-card:hover {
  border-color: rgba(214, 31, 44, 0.34);
}

.panel-card > * {
  position: relative;
  z-index: 1;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 800;
}

.panel-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.panel-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 5 / 4;
  max-height: 360px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1583454110551-21f2fa2afe61?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.panel-metrics span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.power-strip {
  padding: 0 0 18px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

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

.power-item {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease;
}

.power-item span {
  display: block;
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 4px;
}

.power-item strong {
  color: white;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
}

.section-head {
  position: relative;
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-head.left {
  margin-bottom: 18px;
}

.highlights-grid,
.services-grid,
.testimonials-grid,
.plans-grid {
  display: grid;
  gap: 18px;
}

.highlights-grid,
.services-grid,
.testimonials-grid,
.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-section,
.services-section,
.testimonials-section,
.membership-section,
.contact-section {
  position: relative;
}

.about-section::before,
.services-section::before,
.membership-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 22%, rgba(214, 31, 44, 0.12), transparent 24%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.services-section::before {
  background:
    radial-gradient(circle at 82% 14%, rgba(214, 31, 44, 0.14), transparent 25%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.membership-section::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 31, 44, 0.12), transparent 30%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.about-points,
.trainer-list {
  display: grid;
  gap: 16px;
}

.trainer-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease;
  align-items: center;
}

.trainer-card:hover {
  transform: translateX(6px);
  border-color: rgba(214, 31, 44, 0.24);
}

.trainer-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
}

.service-card .service-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(214, 31, 44, 0.14);
  color: #ff9ea6;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 14px;
  box-shadow: inset 0 0 18px rgba(214, 31, 44, 0.12);
}

.service-card:hover .service-badge {
  background: rgba(214, 31, 44, 0.22);
  color: #ffffff;
}

.testimonial-card {
  position: relative;
  min-height: 240px;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: "Oswald", sans-serif;
  font-size: 4rem;
  color: rgba(214, 31, 44, 0.18);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 16px;
  align-items: center;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 450ms ease;
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  padding: 4px;
}

.slider-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.slider-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.testimonial-meta {
  margin-top: 18px;
}

.testimonial-meta h3 {
  margin-bottom: 6px;
}

.testimonial-role {
  color: #f87171;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gallery-slider {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 16px;
  align-items: center;
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
}

.gallery-track {
  display: flex;
  transition: transform 520ms ease;
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  padding: 4px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  min-height: clamp(280px, 52vw, 560px);
  transition: transform 220ms ease, border-color 220ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 31, 44, 0.28);
}

.gallery-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card h3 {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  max-width: min(520px, calc(100% - 48px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 10, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.gallery-empty {
  display: grid;
  place-items: center;
}

.gallery-empty h3 {
  position: static;
  max-width: calc(100% - 32px);
  text-align: center;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.gallery-dot.active {
  width: 32px;
  background: var(--accent);
}

.plan-card.featured {
  border-color: rgba(214, 31, 44, 0.35);
  transform: translateY(-4px);
  background:
    radial-gradient(circle at top right, rgba(214, 31, 44, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.plan-price {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  color: white;
  margin: 14px 0;
}

.plan-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-actions .btn {
  flex: 1 1 150px;
  justify-content: center;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.payment-modal[hidden] {
  display: none;
}

.payment-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 440px);
  max-height: calc(100vh - 40px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0b0b0d;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  overflow: auto;
}

.payment-modal-panel h2 {
  margin: 8px 0 6px;
  color: #fff;
}

.payment-plan-name {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.payment-modal-panel img {
  display: block;
  width: auto;
  max-width: min(100%, 340px);
  max-height: min(62vh, 560px);
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

.payment-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.payment-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.modal-open {
  overflow: hidden;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.contact-copy {
  margin-top: -18px;
}

.contact-copy h2 {
  margin-bottom: 24px;
  line-height: 1.08;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details p {
  margin: 0;
}

.hours-box {
  margin: 22px 0;
}

.hours-box ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.hours-box li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.contact-form {
  padding: 24px;
  border-radius: 24px;
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(214, 31, 44, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.success-message {
  display: none;
  color: var(--success);
  font-weight: 700;
  margin: 0;
}

.map-box {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
}

.map-box iframe {
  min-height: 320px;
  border: 0;
}

.site-footer {
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer-link {
  display: inline-flex;
  margin-top: 8px;
  color: #ffffff;
  font-weight: 800;
  transition: color 180ms ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.designer-link {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: color 180ms ease, border-color 180ms ease;
}

.designer-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(18, 140, 126, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 44px rgba(18, 140, 126, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scanLines {
  0% {
    background-position: -260px 0, 0 0;
  }
  100% {
    background-position: 260px 0, 0 120px;
  }
}

@keyframes energyDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -20px, 0) scale(1.14);
  }
}

@keyframes panelSweep {
  0%, 44% {
    transform: translateX(-120%);
  }
  72%, 100% {
    transform: translateX(120%);
  }
}

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

.planner-page {
  min-height: 100vh;
}

.planner-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 12px;
}

.planner-subtext {
  max-width: 700px;
}

.planner-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.planner-card {
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(14, 16, 21, 0.94));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.planner-form-card h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
  line-height: 1.1;
  text-align: left;
}

.planner-calendar-head {
  margin-bottom: 18px;
}

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

.planner-day-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.planner-day-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(214, 31, 44, 0.08);
}

.planner-day-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.planner-workout-item {
  padding: 14px;
  border-radius: 16px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-workout-item.completed {
  border-color: rgba(34, 197, 94, 0.32);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent 42%),
    #181a20;
}

.planner-workout-item strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.planner-workout-item > span {
  display: block;
  color: #f87171;
  font-weight: 700;
  margin-bottom: 8px;
}

.planner-workout-item p {
  margin: 0 0 12px;
}

.planner-complete-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.planner-complete-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
}

.planner-delete-btn {
  min-height: 42px;
  padding: 0.7rem 1rem;
}

.planner-preset-picker {
  display: grid;
  gap: 12px;
  max-height: 0;
  opacity: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 180ms ease, opacity 180ms ease;
}

.planner-preset-picker:not(.open) {
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

.planner-preset-picker.open {
  max-height: 620px;
  opacity: 1;
  pointer-events: auto;
}

.planner-preset-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.planner-preset-picker-head strong {
  color: #ffffff;
}

.planner-preset-picker-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.planner-preset-list {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.planner-preset-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.planner-preset-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.planner-preset-option strong,
.planner-preset-option > span {
  display: block;
}

.planner-preset-option strong {
  color: #ffffff;
  margin-bottom: 4px;
}

.planner-preset-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.planner-custom-option {
  border-color: rgba(214, 31, 44, 0.3);
  background: rgba(214, 31, 44, 0.08);
}

.planner-custom-fields {
  display: grid;
  gap: 10px;
}

.planner-custom-fields[hidden] {
  display: none;
}

#plannerTitle[readonly] {
  cursor: pointer;
}

.planner-empty {
  color: var(--muted);
  margin: 0;
}

.planner-menu {
  display: flex;
  align-items: center;
}

.tutorials-page {
  min-height: 100vh;
}

.tutorial-controls {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.tutorial-controls input[type="search"] {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181a20;
  color: #f5f7fb;
  outline: none;
}

.tutorial-controls input[type="search"]::placeholder {
  color: #8f96a3;
}

.tutorial-controls input[type="search"]:focus {
  border-color: rgba(214, 31, 44, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.14);
}

.tutorial-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tutorial-filter {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181a20;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tutorial-filter:hover,
.tutorial-filter.active {
  background: rgba(214, 31, 44, 0.16);
  border-color: rgba(214, 31, 44, 0.48);
  color: #ffffff;
}

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

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

.tutorial-card {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(14, 16, 21, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tutorial-card video,
.tutorial-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 0;
  object-fit: contain;
}

.tutorial-card-copy {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.tutorial-card-copy h2,
.tutorial-empty h2 {
  font-size: 1.65rem;
  line-height: 1.1;
}

.tutorial-card-copy p,
.tutorial-empty p {
  margin: 0;
  color: var(--muted);
}

.tutorial-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(14, 16, 21, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-upload {
  position: relative;
}

.video-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-upload-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: #181a20;
  color: #f5f7fb;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.video-upload-drop:hover,
.video-upload-drop:focus,
.video-upload-drop.dragging {
  border-color: rgba(214, 31, 44, 0.68);
  background: rgba(214, 31, 44, 0.08);
  box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.14);
  outline: none;
}

.video-upload-drop video {
  width: 100%;
  max-height: 260px;
  border-radius: 12px;
  background: #050505;
}

.video-upload-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.video-upload-copy strong {
  color: #ffffff;
}

.video-upload-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.video-upload.has-video .video-upload-copy {
  display: none;
}

.bmi-page {
  min-height: 100vh;
}

.bmi-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: stretch;
}

.bmi-control-card,
.bmi-result-card {
  min-height: 520px;
}

.bmi-card-head {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.unit-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.unit-toggle button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.unit-toggle button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(152, 16, 24, 0.24);
}

.bmi-form,
.bmi-field {
  display: grid;
  gap: 16px;
}

.bmi-field {
  margin-bottom: 6px;
}

.bmi-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-weight: 800;
}

.bmi-field label span {
  color: #f87171;
  font-size: 0.9rem;
}

.bmi-field input[type="number"] {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181a20;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.bmi-field input[type="number"]:focus {
  border-color: rgba(214, 31, 44, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.14);
}

.bmi-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.bmi-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0;
}

.bmi-mini-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.bmi-mini-grid span,
.bmi-meter-center small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bmi-mini-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 1.45rem;
}

.bmi-result-card {
  display: grid;
  align-content: center;
  gap: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(214, 31, 44, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(14, 16, 21, 0.94));
}

.bmi-meter {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 2 / 1;
  margin: 0 auto 58px;
  overflow: visible;
  border-radius: 430px 430px 0 0;
  background:
    conic-gradient(from 270deg at 50% 100%,
      #60a5fa 0deg 32deg,
      #22c55e 32deg 78deg,
      #f59e0b 78deg 122deg,
      #ef4444 122deg 180deg,
      transparent 180deg 360deg);
  box-shadow: inset 0 -18px 48px rgba(0, 0, 0, 0.45);
}

.bmi-meter::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -2px;
  aspect-ratio: 2 / 1;
  border-radius: 360px 360px 0 0;
  background: #111319;
}

.bmi-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 5px;
  height: 82%;
  border-radius: 999px;
  background: #ffffff;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
  transition: transform 360ms ease;
}

.bmi-meter-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translate(-50%, 50%);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.28);
}

.bmi-meter-center span {
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 2.9rem;
  line-height: 1;
}

.bmi-result-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.bmi-result-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.bmi-category {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
}

.bmi-category.underweight {
  background: rgba(96, 165, 250, 0.24);
}

.bmi-category.healthy {
  background: rgba(34, 197, 94, 0.24);
}

.bmi-category.overweight {
  background: rgba(245, 158, 11, 0.26);
}

.bmi-category.obesity {
  background: rgba(239, 68, 68, 0.28);
}

.bmi-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.bmi-scale span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-page {
  min-height: 100vh;
}

.member-layout {
  display: grid;
  grid-template-columns: 0.95fr minmax(320px, 480px);
  gap: 24px;
  align-items: start;
}

.member-card {
  display: grid;
  gap: 18px;
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.member-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.member-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(152, 16, 24, 0.24);
}

.member-panel[hidden] {
  display: none;
}

.member-message {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.member-message.error {
  color: #f87171;
}

.member-message.success {
  color: var(--success);
}

.member-tool-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-logout-link {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7ebf2;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms ease;
}

.member-logout-link:hover {
  color: #ffffff;
}

.member-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.member-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.member-admin-item strong {
  color: #ffffff;
}

.member-admin-item p {
  margin: 6px 0 0;
}

.member-status {
  flex-shrink: 0;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.member-status.unused {
  background: rgba(34, 197, 94, 0.22);
}

.member-status.used {
  background: rgba(148, 163, 184, 0.24);
}

.progress-page {
  min-height: 100vh;
}

.progress-hero,
.progress-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.progress-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-setup-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.progress-setup-card[hidden],
.progress-dashboard[hidden] {
  display: none;
}

.progress-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.progress-stat {
  min-height: 190px;
}

.progress-stat span {
  display: block;
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-stat strong {
  display: block;
  margin: 12px 0 8px;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.progress-stat p {
  margin: 0;
}

.progress-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.compact-btn {
  width: auto;
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.progress-analysis-card {
  display: grid;
  align-content: center;
}

.progress-bar-wrap {
  overflow: hidden;
  height: 18px;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width 360ms ease;
}

.analysis-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.analysis-chips span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.weight-chart {
  min-height: 230px;
  display: flex;
  align-items: end;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 4px 4px;
}

.weight-bar-item {
  min-width: 54px;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 8px;
}

.weight-bar-value {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.weight-bar {
  width: 24px;
  min-height: 28px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #f87171, var(--accent-dark));
  box-shadow: 0 12px 24px rgba(152, 16, 24, 0.22);
}

.weight-bar-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.weight-history {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.weight-history-item {
  padding: 14px;
  border-radius: 16px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.weight-history-item strong {
  color: #ffffff;
}

.weight-history-item p {
  margin: 6px 0 0;
}

.dashboard-tool-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.dashboard-bmi-result {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(214, 31, 44, 0.12), transparent 48%),
    #181a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-bmi-result strong {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(214, 31, 44, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Oswald", sans-serif;
  font-size: 2.3rem;
}

.dashboard-bmi-result span {
  display: block;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 6px;
}

.dashboard-bmi-result p {
  margin: 0;
}

.dashboard-planner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.dashboard-planner-day {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.dashboard-planner-day h3 {
  margin-bottom: 12px;
}

.dashboard-workout-item {
  padding: 12px;
  border-radius: 14px;
  background: #181a20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-workout-item + .dashboard-workout-item {
  margin-top: 10px;
}

.dashboard-workout-item.completed {
  border-color: rgba(34, 197, 94, 0.32);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent 42%),
    #181a20;
}

.dashboard-workout-item strong,
.dashboard-workout-item span {
  display: block;
}

.dashboard-workout-item strong {
  color: #ffffff;
  margin-bottom: 6px;
}

.dashboard-workout-item span {
  color: #f87171;
  font-weight: 800;
  margin-bottom: 8px;
}

.dashboard-workout-item p {
  margin: 0 0 12px;
}

.planner-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(214, 31, 44, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.96), rgba(8, 8, 10, 0.99));
  overflow: hidden;
}

.planner-transition.active {
  display: flex;
}

.planner-transition-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.transition-text {
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.transition-bicep-wrap {
  position: absolute;
  left: 50%;
  top: 42%;
  width: clamp(132px, 18vw, 210px);
  height: clamp(132px, 18vw, 210px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.18), transparent 30%),
    rgba(214, 31, 44, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 16px rgba(214, 31, 44, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.transition-bicep-icon {
  width: 74%;
  height: 74%;
  overflow: visible;
}

.planner-transition.active .transition-bicep-wrap {
  animation: transitionBicepFlex 1.35s ease-in-out infinite;
}

@keyframes transitionBicepFlex {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(-2deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
  }
}

.planner-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.45);
  backdrop-filter: blur(14px);
}

.planner-loading-overlay.active {
  display: flex;
}

.planner-loading-card {
  width: min(520px, 100%);
  padding: 30px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.96), rgba(13, 15, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.planner-loading-card.small-loader.outline-loader {
  width: min(300px, 92vw);
  padding: 22px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.96), rgba(13, 15, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.lifter-visual {
  width: min(420px, 100%);
  margin: 0 auto;
}

.lifter-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.loading-title {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.loading-subtitle {
  margin-top: 10px;
  color: var(--muted);
}

.loading-title.small {
  margin-top: 16px;
  font-size: 1.9rem;
}

.loading-subtitle.small {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.bicep-icon-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.14), transparent 32%),
    rgba(214, 31, 44, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: bicepPulse 1.4s ease-in-out infinite;
}

.bicep-icon {
  width: 76px;
  height: 76px;
  overflow: visible;
}

.bicep-fill {
  fill: rgba(214, 31, 44, 0.24);
}

.bicep-stroke {
  stroke: #ffffff;
  stroke-width: 6;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: drawBicep 1.6s ease-in-out infinite;
}

.bicep-inner {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 5;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: drawInner 1.6s ease-in-out infinite;
}

.barbell-group {
  animation: barbellLift 1.5s ease-in-out infinite;
  transform-origin: 210px 56px;
}

.lifter-group {
  animation: torsoBounce 1.5s ease-in-out infinite;
  transform-origin: 210px 180px;
}

.arm-left,
.arm-right,
.forearm-left,
.forearm-right {
  animation: armDrive 1.5s ease-in-out infinite;
}

@keyframes barbellLift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes torsoBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes armDrive {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.05);
  }
}

@keyframes drawBicep {
  0% {
    stroke-dashoffset: 520;
    opacity: 0.2;
  }
  30% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -30;
    opacity: 0.25;
  }
}

@keyframes drawInner {
  0% {
    stroke-dashoffset: 190;
    opacity: 0.2;
  }
  35% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
  75% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: -12;
    opacity: 0.2;
  }
}

@keyframes bicepPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(214, 31, 44, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(214, 31, 44, 0.18);
  }
}

/* Admin UI improvements */
#loginBox .card,
#adminPanel .card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.92), rgba(14, 16, 21, 0.94));
}

#adminPanel h1,
#adminPanel h2,
#loginBox h1 {
  margin-bottom: 16px;
}

#adminPanel p,
#loginBox p,
#adminPanel label {
  color: var(--muted);
}

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

.admin-form input,
.admin-form textarea,
.admin-form select,
#sortEnquiries,
#filterEnquiries {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #181a20;
  color: #f5f7fb;
  outline: none;
  box-shadow: none;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: #8f96a3;
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.image-upload {
  position: relative;
}

.image-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-upload-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: #181a20;
  color: #f5f7fb;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.image-upload-drop:hover,
.image-upload-drop:focus,
.image-upload-drop.dragging {
  border-color: rgba(214, 31, 44, 0.68);
  background: rgba(214, 31, 44, 0.08);
  box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.14);
  outline: none;
}

.image-upload-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-upload-drop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 13, 0.16), rgba(9, 10, 13, 0.72));
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-upload.has-image .image-upload-drop::after {
  opacity: 1;
}

.image-upload-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  text-align: center;
}

.image-upload-copy strong {
  color: #ffffff;
}

.image-upload-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
#sortEnquiries:focus,
#filterEnquiries:focus {
  border-color: rgba(214, 31, 44, 0.55);
  box-shadow: 0 0 0 3px rgba(214, 31, 44, 0.14);
}

#adminPanel form {
  margin-top: 12px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.admin-tab-button:hover,
.admin-tab-button.active {
  background: #1d2027;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.admin-tab-button.active {
  box-shadow: inset 0 0 0 1px rgba(214, 31, 44, 0.22);
}

.admin-tab-button span {
  min-width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(214, 31, 44, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
}

.admin-tab-button span[hidden] {
  display: none;
}

.admin-tab-panel[hidden] {
  display: none;
}

#adminPanel .btn.secondary,
#loginBox .btn.secondary {
  background: #1d2027;
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#adminPanel .btn.primary,
#loginBox .btn.primary {
  background: linear-gradient(135deg, #d61f2c, #981018);
  color: #fff;
  border: none;
}

#sortEnquiries,
#filterEnquiries {
  min-width: 180px;
}

#serviceAdminList,
#presetWorkoutAdminList,
#tutorialAdminList,
#trainerAdminList,
#planAdminList,
#galleryAdminList,
#testimonialAdminList,
#enquiryList {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

#serviceAdminList .card,
#presetWorkoutAdminList .card,
#tutorialAdminList .card,
#trainerAdminList .card,
#planAdminList .card,
#galleryAdminList .card,
#testimonialAdminList .card {
  padding: 18px;
  border-radius: 20px;
}

#galleryAdminList img,
#trainerAdminList img {
  max-width: 180px;
  border-radius: 14px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .hero-layout,
  .about-layout,
  .contact-layout,
  .planner-layout,
  .bmi-layout,
  .tutorial-grid,
  .member-layout,
  .progress-setup-card,
  .progress-main-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

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

  .highlights-grid,
  .services-grid,
  .testimonials-grid,
  .plans-grid,
  .power-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout {
    padding: 64px 0;
  }

  .panel-card {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 32px, 1160px);
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.76rem;
  }

  .menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  .menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 16px 16px;
    background: rgba(9, 10, 13, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .menu a {
    width: 100%;
    padding: 13px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .member-logout-link {
    width: 100%;
    min-height: 48px;
    padding: 13px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    text-align: left;
  }

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

  .menu.open {
    display: flex;
  }

  .hero-stats,
  .highlights-grid,
  .services-grid,
  .testimonials-grid,
  .plans-grid,
  .power-strip-grid,
  .progress-summary-grid {
    grid-template-columns: 1fr;
  }

  .progress-hero,
  .progress-card-head {
    display: grid;
  }

  .progress-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 70px;
  }

  .hero-layout {
    padding: 0;
    gap: 26px;
  }

  .hero-energy {
    width: 180px;
    height: 180px;
  }

  .hero-grid-lines {
    opacity: 0.12;
  }

  .hero-text {
    font-size: 1rem;
    padding-left: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 0.84rem 1rem;
  }

  .hero-stats {
    gap: 10px;
  }

  .stat-card,
  .glass-card,
  .power-item,
  .contact-form {
    border-radius: 18px;
  }

  .stat-card {
    padding: 16px;
  }

  .panel-card {
    width: 100%;
    padding: 16px;
    border-radius: 22px;
  }

  .panel-label {
    font-size: 0.72rem;
  }

  .panel-card h2 {
    font-size: 1.8rem;
  }

  .panel-image {
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    max-height: 230px;
  }

  .panel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .panel-metrics span {
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.76rem;
  }

  .nav {
    min-height: 74px;
  }

  .power-strip {
    margin-top: -28px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .trainer-card {
    grid-template-columns: 100px 1fr;
    padding: 16px;
    gap: 16px;
    align-items: center;
  }

  .trainer-card img {
    width: 100px;
    height: 100px;
    border-radius: 14px;
  }

  .gallery-card {
    min-height: 220px;
  }

  .plan-price {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 18px;
  }

  .contact-copy {
    margin-top: -8px;
  }

  .contact-copy h2 {
    margin-bottom: 18px;
    line-height: 1.08;
  }

  .map-box iframe {
    min-height: 260px;
  }

  .social-links a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .footer-layout {
    gap: 8px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  #sortEnquiries,
  #filterEnquiries {
    width: 100%;
    min-width: 0;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-tab-button {
    width: 100%;
  }

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

  .bmi-control-card,
  .bmi-result-card {
    min-height: auto;
  }

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

  .slider-btn {
    width: 48px;
    height: 48px;
  }

  .testimonial-slider > .slider-btn:first-child,
  .testimonial-slider > .slider-btn:last-child,
  .gallery-slider > .slider-btn:first-child,
  .gallery-slider > .slider-btn:last-child {
    justify-self: center;
  }

  .gallery-card {
    min-height: 260px;
  }

  .gallery-card h3 {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    white-space: normal;
  }

  .planner-loading-card {
    padding: 24px 18px;
  }

  .bmi-mini-grid,
  .bmi-scale {
    grid-template-columns: 1fr;
  }

  .member-tabs,
  .member-tool-links,
  .dashboard-bmi-result,
  .dashboard-planner-grid,
  .member-admin-item {
    grid-template-columns: 1fr;
  }

  .dashboard-bmi-result strong {
    width: 100%;
    height: auto;
    min-height: 88px;
    border-radius: 18px;
  }

  .weight-chart {
    min-height: 210px;
  }

  .member-admin-item {
    display: grid;
    align-items: stretch;
  }

  .bmi-meter-center {
    width: 104px;
    height: 104px;
  }

  .bmi-meter-center span {
    font-size: 2.25rem;
  }
}

@media (max-width: 390px) {
  :root {
    --container: min(100% - 24px, 1160px);
  }

  .brand-copy small {
    display: none;
  }

  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .panel-metrics span {
    font-size: 0.7rem;
  }

  .trainer-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trainer-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
  }
}
