:root {
  --brand: #065F46;
  --brand-mid: #0D9488;
  --brand-dark: #022C22;
  --accent: #FB7185;
  --accent-deep: #E11D48;
  --ink: #0F1F1A;
  --muted: #4B635A;
  --surface: #F0F7F4;
  --surface-2: #E4F0EB;
  --white: #FFFFFF;
  --line: rgba(2, 44, 34, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Outfit", "Avenir Next", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 30%, rgba(251, 113, 133, 0.12), transparent 50%),
    linear-gradient(180deg, #F5FBFE 0%, var(--surface) 40%, #E8F3EE 100%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 2.75rem));
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(240, 247, 244, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(240, 247, 244, 0.92);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand span {
  color: var(--brand-mid);
}

.brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
}

.brand-logo--nav {
  height: 40px;
  width: auto;
}

.brand-logo--side {
  height: 44px;
  width: auto;
  margin-bottom: 0.35rem;
}

.brand-logo--hero {
  height: clamp(56px, 10vw, 88px);
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand-mid);
  transition: width 0.25s var(--ease-out);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-dark);
}

.nav-links a.btn-primary {
  color: #fff;
}

.nav-links a.btn-primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand-dark);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  cursor: pointer;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--brand);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.workshop-card .btn-secondary,
.page-hero + .section .btn-secondary {
  background: var(--surface);
}

.hero .btn-secondary {
  backdrop-filter: blur(8px);
}

.btn-accent {
  background: var(--accent);
  color: #1A0A0E;
}

.btn-accent:hover {
  background: var(--accent-deep);
  color: white;
}

.btn-block {
  width: 100%;
}

/* —— Full-bleed hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1920&q=80")
    center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(2, 44, 34, 0.92) 0%, rgba(6, 95, 70, 0.72) 48%, rgba(13, 148, 136, 0.45) 100%),
    linear-gradient(to top, rgba(2, 44, 34, 0.55), transparent 45%);
}

.hero-orb {
  position: absolute;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.35), transparent 68%);
  right: -8%;
  top: 12%;
  z-index: -1;
  animation: orbFloat 10s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  padding: 5.5rem 0 4.75rem;
  max-width: 680px;
  animation: riseIn 0.9s var(--ease-out) both;
}

.hero .brand-hero {
  margin: 0 0 1.15rem;
  line-height: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  max-width: 22ch;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.55;
  opacity: 0.88;
  max-width: 38ch;
  margin: 0 0 1.85rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 1s var(--ease-out) 0.15s both;
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.06) 30%, transparent);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.55rem;
  color: var(--brand-dark);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-mid) !important;
  margin-bottom: 0.55rem !important;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.journey-step:hover {
  border-color: rgba(13, 148, 136, 0.35);
  transform: translateY(-2px);
}

.journey-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.journey-step h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.media-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.35);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.media-card:hover .media-thumb img {
  transform: scale(1.05);
}

.media-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(2, 44, 34, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  z-index: 2;
}

.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 44, 34, 0.18);
  z-index: 1;
}

.media-play::before {
  content: "";
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.media-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--brand-dark);
  margin-left: 0.15rem;
}

.media-body {
  padding: 1rem 1.1rem 1.2rem;
}

.media-body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.media-modal[hidden] {
  display: none !important;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 44, 34, 0.72);
  backdrop-filter: blur(4px);
}

.media-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: #0b1a15;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.35s var(--ease-out) both;
}

.media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.media-modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.media-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.media-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.media-modal-body {
  background: #000;
}

.media-modal-body video {
  display: block;
  width: 100%;
  max-height: min(70vh, 520px);
  background: #000;
}

.media-modal-body img {
  display: block;
  width: 100%;
  max-height: min(75vh, 640px);
  object-fit: contain;
  background: #000;
}

.media-modal-body video[hidden],
.media-modal-body img[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Why us: editorial rows, not cards —— */
.why-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.why-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.why-item .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-mid);
  line-height: 1;
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.6;
}

/* —— Workshop / trainer listings —— */
.workshop-grid,
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.workshop-card,
.trainer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease;
}

.workshop-card:hover,
.trainer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.35);
}

.workshop-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--surface-2), #c8e6de);
  transition: transform 0.6s var(--ease-out);
}

.trainer-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 380px;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(135deg, var(--surface-2), #c8e6de);
  transition: transform 0.6s var(--ease-out);
}

.workshop-card:hover img,
.trainer-card:hover img {
  transform: scale(1.04);
}

.workshop-card .body,
.trainer-card .body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.workshop-card h3,
.trainer-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

/* —— Inner page heroes —— */
.page-hero {
  position: relative;
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2), transparent 70%);
  right: 5%;
  top: -40%;
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0 0 0.6rem;
  color: var(--brand-dark);
  animation: riseIn 0.7s var(--ease-out) both;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.08rem;
  animation: riseIn 0.8s var(--ease-out) 0.08s both;
}

.about-panel {
  position: relative;
  padding: 0;
  line-height: 1.75;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42rem;
}

.about-panel p {
  margin: 0 0 1.25rem;
}

.about-panel strong {
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.about-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.about-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  padding: 0.55rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.75rem;
}

.about-block {
  max-width: 46rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.about-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  margin: 0 0 0.75rem;
}

.about-block p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 52ch;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-closing {
  margin: 2rem 0 0;
  max-width: 46rem;
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

/* —— Auth / Login —— */
.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 0;
}

.auth-shell.auth-shell-center {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

.auth-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(2, 44, 34, 0.85), rgba(13, 148, 136, 0.55)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1400&q=80")
    center / cover no-repeat;
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.auth-visual h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
  max-width: 14ch;
  line-height: 1.1;
}

.auth-visual p {
  margin: 0;
  opacity: 0.88;
  max-width: 28ch;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 2.5rem 2rem;
  animation: riseIn 0.55s var(--ease-out) both;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  color: var(--brand-dark);
}

.auth-card .sub {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 4.5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.password-toggle:hover {
  background: var(--surface-2);
  color: var(--brand-dark);
}

.msg {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.msg-error {
  background: #FEF2F2;
  color: #9F1239;
}

.msg-ok {
  background: #ECFDF5;
  color: #065F46;
}

.msg-warn {
  background: #FFF7ED;
  color: #9A3412;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Trainer portal —— */
.trainer-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(13, 148, 136, 0.1), transparent 40%),
    var(--surface);
}

.side-nav {
  background:
    linear-gradient(165deg, #022C22 0%, #065F46 55%, #0D9488 140%);
  color: white;
  padding: 1.75rem 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.side-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  padding: 0.35rem 0.85rem 1.75rem;
}

.side-brand small {
  display: block;
  opacity: 0.7;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.45rem;
}

.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.side-links a {
  display: block;
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-links a:hover,
.side-links a.active {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 44, 34, 0.45);
  z-index: 45;
  backdrop-filter: blur(2px);
}

.side-overlay.show {
  display: block;
}

.trainer-main {
  padding: 1.75rem 1.75rem 2.5rem;
}

.trainer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trainer-topbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
}

.panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}

.table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #ECFDF5;
  color: var(--brand);
}

.badge-pending { background: #FFF7ED; color: #9A3412; }
.badge-approved { background: #ECFDF5; color: #065F46; }

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.phone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  border: 1px solid var(--line);
}

.chip a,
.chip button,
.chip a.chip-remove {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.chip-remove {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 0.15rem;
  opacity: 0.75;
}

.chip-remove:hover {
  opacity: 1;
  color: #9F1239;
}

.scanner-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a1620;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scan-result {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--brand-dark);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trainer-actions {
  width: 100%;
}

.share-link {
  word-break: break-all;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.88rem;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 220px;
    padding: 1.75rem;
  }

  .trainer-layout {
    grid-template-columns: 1fr;
  }

  .trainer-main {
    padding: 1rem 1rem 1.75rem;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .trainer-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .trainer-topbar > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .trainer-topbar .meta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
  }

  .trainer-topbar h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  }

  .panel {
    padding: 1.1rem 1rem;
    overflow-wrap: anywhere;
  }

  .trainer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .trainer-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .side-nav {
    position: fixed;
    left: -290px;
    width: 272px;
    z-index: 50;
    transition: left 0.28s var(--ease-out);
  }

  .side-nav.open {
    left: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    gap: 0.15rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 0.75rem 0.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 1140px);
  }

  .hero-inner {
    padding: 3.75rem 0 3.25rem;
  }

  .why-item {
    grid-template-columns: 3rem 1fr;
    gap: 0.85rem;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .trainer-main {
    padding: 0.85rem 0.75rem 1.5rem;
  }

  .table-responsive-cards thead {
    display: none;
  }

  .table-responsive-cards,
  .table-responsive-cards tbody,
  .table-responsive-cards tr,
  .table-responsive-cards td {
    display: block;
    width: 100%;
  }

  .table-responsive-cards tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
  }

  .table-responsive-cards tr:last-child {
    margin-bottom: 0;
  }

  .table-responsive-cards td {
    border-bottom: 0;
    padding: 0.4rem 0;
  }

  .table-responsive-cards td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-orb,
  .reveal,
  .hero-inner,
  .hero-actions,
  .page-hero h1,
  .page-hero p,
  .auth-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
