@charset "utf-8";
:root {
  --primary: #1e73be;
  --primary-2: #36b0ff;
  --primary-soft: #eef7ff;
  --success: #19a857;
  --warning: #f2b134;
  --danger: #e74c3c;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbfe;
  --text: #132033;
  --muted: #6d7a8a;
  --border: #dfe8f1;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 4px 14px rgba(19, 32, 51, .06);
  --shadow: 0 14px 34px rgba(19, 32, 51, .10);
  --shadow-hero: 0 24px 60px rgba(19, 32, 51, .18);

  --ease: 220ms ease-out;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.btn {
  min-height: 50px;
  border-radius: 999px;
  border: 0;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 115, 190, .28);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.mobile-app-shell {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 14px 96px;
}

.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 251, .94);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 48px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 8px 0 12px;
}



.challenge-switcher {
  display: grid;
  gap: 3px;
}

.challenge-switcher label,
.app-kicker {
  font-size: 11px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.challenge-switcher select {
  width: 100%;
  min-height: 40px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font-weight: 900;
}

.profile-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.app-content {
  display: grid;
  gap: 14px;
}

.content-animate {
  animation: contentIn var(--ease);
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.quick-card h2,
.card h2 {
  margin: 0 0 8px;
  font-size: 23px;
  letter-spacing: -.7px;
}

.quick-card p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-hero {
  background: linear-gradient(135deg, #132033, var(--primary));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  position: relative;
	margin-top:10px
}

.home-hero:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.level-row {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.level-orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 900;
  flex: 0 0 auto;
}

.level-info {
  flex: 1;
  min-width: 0;
}

.level-info .app-kicker {
  color: rgba(255,255,255,.75);
}

.level-info h1 {
  margin: 2px 0 10px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.4px;
}

.xp-bar {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.23);
  margin: 10px 0;
}

.xp-fill {
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.level-info p {
  color: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: 13px;
}

.home-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.home-actions .btn-secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.26);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 23px;
  letter-spacing: -.8px;
}

.stat-card span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mission-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mission-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
}

.mission-item.mission-done {
  background: #effff5;
  border-color: #bdeccb;
}

.mission-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.mission-row strong {
  display: block;
  font-size: 15px;
}

.mission-row p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.mission-xp {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.progress-bar {
  height: 10px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: inherit;
}

.mission-complete {
  color: var(--success);
  font-weight: 900;
}

.activity-feed {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px;
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-item strong {
  display: block;
  font-size: 15px;
}

.activity-item p {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 720px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  z-index: 40;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 8px 4px;
  display: grid;
  gap: 3px;
  justify-items: center;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.bottom-nav button span {
  font-size: 19px;
  line-height: 1;
}

.bottom-nav button small {
  font-size: 11px;
}

.bottom-nav button.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.bottom-nav .nav-plus {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.center-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 80px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 900;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 14px;
  font-size: 16px;
}

.form-stack textarea {
  padding-top: 12px;
  min-height: 110px;
}

.record-screen {
  display: grid;
  gap: 12px;
}

.record-title-card {
  background: linear-gradient(135deg, #ffffff, var(--primary-soft));
  border: 1px solid #d8e9f8;
  border-radius: 24px;
  padding: 18px;
}

.record-title-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.8px;
}

.record-form {
  display: grid;
  gap: 12px;
}

.record-metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.big-metric-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 52px;
  line-height: 1;
  text-align: center;
  font-weight: 900;
  color: var(--text);
  outline: none;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 6px 0 16px;
}

.premium-range {
  width: 100%;
  accent-color: var(--primary);
}

.record-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.record-mini-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 15px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.record-mini-icon {
  font-size: 24px;
}

.record-mini-card strong {
  font-size: 14px;
}

.record-mini-card input {
  width: 100%;
  font-size: 13px;
}

.more-details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 15px;
}

.more-details summary {
  font-weight: 900;
  cursor: pointer;
}

.more-details label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-weight: 900;
}

.more-details textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 12px;
}

.record-submit-spacer {
  height: 68px;
}

.record-submit-bar {
  position: sticky;
  bottom: 8px;
  z-index: 4;
}

.earn-xp-btn {
  font-size: 17px;
}

.gps-box {
  background: var(--primary-soft);
  border: 1px solid #cfe8ff;
  color: var(--primary);
  border-radius: 18px;
  padding: 13px 14px;
  font-weight: 900;
}

.gps-ok {
  background: #effff5;
  border-color: #bdeccb;
  color: var(--success);
}

.gps-error {
  background: #fff0f0;
  border-color: #ffd2d2;
  color: var(--danger);
}

.app-slide-panel,
.athlete-modal {
  position: fixed;
  inset: 0;
  background: rgba(19,32,51,.58);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 110;
}

.app-slide-panel.show,
.athlete-modal.show {
  display: flex;
}

.app-slide-panel-inner,
.athlete-modal-panel {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  padding: 14px 14px 28px;
  box-shadow: 0 -20px 50px rgba(19,32,51,.26);
  animation: slidePanelUp var(--ease);
}

.app-slide-header,
.athlete-modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244,247,251,.96);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 12px;
}

.app-slide-header strong,
.athlete-modal-header strong {
  font-size: 18px;
}

.app-slide-header button,
.athlete-modal-header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

@keyframes slidePanelUp {
  from { transform: translateY(32px); opacity: .5; }
  to { transform: translateY(0); opacity: 1; }
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 32, 51, .84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.celebration-overlay.show {
  display: flex;
}

.celebration-card {
  width: 100%;
  max-width: 390px;
  background: #fff;
  border-radius: 30px;
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  animation: celebrationPop .28s ease-out;
}

.celebration-icon {
  font-size: 58px;
  margin-bottom: 12px;
}

.celebration-card h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -1px;
}

.celebration-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.celebration-card strong,
.summary-big-xp {
  display: inline-flex;
  margin-top: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 24px;
  font-weight: 900;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.summary-grid div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  display: grid;
  gap: 4px;
}

.summary-grid strong {
  font-size: 22px;
}

.summary-grid span {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
}

.summary-title {
  margin: 4px 0 18px !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  font-size: 18px;
}

@keyframes celebrationPop {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--ease);
  z-index: 220;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.leaderboard-list,
.challenge-card-list,
.card-list,
.session-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.leader-row,
.challenge-card,
.mini-card,
.session-row {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 20px;
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.leader-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  cursor: pointer;
}

.leader-me {
  background: var(--primary-soft);
  border-color: #bfe2ff;
}

.leader-rank {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.leader-main {
  display: grid;
  gap: 4px;
  align-content: center;
}

.leader-main small,
.leader-extra {
  color: var(--muted);
  font-weight: 700;
}

.leader-score {
  text-align: right;
  display: grid;
  align-content: center;
}

.leader-score strong {
  font-size: 20px;
}

.leader-extra {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.leader-extra span,
.challenge-meta span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 8px;
}

.suggestion-box {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.suggestion-row {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 12px 14px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf2f7;
}

.invite-link-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 16px;
}

.invite-link-box input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 16px;
  min-height: 50px;
  padding: 0 14px;
}

@media (max-width: 430px) {
  .mobile-app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-hero {
    padding: 22px;
  }

  .level-orb {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }

  .level-info h1 {
    font-size: 26px;
  }

  .big-metric-input {
    font-size: 46px;
  }

  .record-mini-grid {
    grid-template-columns: 1fr;
  }
}

.splash-page,
.auth-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

.splash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.header-link,
.small-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 900;
}

.hero-card {
  background: linear-gradient(135deg, #ffffff, var(--primary-soft));
  border: 1px solid #d8e9f8;
  border-radius: var(--radius-xl);
  padding: 34px 26px;
  box-shadow: var(--shadow);
}

.hero-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 68px);
  line-height: .95;
  letter-spacing: -2.5px;
}

.hero-card p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.4px;
}

.alert-error {
  background: #fff0f0;
  color: var(--danger);
  border: 1px solid #ffd2d2;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.auth-switch {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin: 18px 0 0;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

@media (max-width: 720px) {
  .splash-page,
  .auth-page {
    padding: 16px;
  }

  .hero-card {
    padding: 30px 22px;
  }

  .hero-actions {
    display: grid;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Checkbox Cards ---------- */

.check-list{
    display:grid;
    gap:12px;
}

.check-card{
    display:flex !important;
    align-items:flex-start;
    gap:14px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:16px;
    cursor:pointer;
    transition:.2s;
}

.check-card:hover{
    border-color:var(--primary);
    background:var(--primary-soft);
}

.check-card input[type="checkbox"]{
    width:20px;
    height:20px;
    margin-top:2px;
    flex-shrink:0;

    accent-color:var(--primary);

    transform:none;
}

.check-card span{
    display:block;
}

.check-card strong{
    display:block;
    font-size:15px;
    margin-bottom:4px;
}

.check-card small{
    display:block;
    color:var(--muted);
    line-height:1.4;
    font-size:13px;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.section-divider{
    height:1px;
    background:var(--border);
    margin:10px 0;
}

.form-section-title{
    margin:0 0 14px;
    font-size:20px;
}
.leader-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.leader-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.leader-rank-badge {
  position: absolute;
  left: -6px;
  top: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 2px solid #fff;
}

.page-subheader {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  animation: contentIn var(--ease);
}

.page-subheader.show {
  display: flex;
}

.page-back-btn {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 15px;
  background: #fff;
  color: var(--text);

  font-size: 23px;
  font-weight: 900;
  line-height: 1;

  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.page-back-btn span{
    display:block;
    transform:translateY(-2px);
}

.page-eyebrow {
  font-size: 11px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

#page-title {
  display: block;
  font-size: 21px;
  letter-spacing: -.5px;
}

.content-forward {
  animation: pageForward var(--ease);
}

.content-back {
  animation: pageBack var(--ease);
}

@keyframes pageForward {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pageBack {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.register-wide-card {
  max-width: 720px;
}

.register-help {
  margin: -4px 0 14px !important;
  font-size: 14px;
}

.program-select-list {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.new-program-list {
  display: grid;
  gap: 14px;
}

.new-program-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.remove-program-row {
  border: 0;
  background: #fff0f0;
  color: var(--danger);
  min-height: 42px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.program-manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.remove-program-btn {
  border: 0;
  background: #fff0f0;
  color: var(--danger);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 auto;
}

.pending-member-card {
  display: grid;
  gap: 12px;
}

.pending-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.approve-member-btn,
.decline-member-btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.approve-member-btn {
  background: #effff5;
  color: var(--success);
}

.decline-member-btn {
  background: #fff0f0;
  color: var(--danger);
}

.alert-card.warning {
    display:flex;
    gap:16px;
    align-items:flex-start;

    background:#FFF8E8;
    border:1px solid #F3D67A;

    border-radius:20px;

    padding:18px;

    margin-bottom:20px;
}

.alert-icon{
    font-size:28px;
    line-height:1;
}

.alert-content strong{
    display:block;
    font-size:17px;
    margin-bottom:6px;
}

.alert-content p{
    margin:0;
    color:#6d5b22;
    line-height:1.45;
}

.alert-card.warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff8e8;
  border: 1px solid #f3d67a;
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.alert-icon {
  font-size: 26px;
  line-height: 1;
}

.alert-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.alert-content p {
  margin: 0;
  color: #6d5b22;
  line-height: 1.45;
}

.approval-steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.approval-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.approval-step span {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.approval-step.complete span {
  color: var(--success);
}

.approval-step.pending span {
  color: #b7791f;
}

.approval-step.locked {
  opacity: .72;
}

.program-invite-btn {
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

#program-invite-modal {
  align-items: center;
  padding: 18px;
}

#program-invite-modal .athlete-modal-panel {
  max-height: 82vh;
  border-radius: 28px;
  padding: 14px;
  animation: celebrationPop .22s ease-out;
}

.challenge-help-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  padding: 2px 0 0;
  cursor: pointer;
}

#challenge-resources-modal {
  align-items: center;
  padding: 18px;
}

#challenge-resources-modal .athlete-modal-panel {
  max-height: 82vh;
  border-radius: 28px;
  padding: 14px;
}

.resource-link-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.resource-file-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-resource-row {
  border: 0;
  background: #fff0f0;
  color: var(--danger);
  min-height: 42px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-filter-card{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;

    padding:14px 16px;

    background:#f8fafc;
    border:1px solid #e4e9ef;
    border-radius:14px;
}



.leaderboard-filter-text{
    flex:1;
    min-width:0;
}

.leaderboard-filter-text small{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#7c8796;
    margin-bottom:2px;
}

.leaderboard-filter-text strong{
    display:block;
    font-size:15px;
    color:#20252d;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.leaderboard-select-wrap{
    position:relative;
    flex-shrink:0;
}

.leaderboard-select{
    appearance:none;
    -webkit-appearance:none;

    width:100%;
    min-width:0;

    padding:11px 42px 11px 14px;

    border:1px solid #d9e0e8;
    border-radius:12px;
    background:#fff;

    font-size:14px;
    font-weight:600;

    cursor:pointer;
}

.leaderboard-select-wrap::after{
    content:"";

    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);

    width:12px;
    height:12px;

    pointer-events:none;

    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='%23707b8a' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.leaderboard-select:hover{
    border-color:#4f8ef7;
}

.leaderboard-select:focus{

    outline:none;

    border-color:#4f8ef7;

    box-shadow:0 0 0 4px rgba(79,142,247,.15);
}

@media (max-width: 600px){

  .leaderboard-filter-card{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .leaderboard-filter-text strong{
    white-space:normal;
  }

  .leaderboard-select{
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }

}

.app-top-header{
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:#e4eaf2;
  border-bottom:1px solid #dfe5ec;
  padding:14px 16px;
}

.challenge-switcher-large{
  flex:1;
  min-width:0;
}

.challenge-switcher-large select{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.challenge-help-link {margin-left:15px}
.challenge-picker-wrap{
    position:relative;
}

.challenge-picker-wrap select{

    width:100%;

    padding:
        13px
        72px
        13px
        14px;

    appearance:none;
    -webkit-appearance:none;
}

.challenge-picker-help{

    position:absolute;

    right:10px;
    top:50%;

    transform:translateY(-50%);

    width:28px;
    height:28px;

    border:none;
    border-radius:50%;

    background:#edf2f7;

    color:#667085;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    transition:.18s;
}

.challenge-picker-help:hover{

    background:#dbeafe;
    color:#2563eb;
}


.video-placeholder{
  margin-top:16px;
  padding:28px 16px;
  border:1px dashed #c7d0dd;
  border-radius:16px;
  background:#f8fafc;
  text-align:center;
  color:#667085;
}

.video-placeholder strong{
  display:block;
  margin-bottom:4px;
  color:#344054;
}

.challenge-picker-wrap::after{
    content:"";

    position:absolute;

    right:54px;
    top:50%;

    transform:translateY(-50%);

    width:14px;
    height:14px;

    pointer-events:none;

    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='%23555' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.brand-mark {
    font-family: "Inter", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    user-select: none;
	margin-left:20px
}

.brand_thin {
    font-weight: 300;
    font-size: 1.5rem;
    color: #6b7280;
    letter-spacing: 0.18em;
}

.brand_bold {
    font-weight: 800;
    font-size: 1.5rem;
    color: #111;
    letter-spacing: 0.04em;
}

.brand-mark{
    display:flex;
    align-items:center;
    gap:12px;
}

.brand-icon{
    width:32px;
    height:32px;
    flex-shrink:0;
    object-fit:contain;
}

.brand_thin{
    font-weight:300;
    letter-spacing:.06em;
}

.brand_bold{
    font-weight:800;
}

.leader-score{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
  text-align:right;
}

.leader-score-xp,
.leader-score-metric{
  min-width:58px;
}

.leader-score strong{
  display:block;
  font-size:20px;
  font-weight:900;
  line-height:1;
}

.leader-score small{
  display:block;
  margin-top:3px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  color:#344054;
}

.leader-score-metric small{
  white-space:nowrap;
}

@media (max-width:600px){
  .leader-score{
    gap:10px;
  }

  .leader-score-xp,
  .leader-score-metric{
    min-width:46px;
  }

  .leader-score strong{
    font-size:17px;
  }
}

.challenge-hero-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.challenge-hero-card .btn{
  flex-shrink:0;
}

@media (max-width:600px){
  .challenge-hero-card{
    flex-direction:column;
    align-items:stretch;
  }

  .challenge-hero-card .btn{
    width:100%;
  }
}

.scoring-option-card{
  margin:18px 0;
  padding:18px;
  border-radius:18px;
  background:#eef4fb;
  border:1px solid #d5e2f0;
  transition:.18s;
}

.scoring-option-card.selected{
  background:#eaf3ff;
  border:2px solid #1f7ae0;
}

.scoring-option-header{
  display:grid !important;
  grid-template-columns:24px 1fr;
  align-items:start;
  gap:12px;
  margin:0 0 16px 0 !important;
  width:100%;
}

.scoring-option-header input[type="radio"]{
  width:20px !important;
  height:20px !important;
  margin:2px 0 0 0 !important;
  padding:0 !important;
  flex:none !important;
  accent-color:#1976d2;
}

.scoring-option-header > div{
  min-width:0;
}

.scoring-option-header strong{
  display:block;
  font-size:17px;
  font-weight:900;
  line-height:1.2;
  color:#071426;
}

.scoring-option-header small{
  display:block;
  margin-top:4px;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  color:#526173;
  white-space:normal;
}

.scoring-option-fields{
  display:grid;
  gap:14px;
  padding-top:16px;
  border-top:1px solid #cfdae7;
}

.scoring-option-card{
    opacity:.55;
    transition:.2s;
}

.scoring-option-card.selected{
    opacity:1;
    border:2px solid var(--primary);
    background:#eef5ff;
}

.athlete-modal-header{
    margin-bottom:0;
    padding-bottom:16px;
}

.athlete-modal-header strong{
    display:block;
    margin:0;
}

.challenge-modal-panel > *:first-child{
    margin-top:0 !important;
}