:root {
  --bg: #0b0d10;
  --panel: #15181d;
  --panel-2: #1d2229;
  --panel-3: #101318;
  --border: #343b45;
  --text: #f2f4f6;
  --muted: #9ca5af;
  --silver: #cfd5dc;
  --silver-dark: #9ca5af;
  --accent: #e5e9ed;
  --good: #72d68a;
  --warning: #efc56e;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.07) 0%, transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(207, 213, 220, 0.06) 0%, transparent 34%),
    linear-gradient(180deg, #080a0d 0%, #101317 55%, #0b0d10 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  min-width: 0;
  max-width: 100%;
}

.brand strong {
  display: block;
  max-width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.brand span {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.nav-links {
  flex-wrap: wrap;
}

.nav-link,
.nav-share,
.nav-links a,
.nav-links button {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-share,
.nav-links button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}

.nav-link:hover,
.nav-share:hover,
.nav-links a:hover,
.nav-links button:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--silver) 0%, var(--silver-dark) 100%);
  color: #101317 !important;
  font-weight: 900;
  text-decoration: none;
}

.share-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 52px;
}

.hero {
  padding: 48px 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(207, 213, 220, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 14px rgba(114, 214, 138, 0.5);
}

.eyebrow.compact {
  margin-bottom: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.tool-preview {
  margin-top: 26px;
  padding: 22px;
  border-radius: 18px;
  background: #101317;
  border: 1px solid var(--border);
  overflow: hidden;
}

.barbell-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.barbell {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bar-shaft {
  width: 96px;
  height: 16px;
  flex: 0 1 96px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8dde2 0%, #6c747e 45%, #4e5660 55%, #dfe3e7 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
}

.bar-sleeve,
.bar-sleeve-end {
  height: 24px;
  flex: 0 0 40px;
  border-radius: 2px;
  background: linear-gradient(180deg, #eef1f4 0%, #a6afb9 42%, #737d89 58%, #f4f6f8 100%);
  border: 1px solid rgba(0, 0, 0, 0.45);
}

.bar-sleeve {
  width: 40px;
}

.bar-sleeve-end {
  width: 38px;
  flex-basis: 38px;
  margin-left: 0;
}

.bar-plate {
  width: 25px;
  flex: 0 0 25px;
  margin-left: 2px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  color: #101317;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow:
    inset 2px 0 0 rgba(255, 255, 255, 0.18),
    inset -2px 0 0 rgba(0, 0, 0, 0.28),
    1px 0 0 rgba(255, 255, 255, 0.08);
}

.bar-plate span {
  display: block;
  transform: none;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.plate-red {
  height: 190px;
  background: linear-gradient(90deg, #982328 0%, #c92f35 18%, #e04449 50%, #b52a30 82%, #7f1d22 100%);
  color: #ffffff;
}

.plate-blue {
  height: 180px;
  background: linear-gradient(90deg, #233f96 0%, #3259d2 18%, #5477ef 50%, #294cb7 82%, #1b3177 100%);
  color: #ffffff;
}

.plate-green {
  height: 144px;
  background: linear-gradient(90deg, #28623d 0%, #3b8b58 18%, #57aa73 50%, #32784b 82%, #1d4b2e 100%);
  color: #ffffff;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.metric {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.metric strong {
  font-size: 1.1rem;
}

.section {
  padding: 38px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

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

.tool-card,
.panel {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.tool-card h3,
.panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.tool-card p,
.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(207, 213, 220, 0.18);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag.live {
  color: #a4efb5;
  border-color: rgba(114, 214, 138, 0.28);
  background: rgba(114, 214, 138, 0.13);
}

.list {
  display: grid;
  gap: 14px;
}

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

.check {
  width: 32px;
  height: 32px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  flex: none;
}

.list-item strong {
  display: block;
  margin: 0 0 4px;
}

.list-item span:not(.check) {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer {
  width: 100%;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 0 40px;
  color: var(--muted);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.footer-brand strong {
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-brand span,
.footer-line {
  color: var(--muted);
  line-height: 1.45;
}

.footer-line {
  text-align: right;
}

@media (max-width: 760px) {
  .footer {
    margin-top: 42px;
    padding: 22px 0 34px;
  }

  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-brand {
    display: grid;
    gap: 4px;
  }

  .footer-line {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .footer-inner {
    width: min(var(--max), calc(100% - 20px));
  }

  .footer-brand strong,
  .footer-brand span,
  .footer-line {
    font-size: 0.92rem;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(114, 214, 138, 0.13);
  color: #a4efb5;
  border: 1px solid rgba(114, 214, 138, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s ease;
  text-align: center;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--silver) 0%, var(--silver-dark) 100%);
  color: #101317;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1180px) {
  .page,
  .nav {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    gap: 18px;
  }

  .brand {
    flex: 0 1 220px;
  }

  .brand strong {
    font-size: 0.98rem;
    letter-spacing: 0.1em;
    line-height: 1.05;
  }

  .brand span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .nav-links,
  .nav-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero-card {
    width: 100%;
  }
}

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

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

  .section-head {
    display: grid;
    gap: 12px;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .brand {
    width: 100%;
    flex-basis: auto;
  }

  .brand strong {
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    line-height: 1.1;
  }

  .brand span {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .nav-link,
  .nav-share,
  .nav-links a,
  .nav-links button,
  .nav-cta {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    white-space: normal;
    text-align: center;
  }

  .nav-cta {
    background: linear-gradient(180deg, var(--silver) 0%, var(--silver-dark) 100%);
    border-color: transparent;
  }

  .hero {
    padding: 34px 0 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 5.5rem);
  }

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

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

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

  .hero-card-top,
  .footer {
    flex-direction: column;
  }

  .barbell {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .page,
  .nav {
    width: min(var(--max), calc(100% - 20px));
  }

  .panel,
  .tool-card,
  .hero-card {
    padding: 16px;
  }

  .tool-preview,
  .barbell-wrap {
    padding: 10px;
  }

  .bar-plate {
    width: 24px;
    flex-basis: 24px;
    font-size: 0.56rem;
  }

  .bar-sleeve-end {
    width: 34px;
    flex-basis: 34px;
  }
}
/* v9: global admin gradient and header scale sync */
html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #0b0d10 0%, #050607 48%, #030405 100%);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #0b0d10 0%, #050607 48%, #030405 100%) !important;
  background-attachment: fixed;
}

/* Keep every top nav/header visually aligned across pages. */
.site-header {
  background: rgba(5, 6, 7, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.site-header .brand strong,
.login-card .brand strong,
.nav .brand strong {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header .brand span,
.login-card .brand span,
.nav .brand span {
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Standardise major page titles without touching card titles too aggressively. */
:where(
  .hero h1,
  .dashboard-hero h1,
  .gsp-head h1,
  .login-card > h1,
  main > .section:first-child h1
) {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-weight: 950;
}

/* Standardise main section headers. */
:where(
  .section-head h2,
  .gsp-head h2,
  .panel > h2,
  .card-head h2,
  .form-section h2
) {
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 950;
}

/* Keep smaller form/card headings controlled. */
:where(.form-section h3, .subsection h3, .settings-section h3) {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* end v9 */

/* KOLOSSEUM TYPE SCALE LOCK v9 START
   Master typography lock.
   Keep page scale consistent across root, gym sharing, gym referral admin, settings, login, dashboards, and utility pages.
*/

:root {
  --ks-font-nav: clamp(0.88rem, 0.35vw + 0.78rem, 1rem);
  --ks-font-kicker: clamp(0.72rem, 0.25vw + 0.66rem, 0.82rem);
  --ks-font-hero: clamp(3.1rem, 7vw, 5.55rem);
  --ks-font-page-title: clamp(2.65rem, 5.8vw, 4.7rem);
  --ks-font-section-title: clamp(1.75rem, 2.8vw, 2.45rem);
  --ks-font-panel-title: clamp(1.55rem, 2.25vw, 2.05rem);
  --ks-font-card-title: clamp(1.55rem, 2.2vw, 2.05rem);
  --ks-font-body: clamp(1rem, 0.35vw + 0.92rem, 1.12rem);
  --ks-font-small: clamp(0.9rem, 0.22vw + 0.84rem, 1rem);
  --ks-line-body: 1.55;
  --ks-line-heading: 0.98;
}

body {
  font-size: var(--ks-font-body);
  line-height: var(--ks-line-body);
}

.nav,
.nav a,
.nav button,
.nav-link,
.nav-share,
.brand span,
.footer,
.footer p {
  font-size: var(--ks-font-nav);
}

.tag,
.status-pill,
.gsp-kicker,
.eyebrow,
.status,
label,
.form-label {
  font-size: var(--ks-font-kicker);
}

.hero h1,
.page-hero h1,
.gsp-hero h1,
main > .hero h1 {
  font-size: var(--ks-font-hero);
  line-height: var(--ks-line-heading);
  letter-spacing: -0.065em;
}

.page > .section:first-child h1,
.page h1,
main h1 {
  font-size: var(--ks-font-page-title);
  line-height: var(--ks-line-heading);
  letter-spacing: -0.055em;
}

.section h2,
.gsp-head h2,
.section-head h2 {
  font-size: var(--ks-font-section-title);
  line-height: 1;
  letter-spacing: -0.045em;
}

.panel h2,
.login-card h1,
.login-card h2,
.gsp-target-panel h2,
.gsp-print-surface h2 {
  font-size: var(--ks-font-panel-title);
  line-height: 1;
  letter-spacing: -0.045em;
}

.tool-card h3,
.share-tool-option h3,
.card h3,
.panel h3 {
  font-size: var(--ks-font-card-title);
  line-height: 1;
  letter-spacing: -0.045em;
}

p,
li,
input,
select,
textarea,
button,
.btn {
  font-size: var(--ks-font-body);
}

small,
.help-text,
.modal-note,
.footer-line,
.status-line {
  font-size: var(--ks-font-small);
}

.panel p,
.tool-card p,
.share-tool-option p,
.gsp-head p,
.hero p,
.page-hero p,
.login-card p {
  line-height: var(--ks-line-body);
}

.btn,
button,
input,
select,
textarea {
  line-height: 1.2;
}

@media (max-width: 980px) {
  :root {
    --ks-font-hero: clamp(2.65rem, 8vw, 4.2rem);
    --ks-font-page-title: clamp(2.25rem, 7vw, 3.5rem);
    --ks-font-section-title: clamp(1.65rem, 4vw, 2.15rem);
    --ks-font-panel-title: clamp(1.45rem, 3.5vw, 1.85rem);
    --ks-font-card-title: clamp(1.45rem, 3.5vw, 1.85rem);
  }
}

@media (max-width: 640px) {
  :root {
    --ks-font-hero: clamp(2.25rem, 11vw, 3.35rem);
    --ks-font-page-title: clamp(2rem, 9vw, 2.9rem);
    --ks-font-section-title: clamp(1.5rem, 6vw, 1.95rem);
    --ks-font-panel-title: clamp(1.35rem, 5.4vw, 1.7rem);
    --ks-font-card-title: clamp(1.35rem, 5.4vw, 1.7rem);
    --ks-font-body: clamp(0.98rem, 3.6vw, 1.06rem);
  }

  .hero h1,
  .page-hero h1,
  .gsp-hero h1,
  .page h1,
  main h1 {
    letter-spacing: -0.052em;
  }
}

/* KOLOSSEUM TYPE SCALE LOCK v9 END */
