/* Runwiv — Athlete profile (runner-profile.html) world-class layer */
.ap-mode-banner {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1.125rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(32, 31, 32, 0.92) 100%);
}
.ap-mode-banner--owner {
  border-color: rgba(254, 95, 0, 0.35);
  background: linear-gradient(135deg, rgba(254, 95, 0, 0.1) 0%, rgba(32, 31, 32, 0.92) 100%);
}
.ap-mode-banner__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #b9cacb;
}
.ap-mode-banner__tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0d0e;
  background: #00f0ff;
}
.ap-mode-banner--owner .ap-mode-banner__tag {
  background: #fe5f00;
  color: #fff;
}
.ap-link {
  color: #67e8f9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ap-link:hover {
  color: #00f0ff;
}

.ap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 73, 75, 0.65);
  background: rgba(19, 19, 20, 0.65);
  backdrop-filter: blur(18px);
}
.ap-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
}
.ap-toolbar__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7d8b8d;
}
.ap-select {
  border-radius: 10px;
  border: 1px solid #3b494b;
  background: #1a1a1b;
  color: #e5e2e3;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  min-width: 160px;
}
.ap-select:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.12);
}

.ap-dashboard {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .ap-dashboard {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.ap-glass {
  border-radius: 20px;
  border: 1px solid rgba(59, 73, 75, 0.55);
  background: rgba(32, 31, 32, 0.55);
  backdrop-filter: blur(22px);
}

.ap-privacy {
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.ap-privacy__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  color: #fff;
}
.ap-privacy__lede {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #9aa6a8;
  max-width: 52rem;
}
.ap-privacy__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .ap-privacy__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ap-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ap-field__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d8b8d;
}
.ap-field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 73, 75, 0.55);
  background: rgba(10, 11, 12, 0.35);
  font-size: 0.8125rem;
  color: #d1d5db;
}
.ap-field--check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #00f0ff;
}
.ap-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #3b494b;
  background: #131314;
  color: #e5e2e3;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 5rem;
}
.ap-textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.1);
}
.ap-privacy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}
.ap-btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #06b6d4 100%);
  color: #0c0d0e !important;
  font-weight: 800;
  border: none;
}
.ap-share-url {
  width: 100%;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(59, 73, 75, 0.9);
  background: rgba(10, 11, 12, 0.5);
  color: #9ca3af;
}

.ap-private-gate {
  text-align: center;
  padding: 2rem 1.5rem;
}
.ap-private-gate__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.ap-private-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  color: #fff;
}
.ap-private-gate__lede,
.ap-private-gate__hint {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
}
.ap-private-gate__hint {
  margin-top: 1rem;
}
.ap-hero-bio {
  color: #b9cacb !important;
  font-size: 0.9rem !important;
  line-height: 1.45;
  max-width: 36rem;
}
.ap-muted {
  color: #6b7280;
}
.ap-activity-list {
  margin-top: 0.5rem;
}

/* Stat tiles — subtle depth */
.athlete-stat-tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.athlete-stat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 10% 0%, rgba(0, 240, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.athlete-stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.athlete-profile-header {
  border-color: rgba(0, 240, 255, 0.15) !important;
}
