:root {
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --text: #111111;
  --muted: #65717d;
  --accent: #2C3440;
  --line: rgba(44, 52, 64, 0.12);
  --soft: rgba(44, 52, 64, 0.06);
  --shadow: 0 22px 65px rgba(44, 52, 64, 0.08);
  --shadow-soft: 0 12px 38px rgba(44, 52, 64, 0.07);
  --serif: "Segoe UI", "Avenir Next", Inter, Arial, sans-serif;
  --sans: "Segoe UI", "Avenir Next", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(44, 52, 64, 0.025) 1px, transparent 1px) 0 0 / 128px 128px,
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(5, 6, 7, 0.96);
  border-bottom: 1px solid rgba(244, 246, 248, 0.12);
  box-shadow: 0 16px 48px rgba(5, 6, 7, 0.18);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: 360px;
  height: 92px;
  object-fit: contain;
  object-position: left center;
  filter: saturate(0.92) contrast(1.04);
}

.brand.logo-fallback::after {
  content: "ROIS";
  display: inline-flex;
  align-items: center;
  height: 92px;
  color: #f4f0e7;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(244, 246, 248, 0.70);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-nav a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.public-nav a:hover {
  color: #fff;
  border-color: rgba(244, 246, 248, 0.16);
  background: rgba(244, 246, 248, 0.055);
}

.session-area { display: flex; align-items: center; gap: 10px; }
.session-area .pill {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .btn {
  min-height: 42px;
  border-color: rgba(244, 246, 248, 0.22);
  background: rgba(244, 246, 248, 0.06);
  color: #f7f4eb;
}

.topbar .btn:hover {
  border-color: rgba(244, 246, 248, 0.38);
  background: rgba(244, 246, 248, 0.11);
}

.topbar .pill {
  border-color: rgba(244, 246, 248, 0.22);
  background: rgba(244, 246, 248, 0.08);
  color: #f7f4eb;
}

.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(44, 52, 64, 0.32); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.subtle { background: transparent; }
.btn.full { width: 100%; }
.btn.danger { color: #7a2e2e; border-color: rgba(122, 46, 46, 0.22); }

.view { display: none; }
.view.active { display: block; animation: fadeIn .28s ease both; }

.hero {
  width: min(1120px, calc(100vw - 40px));
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 920px);
  align-items: start;
  padding: 108px 0 132px;
}

.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3 {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 560;
  line-height: 1.12;
}

h1 { max-width: 780px; font-size: 56px; }
h2 { font-size: 34px; }
h3 { font-size: 17px; font-weight: 680; line-height: 1.36; }

.lead {
  max-width: 680px;
  margin: 22px 0 30px;
  color: #3a424a;
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-cta {
  min-height: 54px;
  min-width: 190px;
  padding: 0 24px;
  font-size: 12px;
}

.public-section {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.public-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.public-feature-grid {
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.public-feature-grid .published-card {
  grid-template-columns: minmax(420px, 0.64fr) minmax(280px, 0.36fr);
  grid-template-rows: none;
  min-height: 430px;
}

.public-feature-grid .published-media {
  min-height: 430px;
}

.public-feature-grid .published-content {
  padding: clamp(28px, 4vw, 48px);
}

.public-feature-grid .published-content h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.public-feature-grid .published-content p:not(.eyebrow) {
  font-size: 15px;
}

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

.partner-card {
  min-height: 410px;
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 52, 64, 0.24);
  box-shadow: var(--shadow-soft);
}

.partner-mark {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff, #eef1f4);
  border-bottom: 1px solid var(--line);
}

.partner-mark img {
  max-width: 86%;
  max-height: 150px;
  object-fit: contain;
  filter: grayscale(8%);
}

.partner-content {
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 22px;
}

.partner-content h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 580;
}

.partner-content p:not(.eyebrow) {
  margin-top: 10px;
  color: #3a424a;
  font-size: 14px;
  line-height: 1.65;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.athlete-showcase {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.athlete-showcase.compact {
  border-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.athlete-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  min-height: 330px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.athlete-showcase.compact .athlete-card {
  grid-template-columns: 1fr;
  min-height: 0;
  border: 1px solid var(--line);
}

.athlete-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.athlete-media {
  position: relative;
  min-height: 310px;
  background: linear-gradient(145deg, #e7eaee, #f8fafb);
  overflow: hidden;
}

.athlete-showcase.compact .athlete-media {
  min-height: 230px;
}

.athlete-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(18%);
  transform: scale(1.01);
}

.athlete-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(17, 17, 17, 0.42));
  pointer-events: none;
}

.media-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
}

.athlete-info {
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: clamp(24px, 4vw, 42px);
}

.athlete-info h3 {
  max-width: 620px;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 580;
  line-height: 1.12;
}

.athlete-summary {
  max-width: 760px;
  margin-top: 14px;
  color: #3a424a;
  font-size: 15px;
  line-height: 1.75;
}

.athlete-sponsor-brands {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.athlete-sponsor-brands > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.athlete-sponsor-brands div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.athlete-sponsor-brands img {
  width: 86px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
  filter: saturate(.92);
}

.athlete-technical {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}

.athlete-technical div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.athlete-technical div:last-child {
  border-right: 0;
}

.athlete-technical span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.athlete-technical strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.athlete-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.athlete-metrics div {
  display: grid;
  gap: 3px;
  padding: 18px 0;
}

.athlete-metrics div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.athlete-metrics span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.athlete-metrics strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
}

.athlete-decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.athlete-decision p {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.athlete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.athlete-showcase.compact .athlete-info {
  padding: 24px;
}

.athlete-showcase.compact .athlete-info h3 {
  font-size: 24px;
}

.athlete-showcase.compact .athlete-decision {
  align-items: stretch;
  flex-direction: column;
}

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

.registration-card,
.tile {
  min-height: 250px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 26px;
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 20px;
  box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.registration-card:hover,
.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 52, 64, 0.24);
  box-shadow: var(--shadow-soft);
}

.registration-card strong {
  display: block;
  max-width: 260px;
  color: var(--text);
  font-size: 24px;
  font-weight: 620;
  line-height: 1.16;
}

.registration-card small {
  display: block;
  max-width: 290px;
  color: #3a424a;
  font-size: 14px;
  line-height: 1.65;
}

.registration-card em {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 168px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.registration-card.primary-card {
  background: #111111;
  border-color: #111111;
  color: #fff;
}

.registration-card.primary-card .eyebrow,
.registration-card.primary-card small {
  color: rgba(244, 246, 248, 0.72);
}

.registration-card.primary-card strong {
  color: #fff;
}

.registration-card.primary-card em {
  background: #fff;
  color: #111111;
}

.conversion-note {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.dashboard {
  width: min(1240px, calc(100vw - 40px));
  margin: 24px auto 70px;
  display: none;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 124px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.dashboard.active { display: grid; }

.mobile-dash-toggle,
.mobile-nav-backdrop,
.mobile-menu-close,
.mobile-appbar {
  display: none;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #f9fafb;
  padding: 24px 18px;
}

.side-logo {
  width: 272px;
  height: 86px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  margin: 4px 0 38px;
}

.sidebar.logo-fallback::before {
  content: "ROIS";
  display: block;
  margin-bottom: 34px;
  color: #111;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.32em;
}

.side-nav {
  display: grid;
  gap: 3px;
}

.side-nav button {
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 10px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.side-nav button:hover,
.side-nav button.active {
  background: var(--soft);
  border-left-color: var(--accent);
  color: var(--text);
}

.workspace { min-width: 0; padding: 36px; }

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.workspace-head h1 { font-size: 34px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin-bottom: 26px;
  background: #fff;
}

.kpi {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.kpi:last-child { border-right: 0; }
.kpi span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.kpi strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.kpi strong { font-family: var(--sans); font-size: 28px; font-weight: 560; }

.dash-section { display: none; opacity: 0; transform: translateY(6px); }
.dash-section.active { display: block; opacity: 1; transform: translateY(0); animation: sectionIn .2s ease both; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(44, 52, 64, 0.03);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-body { padding: 24px; }

.section-minihead {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  max-width: 620px;
}

.section-minihead h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.22;
}

.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.sponsor-tier {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.sponsor-tier.featured {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #f7f8fa;
}

.sponsor-tier h3 {
  margin: 8px 0 10px;
  font-size: clamp(20px, 2.3vw, 28px);
}

.sponsor-tier strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.sponsor-tier p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.sponsor-tier ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sponsor-tier li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.sponsor-tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

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

.event-positioning {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.event-positioning p:not(.eyebrow) {
  color: #3a424a;
  font-size: 14px;
  line-height: 1.68;
}

.action-row,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.social-actions {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.social-actions .btn {
  min-height: 36px;
  padding: 0 14px;
}

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

.link-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text);
}

.recovery-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-grid {
  display: grid;
  gap: 24px;
}

.settings-block {
  max-width: 760px;
}

.settings-block h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

.settings-password-form {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.check-grid {
  display: grid;
  gap: 8px;
}

.check-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fafbfc;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.published-card {
  display: grid;
  grid-template-rows: 180px minmax(0, 1fr);
  min-height: 390px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.published-media {
  background: var(--soft);
  overflow: hidden;
}

.published-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(10%);
}

.published-content {
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 22px;
}

.published-content h3 {
  font-family: var(--serif);
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 580;
  line-height: 1.12;
}

.published-content p:not(.eyebrow) {
  color: #3a424a;
  font-size: 14px;
  line-height: 1.65;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.commercial-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

label { display: grid; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
  min-height: 44px;
  padding: 12px 13px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(44, 52, 64, .42);
  box-shadow: 0 0 0 3px rgba(44, 52, 64, 0.06);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 18px;
}

.hint.inline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.visual-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: var(--bg);
}

.visual-empty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 17, 17, .26);
  backdrop-filter: blur(12px);
}

.modal.active { display: flex; }

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--soft);
  padding: 4px;
  margin: 22px 0;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tabs button.active { background: var(--accent); color: #fff; }

.empty {
  padding: 26px;
  color: var(--muted);
  border: 1px dashed var(--line);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sectionIn { from { opacity: .72; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(90deg, rgba(44, 52, 64, 0.018) 1px, transparent 1px) 0 0 / 96px 96px,
      var(--bg);
  }
  body[data-active-view="client"],
  body[data-active-view="admin"] {
    background: #000;
    color: #f5f5f3;
  }
  body[data-active-view="client"] .topbar,
  body[data-active-view="admin"] .topbar {
    display: none;
  }
  .topbar {
    height: 82px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
  }
  .brand-logo {
    width: 190px;
    height: 58px;
  }
  .public-nav {
    display: none;
  }
  .session-area {
    width: auto;
    justify-content: flex-end;
  }
  .session-area .pill {
    display: none;
  }
  .topbar .btn {
    min-height: 38px;
    min-width: 108px;
    padding-inline: 14px;
    font-size: 10px;
  }
  .hero {
    width: min(100% - 32px, 720px);
    padding: 66px 0 86px;
  }
  h1 { font-size: 42px; }
  h2 { font-size: 29px; }
  .lead { font-size: 16px; }
  .public-section {
    width: min(100% - 32px, 720px);
    padding: 68px 0;
  }
  .hero, .section-head, .dashboard, .form-grid { grid-template-columns: 1fr; }
  .section-head {
    gap: 16px;
    margin-bottom: 26px;
  }
  .public-feature-grid .published-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 48vw) minmax(0, 1fr);
    min-height: 0;
  }
  .public-feature-grid .published-media {
    min-height: 280px;
  }
  .athlete-card,
  .athlete-showcase.compact,
  .athlete-showcase.compact .athlete-card {
    grid-template-columns: 1fr;
  }
  .athlete-media,
  .athlete-showcase.compact .athlete-media {
    min-height: 260px;
  }
  .athlete-decision {
    align-items: stretch;
    flex-direction: column;
  }
  .athlete-technical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .athlete-technical div:nth-child(2) {
    border-right: 0;
  }
  .athlete-technical div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .athlete-actions {
    justify-content: stretch;
  }
  .dashboard.active { display: block; }
  .dashboard {
    position: relative;
    width: 100%;
    margin: 0;
    min-height: auto;
    border: 0;
    background:
      radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.07), transparent 34vh),
      #000;
    color: #f5f5f3;
    padding: 16px 0 96px;
  }
  .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: center;
    width: min(100% - 28px, 720px);
    margin: 0 auto 42px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .mobile-avatar,
  .mobile-app-action {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: #1c1c1d;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .mobile-avatar {
    background: linear-gradient(145deg, #b9917e, #8d6d60);
    color: #fff;
    font-size: 17px;
    font-weight: 760;
  }
  .mobile-app-action {
    font-size: 18px;
  }
  .mobile-search {
    position: relative;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: #181819;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    padding: 0 22px 0 52px;
    font-size: 17px;
    font-weight: 620;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .mobile-search::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 16px;
    width: 15px;
    height: 15px;
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
  }
  .mobile-search::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 31px;
    width: 10px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    transform: rotate(45deg);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(82vw, 330px);
    transform: translateX(-104%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    padding: 22px 18px 28px;
    background: rgba(18, 18, 19, 0.98);
    box-shadow: 24px 0 70px rgba(0, 0, 0, 0.50);
    transition: transform .28s ease;
    overflow-y: auto;
  }
  .dashboard.nav-open .sidebar {
    transform: translateX(0);
  }
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    border: 0;
    background: rgba(17, 17, 17, 0.34);
    backdrop-filter: blur(8px);
  }
  .dashboard.nav-open .mobile-nav-backdrop {
    display: block;
  }
  .mobile-dash-toggle {
    display: none;
  }
  .mobile-dash-toggle span {
    display: block;
    grid-column: 1;
    width: 15px;
    height: 1px;
    background: var(--text);
  }
  .mobile-dash-toggle span + span {
    margin-top: -6px;
  }
  .mobile-dash-toggle span:nth-child(3) {
    margin-top: -6px;
  }
  .mobile-dash-toggle strong {
    grid-column: 2;
    grid-row: 1 / 4;
    font: inherit;
  }
  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #232324;
    color: #fff;
    font-size: 22px;
  }
  .side-logo {
    width: 210px;
    height: 64px;
    margin: 4px 0 24px;
    mix-blend-mode: normal;
    filter: saturate(.9) brightness(1.18);
  }
  .side-nav {
    display: grid;
    gap: 4px;
  }
  .side-nav button {
    min-height: 44px;
    border-left: 2px solid transparent;
    border-bottom: 0;
    padding: 12px 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
  }
  .side-nav button:hover,
  .side-nav button.active {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.72);
    border-bottom-color: transparent;
    color: #fff;
  }
  .workspace {
    width: min(100% - 28px, 720px);
    margin: 0 auto 44px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .workspace-head {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    margin: 12px 0 42px;
  }
  .workspace-head h1 {
    max-width: 320px;
    color: #fff;
    font-size: 42px;
    line-height: .98;
    letter-spacing: 0;
  }
  .workspace-head .btn {
    width: fit-content;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: #303031;
    color: #fff;
    padding: 0 22px;
  }
  .workspace-head .eyebrow {
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
  }
  .registration-grid, .opportunity-grid, .partner-grid, .sponsor-tiers { grid-template-columns: 1fr; }
  .registration-card {
    min-height: 220px;
  }
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    background: transparent;
    margin: 0 0 26px;
  }
  .kpi,
  .kpi:nth-child(2) {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
  }
  .kpi span {
    order: 2;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
  }
  .kpi strong {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #232324;
    color: #fff;
    font-size: 25px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .panel {
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: #19191a;
    color: #fff;
    box-shadow: none;
  }
  .panel + .panel {
    margin-top: 16px;
  }
  .panel-head {
    border-color: rgba(255, 255, 255, 0.06);
    padding: 22px;
  }
  .panel-head h3 {
    color: #fff;
    font-size: 20px;
  }
  .panel-head .eyebrow {
    color: rgba(255, 255, 255, 0.48);
  }
  .panel-body {
    padding: 22px;
  }
  .empty {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.58);
    border-radius: 22px;
  }
  .dashboard .btn {
    border: 0;
    border-radius: 999px;
    background: #303031;
    color: #fff;
  }
  .dashboard input,
  .dashboard select,
  .dashboard textarea {
    border-color: rgba(255, 255, 255, 0.08);
    background: #111112;
    color: #fff;
  }
  .dashboard label {
    color: rgba(255, 255, 255, 0.56);
  }
  .dashboard .published-card,
  .dashboard .partner-card,
  .dashboard .sponsor-tier,
  .dashboard .athlete-card,
  .dashboard .payment-card {
    border: 0;
    border-radius: 26px;
    background: #202021;
    color: #fff;
    overflow: hidden;
  }
  .dashboard .published-content,
  .dashboard .partner-content,
  .dashboard .sponsor-tier,
  .dashboard .athlete-info {
    color: #fff;
  }
  .dashboard .published-content h3,
  .dashboard .partner-content h3,
  .dashboard .sponsor-tier h3,
  .dashboard .athlete-info h3 {
    color: #fff;
  }
  .dashboard .hint,
  .dashboard .athlete-summary,
  .dashboard .sponsor-tier p,
  .dashboard .published-content p,
  .dashboard .partner-content p {
    color: rgba(255, 255, 255, 0.62);
  }
  .dashboard .athlete-technical,
  .dashboard .athlete-metrics {
    border-color: rgba(255, 255, 255, 0.08);
  }
  .dashboard .athlete-technical div,
  .dashboard .athlete-metrics div + div {
    border-color: rgba(255, 255, 255, 0.08);
  }
  .dashboard .athlete-technical span,
  .dashboard .athlete-metrics span {
    color: rgba(255, 255, 255, 0.44);
  }
  .dashboard .athlete-technical strong,
  .dashboard .athlete-metrics strong {
    color: #fff;
  }
  .dashboard .data-table th,
  .dashboard .data-table td {
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
  }
  .dashboard .badge,
  .dashboard .pill {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .data-table {
    min-width: 680px;
    color: #fff;
  }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .topbar {
    height: 76px;
    display: flex;
    grid-template-columns: none;
    padding: 0 14px;
  }
  .public-nav {
    display: none;
  }
  .public-nav a {
    flex: 1 1 calc(33.333% - 6px);
    justify-content: center;
    padding: 0 8px;
    font-size: 8px;
  }
  .brand-logo {
    width: 174px;
    height: 52px;
  }
  .session-area {
    width: auto;
  }
  .session-area .pill {
    display: none;
  }
  .session-area .btn {
    width: auto;
    min-width: 96px;
  }
  .hero {
    width: calc(100vw - 28px);
    min-height: auto;
    padding: 54px 0 78px;
  }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  h3 { font-size: 16px; }
  .lead {
    font-size: 15px;
    margin: 18px 0 24px;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .public-section {
    width: calc(100vw - 28px);
    padding: 54px 0;
  }
  .registration-card {
    min-height: 0;
    padding: 22px;
    gap: 16px;
  }
  .registration-card strong {
    font-size: 22px;
  }
  .registration-card em {
    width: 100%;
  }
  .conversion-note {
    font-size: 12px;
  }
  .list-row { grid-template-columns: 1fr; }
  .partner-card,
  .published-card {
    min-height: 0;
    grid-template-rows: 132px minmax(0, 1fr);
  }
  .partner-card {
    grid-template-rows: 190px minmax(0, 1fr);
  }
  .public-feature-grid .published-card {
    grid-template-rows: 280px minmax(0, 1fr);
  }
  .public-feature-grid .published-media {
    min-height: 280px;
  }
  .partner-content,
  .published-content {
    padding: 18px;
  }
  .athlete-info { padding: 24px 18px; }
  .athlete-info h3 { font-size: 24px; }
  .athlete-metrics { grid-template-columns: 1fr; }
  .athlete-technical { grid-template-columns: 1fr; }
  .athlete-technical div {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .athlete-technical div:first-child {
    border-top: 0;
  }
  .athlete-metrics div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .mobile-dash-toggle {
    top: 86px;
    margin: 12px 14px 0;
  }
  .sidebar {
    width: min(88vw, 318px);
  }
  .side-logo {
    width: 188px;
    height: 58px;
  }
  .side-nav { grid-template-columns: 1fr; }
  .workspace {
    width: calc(100vw - 18px);
    margin-top: 12px;
    padding: 0 0 26px;
  }
  .workspace-head { display: grid; }
  .dashboard .workspace-head .btn { width: fit-content; }
  .dashboard .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi,
  .kpi:nth-child(2) {
    border-right: 0;
  }
  .kpi + .kpi {
    border-top: 0;
  }
  .modal {
    align-items: end;
    padding: 12px;
  }
  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 24px 18px;
  }
  .btn { width: 100%; }
  .dashboard .btn { width: fit-content; }
  .dashboard .panel .btn,
  .dashboard form .btn {
    width: 100%;
  }
  .topbar .btn {
    width: auto;
  }
}

@media (max-width: 900px) {
  body[data-active-view="client"],
  body[data-active-view="admin"] {
    background:
      linear-gradient(90deg, rgba(44, 52, 64, 0.022) 1px, transparent 1px) 0 0 / 88px 88px,
      var(--bg);
    color: var(--text);
  }

  .dashboard {
    background:
      linear-gradient(90deg, rgba(44, 52, 64, 0.022) 1px, transparent 1px) 0 0 / 88px 88px,
      var(--bg);
    color: var(--text);
  }

  .mobile-appbar {
    margin-bottom: 34px;
  }

  .mobile-avatar,
  .mobile-app-action {
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.08);
    overflow: hidden;
  }

  .mobile-avatar {
    padding: 0;
  }

  .mobile-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

  .mobile-search {
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(17, 17, 17, 0.62);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.08);
  }

  .mobile-search::before {
    border-color: rgba(17, 17, 17, 0.74);
  }

  .mobile-search::after {
    background: rgba(17, 17, 17, 0.74);
  }

  .sidebar {
    border-right: 1px solid var(--line);
    background: rgba(249, 250, 251, 0.98);
    box-shadow: 24px 0 60px rgba(17, 17, 17, 0.18);
  }

  .mobile-menu-close {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
  }

  .side-logo {
    mix-blend-mode: multiply;
    filter: saturate(.94);
  }

  .side-nav button {
    color: var(--muted);
  }

  .side-nav button:hover,
  .side-nav button.active {
    background: #fff;
    border-left-color: var(--accent);
    color: var(--text);
  }

  .workspace-head h1 {
    color: var(--text);
  }

  .workspace-head .eyebrow {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .workspace-head .btn,
  .dashboard .btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--accent);
  }

  .dashboard .btn.primary,
  .dashboard form .btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .kpi strong {
    background: #fff;
    color: var(--text);
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
  }

  .kpi span {
    color: var(--muted);
  }

  .panel,
  .dashboard .published-card,
  .dashboard .partner-card,
  .dashboard .sponsor-tier,
  .dashboard .athlete-card,
  .dashboard .payment-card {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    box-shadow: none;
  }

  .panel-head {
    border-color: var(--line);
  }

  .panel-head h3,
  .dashboard .published-content h3,
  .dashboard .partner-content h3,
  .dashboard .sponsor-tier h3,
  .dashboard .athlete-info h3 {
    color: var(--text);
  }

  .panel-head .eyebrow,
  .dashboard .hint,
  .dashboard .athlete-summary,
  .dashboard .sponsor-tier p,
  .dashboard .published-content p,
  .dashboard .partner-content p {
    color: var(--muted);
  }

  .dashboard input,
  .dashboard select,
  .dashboard textarea {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
  }

  .dashboard label {
    color: var(--muted);
  }

  .dashboard .athlete-technical,
  .dashboard .athlete-metrics,
  .dashboard .athlete-technical div,
  .dashboard .athlete-metrics div + div,
  .dashboard .data-table th,
  .dashboard .data-table td {
    border-color: var(--line);
  }

  .dashboard .athlete-technical span,
  .dashboard .athlete-metrics span {
    color: var(--muted);
  }

  .dashboard .athlete-technical strong,
  .dashboard .athlete-metrics strong,
  .dashboard .data-table td {
    color: var(--text);
  }

  .dashboard .badge,
  .dashboard .pill {
    border-color: var(--line);
    background: #f8fafb;
    color: var(--accent);
  }

  .empty {
    border-color: var(--line);
    background: #fff;
    color: var(--muted);
  }
}

@media (max-width: 560px) {
  .mobile-avatar img {
    width: 46px;
    height: 46px;
  }
}

/* Unified light platform layer: home, client dashboard and admin panel. */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b7480;
  --accent: #2c3440;
  --line: rgba(44, 52, 64, 0.11);
  --soft: rgba(44, 52, 64, 0.055);
  --shadow: 0 26px 70px rgba(44, 52, 64, 0.10);
  --shadow-soft: 0 18px 44px rgba(44, 52, 64, 0.08);
}

html {
  scroll-behavior: smooth;
}

body,
body[data-active-view="home"],
body[data-active-view="client"],
body[data-active-view="admin"] {
  background:
    linear-gradient(90deg, rgba(44, 52, 64, 0.022) 1px, transparent 1px) 0 0 / 112px 112px,
    linear-gradient(180deg, #f8fafb 0%, #f4f6f8 44%, #ffffff 100%);
  color: var(--text);
}

.topbar {
  width: min(1340px, calc(100vw - 40px));
  height: 86px;
  margin: 18px auto 0;
  padding: 0 20px 0 18px;
  border: 1px solid rgba(44, 52, 64, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 54px rgba(44, 52, 64, 0.10);
  backdrop-filter: blur(22px);
}

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

.brand-logo {
  width: 240px;
  height: 64px;
  filter: saturate(0.94) contrast(1.02);
}

.brand.logo-fallback::after {
  height: 64px;
  color: var(--text);
}

.public-nav {
  gap: 4px;
  color: rgba(17, 17, 17, 0.54);
}

.public-nav a {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.public-nav a:hover {
  color: var(--text);
  border-color: rgba(44, 52, 64, 0.08);
  background: rgba(44, 52, 64, 0.055);
}

.topbar .btn,
.topbar .pill {
  min-height: 46px;
  border-radius: 999px;
  border-color: rgba(44, 52, 64, 0.12);
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 26px rgba(44, 52, 64, 0.06);
}

.topbar .btn:hover {
  border-color: rgba(44, 52, 64, 0.22);
  background: #f8fafb;
}

.btn {
  border-radius: 999px;
  box-shadow: none;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero {
  width: min(1140px, calc(100vw - 44px));
  min-height: calc(100vh - 150px);
  padding: clamp(86px, 9vw, 132px) 0 clamp(70px, 9vw, 118px);
  align-items: center;
}

.hero > div {
  max-width: 760px;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.2vw, 76px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: rgba(17, 17, 17, 0.62);
  font-size: clamp(16px, 1.6vw, 19px);
}

.eyebrow {
  color: #6c7580;
}

.public-section {
  width: min(1140px, calc(100vw - 44px));
  padding: clamp(76px, 9vw, 124px) 0;
  border-top: 1px solid rgba(44, 52, 64, 0.10);
}

.section-head {
  align-items: center;
  margin-bottom: 38px;
}

.public-list,
.public-feature-grid {
  border-top: 0;
}

.published-card,
.partner-card,
.registration-card,
.athlete-card,
.payment-card,
.sponsor-tier,
.panel,
.modal-card {
  border: 1px solid rgba(44, 52, 64, 0.10);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(44, 52, 64, 0.06);
  overflow: hidden;
}

.published-card:hover,
.partner-card:hover,
.registration-card:hover,
.sponsor-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(44, 52, 64, 0.10);
}

.published-media,
.partner-media,
.athlete-photo {
  background: #eef1f4;
}

.published-media img,
.partner-media img,
.athlete-photo img {
  filter: saturate(0.95) contrast(1.02);
}

.registration-grid,
.opportunity-grid,
.partner-grid {
  gap: 18px;
}

.registration-card {
  min-height: 260px;
  padding: 30px;
  text-align: left;
}

.registration-card em,
.sponsor-tier .btn,
.published-card .btn,
.partner-card .btn,
.athlete-card .btn {
  min-height: 48px;
  border-radius: 999px;
}

.empty {
  border-radius: 28px;
  border-color: rgba(44, 52, 64, 0.10);
  background: rgba(255, 255, 255, 0.78);
}

.modal {
  background: rgba(17, 17, 17, 0.22);
  backdrop-filter: blur(18px);
}

.modal-card {
  padding: 34px;
}

.modal-card input,
.modal-card select,
.modal-card textarea,
.dashboard input,
.dashboard select,
.dashboard textarea {
  min-height: 50px;
  border-radius: 18px;
  border: 1px solid rgba(44, 52, 64, 0.12);
  background: #fff;
  color: var(--text);
}

.dashboard {
  width: min(1280px, calc(100vw - 44px));
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid rgba(44, 52, 64, 0.10);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 90px rgba(44, 52, 64, 0.12);
  overflow: hidden;
}

.dashboard.active {
  display: grid;
}

.sidebar {
  min-height: calc(100vh - 120px);
  border-right: 1px solid rgba(44, 52, 64, 0.10);
  background: rgba(248, 250, 251, 0.92);
}

.side-logo {
  width: 210px;
  height: 70px;
  margin-bottom: 56px;
  mix-blend-mode: multiply;
  filter: saturate(0.94);
}

.side-nav {
  gap: 8px;
}

.side-nav button {
  min-height: 48px;
  border-radius: 18px;
  border-left: 0;
  color: rgba(17, 17, 17, 0.54);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.side-nav button:hover,
.side-nav button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 14px 32px rgba(44, 52, 64, 0.07);
}

.workspace {
  padding: clamp(34px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(44, 52, 64, 0.018) 1px, transparent 1px) 0 0 / 96px 96px,
    rgba(255, 255, 255, 0.72);
}

.workspace-head {
  align-items: center;
  margin-bottom: 34px;
}

.workspace-head h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.kpis {
  gap: 14px;
  margin-bottom: 32px;
  border: 0;
  background: transparent;
}

.kpi {
  min-height: 142px;
  border: 1px solid rgba(44, 52, 64, 0.10);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(44, 52, 64, 0.06);
}

.kpi strong {
  font-size: 38px;
  font-weight: 560;
}

.panel-head {
  padding: 30px 32px;
  border-color: rgba(44, 52, 64, 0.10);
}

.panel-body {
  padding: 32px;
}

.data-table {
  border-radius: 24px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  border-color: rgba(44, 52, 64, 0.10);
}

.badge,
.pill {
  border-radius: 999px;
}

@media (max-width: 900px) {
  body,
  body[data-active-view="home"],
  body[data-active-view="client"],
  body[data-active-view="admin"] {
    background:
      linear-gradient(90deg, rgba(44, 52, 64, 0.022) 1px, transparent 1px) 0 0 / 88px 88px,
      linear-gradient(180deg, #f8fafb 0%, #f4f6f8 42%, #ffffff 100%);
  }

  body[data-active-view="home"] .topbar {
    width: calc(100vw - 28px);
    height: 74px;
    margin-top: 14px;
    padding: 0 12px 0 14px;
    border-radius: 999px;
  }

  body[data-active-view="home"] .brand {
    min-width: 0;
  }

  body[data-active-view="home"] .brand-logo {
    width: 150px;
    height: 50px;
  }

  body[data-active-view="home"] .public-nav {
    display: none;
  }

  body[data-active-view="home"] .session-area .pill {
    display: none;
  }

  body[data-active-view="home"] .topbar .btn {
    width: auto;
    min-width: 92px;
    min-height: 48px;
    padding: 0 18px;
  }

  .hero {
    width: calc(100vw - 30px);
    min-height: calc(100vh - 116px);
    padding: 64px 0 72px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .lead {
    font-size: 16px;
  }

  .hero-cta {
    width: 100%;
    min-height: 58px;
  }

  .public-section {
    width: calc(100vw - 30px);
    padding: 70px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .published-card,
  .partner-card,
  .registration-card,
  .athlete-card,
  .payment-card,
  .sponsor-tier,
  .panel,
  .modal-card {
    border-radius: 28px;
  }

  .dashboard.active {
    display: block;
  }

  .dashboard {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(44, 52, 64, 0.022) 1px, transparent 1px) 0 0 / 88px 88px,
      linear-gradient(180deg, #f8fafb 0%, #f4f6f8 45%, #ffffff 100%);
    box-shadow: none;
  }

  .mobile-appbar {
    padding-inline: 20px;
  }

  .mobile-avatar,
  .mobile-app-action,
  .mobile-search {
    border: 1px solid rgba(44, 52, 64, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(44, 52, 64, 0.09);
  }

  .mobile-avatar img {
    width: 50px;
    height: 50px;
  }

  .workspace {
    width: calc(100vw - 26px);
    margin: 0 auto;
    padding: 22px 0 92px;
    background: transparent;
  }

  .workspace-head {
    padding: 10px 10px 6px;
    text-align: center;
    justify-items: center;
  }

  .workspace-head h1 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 64px);
  }

  .workspace-head .btn {
    min-width: 230px;
  }

  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 32px 0;
  }

  .kpi {
    min-height: 122px;
    display: grid;
    justify-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .kpi strong {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 36px rgba(44, 52, 64, 0.08);
    font-size: 30px;
  }

  .kpi span {
    max-width: 88px;
    text-align: center;
    line-height: 1.2;
  }

  .panel {
    box-shadow: 0 18px 46px rgba(44, 52, 64, 0.08);
  }

  .panel-head,
  .panel-body {
    padding: 26px;
  }

  .sidebar {
    min-height: 100vh;
    border-radius: 0 28px 28px 0;
  }
}

@media (max-width: 560px) {
  body[data-active-view="home"] .topbar {
    width: calc(100vw - 24px);
  }

  body[data-active-view="home"] .brand-logo {
    width: 132px;
  }

  .mobile-appbar {
    padding-inline: 16px;
  }

  .mobile-avatar img {
    width: 48px;
    height: 48px;
  }

  .workspace {
    width: calc(100vw - 18px);
  }

  .workspace-head h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .kpis {
    gap: 6px;
  }

  .kpi strong {
    width: 66px;
    height: 66px;
    font-size: 27px;
  }

  .panel-head,
  .panel-body {
    padding: 22px;
  }
}

/* Header contrast pass: black capsule and stronger official logo presence. */
.topbar {
  background: rgba(8, 9, 10, 0.97);
  border-color: rgba(244, 246, 248, 0.12);
  box-shadow: 0 24px 70px rgba(8, 9, 10, 0.24);
}

.brand {
  min-width: clamp(300px, 32vw, 445px);
  overflow: visible;
}

.brand-logo {
  width: clamp(300px, 32vw, 432px);
  height: 76px;
  filter: saturate(1.06) contrast(1.1) drop-shadow(0 0 18px rgba(222, 198, 147, 0.18));
  transform: scale(1.8);
  transform-origin: left center;
}

.public-nav {
  color: rgba(244, 246, 248, 0.70);
}

.public-nav a:hover {
  color: #fff;
  border-color: rgba(244, 246, 248, 0.16);
  background: rgba(244, 246, 248, 0.075);
}

.topbar .btn,
.topbar .pill {
  border-color: rgba(244, 246, 248, 0.20);
  background: rgba(244, 246, 248, 0.06);
  color: #f7f4eb;
  box-shadow: none;
}

.topbar .btn:hover {
  border-color: rgba(244, 246, 248, 0.36);
  background: rgba(244, 246, 248, 0.12);
}

@media (max-width: 900px) {
  body[data-active-view="home"] .topbar {
    background: rgba(8, 9, 10, 0.97);
    border-color: rgba(244, 246, 248, 0.12);
  }

  body[data-active-view="home"] .brand {
    min-width: 0;
  }

  body[data-active-view="home"] .brand-logo {
    width: 210px;
    height: 58px;
    transform: scale(1.42);
  }

  body[data-active-view="home"] .topbar .btn {
    border-color: rgba(244, 246, 248, 0.22);
    background: rgba(244, 246, 248, 0.06);
    color: #f7f4eb;
  }
}

@media (max-width: 560px) {
  body[data-active-view="home"] .brand-logo {
    width: 176px;
    height: 54px;
    transform: scale(1.34);
  }
}
