:root {
  --bg: #121417;
  --panel: #1b1f24;
  --text: #f3f1ec;
  --muted: #9aa3ad;
  --accent: #e85d04;
  --ok: #2f9e44;
  --warn: #f08c00;
  --danger: #e03131;
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(232, 93, 4, 0.2), transparent 58%),
    radial-gradient(900px 420px at 92% 8%, rgba(255, 183, 3, 0.08), transparent 55%),
    linear-gradient(180deg, #0e1013 0%, var(--bg) 42%, #161a1f 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.js-motion body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(232, 93, 4, 0.16), transparent 70%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(8%, 12%, 0) scale(1.15); opacity: 1; }
}

a { color: var(--accent); text-decoration: none; }

.top, main, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  background: rgba(14, 16, 19, 0.55);
  animation: nav-in 0.8s var(--ease-out) both;
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}

.brand:hover {
  color: #fff;
  transform: translateY(-1px);
}

nav,
.top-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
nav a,
.top-nav a {
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
nav a:hover,
.top-nav a:hover { opacity: 1; color: #fff; }

.inline { display: inline; margin: 0; }

.inline button, .btn, button.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), #ff7a2f);
  color: #fff;
  font-weight: 700;
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s ease,
    filter 0.22s ease;
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.22);
}

.btn:hover, button.btn:hover, a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232, 93, 4, 0.35);
  filter: brightness(1.05);
}

.btn:active, button.btn:active, a.btn:active {
  transform: translateY(0) scale(0.98);
}

.inline button {
  background: transparent;
  color: var(--muted);
  padding: 0;
  box-shadow: none;
  filter: none;
}

.inline button:hover {
  color: var(--text);
  transform: none;
  box-shadow: none;
}

main { max-width: 880px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.hero h1, .landing-hero h1, .form-card h1, .cabinet h1, .paywall h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.03em;
}

.landing-hero {
  position: relative;
  padding: 1.2rem 0 2.5rem;
  max-width: 40rem;
}

.landing-hero .lead {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.landing-hero .reveal-line {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.js-motion .landing-hero .reveal-line {
  transform-origin: left center;
  animation: line-grow 0.9s 0.45s var(--ease-out) both;
}

.btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text) !important;
  box-shadow: none !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
  filter: none;
}

.landing-path {
  margin: 1rem 0 2.5rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.section-head {
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.35rem 0 0.65rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: none;
}

.path-step {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.path-step:hover {
  border-top-color: rgba(232, 93, 4, 0.55);
  transform: translateY(-3px);
}

.path-num {
  display: block;
  font-family: var(--display);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.path-step h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.path-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing-offer {
  background: var(--panel);
  border: 1px solid rgba(232, 93, 4, 0.22);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.35rem;
  max-width: 420px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.landing-offer .price {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3rem);
}

.landing-offer .price span {
  font-size: 0.38em;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 720px) {
  .path-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.75rem;
}

.lead { color: var(--muted); max-width: 36rem; }

.price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.bullets {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.bullets li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 0.9rem;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease-out);
}

.bullets li:hover {
  border-color: rgba(232, 93, 4, 0.55);
  color: var(--text);
  background: rgba(232, 93, 4, 0.1);
  transform: translateY(-2px);
}

.link {
  margin-left: 1rem;
  transition: opacity 0.2s ease;
}
.link:hover { opacity: 0.85; }

.form-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 420px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-card:focus-within {
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.08);
}

.form-card.flat { max-width: none; margin-bottom: 2rem; }

label { display: block; margin: 0.85rem 0; font-size: 0.92rem; }

input, select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #101317;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

/* Chrome/Safari/Edge autofill paints a light yellow/blue fill — keep dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:autofill {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1000px #101317 !important;
  transition: background-color 99999s ease-in-out 0s;
}

input:-webkit-autofill:focus,
input:autofill:focus {
  border-color: rgba(232, 93, 4, 0.55);
  box-shadow:
    inset 0 0 0 1000px #101317,
    0 0 0 3px rgba(232, 93, 4, 0.12) !important;
}

.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check input { width: auto; margin-top: 0.2rem; }
.error { color: var(--danger); }
.muted { color: var(--muted); }

.status {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.status.ok {
  background: rgba(47, 158, 68, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 158, 68, 0.15);
}
.status.warn {
  background: rgba(240, 140, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(240, 140, 0, 0.12);
}

.cat { margin: 2rem 0; }
.cat h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.video-list, .table-list { list-style: none; padding: 0; margin: 0; }

.video-list li, .table-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
  transition: background 0.25s ease, padding-left 0.25s var(--ease-out);
}

.video-list li:hover, .table-list li:hover {
  background: rgba(255,255,255,0.03);
  padding-left: 0.4rem;
}

.tag {
  font-style: normal;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.2);
  color: #ffb703;
}

.foot {
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* —— Entrance / reveal —— */
.js-motion [data-reveal],
.js-motion .stagger-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}

.js-motion [data-reveal].is-in,
.js-motion .stagger-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.js-motion [data-reveal="left"] {
  transform: translateX(-24px);
}
.js-motion [data-reveal="left"].is-in {
  transform: translateX(0);
}

.js-motion [data-reveal="scale"] {
  transform: translateY(16px) scale(0.96);
}
.js-motion [data-reveal="scale"].is-in {
  transform: translateY(0) scale(1);
}

.js-motion .hero .eyebrow { transition-delay: 40ms; }
.js-motion .hero h1 { transition-delay: 120ms; }
.js-motion .hero .lead { transition-delay: 200ms; }
.js-motion .hero .price { transition-delay: 280ms; }
.js-motion .hero .bullets { transition-delay: 360ms; }
.js-motion .hero .cta-row { transition-delay: 440ms; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
}

.paywall {
  max-width: 440px;
  margin: 0.5rem auto 0;
}

.paywall .reveal-line {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.js-motion .paywall .reveal-line {
  transform-origin: left center;
  animation: line-grow 0.85s 0.35s var(--ease-out) both;
}

.mini-path {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.mini-path li {
  color: var(--muted);
  position: relative;
  padding-right: 1.1rem;
}

.mini-path li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, 0.25);
}

.mini-path .is-done { color: #7ddea0; }
.mini-path .is-now { color: var(--accent); }

.paywall .lead {
  margin: 0 0 1.5rem;
}

.paywall-card {
  background: var(--panel);
  border: 1px solid rgba(232, 93, 4, 0.28);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.25rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.paywall-plan {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.paywall .price {
  margin: 0.45rem 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3rem);
}

.paywall .price span {
  font-size: 0.38em;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.paywall-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.paywall-perks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.paywall-perks li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 1px;
}

.btn-lg {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
}

.paywall-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.paywall-note a {
  display: inline-block;
  margin-top: 0.35rem;
}

.hero {
  position: relative;
  padding-top: 0.5rem;
}

.js-motion .hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.5rem;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left center;
  animation: line-grow 0.9s 0.55s var(--ease-out) both;
}

@keyframes line-grow {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion body::before,
  .top,
  .js-motion .hero::after {
    animation: none !important;
  }
  .js-motion [data-reveal],
  .js-motion .stagger-item,
  .btn, button.btn, a.btn, .bullets li, .video-list li {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* —— Auth / register cinematic shell —— */
body.auth-page {
  background: #0a0b0d;
}

body.auth-page::before {
  display: none !important;
}

main.auth-main {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #050607;
  background-image:
    linear-gradient(105deg, rgba(5, 6, 7, 0.7) 0%, rgba(5, 6, 7, 0.25) 40%, rgba(5, 6, 7, 0.55) 72%, rgba(5, 6, 7, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.18) 0%, rgba(5, 6, 7, 0.5) 100%),
    url("/static/img/auth-register-bg.jpg?v=20261030r3");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.js-motion .auth-bg {
  animation: auth-bg-ken 18s ease-in-out infinite alternate;
}

@keyframes auth-bg-ken {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

.auth-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 100vh;
}

.auth-brand-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #fff;
}

.auth-brand-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  max-width: 22rem;
}

.auth-stepper {
  list-style: none;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  margin: 1.15rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.auth-stepper li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

.auth-stepper li::marker,
.auth-stepper li::before {
  content: none !important;
  display: none !important;
}

.auth-step-arrow {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.auth-step-num {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.auth-stepper .is-active {
  color: var(--accent);
}

.auth-stepper .is-active .auth-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.auth-stepper-muted {
  color: rgba(255, 255, 255, 0.55);
}

.auth-stepper-muted .auth-step-num {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.55);
}

.auth-card {
  background: rgba(16, 18, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  width: min(100%, 420px);
  justify-self: end;
}

.auth-card-title {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.auth-form label.auth-field {
  margin: 0 0 1rem;
}

.auth-field > span:first-child {
  display: block;
  margin-bottom: 0.4rem;
  color: rgba(243, 241, 236, 0.85);
  font-size: 0.9rem;
}

.auth-input-wrap {
  position: relative;
  display: block;
}

.auth-input-wrap .auth-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.auth-input-wrap input {
  margin-top: 0;
  padding-left: 2.55rem;
  padding-right: 2.6rem;
  border-radius: 12px;
  background: rgba(10, 12, 15, 0.85);
}

.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap input:-webkit-autofill:active,
.auth-input-wrap input:autofill {
  -webkit-text-fill-color: #f3f1ec !important;
  caret-color: #f3f1ec;
  box-shadow: inset 0 0 0 1000px #0a0c0f !important;
  transition: background-color 99999s ease-in-out 0s;
}

.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap input:autofill:focus {
  border-color: rgba(232, 93, 4, 0.55);
  box-shadow:
    inset 0 0 0 1000px #0a0c0f,
    0 0 0 3px rgba(232, 93, 4, 0.12) !important;
}

.auth-eye {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  border-radius: 8px;
}

.auth-eye:hover { color: #fff; }

.auth-check {
  margin: 0.65rem 0;
  font-size: 0.92rem;
  color: rgba(243, 241, 236, 0.88);
}

.auth-check a {
  color: var(--accent);
  font-weight: 600;
}

.auth-forgot {
  margin: 0.35rem 0 0;
  text-align: right;
  font-size: 0.88rem;
}

.auth-forgot a {
  color: rgba(245, 242, 236, 0.72);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-forgot a:hover {
  color: var(--accent);
}

.auth-hint,
.auth-info {
  margin: 0 0 1rem;
  color: rgba(245, 242, 236, 0.78);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-info {
  color: rgba(245, 242, 236, 0.9);
}

.auth-captcha {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.auth-captcha .cf-turnstile {
  width: 100%;
}

.auth-submit {
  margin-top: 1.1rem;
  border-radius: 14px !important;
  background: var(--accent) !important;
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.28);
  width: 100%;
}

.auth-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.7rem;
  border-radius: 14px !important;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-legal {
  margin: 0.95rem 0 0;
  font-size: 0.82rem;
  text-align: center;
}

.auth-legal a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 860px) {
  .auth-layout {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.75rem;
    padding: 1.35rem 1.15rem 2rem;
    min-height: auto;
  }

  .auth-shell { min-height: 100vh; }

  .auth-brand-title {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .auth-stepper {
    margin-top: 1rem;
    gap: 0.35rem 0.45rem;
    font-size: 0.78rem;
  }

  .auth-card {
    justify-self: stretch;
    width: 100%;
  }
}

/* —— Paid cabinet library —— */
.cabinet-page main { padding-bottom: 3rem; }

.cab {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.cab-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.cab h1, .cab-watch h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.cab-sub { margin: 0; color: var(--muted); max-width: 36rem; }

.cab-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.cab-pill {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.18);
  border: 1px solid rgba(232, 93, 4, 0.45);
  color: #ffb087;
  font-size: 0.82rem;
  font-weight: 600;
}

.cab-habit {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0 0 1.75rem;
}

.cab-habit-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cab-stat {
  padding: 0.95rem 1rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}

.cab-stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cab-stat-label {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.cab-stat-bar {
  margin-top: 0.55rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.cab-stat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e85d04, #ffb087);
  border-radius: inherit;
}

.cab-continue {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 93, 4, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(232,93,4,0.18), transparent 55%),
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cab-continue:hover {
  border-color: rgba(232, 93, 4, 0.7);
  transform: translateY(-1px);
}

.cab-continue-thumb {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #2a211c, #121417);
  background-size: cover;
  background-position: center;
}

.cab-continue-thumb.has-poster { background-color: #121417; }

.cab-continue-eyebrow {
  margin: 0;
  color: #ffb087;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cab-continue-title {
  margin: 0.2rem 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cab-continue-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cab-continue-play {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.9);
  color: #fff;
  font-size: 0.75rem;
  margin-right: 0.35rem;
}

.cab-cal {
  padding: 1rem 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.cab-cal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}

.cab-cal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.cab-cal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cab-cal-weekdays,
.cab-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.cab-cal-weekdays {
  margin-bottom: 0.35rem;
}

.cab-cal-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: lowercase;
}

.cab-cal-cell {
  min-height: 2.55rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  background: transparent;
  text-decoration: none;
}

.cab-cal-cell.is-empty { visibility: hidden; }

.cab-cal-cell.is-workout {
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.28);
  color: var(--text);
}

.cab-cal-cell.is-workout:hover {
  border-color: rgba(232, 93, 4, 0.65);
}

.cab-cal-cell.is-done {
  background: rgba(80, 180, 110, 0.14);
  border-color: rgba(80, 180, 110, 0.4);
}

.cab-cal-cell.is-today {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

.cab-cal-num { line-height: 1; }
.cab-cal-mark {
  font-size: 0.55rem;
  color: #ffb087;
  line-height: 1;
}
.cab-cal-cell.is-done .cab-cal-mark { color: #8fdfa8; }

.cab-plan-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 14rem;
  overflow: auto;
}

.cab-plan-list a {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.03);
}

.cab-plan-list a:hover { background: rgba(255,255,255,0.06); }
.cab-plan-list .is-done a { opacity: 0.72; }
.cab-plan-list .is-today a {
  border: 1px solid rgba(232, 93, 4, 0.35);
}

.cab-plan-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.cab-plan-name {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cab-plan-badge {
  font-size: 0.68rem;
  color: #8fdfa8;
  font-weight: 650;
}
.cab-plan-badge.is-today { color: #ffb087; }

@media (max-width: 640px) {
  .cab-habit-stats { grid-template-columns: 1fr; }
  .cab-continue {
    grid-template-columns: 4.4rem 1fr;
  }
  .cab-continue-play { display: none; }
  .cab-continue-thumb {
    width: 4.4rem;
    height: 4.4rem;
  }
}

.cab-email {
  color: var(--muted);
  font-size: 0.85rem;
}

.gate-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-text {
  margin: 0.35rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gate-actions .auth-submit,
.gate-actions .auth-login-btn {
  text-align: center;
}

.nav-profile {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--text) !important;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.nav-profile:hover {
  color: var(--accent) !important;
  border-bottom-color: rgba(232, 93, 4, 0.5);
}

.profile { max-width: 920px; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.profile-card {
  background: rgba(22, 26, 31, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.35rem;
}

.profile-card h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.profile-card .auth-submit {
  margin-top: 0.85rem;
}

@media (max-width: 800px) {
  .top {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.85rem 1rem 0.75rem;
    gap: 0.55rem 0.75rem;
  }

  .brand {
    flex: 1 0 100%;
    width: 100%;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .top-nav {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.9rem;
  }

  .profile-grid { grid-template-columns: 1fr; }

  .nav-profile {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    text-align: center;
  }
}

.cab-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}

.cab-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cab-chip.is-active,
.cab-chip:hover {
  border-color: rgba(232, 93, 4, 0.7);
  background: rgba(232, 93, 4, 0.16);
  color: #fff;
}

.cab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.cab-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(22, 26, 31, 0.92);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.3s ease;
}

.cab-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 4, 0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.cab-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cab-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(160deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)),
    radial-gradient(circle at 30% 20%, rgba(232, 93, 4, 0.35), transparent 55%);
  background-size: cover;
  background-position: center;
}

.cab-thumb.has-poster {
  background-color: #0a0c0f;
  background-size: cover;
  background-position: center;
}

.cab-thumb.has-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
  pointer-events: none;
}

.cab-thumb.has-poster .cab-play,
.cab-thumb.has-poster .cab-dur {
  z-index: 1;
}

.cab-thumb-home { background: linear-gradient(145deg, #2a211c, #121417 60%), radial-gradient(circle at 70% 30%, rgba(232,93,4,0.35), transparent 50%); }
.cab-thumb-gym { background: linear-gradient(145deg, #1c222a, #101317 60%), radial-gradient(circle at 30% 40%, rgba(232,93,4,0.28), transparent 55%); }
.cab-thumb-outdoor { background: linear-gradient(145deg, #1d2620, #101317 60%), radial-gradient(circle at 60% 20%, rgba(255,183,3,0.2), transparent 50%); }

.cab-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.4);
}

.cab-dur {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.65);
  font-size: 0.75rem;
}

.cab-card-body { padding: 0.9rem 1rem 1.1rem; }

.cab-tag {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cab-card-title {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cab-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cab-empty { margin-top: 1rem; }

.cab-watch {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 2.5rem;
}

.cab-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
}

.cab-back:hover { color: var(--accent); }

.cab-player-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

.cab-player-shield {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.cab-player {
  display: block;
  width: 100%;
  max-height: min(70vh, 560px);
  background: #000;
}

.cab-player::-webkit-media-controls-download-button {
  display: none !important;
}

.cab-watermark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-evenly;
  justify-items: center;
  padding: 8% 6%;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  z-index: 2;
}

.cab-watermark span {
  font-family: var(--font);
  font-size: clamp(0.75rem, 2.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  transform: rotate(-18deg);
  white-space: nowrap;
}

.cab-player-missing {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.cab-watch-meta { margin-top: 1.1rem; }

@media (max-width: 900px) {
  .cab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-hero-meta { align-items: flex-start; }
}

@media (max-width: 560px) {
  .cab-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .auth-bg { animation: none !important; }
}
