/* =========================================================
   FASHCOACH
   Core mobile-first visual system
========================================================= */

:root {
  --bg: #070a12;
  --bg-elevated: #0d111d;
  --panel: rgba(17, 22, 36, 0.82);
  --panel-strong: #111727;
  --panel-soft: rgba(255, 255, 255, 0.045);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f7f9ff;
  --text-soft: #a4acc0;
  --text-muted: #6f788d;

  --accent: #7c5cff;
  --accent-light: #a892ff;
  --accent-cyan: #2ee9d1;
  --accent-blue: #3b82f6;

  --success: #45e2a2;
  --danger: #ff647c;
  --warning: #ffce69;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --sidebar-width: 250px;

  --shadow:
    0 30px 90px rgba(0, 0, 0, 0.35);

  --transition:
    180ms ease;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}


html,
body {
  margin: 0;
  min-height: 100%;
}


html {
  background: var(--bg);
}


body {
  min-height: 100vh;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(124, 92, 255, 0.1),
      transparent 32%
    ),
    var(--bg);

  color: var(--text);

  -webkit-font-smoothing: antialiased;
}


button,
input {
  font: inherit;
}


button {
  color: inherit;
}


button,
a {
  -webkit-tap-highlight-color: transparent;
}


button {
  cursor: pointer;
}


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


svg {
  display: block;
}


.hidden {
  display: none !important;
}


/* =========================================================
   BRAND
========================================================= */

.brand,
.startup-logo,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}


.brand-mark {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--accent-light),
      var(--accent),
      #4a36d3
    );

  box-shadow:
    0 0 28px rgba(124, 92, 255, 0.4);

  color: white;
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
}


.brand-word {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}


.eyebrow {
  display: inline-flex;

  color: var(--accent-cyan);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.18em;
}


/* =========================================================
   STARTUP
========================================================= */

.startup-view {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(124, 92, 255, 0.14),
      transparent 35%
    ),
    var(--bg);
}


.startup-logo {
  margin-bottom: 30px;
}


.startup-loader {
  width: 160px;
  height: 2px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
}


.startup-loader::after {
  content: "";

  display: block;

  width: 45%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent-cyan),
      var(--accent)
    );

  animation: loaderMove 1.1s ease-in-out infinite;
}


.startup-text {
  margin: 16px 0 0;

  color: var(--text-muted);

  font-size: 12px;
}


@keyframes loaderMove {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(330%);
  }
}


/* =========================================================
   AUTHENTICATION
========================================================= */

.auth-view {
  position: relative;

  min-height: 100vh;

  overflow: hidden;
}


.auth-background {
  position: fixed;
  inset: 0;

  pointer-events: none;
}


.glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  opacity: 0.22;
}


.glow-one {
  width: 420px;
  height: 420px;

  top: -180px;
  left: -120px;

  background: var(--accent);
}


.glow-two {
  width: 360px;
  height: 360px;

  right: -120px;
  bottom: -160px;

  background: var(--accent-cyan);
}


.glow-three {
  width: 240px;
  height: 240px;

  top: 35%;
  left: 45%;

  background: var(--accent-blue);

  opacity: 0.1;
}


.grid-overlay {
  position: absolute;
  inset: 0;

  opacity: 0.055;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1px
    );

  background-size: 56px 56px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 85%
    );
}


.auth-layout {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);

  min-height: 100vh;
}


.auth-showcase {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 100vh;

  padding: 46px clamp(38px, 6vw, 90px);

  overflow: hidden;
}


.showcase-content {
  position: relative;
  z-index: 2;

  max-width: 630px;

  margin: auto 0;
}


.showcase-content h1 {
  max-width: 600px;

  margin: 18px 0 22px;

  font-size:
    clamp(
      48px,
      6vw,
      86px
    );

  line-height: 0.96;

  letter-spacing: -0.065em;
}


.showcase-content h1 span {
  display: block;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      var(--accent-light),
      var(--accent-cyan)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


.showcase-content > p {
  max-width: 560px;

  margin: 0;

  color: var(--text-soft);

  font-size: 17px;
  line-height: 1.7;
}


.showcase-stats {
  display: flex;
  gap: 10px;

  margin-top: 38px;
}


.showcase-stat {
  display: flex;
  flex-direction: column;

  min-width: 108px;

  padding: 15px 17px;

  border: 1px solid var(--line);

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(12px);
}


.stat-number {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 800;
}


.stat-label {
  margin-top: 4px;

  font-size: 14px;
  font-weight: 700;
}


.performance-orbit {
  position: absolute;

  width: 490px;
  height: 490px;

  right: -150px;
  bottom: -160px;

  opacity: 0.5;
}


.orbit {
  position: absolute;
  inset: 50% auto auto 50%;

  border: 1px solid rgba(124, 92, 255, 0.25);

  border-radius: 50%;

  transform: translate(-50%, -50%);
}


.orbit-large {
  width: 490px;
  height: 490px;
}


.orbit-medium {
  width: 350px;
  height: 350px;
}


.orbit-small {
  width: 210px;
  height: 210px;
}


.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 110px;
  height: 110px;

  border:
    1px solid
    rgba(46, 233, 209, 0.35);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(46, 233, 209, 0.14),
      rgba(124, 92, 255, 0.08)
    );

  transform: translate(-50%, -50%);
}


.orbit-core span {
  font-size: 30px;
  font-weight: 800;
}


.orbit-core small {
  color: var(--accent-cyan);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.15em;
}


.orbit-point {
  position: absolute;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--accent-cyan);

  box-shadow:
    0 0 18px var(--accent-cyan);
}


.point-one {
  top: 80px;
  left: 205px;
}


.point-two {
  right: 75px;
  bottom: 150px;

  background: var(--accent-light);

  box-shadow:
    0 0 18px var(--accent);
}


/* =========================================================
   AUTH PANEL
========================================================= */

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 32px;
}


.auth-card {
  width: min(100%, 490px);

  padding: clamp(28px, 4vw, 44px);

  border: 1px solid var(--line);

  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      rgba(18, 23, 39, 0.88),
      rgba(10, 14, 24, 0.82)
    );

  box-shadow: var(--shadow);

  backdrop-filter: blur(28px);
}


.mobile-brand {
  display: none;

  margin-bottom: 42px;
}


.auth-heading h2 {
  margin: 13px 0 9px;

  font-size:
    clamp(
      30px,
      4vw,
      40px
    );

  line-height: 1.08;

  letter-spacing: -0.04em;
}


.auth-heading p {
  margin: 0;

  color: var(--text-soft);

  font-size: 14px;
}


.auth-form {
  display: grid;
  gap: 19px;

  margin-top: 33px;
}


.field {
  display: grid;
  gap: 9px;
}


.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.field-label {
  color: #ccd1dd;

  font-size: 12px;
  font-weight: 700;
}


.field-control {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 55px;

  padding: 0 15px;

  border: 1px solid var(--line);

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.035);

  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}


.field-control:focus-within {
  border-color:
    rgba(124, 92, 255, 0.58);

  background:
    rgba(124, 92, 255, 0.055);

  box-shadow:
    0 0 0 4px
    rgba(124, 92, 255, 0.08);
}


.field-control > svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: var(--text-muted);

  stroke-width: 1.7;

  flex: 0 0 auto;
}


.field-control input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 15px;
}


.field-control input::placeholder {
  color: #555e72;
}


.text-button,
.password-toggle {
  border: 0;

  background: transparent;
}


.text-button {
  padding: 0;

  color: var(--accent-light);

  font-size: 11px;
  font-weight: 700;
}


.password-toggle {
  display: grid;
  place-items: center;

  padding: 5px;
}


.password-toggle svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: var(--text-muted);

  stroke-width: 1.7;
}


.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 56px;

  margin-top: 5px;

  border: 0;

  border-radius: 16px;

  background:
    linear-gradient(
      105deg,
      var(--accent),
      #6650e8,
      var(--accent-blue)
    );

  box-shadow:
    0 12px 35px rgba(103, 80, 232, 0.25);

  color: white;

  font-weight: 800;

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}


.primary-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 16px 40px rgba(103, 80, 232, 0.35);
}


.primary-button:active {
  transform: translateY(1px);
}


.primary-button:disabled {
  cursor: wait;

  opacity: 0.65;
}


.primary-button svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;

  stroke-width: 2;
}


.auth-divider {
  display: flex;
  align-items: center;
  gap: 13px;

  margin: 25px 0;

  color: var(--text-muted);

  font-size: 10px;
}


.auth-divider::before,
.auth-divider::after {
  content: "";

  height: 1px;

  flex: 1;

  background: var(--line);
}


.provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  width: 100%;
  min-height: 54px;

  border: 1px solid var(--line);

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.03);

  color: var(--text);

  font-weight: 700;

  transition:
    background var(--transition),
    border-color var(--transition);
}


.provider-button:hover {
  border-color: var(--line-strong);

  background:
    rgba(255, 255, 255, 0.06);
}


.google-icon {
  width: 20px;
  height: 20px;

  fill: currentColor;
}


.auth-footnote {
  margin: 23px 0 0;

  color: var(--text-muted);

  text-align: center;

  font-size: 10px;
}


.alert {
  margin-top: 22px;

  padding: 13px 15px;

  border-radius: 13px;

  font-size: 12px;
  line-height: 1.5;
}


.alert-error {
  border:
    1px solid
    rgba(255, 100, 124, 0.2);

  background:
    rgba(255, 100, 124, 0.075);

  color: #ff9eae;
}


/* =========================================================
   APP SHELL
========================================================= */

.shell-view {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 70% -10%,
      rgba(124, 92, 255, 0.09),
      transparent 30%
    ),
    var(--bg);
}


.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;

  display: flex;
  flex-direction: column;

  width: var(--sidebar-width);

  padding: 28px 20px;

  border-right: 1px solid var(--line);

  background:
    rgba(8, 11, 19, 0.88);

  backdrop-filter: blur(22px);
}


.sidebar-brand {
  padding: 0 9px;

  margin-bottom: 44px;
}


.sidebar-nav {
  display: grid;
  gap: 7px;
}


.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;

  width: 100%;

  min-height: 48px;

  padding: 0 14px;

  border: 0;

  border-radius: 13px;

  background: transparent;

  color: var(--text-muted);

  text-align: left;

  font-size: 13px;
  font-weight: 650;

  transition:
    background var(--transition),
    color var(--transition);
}


.nav-item svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
}


.nav-item:hover {
  color: var(--text);

  background: var(--panel-soft);
}


.nav-item.active {
  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(124, 92, 255, 0.18),
      rgba(124, 92, 255, 0.05)
    );
}


.nav-item.active svg {
  color: var(--accent-light);
}


.sidebar-bottom {
  margin-top: auto;
}


.performance-chip {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 12px;

  border: 1px solid var(--line);

  border-radius: 13px;

  color: var(--text-muted);

  font-size: 10px;
}


.pulse-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 10px var(--success);
}


.app-main {
  min-height: 100vh;

  margin-left: var(--sidebar-width);
}


.topbar {
  position: sticky;
  top: 0;
  z-index: 40;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 90px;

  padding:
    18px
    clamp(24px, 4vw, 54px);

  border-bottom: 1px solid var(--line);

  background:
    rgba(7, 10, 18, 0.76);

  backdrop-filter: blur(25px);
}


.topbar-eyebrow {
  margin: 0 0 3px;

  color: var(--text-muted);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.17em;
}


.topbar h1 {
  margin: 0;

  font-size: 22px;

  letter-spacing: -0.035em;
}


.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}


.icon-button {
  position: relative;

  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;

  border: 1px solid var(--line);

  border-radius: 13px;

  background: var(--panel-soft);
}


.icon-button svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: var(--text-soft);

  stroke-width: 1.7;
}


.notification-dot {
  position: absolute;
  top: 8px;
  right: 9px;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--danger);

  box-shadow:
    0 0 10px var(--danger);
}


.profile-button {
  display: flex;
  align-items: center;
  gap: 11px;

  min-height: 46px;

  padding: 5px 9px 5px 5px;

  border: 1px solid var(--line);

  border-radius: 15px;

  background: var(--panel-soft);
}


.profile-avatar {
  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  flex: 0 0 auto;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-blue)
    );

  color: white;

  font-size: 13px;
  font-weight: 800;
}


.profile-avatar.large {
  width: 44px;
  height: 44px;

  border-radius: 13px;

  font-size: 15px;
}


.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 100px;

  text-align: left;
}


.profile-copy strong {
  max-width: 160px;

  overflow: hidden;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.profile-copy small {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;
}


.profile-button > svg {
  width: 15px;
  height: 15px;

  fill: none;
  stroke: var(--text-muted);

  stroke-width: 1.8;
}


/* =========================================================
   CONTENT
========================================================= */

.content-area {
  padding:
    clamp(24px, 4vw, 52px);

  padding-bottom: 110px;
}


.workspace-state {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(100%, 760px);

  margin: clamp(40px, 9vh, 100px) auto 0;

  padding:
    clamp(35px, 6vw, 70px);

  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      rgba(18, 23, 39, 0.77),
      rgba(9, 13, 23, 0.92)
    );

  box-shadow: var(--shadow);

  text-align: center;
}


.workspace-glow {
  position: absolute;

  width: 280px;
  height: 280px;

  top: -160px;

  border-radius: 50%;

  background: var(--accent);

  filter: blur(80px);

  opacity: 0.15;
}


.workspace-icon {
  position: relative;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;

  width: 72px;
  height: 72px;

  margin-bottom: 28px;

  padding: 18px;

  border:
    1px solid
    rgba(124, 92, 255, 0.22);

  border-radius: 22px;

  background:
    rgba(124, 92, 255, 0.08);
}


.workspace-icon span {
  width: 6px;

  border-radius: 999px;

  background:
    linear-gradient(
      to top,
      var(--accent),
      var(--accent-cyan)
    );

  animation:
    bars 1.2s ease-in-out infinite;
}


.workspace-icon span:nth-child(1) {
  height: 15px;
}


.workspace-icon span:nth-child(2) {
  height: 28px;

  animation-delay: 0.15s;
}


.workspace-icon span:nth-child(3) {
  height: 21px;

  animation-delay: 0.3s;
}


@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.7);

    opacity: 0.55;
  }

  50% {
    transform: scaleY(1);

    opacity: 1;
  }
}


.workspace-state h2 {
  margin: 12px 0 12px;

  font-size:
    clamp(
      28px,
      4vw,
      43px
    );

  letter-spacing: -0.045em;
}


.workspace-state p {
  max-width: 510px;

  margin: 0;

  color: var(--text-soft);

  font-size: 14px;
  line-height: 1.7;
}


.workspace-progress {
  width: min(100%, 310px);
  height: 3px;

  margin-top: 33px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
}


.workspace-progress span {
  display: block;

  width: 40%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--accent-cyan)
    );

  animation:
    workspaceLoad 1.5s ease-in-out infinite;
}


@keyframes workspaceLoad {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(350%);
  }
}


/* =========================================================
   PROFILE MENU
========================================================= */

.profile-menu {
  position: fixed;
  top: 78px;
  right: 28px;
  z-index: 100;

  width: min(310px, calc(100vw - 32px));

  padding: 12px;

  border: 1px solid var(--line-strong);

  border-radius: 18px;

  background:
    rgba(15, 20, 34, 0.96);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.42);

  backdrop-filter: blur(30px);
}


.profile-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 8px;

  margin-bottom: 8px;
}


.profile-menu-user div {
  display: flex;
  flex-direction: column;

  min-width: 0;
}


.profile-menu-user strong {
  font-size: 12px;
}


.profile-menu-user small {
  margin-top: 3px;

  overflow: hidden;

  color: var(--text-muted);

  font-size: 10px;

  text-overflow: ellipsis;
}


.menu-action {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;

  min-height: 43px;

  padding: 0 12px;

  border: 0;

  border-radius: 11px;

  background: transparent;

  font-size: 12px;
  font-weight: 650;
}


.menu-action:hover {
  background: var(--panel-soft);
}


.menu-action.danger {
  color: #ff899c;
}


.menu-action svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-nav {
  display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .auth-layout {
    grid-template-columns: 1fr;
  }


  .auth-showcase {
    display: none;
  }


  .auth-panel {
    padding: 22px;
  }


  .mobile-brand {
    display: inline-flex;
  }

}


/* =========================================================
   MOBILE APP
========================================================= */

@media (max-width: 760px) {

  body {
    overscroll-behavior-y: none;
  }


  .auth-panel {
    align-items: flex-start;

    padding:
      max(24px, env(safe-area-inset-top))
      17px
      max(28px, env(safe-area-inset-bottom));
  }


  .auth-card {
    margin-top: 18px;

    padding: 25px 20px;

    border-radius: 26px;
  }


  .mobile-brand {
    margin-bottom: 44px;
  }


  .auth-heading h2 {
    font-size: 32px;
  }


  .field-control {
    min-height: 57px;
  }


  .primary-button,
  .provider-button {
    min-height: 57px;
  }


  .sidebar {
    display: none;
  }


  .app-main {
    margin-left: 0;
  }


  .topbar {
    min-height: 76px;

    padding:
      max(12px, env(safe-area-inset-top))
      17px
      12px;
  }


  .topbar h1 {
    font-size: 19px;
  }


  .topbar-actions {
    gap: 8px;
  }


  .profile-copy,
  .profile-button > svg {
    display: none;
  }


  .profile-button {
    min-height: 42px;

    padding: 4px;

    border: 0;

    background: transparent;
  }


  .profile-avatar {
    width: 38px;
    height: 38px;

    border-radius: 12px;
  }


  .icon-button {
    width: 40px;
    height: 40px;

    border: 0;

    background: transparent;
  }


  .content-area {
    padding:
      22px
      16px
      calc(
        100px +
        env(safe-area-inset-bottom)
      );
  }


  .workspace-state {
    margin: 22px auto 0;

    padding: 40px 22px;

    border-radius: 25px;
  }


  .workspace-state h2 {
    font-size: 30px;
  }


  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom:
      max(
        11px,
        env(safe-area-inset-bottom)
      );
    z-index: 80;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    min-height: 68px;

    padding: 7px;

    border:
      1px solid
      rgba(255, 255, 255, 0.1);

    border-radius: 22px;

    background:
      rgba(14, 18, 30, 0.92);

    box-shadow:
      0 20px 60px
      rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(26px);
  }


  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-width: 0;

    border: 0;

    border-radius: 16px;

    background: transparent;

    color: var(--text-muted);

    font-size: 8px;
    font-weight: 700;
  }


  .mobile-nav-item svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
  }


  .mobile-nav-item.active {
    background:
      linear-gradient(
        180deg,
        rgba(124, 92, 255, 0.19),
        rgba(124, 92, 255, 0.06)
      );

    color: var(--accent-light);
  }


  .profile-menu {
    top: auto;
    right: 14px;
    bottom:
      calc(
        91px +
        env(safe-area-inset-bottom)
      );
    left: 14px;

    width: auto;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

  .auth-card {
    padding-inline: 17px;
  }


  .showcase-stats {
    gap: 7px;
  }


  .workspace-state {
    padding-inline: 18px;
  }

}
/* =========================================================
   DASHBOARD
========================================================= */

.dashboard {
  display: grid;
  gap: 24px;

  max-width: 1500px;

  margin: 0 auto;
}


.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;

  padding: 6px 2px 14px;
}


.dashboard-hero h2 {
  margin: 10px 0 8px;

  font-size:
    clamp(
      32px,
      4.5vw,
      58px
    );

  letter-spacing: -0.055em;

  line-height: 1;
}


.dashboard-hero p {
  margin: 0;

  color: var(--text-soft);

  font-size: 14px;
}


.hero-status {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 13px 16px;

  border: 1px solid var(--line);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.035);
}


.hero-status div {
  display: flex;
  flex-direction: column;
}


.hero-status strong {
  font-size: 11px;
}


.hero-status small {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;
}


/* METRICS */

.metric-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}


.metric-card {
  position: relative;

  min-height: 190px;

  padding: 21px;

  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(20, 25, 42, 0.8),
      rgba(11, 15, 26, 0.92)
    );

  transition:
    transform 180ms ease,
    border-color 180ms ease;
}


.metric-card:hover {
  transform: translateY(-2px);

  border-color:
    rgba(124, 92, 255, 0.28);
}


.metric-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  margin-bottom: 25px;

  border-radius: 13px;

  background:
    rgba(124, 92, 255, 0.11);

  color: var(--accent-light);
}


.metric-icon.training {
  color: var(--accent-cyan);

  background:
    rgba(46, 233, 209, 0.08);
}


.metric-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
}


.metric-value {
  font-size: 37px;
  font-weight: 800;

  letter-spacing: -0.05em;
}


.metric-label {
  margin-top: 2px;

  font-size: 13px;
  font-weight: 750;
}


.metric-caption {
  margin-top: 6px;

  color: var(--text-muted);

  font-size: 10px;
}


/* DASHBOARD PANELS */

.dashboard-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 0.9fr);

  gap: 14px;
}


.dashboard-card {
  border: 1px solid var(--line);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(18, 23, 39, 0.76),
      rgba(10, 14, 24, 0.92)
    );
}


.training-card,
.attention-card {
  min-height: 320px;

  padding: 23px;
}


.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}


.card-kicker {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.16em;
}


.card-heading h3,
.quick-action-card h3 {
  margin: 6px 0 0;

  font-size: 20px;

  letter-spacing: -0.035em;
}


.card-badge {
  padding: 7px 9px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.045);

  color: var(--text-soft);

  font-size: 9px;
}


/* TRAINING */

.training-progress {
  display: flex;
  align-items: center;
  gap: 40px;

  margin-top: 39px;
}


.progress-ring {
  display: grid;
  place-items: center;

  width: 150px;
  height: 150px;

  flex: 0 0 auto;

  border-radius: 50%;

  background:
    conic-gradient(
      var(--accent-cyan)
      var(--progress),
      rgba(255, 255, 255, 0.055)
      0deg
    );
}


.progress-ring::before {
  content: "";

  position: absolute;

  width: 128px;
  height: 128px;

  border-radius: 50%;

  background: #0e1321;
}


.progress-ring {
  position: relative;
}


.progress-ring-inner {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
}


.progress-ring-inner strong {
  font-size: 29px;

  letter-spacing: -0.04em;
}


.progress-ring-inner span {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 9px;

  text-transform: uppercase;
}


.training-breakdown {
  display: grid;
  gap: 17px;

  width: 100%;
}


.training-stat {
  display: grid;
  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 10px;

  color: var(--text-soft);

  font-size: 11px;
}


.training-stat strong {
  color: var(--text);

  font-size: 14px;
}


.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}


.status-dot.success {
  background: var(--success);

  box-shadow:
    0 0 10px
    rgba(69, 226, 162, 0.45);
}


.status-dot.active {
  background: var(--accent);

  box-shadow:
    0 0 10px
    rgba(124, 92, 255, 0.5);
}


.status-dot.muted {
  background: var(--text-muted);
}


/* WELLNESS */

.attention-count {
  display: grid;
  place-items: center;

  min-width: 34px;
  height: 34px;

  padding: 0 10px;

  border-radius: 11px;

  font-size: 12px;
  font-weight: 800;
}


.attention-count.warning {
  background:
    rgba(255, 206, 105, 0.1);

  color: var(--warning);
}


.attention-count.clear {
  background:
    rgba(69, 226, 162, 0.08);

  color: var(--success);
}


.attention-list {
  display: grid;
  gap: 8px;

  margin-top: 25px;
}


.attention-athlete {
  display: flex;
  align-items: center;
  gap: 11px;

  width: 100%;

  padding: 11px;

  border: 1px solid transparent;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.025);

  text-align: left;

  transition:
    border-color 180ms ease,
    background 180ms ease;
}


.attention-athlete:hover {
  border-color: var(--line);

  background:
    rgba(255, 255, 255, 0.045);
}


.attention-avatar {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  flex: 0 0 auto;

  border-radius: 11px;

  background:
    rgba(255, 206, 105, 0.09);

  color: var(--warning);

  font-size: 12px;
  font-weight: 800;
}


.attention-copy {
  display: flex;
  flex-direction: column;

  min-width: 0;

  flex: 1;
}


.attention-copy strong {
  overflow: hidden;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


.attention-copy small {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 9px;
}


.attention-metrics {
  display: flex;
  gap: 7px;
}


.attention-metrics > span {
  display: flex;
  align-items: center;
  gap: 3px;

  padding: 5px 7px;

  border-radius: 8px;

  background:
    rgba(255, 255, 255, 0.035);

  color: var(--text-muted);

  font-size: 8px;
}


.attention-metrics strong {
  color: var(--text-soft);

  font-size: 9px;
}


.empty-signal {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 22px;

  border-radius: 16px;

  background:
    rgba(69, 226, 162, 0.035);
}


.empty-signal-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  border-radius: 13px;

  background:
    rgba(69, 226, 162, 0.08);

  color: var(--success);

  font-size: 18px;
}


.empty-signal strong {
  font-size: 12px;
}


.empty-signal p {
  margin: 4px 0 0;

  color: var(--text-muted);

  font-size: 10px;

  line-height: 1.5;
}


/* QUICK ACTIONS */

.quick-action-card {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.45fr)
    minmax(0, 1fr);

  gap: 25px;

  padding: 23px;
}


.quick-actions {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 9px;
}


.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 75px;

  padding: 13px;

  border: 1px solid var(--line);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.025);

  text-align: left;
}


.quick-action > span:first-child {
  display: flex;
  flex-direction: column;
}


.quick-action strong {
  font-size: 10px;
}


.quick-action small {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 8px;
}


.quick-arrow {
  color: var(--accent-light);

  font-size: 16px;
}


/* =========================================================
   WORKSPACE PICKER
========================================================= */

.workspace-picker {
  width: min(100%, 720px);

  margin: 50px auto 0;
}


.workspace-picker h2 {
  margin: 12px 0 9px;

  font-size:
    clamp(
      32px,
      5vw,
      48px
    );

  letter-spacing: -0.05em;
}


.workspace-picker > p {
  margin: 0;

  color: var(--text-soft);

  font-size: 13px;
}


.workspace-list {
  display: grid;
  gap: 10px;

  margin-top: 32px;
}


.workspace-option {
  display: flex;
  align-items: center;
  gap: 14px;

  width: 100%;

  padding: 14px;

  border: 1px solid var(--line);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.025);

  text-align: left;
}


.workspace-option:hover {
  border-color:
    rgba(124, 92, 255, 0.35);

  background:
    rgba(124, 92, 255, 0.045);
}


.workspace-option-logo {
  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;

  flex: 0 0 auto;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-blue)
    );

  font-weight: 850;
}


.workspace-option-copy {
  display: flex;
  flex-direction: column;

  flex: 1;
}


.workspace-option-copy strong {
  font-size: 12px;
}


.workspace-option-copy small {
  margin-top: 4px;

  color: var(--text-muted);

  font-size: 9px;
}


.workspace-option-arrow {
  color: var(--accent-light);
}


/* =========================================================
   WORKSPACE NOTE
========================================================= */

.workspace-note {
  max-width: 520px;

  margin-top: 28px;

  padding: 15px 17px;

  border: 1px solid var(--line);

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.025);

  color: var(--text-muted);

  font-size: 11px;

  line-height: 1.6;
}


/* =========================================================
   RESPONSIVE DASHBOARD
========================================================= */

@media (max-width: 1100px) {

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


  .quick-action-card {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 900px) {

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


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

}


@media (max-width: 760px) {

  .dashboard {
    gap: 14px;
  }


  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;

    padding-top: 7px;
  }


  .dashboard-hero h2 {
    font-size: 36px;
  }


  .hero-status {
    width: 100%;
  }


  .metric-grid {
    gap: 9px;
  }


  .metric-card {
    min-height: 156px;

    padding: 16px;

    border-radius: 18px;
  }


  .metric-icon {
    width: 35px;
    height: 35px;

    margin-bottom: 18px;
  }


  .metric-value {
    font-size: 29px;
  }


  .training-card,
  .attention-card {
    min-height: auto;

    padding: 18px;

    border-radius: 18px;
  }


  .training-progress {
    align-items: flex-start;
    flex-direction: column;

    gap: 25px;

    margin-top: 28px;
  }


  .progress-ring {
    width: 130px;
    height: 130px;

    align-self: center;
  }


  .progress-ring::before {
    width: 110px;
    height: 110px;
  }


  .attention-metrics {
    display: none;
  }


  .quick-action-card {
    padding: 18px;

    border-radius: 18px;
  }


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

}


@media (max-width: 420px) {

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


  .metric-caption {
    font-size: 8px;
  }


  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

}
/* =========================================================
   PLATFORM CONTROL CENTRE
========================================================= */

.platform-dashboard,
.platform-list-page,
.organisation-inspector {
  display: grid;
  gap: 24px;

  max-width: 1500px;

  margin: 0 auto;
}


.platform-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 25px;

  padding:
    8px
    2px
    14px;
}


.platform-hero h2,
.platform-page-heading h2,
.organisation-inspector-hero h2 {
  margin:
    10px
    0
    8px;

  font-size:
    clamp(
      34px,
      4.5vw,
      60px
    );

  line-height: 0.98;

  letter-spacing:
    -0.055em;
}


.platform-hero p,
.platform-page-heading p,
.organisation-inspector-hero p {
  margin: 0;

  color: var(--text-soft);

  font-size: 13px;
}


.platform-live {
  display: flex;
  align-items: center;
  gap: 11px;

  padding:
    13px
    16px;

  border:
    1px solid
    var(--line);

  border-radius:
    16px;

  background:
    rgba(
      255,
      255,
      255,
      0.035
    );
}


.platform-live div {
  display: flex;
  flex-direction: column;
}


.platform-live strong {
  font-size: 11px;
}


.platform-live small {
  margin-top: 2px;

  color:
    var(--text-muted);

  font-size: 9px;
}


/* =========================================================
   PLATFORM METRICS
========================================================= */

.platform-metric-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  gap: 14px;
}


.platform-metric {
  position: relative;

  min-height: 195px;

  padding: 22px;

  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius:
    23px;

  background:
    linear-gradient(
      145deg,
      rgba(
        22,
        27,
        47,
        0.82
      ),
      rgba(
        10,
        14,
        25,
        0.94
      )
    );

  transition:
    transform
    180ms ease,
    border-color
    180ms ease;
}


.platform-metric:hover {
  transform:
    translateY(
      -2px
    );

  border-color:
    rgba(
      124,
      92,
      255,
      0.32
    );
}


.platform-metric::after {
  content: "";

  position: absolute;

  width: 130px;
  height: 130px;

  right: -55px;
  top: -55px;

  border-radius: 50%;

  background:
    var(--accent);

  opacity: 0.06;

  filter:
    blur(
      15px
    );
}


.platform-metric-icon {
  display: grid;

  place-items: center;

  width: 43px;
  height: 43px;

  margin-bottom: 26px;

  border-radius:
    13px;

  background:
    rgba(
      124,
      92,
      255,
      0.1
    );

  color:
    var(--accent-light);
}


.platform-metric-icon.active {
  color:
    var(--success);

  background:
    rgba(
      69,
      226,
      162,
      0.07
    );
}


.platform-metric-icon.users {
  color:
    var(--accent-cyan);

  background:
    rgba(
      46,
      233,
      209,
      0.07
    );
}


.platform-metric-icon svg,
.command-icon svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke:
    currentColor;

  stroke-width: 1.7;
}


.platform-metric > strong {
  display: block;

  font-size: 38px;

  line-height: 1;

  letter-spacing:
    -0.05em;
}


.platform-metric > span:not(
  .platform-metric-icon
) {
  display: block;

  margin-top: 7px;

  font-size: 12px;

  font-weight: 750;
}


.platform-metric > small {
  display: block;

  margin-top: 5px;

  color:
    var(--text-muted);

  font-size: 9px;
}


/* =========================================================
   PLATFORM COMMAND CENTRE
========================================================= */

.platform-command-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        0.7fr
      )
    )
    minmax(
      300px,
      1fr
    );

  gap: 14px;
}


.platform-command-card,
.platform-system-card {
  min-height: 190px;

  padding: 23px;

  border:
    1px solid
    var(--line);

  border-radius:
    22px;

  background:
    linear-gradient(
      145deg,
      rgba(
        18,
        23,
        39,
        0.76
      ),
      rgba(
        10,
        14,
        24,
        0.92
      )
    );
}


.platform-command-card {
  display: flex;

  align-items: center;

  gap: 15px;

  text-align: left;
}


.platform-command-card:hover {
  border-color:
    rgba(
      124,
      92,
      255,
      0.35
    );
}


.command-icon {
  display: grid;

  place-items: center;

  width: 50px;
  height: 50px;

  flex:
    0 0 auto;

  border-radius:
    15px;

  background:
    rgba(
      124,
      92,
      255,
      0.1
    );

  color:
    var(--accent-light);
}


.platform-command-card > span:nth-child(2) {
  display: flex;

  flex-direction:
    column;

  flex: 1;
}


.platform-command-card strong {
  font-size: 13px;
}


.platform-command-card small {
  margin-top: 5px;

  color:
    var(--text-muted);

  font-size: 9px;

  line-height: 1.5;
}


.command-arrow {
  color:
    var(--accent-light);

  font-size: 20px;
}


.platform-system-card {
  display: flex;

  align-items: center;

  gap: 23px;
}


.system-orbit {
  display: grid;

  place-items: center;

  width: 100px;
  height: 100px;

  flex: 0 0 auto;

  border:
    1px solid
    rgba(
      46,
      233,
      209,
      0.16
    );

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(
        46,
        233,
        209,
        0.08
      ),
      transparent
    );
}


.system-core {
  display: grid;

  place-items: center;

  width: 55px;
  height: 55px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-cyan)
    );

  color: white;

  font-size: 13px;

  font-weight: 900;
}


.platform-system-card h3 {
  margin:
    7px
    0;

  font-size: 17px;
}


.platform-system-card p {
  margin: 0;

  color:
    var(--text-muted);

  font-size: 10px;

  line-height: 1.6;
}


/* =========================================================
   PLATFORM LIST
========================================================= */

.platform-page-heading {
  display: flex;

  justify-content:
    space-between;

  align-items:
    flex-end;

  padding:
    7px
    2px;
}


.platform-table {
  overflow: hidden;

  border:
    1px solid
    var(--line);

  border-radius:
    22px;

  background:
    rgba(
      15,
      20,
      34,
      0.65
    );
}


.platform-table-head,
.platform-table-row {
  display: grid;

  grid-template-columns:
    minmax(
      260px,
      1.5fr
    )
    0.7fr
    0.7fr
    40px;

  align-items: center;

  gap: 14px;

  padding:
    15px
    20px;
}


.platform-table-head {
  border-bottom:
    1px solid
    var(--line);

  color:
    var(--text-muted);

  font-size: 9px;

  font-weight: 800;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}


.platform-table-row {
  width: 100%;

  min-height: 74px;

  border: 0;

  border-bottom:
    1px solid
    var(--line);

  background:
    transparent;

  text-align: left;

  color:
    var(--text-soft);
}


.platform-table-row:last-child {
  border-bottom: 0;
}


.platform-table-row:hover {
  background:
    rgba(
      124,
      92,
      255,
      0.045
    );
}


.platform-primary-cell {
  display: flex;

  align-items: center;

  gap: 12px;
}


.organisation-avatar,
.platform-user-avatar,
.organisation-large-avatar {
  display: grid;

  place-items: center;

  flex: 0 0 auto;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-blue)
    );

  color: white;

  font-weight: 850;
}


.organisation-avatar {
  width: 40px;
  height: 40px;

  border-radius:
    12px;
}


.platform-primary-cell > span:last-child {
  display: flex;

  flex-direction:
    column;
}


.platform-primary-cell strong {
  color:
    var(--text);

  font-size: 11px;
}


.platform-primary-cell small {
  margin-top: 3px;

  color:
    var(--text-muted);

  font-size: 9px;
}


.platform-status {
  display: inline-flex;

  padding:
    6px
    9px;

  border-radius:
    999px;

  background:
    rgba(
      69,
      226,
      162,
      0.07
    );

  color:
    var(--success);

  font-size: 8px;

  font-weight: 800;
}


.row-arrow {
  color:
    var(--accent-light);
}


/* =========================================================
   PLATFORM USERS
========================================================= */

.platform-user-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}


.platform-user-card {
  display: flex;

  align-items: center;

  gap: 12px;

  min-height: 94px;

  padding: 15px;

  border:
    1px solid
    var(--line);

  border-radius:
    18px;

  background:
    rgba(
      255,
      255,
      255,
      0.025
    );
}


.platform-user-avatar {
  width: 45px;
  height: 45px;

  border-radius:
    14px;
}


.platform-user-copy {
  display: flex;

  flex-direction:
    column;

  min-width: 0;

  flex: 1;
}


.platform-user-copy strong {
  overflow: hidden;

  color:
    var(--text);

  font-size: 11px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.platform-user-copy small {
  margin-top: 4px;

  overflow: hidden;

  color:
    var(--text-muted);

  font-size: 9px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.platform-user-meta {
  display: flex;

  flex-direction:
    column;

  align-items:
    flex-end;

  gap: 6px;

  color:
    var(--text-muted);

  font-size: 8px;
}


.super-admin-chip {
  padding:
    4px
    6px;

  border-radius:
    999px;

  background:
    rgba(
      124,
      92,
      255,
      0.1
    );

  color:
    var(--accent-light);
}


/* =========================================================
   ORGANISATION INSPECTOR
========================================================= */

.platform-back-button {
  justify-self:
    start;

  padding:
    8px
    0;

  border: 0;

  background:
    transparent;

  color:
    var(--accent-light);

  font-size: 11px;

  font-weight: 700;
}


.organisation-inspector-hero {
  display: flex;

  align-items: center;

  gap: 20px;
}


.organisation-large-avatar {
  width: 80px;
  height: 80px;

  border-radius:
    24px;

  font-size: 25px;
}


.organisation-detail-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}


.organisation-detail-card {
  min-height: 120px;

  padding: 18px;

  border:
    1px solid
    var(--line);

  border-radius:
    18px;

  background:
    rgba(
      255,
      255,
      255,
      0.025
    );
}


.organisation-detail-card span {
  color:
    var(--text-muted);

  font-size: 9px;

  text-transform:
    uppercase;

  letter-spacing:
    0.07em;
}


.organisation-detail-card strong {
  display: block;

  margin-top: 15px;

  overflow-wrap:
    anywhere;

  font-size: 13px;
}


.platform-detail-panel {
  padding: 22px;

  border:
    1px solid
    var(--line);

  border-radius:
    20px;

  background:
    rgba(
      255,
      255,
      255,
      0.025
    );
}


.platform-detail-panel h3 {
  margin:
    7px
    0;
}


.platform-detail-panel p {
  margin: 0;

  color:
    var(--text-muted);

  font-size: 10px;
}


/* =========================================================
   PLATFORM MISC
========================================================= */

.platform-empty {
  padding: 40px;

  color:
    var(--text-muted);

  text-align: center;

  font-size: 11px;
}


.coach-simple-stats {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 10px;

  margin-top: 35px;
}


.coach-simple-stats span {
  display: flex;

  flex-direction:
    column;

  padding: 15px;

  border-radius:
    14px;

  background:
    rgba(
      255,
      255,
      255,
      0.03
    );

  color:
    var(--text-muted);

  font-size: 9px;
}


.coach-simple-stats strong {
  margin-top: 8px;

  color:
    var(--text);

  font-size: 24px;
}


.attention-large-number {
  margin-top: 30px;

  color:
    var(--warning);

  font-size: 64px;

  font-weight: 850;

  letter-spacing:
    -0.06em;
}


/* =========================================================
   RESPONSIVE PLATFORM
========================================================= */

@media (
  max-width: 1180px
) {

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


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


  .platform-system-card {
    grid-column:
      1 / -1;
  }


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


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

}


@media (
  max-width: 760px
) {

  .platform-dashboard,
  .platform-list-page,
  .organisation-inspector {
    gap: 15px;
  }


  .platform-hero {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .platform-hero h2,
  .platform-page-heading h2,
  .organisation-inspector-hero h2 {
    font-size: 35px;
  }


  .platform-live {
    width: 100%;
  }


  .platform-metric-grid {
    gap: 9px;
  }


  .platform-metric {
    min-height: 155px;

    padding: 17px;

    border-radius:
      18px;
  }


  .platform-metric-icon {
    width: 36px;
    height: 36px;

    margin-bottom: 20px;
  }


  .platform-metric > strong {
    font-size: 31px;
  }


  .platform-command-grid {
    grid-template-columns: 1fr;
  }


  .platform-system-card {
    grid-column: auto;
  }


  .platform-command-card,
  .platform-system-card {
    min-height: 130px;

    border-radius:
      18px;
  }


  .platform-table {
    overflow-x: auto;
  }


  .platform-table-head,
  .platform-table-row {
    min-width: 650px;
  }


  .platform-user-grid {
    grid-template-columns: 1fr;
  }


  .organisation-inspector-hero {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


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

}


@media (
  max-width: 420px
) {

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


  .platform-metric {
    min-height: 145px;
  }


  .organisation-detail-grid {
    grid-template-columns: 1fr;
  }

}
/* =========================================================
   FASHCOACH ONBOARDING
========================================================= */

.onboarding {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 50px;
}

.onboarding-intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.onboarding-intro h2 {
  margin: 10px 0 13px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.onboarding-intro h2 span {
  background:
    linear-gradient(
      100deg,
      var(--accent-light),
      var(--accent-cyan)
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.onboarding-intro p {
  max-width: 560px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

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

.onboarding-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background:
    linear-gradient(
      145deg,
      rgba(20, 25, 43, 0.88),
      rgba(9, 13, 23, 0.96)
    );
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.onboarding-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  filter: blur(20px);
}

.onboarding-card:hover {
  transform: translateY(-4px);
  border-color:
    rgba(124, 92, 255, 0.42);
  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.18);
}

.onboarding-card-primary {
  border-color:
    rgba(124, 92, 255, 0.28);
  background:
    linear-gradient(
      145deg,
      rgba(35, 28, 69, 0.66),
      rgba(10, 14, 25, 0.96)
    );
}

.onboarding-card-number {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.onboarding-card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-top: 35px;
  place-items: center;
  border-radius: 17px;
  background:
    rgba(124, 92, 255, 0.1);
  color: var(--accent-light);
}

.onboarding-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.onboarding-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 25px;
}

.onboarding-card-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.onboarding-card-copy small {
  max-width: 260px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.6;
}

.onboarding-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--accent-light);
  font-size: 23px;
}

.onboarding-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 9px;
}


/* FORMS */

.onboarding-form-page {
  max-width: 850px;
}

.onboarding-back {
  margin-bottom: 30px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 750;
}

.onboarding-form {
  display: grid;
  gap: 22px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background:
    linear-gradient(
      145deg,
      rgba(19, 24, 41, 0.82),
      rgba(9, 13, 23, 0.95)
    );
}

.onboarding-field {
  display: grid;
  gap: 9px;
}

.onboarding-field > span,
.organisation-type-field legend {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
}

.onboarding-field input {
  width: 100%;
  min-height: 55px;
  padding: 0 17px;
  border:
    1px solid
    rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  outline: none;
  background:
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.onboarding-field input:focus {
  border-color:
    rgba(124, 92, 255, 0.55);
  box-shadow:
    0 0 0 3px
    rgba(124, 92, 255, 0.08);
}

.onboarding-field small {
  color: var(--text-muted);
  font-size: 9px;
}

.organisation-type-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.organisation-type-field legend {
  margin-bottom: 10px;
}

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

.organisation-type-option {
  position: relative;
}

.organisation-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.organisation-type-content {
  display: flex;
  min-height: 95px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border:
    1px solid
    rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.organisation-type-content strong {
  font-size: 11px;
}

.organisation-type-content small {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.45;
}

.organisation-type-option
input:checked +
.organisation-type-content {
  border-color:
    rgba(124, 92, 255, 0.65);
  background:
    rgba(124, 92, 255, 0.09);
}

.onboarding-submit {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  background:
    linear-gradient(
      100deg,
      var(--accent),
      var(--accent-blue)
    );
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.onboarding-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.onboarding-message {
  padding: 12px 14px;
  border:
    1px solid
    rgba(255, 98, 124, 0.16);
  border-radius: 12px;
  background:
    rgba(255, 98, 124, 0.06);
  color: #ff9eae;
  font-size: 10px;
}

.onboarding-message.success {
  border-color:
    rgba(69, 226, 162, 0.16);
  background:
    rgba(69, 226, 162, 0.06);
  color: var(--success);
}


/* MOBILE / FUTURE APP */

@media (max-width: 800px) {

  .onboarding {
    padding:
      5px
      0
      100px;
  }

  .onboarding-intro {
    margin-bottom: 24px;
  }

  .onboarding-intro h2 {
    font-size: 40px;
  }

  .onboarding-options {
    grid-template-columns: 1fr;
  }

  .onboarding-card {
    min-height: 180px;
    padding: 20px;
  }

  .onboarding-card-icon {
    width: 45px;
    height: 45px;
    margin-top: 20px;
    border-radius: 14px;
  }

  .onboarding-card-copy {
    margin-top: 17px;
  }

  .organisation-type-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-form {
    padding: 18px;
    border-radius: 20px;
  }

}


@media (max-width: 430px) {

  .onboarding-intro h2 {
    font-size: 35px;
  }

  .onboarding-card {
    min-height: 170px;
  }

}
/* =========================================================
   SHARED OVERVIEW
========================================================= */

.overview-page {
  display: grid;
  gap: 20px;

  width: 100%;
  max-width: 1500px;

  margin: 0 auto;
}


.overview-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  padding:
    8px
    2px
    10px;
}


.overview-hero-copy h2 {
  margin: 9px 0 8px;

  font-size:
    clamp(
      38px,
      4.8vw,
      66px
    );

  line-height: 0.98;

  letter-spacing: -0.058em;
}


.overview-hero-copy p {
  max-width: 650px;

  margin: 0;

  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.6;
}


.overview-workspace-chip {
  display: flex;
  align-items: center;

  gap: 10px;

  padding:
    12px
    15px;

  border: 1px solid var(--line);

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.03);
}


.overview-workspace-chip div {
  display: flex;
  flex-direction: column;
}


.overview-workspace-chip strong {
  font-size: 10px;
}


.overview-workspace-chip small {
  margin-top: 2px;

  color: var(--text-muted);

  font-size: 8px;
}


/* =========================================================
   GETTING STARTED
========================================================= */

.overview-getting-started {
  display: grid;

  grid-template-columns:
    minmax(240px, 0.75fr)
    minmax(0, 1.6fr);

  gap: 26px;

  padding: 24px;

  border:
    1px solid
    rgba(124, 92, 255, 0.22);

  border-radius: 23px;

  background:
    linear-gradient(
      120deg,
      rgba(124, 92, 255, 0.1),
      rgba(46, 233, 209, 0.025),
      rgba(12, 16, 27, 0.9)
    );
}


.overview-getting-started h3 {
  margin: 7px 0;

  font-size: 21px;

  letter-spacing: -0.03em;
}


.overview-getting-started p {
  margin: 0;

  color: var(--text-muted);

  font-size: 10px;

  line-height: 1.6;
}


.overview-start-actions {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 9px;
}


.overview-start-card {
  display: flex;
  flex-direction: column;

  min-height: 110px;

  padding: 15px;

  border: 1px solid var(--line);

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.03);
}


.overview-start-number {
  color: var(--accent-cyan);

  font-size: 8px;

  font-weight: 850;
}


.overview-start-card strong {
  margin-top: 17px;

  font-size: 10px;
}


.overview-start-card small {
  margin-top: 5px;

  color: var(--text-muted);

  font-size: 8px;
}


/* =========================================================
   METRICS
========================================================= */

.overview-metrics {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}


.overview-metric-card {
  min-height: 150px;

  padding: 18px;

  border: 1px solid var(--line);

  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      rgba(20, 25, 43, 0.78),
      rgba(10, 14, 24, 0.93)
    );
}


.overview-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}


.overview-metric-icon {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  border-radius: 12px;

  background:
    rgba(124, 92, 255, 0.09);

  color: var(--accent-light);
}


.overview-metric-icon.training,
.overview-metric-icon.active {
  color: var(--accent-cyan);

  background:
    rgba(46, 233, 209, 0.06);
}


.overview-metric-icon svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
}


.overview-metric-value {
  font-size: 31px;

  font-weight: 850;

  letter-spacing: -0.05em;
}


.overview-metric-label {
  display: block;

  margin-top: 17px;

  font-size: 11px;
}


.overview-metric-caption {
  display: block;

  margin-top: 4px;

  color: var(--text-muted);

  font-size: 8px;
}


/* =========================================================
   PANELS
========================================================= */

.overview-main-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 11px;
}


.overview-panel {
  min-height: 265px;

  padding: 21px;

  border: 1px solid var(--line);

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 22, 37, 0.78),
      rgba(9, 13, 23, 0.94)
    );
}


.overview-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;
}


.overview-panel-heading h3 {
  margin: 5px 0 0;

  font-size: 17px;
}


.overview-panel-value {
  font-size: 21px;

  font-weight: 800;

  color: var(--accent-cyan);
}


/* =========================================================
   TRAINING
========================================================= */

.overview-training {
  display: flex;
  align-items: center;

  gap: 35px;

  margin-top: 30px;
}


.overview-progress-ring {
  position: relative;

  display: grid;
  place-items: center;

  width: 120px;
  height: 120px;

  flex: 0 0 auto;

  border-radius: 50%;

  background:
    conic-gradient(
      var(--accent-cyan)
      var(--overview-progress),
      rgba(255, 255, 255, 0.05)
      0
    );
}


.overview-progress-ring::before {
  content: "";

  position: absolute;

  width: 102px;
  height: 102px;

  border-radius: 50%;

  background: #0e1321;
}


.overview-progress-ring > div {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
}


.overview-progress-ring strong {
  font-size: 25px;
}


.overview-progress-ring small {
  color: var(--text-muted);

  font-size: 8px;
}


.overview-training-list {
  display: grid;

  width: 100%;

  gap: 14px;
}


.overview-training-row {
  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 9px;

  color: var(--text-soft);

  font-size: 9px;
}


.overview-training-row strong {
  color: var(--text);

  font-size: 12px;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.overview-empty-state {
  display: flex;
  align-items: center;

  gap: 14px;

  min-height: 130px;

  margin-top: 25px;

  padding: 18px;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.025);
}


.overview-empty-state.success {
  background:
    rgba(69, 226, 162, 0.035);
}


.overview-empty-icon,
.overview-directory-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  border-radius: 13px;

  background:
    rgba(124, 92, 255, 0.08);

  color: var(--accent-light);
}


.overview-empty-icon svg,
.overview-directory-icon svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
}


.overview-empty-state strong {
  font-size: 10px;
}


.overview-empty-state p {
  margin: 4px 0 0;

  color: var(--text-muted);

  font-size: 8px;

  line-height: 1.5;
}


.overview-attention-number {
  display: grid;
  place-items: center;

  min-width: 34px;
  height: 34px;

  padding: 0 9px;

  border-radius: 10px;

  font-size: 11px;

  font-weight: 850;
}


.overview-attention-number.clear {
  color: var(--success);

  background:
    rgba(69, 226, 162, 0.07);
}


.overview-attention-number.warning {
  color: var(--warning);

  background:
    rgba(255, 206, 105, 0.08);
}


.overview-attention-message {
  margin-top: 27px;

  padding: 20px;

  border:
    1px solid
    rgba(255, 206, 105, 0.14);

  border-radius: 15px;

  background:
    rgba(255, 206, 105, 0.04);
}


.overview-attention-message strong {
  font-size: 12px;
}


.overview-attention-message p {
  margin: 6px 0 0;

  color: var(--text-muted);

  font-size: 9px;
}


/* =========================================================
   PLATFORM DIRECTORY
========================================================= */

.overview-directory-action {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 125px;

  gap: 14px;

  margin-top: 25px;

  padding: 17px;

  border: 1px solid var(--line);

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.025);

  text-align: left;
}


.overview-directory-action > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}


.overview-directory-action strong {
  font-size: 10px;
}


.overview-directory-action small {
  margin-top: 5px;

  color: var(--text-muted);

  font-size: 8px;
}


.overview-platform-note {
  display: flex;
  align-items: center;

  gap: 20px;

  padding: 19px;

  border: 1px solid var(--line);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.022);
}


.overview-platform-icon {
  display: grid;
  place-items: center;

  width: 55px;
  height: 55px;

  flex: 0 0 auto;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-cyan)
    );

  font-size: 11px;

  font-weight: 850;
}


.overview-platform-note h3 {
  margin: 5px 0;

  font-size: 14px;
}


.overview-platform-note p {
  max-width: 650px;

  margin: 0;

  color: var(--text-muted);

  font-size: 8px;

  line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

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


  .overview-getting-started {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 760px) {

  .overview-page {
    gap: 13px;
  }


  .overview-hero {
    align-items: flex-start;

    flex-direction: column;
  }


  .overview-hero-copy h2 {
    font-size: 38px;
  }


  .overview-workspace-chip {
    width: 100%;
  }


  .overview-start-actions {
    grid-template-columns: 1fr;
  }


  .overview-metrics {
    gap: 8px;
  }


  .overview-metric-card {
    min-height: 135px;

    padding: 15px;
  }


  .overview-main-grid {
    grid-template-columns: 1fr;
  }


  .overview-panel {
    min-height: auto;
  }


  .overview-training {
    align-items: flex-start;

    flex-direction: column;
  }


  .overview-progress-ring {
    align-self: center;
  }

}
/* =========================================================
   ATHLETES
========================================================= */

.athletes-page,
.athlete-form-page,
.athlete-profile-page {
  display: grid;
  gap: 22px;

  width: 100%;
  max-width: 1450px;

  margin: 0 auto;
}


.athletes-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 22px;

  padding:
    8px
    2px
    6px;
}


.athletes-hero h2,
.athlete-form-heading h2,
.athlete-profile-hero h2 {
  margin:
    9px
    0
    8px;

  font-size:
    clamp(
      36px,
      4.5vw,
      60px
    );

  line-height: 0.98;

  letter-spacing:
    -0.055em;
}


.athletes-hero p,
.athlete-form-heading p,
.athlete-profile-hero p {
  margin: 0;

  color:
    var(--text-soft);

  font-size: 12px;

  line-height: 1.6;
}


.athletes-primary-action,
.athletes-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 44px;

  padding:
    0
    16px;

  border: 0;

  border-radius: 13px;

  background:
    linear-gradient(
      100deg,
      var(--accent),
      var(--accent-blue)
    );

  color: white;

  font-size: 10px;
  font-weight: 800;
}


.athletes-secondary-action {
  margin-top: 18px;
}


.athletes-primary-action span,
.athletes-secondary-action span {
  font-size: 15px;
}


/* =========================================================
   ATHLETES EMPTY STATE
========================================================= */

.athletes-empty {
  display: grid;

  grid-template-columns:
    minmax(260px, 0.8fr)
    minmax(0, 1.2fr);

  align-items: center;

  gap: 30px;

  min-height: 420px;

  padding: 32px;

  border:
    1px solid
    var(--line);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(19, 24, 41, 0.82),
      rgba(9, 13, 23, 0.95)
    );
}


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


.athlete-orbit {
  position: relative;

  display: grid;
  place-items: center;

  width: 220px;
  height: 220px;
}


.athlete-orbit-core {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-blue)
    );

  color: white;

  box-shadow:
    0 0 40px
    rgba(124, 92, 255, 0.22);
}


.athlete-orbit-core svg {
  width: 28px;
  height: 28px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.7;
}


.athlete-orbit-ring {
  position: absolute;

  border-radius: 50%;

  border:
    1px solid
    rgba(124, 92, 255, 0.16);
}


.athlete-orbit-ring.ring-one {
  width: 140px;
  height: 140px;
}


.athlete-orbit-ring.ring-two {
  width: 210px;
  height: 210px;

  border-color:
    rgba(46, 233, 209, 0.1);
}


.athletes-empty-copy {
  max-width: 520px;
}


.athletes-empty-copy h3 {
  margin:
    7px
    0
    9px;

  font-size: 29px;

  letter-spacing:
    -0.04em;
}


.athletes-empty-copy p {
  margin: 0;

  color:
    var(--text-muted);

  font-size: 10px;

  line-height: 1.7;
}


.athletes-permission-note {
  margin-top: 16px !important;

  padding: 12px 14px;

  border:
    1px solid
    rgba(255, 206, 105, 0.12);

  border-radius: 12px;

  background:
    rgba(255, 206, 105, 0.04);

  color:
    var(--warning) !important;
}


/* =========================================================
   ATHLETE GRID
========================================================= */

.athlete-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}


.athlete-card {
  display: grid;

  gap: 20px;

  min-height: 220px;

  padding: 19px;

  border:
    1px solid
    var(--line);

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(19, 24, 41, 0.8),
      rgba(9, 13, 23, 0.95)
    );

  color:
    var(--text);

  text-align: left;

  transition:
    transform 180ms ease,
    border-color 180ms ease;
}


.athlete-card:hover {
  transform:
    translateY(
      -3px
    );

  border-color:
    rgba(124, 92, 255, 0.34);
}


.athlete-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}


.athlete-card-avatar {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-blue)
    );

  color: white;

  font-size: 15px;
  font-weight: 850;
}

.athlete-card-avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;
}

.athlete-claim-chip {
  padding:
    5px
    8px;

  border-radius:
    999px;

  background:
    rgba(255, 255, 255, 0.04);

  color:
    var(--text-muted);

  font-size: 7px;
  font-weight: 800;

  text-transform:
    uppercase;

  letter-spacing:
    0.06em;
}


.athlete-claim-chip.claimed {
  background:
    rgba(69, 226, 162, 0.07);

  color:
    var(--success);
}


.athlete-card-copy {
  display: flex;
  flex-direction: column;
}


.athlete-card-copy strong {
  font-size: 16px;

  letter-spacing:
    -0.03em;
}


.athlete-card-copy small {
  margin-top: 5px;

  color:
    var(--text-muted);

  font-size: 9px;
}


.athlete-card-footer {
  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 10px;

  margin-top: auto;

  padding-top: 14px;

  border-top:
    1px solid
    var(--line);

  color:
    var(--text-muted);

  font-size: 8px;
}


.athlete-card-footer > span:nth-child(2) {
  text-align: right;
}


.athlete-card-arrow {
  color:
    var(--accent-light);

  font-size: 16px;
}


/* =========================================================
   ATHLETE FORM
========================================================= */

.athlete-form-heading {
  max-width: 720px;
}


.athlete-form {
  display: grid;
  gap: 22px;

  max-width: 900px;

  padding: 25px;

  border:
    1px solid
    var(--line);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(19, 24, 41, 0.82),
      rgba(9, 13, 23, 0.95)
    );
}


.athlete-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}


.athlete-select {
  width: 100%;
  min-height: 55px;

  padding:
    0
    15px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius: 15px;

  outline: none;

  background:
    rgba(255, 255, 255, 0.035);

  color:
    var(--text);

  font: inherit;
  font-size: 11px;
}


.athlete-select:focus {
  border-color:
    rgba(124, 92, 255, 0.55);

  box-shadow:
    0 0 0 3px
    rgba(124, 92, 255, 0.08);
}


/* =========================================================
   ATHLETE PROFILE
========================================================= */

.athlete-profile-hero {
  display: flex;
  align-items: center;

  gap: 20px;
}


.athlete-profile-avatar {
  display: grid;
  place-items: center;

  width: 88px;
  height: 88px;
  flex: 0 0 auto;

  border-radius: 25px;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-blue)
    );

  color: white;
  font-size: 28px;
  font-weight: 850;

  box-shadow:
    0 10px 35px
    rgba(124, 92, 255, 0.14);
}

.athlete-profile-avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: inherit;
}

.athlete-profile-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  gap: 11px;
}


/* =========================================================
   ATHLETE LOADING
========================================================= */

.athletes-loading {
  max-width: 620px;

  margin:
    80px
    auto;

  text-align: center;
}


.athletes-loading h2 {
  margin:
    9px
    0
    25px;

  font-size: 34px;

  letter-spacing:
    -0.04em;
}


/* =========================================================
   RESPONSIVE ATHLETES
========================================================= */

@media (max-width: 1100px) {

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


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

}


@media (max-width: 760px) {

  .athletes-page,
  .athlete-form-page,
  .athlete-profile-page {
    gap: 15px;

    padding-bottom: 90px;
  }


  .athletes-hero {
    align-items: flex-start;

    flex-direction: column;
  }


  .athletes-hero h2,
  .athlete-form-heading h2,
  .athlete-profile-hero h2 {
    font-size: 38px;
  }


  .athletes-primary-action {
    width: 100%;
  }


  .athletes-empty {
    grid-template-columns: 1fr;

    min-height: auto;

    padding: 24px;

    text-align: center;
  }


  .athletes-empty-copy {
    margin: 0 auto;
  }


  .athlete-orbit {
    width: 170px;
    height: 170px;
  }


  .athlete-orbit-ring.ring-one {
    width: 110px;
    height: 110px;
  }


  .athlete-orbit-ring.ring-two {
    width: 165px;
    height: 165px;
  }


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


  .athlete-card {
    min-height: 190px;
  }


  .athlete-form {
    padding: 18px;

    border-radius: 20px;
  }


  .athlete-form-grid {
    grid-template-columns: 1fr;
  }


  .athlete-profile-hero {
    align-items: flex-start;

    flex-direction: column;
  }


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

}


@media (max-width: 430px) {

  .athlete-profile-grid {
    grid-template-columns: 1fr;
  }

}
/* =========================================================
   ATHLETE DASHBOARD
========================================================= */

.athlete-dashboard {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.athlete-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.athlete-dashboard-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.athlete-dashboard-profile-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--color-surface, #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.1);

  font-size: 1.5rem;
  font-weight: 700;
}

.athlete-dashboard-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.athlete-dashboard-profile-photo span {
  line-height: 1;
}

.athlete-dashboard-profile-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.athlete-dashboard-profile-photo {
  position: relative;

  width: 108px;
  height: 108px;
  flex: 0 0 108px;

  border-radius: 50%;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      145deg,
      rgba(99, 102, 241, 0.35),
      rgba(15, 23, 42, 0.95)
    );

  border: 2px solid rgba(255, 255, 255, 0.75);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.athlete-dashboard-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.athlete-dashboard-profile-photo span {
  color: #ffffff;

  font-size: 2rem;
  font-weight: 700;

  line-height: 1;
}

.athlete-profile-photo-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
}

.athlete-photo-button {
  min-height: 38px;

  padding:
    8px
    15px;

  border-radius: 9px;

  font-size: 0.8rem;
  font-weight: 650;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.athlete-photo-button:hover {
  transform: translateY(-1px);
}

.athlete-photo-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.athlete-photo-button-primary {
  color: #ffffff;

  border:
    1px solid
    rgba(129, 92, 246, 0.8);

  background:
    linear-gradient(
      135deg,
      #6d4aff,
      #536dfe
    );

  box-shadow:
    0 6px 18px
    rgba(99, 72, 255, 0.25);
}

.athlete-photo-button-primary:hover {
  box-shadow:
    0 8px 22px
    rgba(99, 72, 255, 0.35);
}

.athlete-photo-button-remove {
  color: rgba(255, 255, 255, 0.82);

  border:
    1px solid
    rgba(148, 163, 184, 0.28);

  background:
    rgba(15, 23, 42, 0.72);
}

.athlete-photo-button-remove:hover {
  color: #ffffff;

  border-color:
    rgba(148, 163, 184, 0.48);

  background:
    rgba(30, 41, 59, 0.9);
}

@media (max-width: 640px) {
  .athlete-dashboard-identity {
    align-items: flex-start;
  }

  .athlete-dashboard-profile-photo-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .athlete-profile-photo-actions {
    flex-wrap: wrap;
  }
}

.athlete-dashboard-hero h2 {
  margin: 10px 0 12px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.athlete-dashboard-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted, #9aa3b7);
  font-size: 15px;
  line-height: 1.7;
}

.athlete-dashboard-workspace {
  min-width: 220px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(31, 38, 62, 0.9),
      rgba(14, 18, 31, 0.96)
    );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.18);
}

.athlete-dashboard-workspace span {
  display: block;
  margin-bottom: 6px;
  color: #7e8aa5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.athlete-dashboard-workspace strong {
  display: block;
  font-size: 16px;
}

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

.athlete-dashboard-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(20, 25, 42, 0.96),
      rgba(11, 15, 27, 0.98)
    );
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.16);
}

.athlete-dashboard-card-large {
  grid-column: span 2;
}

.athlete-dashboard-card h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.athlete-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.athlete-dashboard-status {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(117, 99, 255, 0.2);
  border-radius: 999px;
  background:
    rgba(117, 99, 255, 0.08);
  color: #b9b0ff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.athlete-dashboard-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background:
    rgba(255, 255, 255, 0.018);
}

.athlete-dashboard-empty h4 {
  margin: 0 0 7px;
  font-size: 17px;
}

.athlete-dashboard-empty p,
.athlete-dashboard-mini-empty p {
  margin: 0;
  color: #8893aa;
  line-height: 1.65;
}

.athlete-dashboard-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(120, 91, 255, 0.2),
      rgba(50, 126, 255, 0.18)
    );
  color: #9b8cff;
}

.athlete-dashboard-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.athlete-dashboard-mini-empty {
  min-height: 110px;
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background:
    rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.athlete-dashboard-coach {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.athlete-dashboard-coach-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      #765cff,
      #3f7cf5
    );
  font-weight: 900;
  color: #ffffff;
}

.athlete-dashboard-coach strong,
.athlete-dashboard-coach span {
  display: block;
}

.athlete-dashboard-coach span {
  margin-top: 4px;
  color: #7f8aa1;
  font-size: 12px;
}

.athlete-dashboard-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.athlete-dashboard-action {
  width: 100%;
  display: grid;
  grid-template-columns:
    auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.athlete-dashboard-action:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 91, 255, 0.3);
  background:
    rgba(120, 91, 255, 0.06);
}

.athlete-dashboard-action > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    rgba(120, 91, 255, 0.12);
  color: #9b8cff;
}

.athlete-dashboard-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.athlete-dashboard-action strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.athlete-dashboard-action small {
  color: #78839a;
  font-size: 11px;
}

.athlete-dashboard-action b {
  color: #8c79ff;
  font-size: 18px;
}

/* responsive */

@media (max-width: 900px) {

  .athlete-dashboard {
    padding:
      36px 22px
      100px;
  }

  .athlete-dashboard-hero {
    flex-direction: column;
  }

  .athlete-dashboard-workspace {
    width: 100%;
  }

  .athlete-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .athlete-dashboard-card-large {
    grid-column: auto;
  }

}

@media (max-width: 600px) {

  .athlete-dashboard {
    padding:
      28px 16px
      110px;
  }

  .athlete-dashboard-hero h2 {
    font-size: 42px;
  }

  .athlete-dashboard-card {
    padding: 20px;
    border-radius: 18px;
  }

  .athlete-dashboard-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

}
/* =========================================================
   ATHLETE TRAINING
========================================================= */

.athlete-training-page,
.athlete-session-page {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.athlete-training-hero,
.athlete-session-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
}

.athlete-training-hero h2,
.athlete-session-hero h2 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.athlete-training-hero p,
.athlete-session-hero p {
  margin: 0;
  color: #8994aa;
}

.athlete-training-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.athlete-training-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #919bb0;
  cursor: pointer;
}

.athlete-training-tab.active {
  border-color: rgba(120, 91, 255, 0.35);
  background: rgba(120, 91, 255, 0.1);
  color: #ffffff;
}

.athlete-training-tab span {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  text-align: center;
}

.athlete-training-list {
  display: grid;
  gap: 14px;
}

.athlete-training-card {
  position: relative;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(20, 25, 42, 0.96),
    rgba(11, 15, 27, 0.98)
  );
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.athlete-training-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.athlete-training-card h3 {
  margin: 8px 0;
  font-size: 20px;
}

.athlete-training-date {
  color: #7e89a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.athlete-training-status {
  display: inline-flex;
  height: fit-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(120, 91, 255, 0.1);
  color: #aaa0ff;
  font-size: 11px;
  font-weight: 800;
}

.athlete-training-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  color: #7e899f;
  font-size: 12px;
}

.athlete-training-feedback {
  margin: 16px 40px 0 0;
  color: #9aa5ba;
  line-height: 1.6;
}

.athlete-training-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #8d79ff;
}

.athlete-training-empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  text-align: center;
}

.athlete-training-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: rgba(120, 91, 255, 0.1);
  color: #9c8cff;
}

.athlete-training-empty-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
}

.athlete-session-prescription,
.athlete-session-note {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.athlete-prescribed-debug {
  overflow-x: auto;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: #aab4c8;
  white-space: pre-wrap;
}

.athlete-session-actions,
.athlete-training-completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.athlete-training-secondary-action {
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #c1c8d6;
  cursor: pointer;
}

@media (max-width: 700px) {

  .athlete-training-page,
  .athlete-session-page {
    padding: 28px 16px 110px;
  }

  .athlete-training-tabs {
    overflow-x: auto;
  }

  .athlete-training-card-top,
  .athlete-session-hero {
    flex-direction: column;
  }

}
/* =========================================================
   ATHLETE — PRESCRIBED TRAINING SESSION
   ========================================================= */

.athlete-prescription-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.athlete-prescription-heading h3 {
  margin: 8px 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.athlete-prescription-description {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #9ca3af);
  line-height: 1.65;
}

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

.athlete-prescription-meta span,
.athlete-exercise-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.athlete-workout-exercises {
  display: grid;
  gap: 16px;
}

.athlete-workout-exercise {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.athlete-exercise-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
}

.athlete-exercise-content {
  min-width: 0;
}

.athlete-exercise-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.athlete-exercise-heading h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.athlete-exercise-description {
  margin: 10px 0 18px;
  color: var(--muted, #9ca3af);
  line-height: 1.6;
}

.athlete-exercise-prescription {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.athlete-exercise-prescription > div {
  min-width: 92px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

.athlete-exercise-prescription strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.athlete-exercise-prescription span {
  color: var(--muted, #9ca3af);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.athlete-exercise-guidance,
.athlete-exercise-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.athlete-exercise-guidance > span,
.athlete-exercise-note > span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.athlete-exercise-guidance p,
.athlete-exercise-note p {
  margin: 0;
  line-height: 1.6;
}

.athlete-programme-note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.06);
}

.athlete-programme-note p {
  margin: 8px 0 0;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .athlete-prescription-heading {
    flex-direction: column;
  }

  .athlete-prescription-meta {
    justify-content: flex-start;
  }

  .athlete-workout-exercise {
    grid-template-columns: 1fr;
  }

  .athlete-exercise-prescription > div {
    flex: 1 1 90px;
  }
}
/* =========================================================
   USER PROFILE PHOTO
========================================================= */

.profile-avatar {
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: inherit;
}

.profile-menu-user {
  flex-wrap: wrap;
}

.profile-menu-user .profile-photo-actions {
  width: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;

  padding-left: 56px;
}

.profile-photo-action {
  min-height: 32px;

  padding: 0 12px;

  border:
    1px solid
    rgba(139, 92, 246, 0.28);

  border-radius: 9px;

  background:
    rgba(139, 92, 246, 0.12);

  color: var(--text);

  font: inherit;
  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.profile-photo-action:hover {
  background:
    rgba(139, 92, 246, 0.2);

  border-color:
    rgba(139, 92, 246, 0.48);
}

.profile-photo-action:active {
  transform: translateY(1px);
}

.profile-photo-action-remove {
  background: transparent;

  border-color:
    rgba(255, 137, 156, 0.22);

  color: #ff899c;
}

.profile-photo-action-remove:hover {
  background:
    rgba(255, 137, 156, 0.08);

  border-color:
    rgba(255, 137, 156, 0.4);
}
/* =========================================================
   VIDEO REVIEWER MANAGEMENT
========================================================= */

.video-reviewer-manager {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin: 24px 0;
  padding: 22px;

  border:
    1px solid
    var(--border-soft);

  border-radius: 18px;

  background:
    var(--surface);
}


.video-reviewer-manager-copy {
  max-width: 520px;
}


.video-reviewer-manager-copy h3 {
  margin:
    8px
    0
    6px;
}


.video-reviewer-manager-copy p {
  margin: 0;

  color:
    var(--text-soft);

  font-size: 13px;
}


.video-reviewer-form {
  width: min(
    100%,
    470px
  );
}


.video-reviewer-form label {
  display: block;

  margin-bottom: 7px;

  font-size: 11px;
  font-weight: 700;
}


.video-reviewer-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}


.video-reviewer-form-row input {
  flex: 1;

  min-width: 0;
  min-height: 42px;

  padding:
    0
    13px;

  border:
    1px solid
    var(--border-soft);

  border-radius: 10px;

  background: #ffffff;
  color: #111827;

  font: inherit;
}


.platform-role-button {
  min-height: 40px;

  padding:
    0
    14px;

  border: 0;
  border-radius: 10px;

  background:
    var(--primary);

  color: #ffffff;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}


.platform-role-button:hover {
  opacity: 0.9;
}


.platform-role-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.platform-role-button.danger {
  background: #5b2131;
}


.platform-user-actions {
  margin-left: auto;
}


.video-reviewer-message {
  min-height: 16px;

  margin:
    7px
    0
    0;

  color:
    var(--text-soft);

  font-size: 11px;
}


@media (max-width: 850px) {

  .video-reviewer-manager {
    flex-direction: column;
    align-items: stretch;
  }


  .video-reviewer-form {
    width: 100%;
  }


  .video-reviewer-form-row {
    flex-direction: column;
    align-items: stretch;
  }


  .platform-user-actions {
    width: 100%;
    margin-left: 0;
  }


  .platform-role-button {
    width: 100%;
  }

}