:root {
  --bg: #f0f6ff;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #64748b;
  --brand: #1f6feb;
  --brand-dark: #1757b8;
  --accent: #3ba3ff;
  --money: #22a559;
  --money-dark: #178446;
  --money-soft: #e8f9ef;
  --money-border: #b8e9cb;
  --border: #d7e4f2;
  --shadow: 0 18px 42px rgba(15, 40, 80, 0.08);
  --shadow-sm: 0 8px 20px rgba(15, 40, 80, 0.08);
  --radius: 20px;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --font-display: "Nunito", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(170deg, #f4f9ff 0%, #eaf3ff 46%, #e2eeff 100%);
  position: relative;
  overflow-x: hidden;
  animation: page-fade 220ms ease-out;
}

body.home-page {
  background: linear-gradient(170deg, #f8fbff 0%, #eef5ff 46%, #e7f0ff 100%);
  color: var(--text);
}

h1,
h2,
h3,
.dashboard-title,
.section-title,
.logo-text,
.eyebrow {
  font-family: var(--font-display);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #11141a;
}

.intro-logo {
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 420ms ease, opacity 420ms ease;
}

.intro-spinner {
  opacity: 0;
  transition: opacity 420ms ease;
}

.intro-overlay.is-ready .intro-logo {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.intro-overlay.is-ready .intro-spinner {
  opacity: 1;
}

.intro-logo {
  width: min(680px, 80vw);
  height: auto;
  max-height: 56vh;
  object-fit: contain;
}

.intro-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: block;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffffff;
  border-right-color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  will-change: transform;
  animation-play-state: running;
}

.bg-shape {
  display: none;
}

.bg-shape-a {
  display: none;
}

.bg-shape-b {
  display: none;
}

.site-header {
  width: min(1100px, 92vw);
  margin: 0 auto 6px;
  padding: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  animation: slide-down 300ms ease-out;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--brand-dark) 82%, #0f254c 18%),
    var(--brand) 52%,
    color-mix(in srgb, var(--accent) 72%, white 28%)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(16, 48, 108, 0.18);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 78%, white 22%), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px rgba(15, 77, 184, 0.24);
}

.logo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  letter-spacing: 0.01em;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(9, 31, 73, 0.2);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-header .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.site-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 176px;
  justify-content: space-between;
}

.menu-caret {
  font-size: 0.82rem;
  opacity: 0.95;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 232px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.user-menu-item:hover {
  background: #edf4ff;
}

.user-menu-item-danger {
  color: #9c1b2f;
}

.user-menu-item-danger:hover {
  background: #fff1f3;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 180ms ease, background-color 180ms ease,
    border-color 180ms ease, opacity 180ms ease;
  box-shadow: 0 6px 0 rgba(15, 40, 80, 0.08), var(--shadow-sm);
}

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

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(15, 40, 80, 0.08);
}

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

.btn-ghost {
  background: #ffffffd8;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 74%, white 26%), var(--brand));
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-dark) 82%, black 18%);
}

.btn-primary:hover {
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 84%, white 16%), color-mix(in srgb, var(--brand) 82%, white 18%));
}

.btn-soft {
  background: linear-gradient(180deg, #f2f8ff, #e8f2ff);
  color: #1f5fcc;
  border: 1px solid #cbdcf7;
  box-shadow: none;
}

.btn-soft:hover {
  background: #e2eeff;
}

.btn-danger-ghost {
  background: linear-gradient(180deg, #fff7f8, #ffeef0);
  border: 1px solid #f1d1d5;
  color: #8f1325;
  box-shadow: none;
}

.btn-danger-ghost:hover {
  background: #ffecee;
}

.btn-money {
  background: linear-gradient(120deg, var(--money), var(--money-dark));
  border-color: #15703b;
  color: #fff;
}

.btn-money:hover {
  background: linear-gradient(120deg, #27b761, #1c9450);
}

.btn-money-soft {
  background: linear-gradient(180deg, #f1fff6, var(--money-soft));
  color: #14532d;
  border: 1px solid var(--money-border);
  box-shadow: none;
}

.btn-money-soft:hover {
  background: #e2f7ea;
}

.btn-donate {
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  border-color: #cfdcf4;
  color: #1f63cf;
  box-shadow: 0 10px 22px rgba(20, 53, 113, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-donate:hover {
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  border-color: #bdd2f4;
  color: #1654b7;
}

.btn-block {
  width: 100%;
  margin-top: 6px;
  border-radius: 14px;
}

main {
  width: min(1100px, 92vw);
  margin: 54px auto 60px;
  flex: 1 0 auto;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  animation: rise-in 360ms ease-out both;
}

body.home-page .hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  border-color: #d9e6f7;
  box-shadow: 0 26px 54px rgba(18, 58, 122, 0.12);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(47, 128, 255, 0.04), rgba(10, 47, 119, 0.02));
}

body.home-page .hero::before {
  background: linear-gradient(145deg, rgba(63, 127, 255, 0.08), rgba(18, 42, 87, 0.01));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 32px;
  align-items: start;
}

.hero-content {
  text-align: left;
  padding-top: 10px;
}

body.home-page .hero-content {
  color: var(--text);
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1 {
  margin: 12px auto 12px;
  max-width: 14ch;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-content h1 {
  margin-left: 0;
  margin-right: 0;
}

.hero-copy {
  margin: 0 0 22px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

body.home-page .hero-copy {
  color: var(--muted);
}

.donor-direction {
  margin: 0 0 18px;
  max-width: 62ch;
  color: #31557f;
  background: #edf5ff;
  border: 1px solid #d5e6fb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

body.home-page .donor-direction {
  color: #31557f;
  background: #edf5ff;
  border-color: #d5e6fb;
}

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

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d6e5fb;
  color: #1c4f9e;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 76, 155, 0.06);
}

.hero-search-card {
  border: 1px solid #d9e7fa;
  background: linear-gradient(180deg, #195fd8, #114eb8 60%, #0f45a4);
  border-radius: 28px;
  padding: 30px 30px 28px;
  text-align: left;
  box-shadow: 0 30px 48px rgba(4, 18, 50, 0.38);
  transform: translateY(4px);
}

.hero-card-kicker {
  margin: 0 0 10px;
  color: #eff5ff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.featured-player-card {
  text-align: left;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  border-radius: 16px;
  padding: 14px;
}

body.home-page .featured-player-card {
  border-color: #d9e8fb;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
}

body.home-page .featured-player-card h2,
body.home-page .featured-player-card .subtle-copy,
body.home-page .featured-player-card .eyebrow {
  color: var(--text);
}

.featured-player-card h2 {
  margin: 4px 0 0;
  font-size: 1.28rem;
  max-width: none;
  line-height: 1.15;
}

.featured-player-card .btn {
  width: auto;
  min-width: 160px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  max-width: none;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.hero-proof-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(236, 245, 255, 0.94));
  border: 1px solid #d9e8fb;
  text-align: left;
}

body.home-page .hero-proof-card {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 255, 0.96));
  border-color: #d7e6fa;
}

.hero-proof-value {
  margin: 0 0 6px;
  color: #173e7b;
  font-size: 1rem;
  font-weight: 900;
}

body.home-page .hero-proof-value {
  color: #173e7b;
}

.hero-proof-copy {
  margin: 0;
  color: #5e7393;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.home-page .hero-proof-copy {
  color: #5e7393;
}

.search-field {
  text-align: left;
  position: relative;
}

.search-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #163f7d;
}

.hero-search-card .search-field input {
  min-height: 62px;
  border-radius: 18px;
  border-color: rgba(207, 224, 248, 0.7);
  background: #fff;
  box-shadow: 0 16px 30px rgba(25, 82, 160, 0.12);
  font-size: 1rem;
  padding-inline: 18px;
}

.hero-search-card .search-field input:focus {
  outline: none;
  border-color: #6fa8ff;
  box-shadow: 0 0 0 4px rgba(146, 190, 255, 0.28), 0 18px 34px rgba(9, 42, 91, 0.18);
}

body.home-page .search-field label {
  color: #f1f6ff;
}


input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fcfefd;
  box-shadow: inset 0 1px 2px rgba(16, 32, 23, 0.03);
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fcfefd;
  box-shadow: inset 0 1px 2px rgba(16, 32, 23, 0.03);
  resize: vertical;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fcfefd;
  box-shadow: inset 0 1px 2px rgba(16, 32, 23, 0.03);
}

input[type="number"] {
  width: clamp(120px, 34vw, 190px);
  max-width: 100%;
  justify-self: start;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #53719a;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.password-toggle:hover {
  background: #eef5ff;
  color: #1f5fcc;
}

.password-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 1px;
}

.password-toggle-icon {
  width: 19px;
  height: 19px;
}

input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: var(--brand);
}

textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: var(--brand);
}

select:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: var(--brand);
}

.attention-field {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), inset 0 1px 2px rgba(16, 32, 23, 0.03);
  animation: attentionPulse 1.3s ease-in-out infinite;
}

@keyframes attentionPulse {
  0% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22), inset 0 1px 2px rgba(16, 32, 23, 0.03);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08), inset 0 1px 2px rgba(16, 32, 23, 0.03);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22), inset 0 1px 2px rgba(16, 32, 23, 0.03);
  }
}

.suggestions {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  position: absolute;
  width: 100%;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(16, 32, 23, 0.1);
}

.suggestion-item {
  padding: 11px;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 160ms ease, transform 120ms ease;
}

.suggestion-item-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.suggestion-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf4ff;
  border: 1px solid #d7e4f8;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #245db8;
  font-weight: 900;
}

.suggestion-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.suggestion-title {
  color: var(--text);
  font-weight: 900;
  line-height: 1.2;
}

.suggestion-meta {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.suggestion-item:hover {
  background: #edf3ff;
  transform: translateX(1px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 61, 0.56);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
}

[hidden] {
  display: none !important;
}

.modal {
  width: min(540px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  animation: modal-in 200ms ease-out;
}

.modal-wide {
  width: min(820px, 100%);
}

.modal-roomy {
  padding: 28px;
  border-radius: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
  background: #f3f7fd;
  border-color: #c7d5ea;
}

.tablist {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef3fb;
  border-radius: 14px;
  padding: 6px;
}

.tab {
  background: transparent;
  border: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(18, 32, 54, 0.08);
}

.coach-history-tabs {
  grid-template-columns: 1fr 1fr;
  max-width: 380px;
}

.tab-panel {
  margin-top: 20px;
}

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

.modal-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.choice-group {
  margin: 4px 0 2px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.choice-group legend {
  padding: 0 6px;
  font-weight: 800;
  color: var(--text);
}

.choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.choice-card.is-recommended {
  border-color: #a9bee8;
  background: #f2f7ff;
}

.choice-card span {
  display: grid;
  gap: 4px;
}

.choice-card small {
  color: var(--muted);
  font-weight: 600;
}

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

.payout-choice-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: #f8fbff;
  display: grid;
  gap: 14px;
}

.payout-choice-card.is-recommended {
  border-color: #9fb8ea;
  background: #f1f7ff;
}

.payout-choice-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.choice-points {
  margin: 2px 0 0;
  padding-left: 20px;
  color: var(--text);
  display: grid;
  gap: 8px;
}

.choice-caution {
  margin: 0;
  color: #536985;
  font-weight: 700;
}

.selected-setup-banner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f8fbff;
}

.form-feedback {
  margin: 10px 0 0;
  color: var(--brand-dark);
  font-size: 0.9rem;
}

.form-feedback.is-error {
  color: #9b1528;
}

.dashboard-main {
  width: min(1100px, 92vw);
  margin: 36px auto 60px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.coach-stack {
  grid-template-columns: 1fr;
}

.coach-dashboard-stack {
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(18, 32, 54, 0.06);
  position: relative;
  animation: rise-in 320ms ease-out both;
}

.coach-card {
  border-radius: 24px;
  padding: 26px;
}

.card:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f9fbff, #f2f7ff);
}

.summary-card h3 {
  margin: 10px 0 0;
  font-size: 1.8rem;
  line-height: 1;
}

.donation-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.donation-history-table {
  padding: 14px;
  box-shadow: none;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
}

.dashboard-copy {
  margin-top: 8px;
  color: var(--muted);
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.subtle-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-note {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.subtle-copy.is-error {
  color: #9b1528;
}

.section-top-gap {
  margin-top: 16px;
}

.section-top-gap-sm {
  margin-top: 10px;
}

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

.stack-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.coach-card .stack-form {
  gap: 14px;
}

.coach-card .stack-form label {
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.signup-location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.65fr);
  gap: 12px;
}

.readonly-detail-block {
  display: grid;
  gap: 6px;
  padding: 4px 0 2px;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-edit-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1rem;
}

.detail-edit-button.is-active {
  border-color: color-mix(in srgb, var(--brand) 40%, white 60%);
  background: color-mix(in srgb, var(--brand) 12%, white 88%);
  color: var(--brand-dark);
}

.readonly-detail-value {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 249, 255, 0.92);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.detail-editor-grid {
  display: grid;
  gap: 12px;
  padding: 10px 0 2px;
}

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

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

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 8px;
  font-size: 0.92rem;
}

.data-table tbody tr:hover {
  background: #f7f9fc;
}

.data-table th {
  color: var(--muted);
  font-weight: 700;
}

.status-yes {
  color: var(--brand-dark);
  font-weight: 700;
}

.status-no {
  color: #9b1528;
  font-weight: 700;
}

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

.actions-col {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 1;
  border-left: 1px solid var(--border);
}

.action-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.table-name-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

a.table-name-link {
  display: inline;
}

.btn-small {
  padding: 7px 10px;
  border-radius: 10px;
  min-height: 34px;
  font-size: 0.82rem;
}

.preview-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.preview-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.preview-list {
  margin-top: 12px;
}

.progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  border: 2px solid rgba(50, 61, 92, 0.32);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #75db49, #84df59);
}

#donate-panel,
#team-donate-card {
  padding: 22px;
}

#donate-panel .section-title,
#team-donate-card .section-title {
  margin-bottom: 6px;
}

#general-donation-card,
#team-general-donation-card {
  margin-bottom: 18px;
}

.player-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}

.player-top-main {
  min-width: 0;
}

.team-identity-link {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.team-identity-logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  flex: 0 0 auto;
}

.team-identity-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-identity-link .dashboard-copy {
  margin: 0;
  color: #43617f;
  font-weight: 700;
}

.team-identity-link:hover .dashboard-copy {
  color: var(--brand-dark);
  text-decoration: underline;
}

.player-top-center {
  justify-self: center;
}

.player-payout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stripe-setup-scroll {
  max-height: min(48vh, 420px);
  overflow: auto;
  padding-right: 8px;
}

.stripe-setup-scroll::after {
  content: "";
  display: block;
  height: 2px;
}

.donor-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.team-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: visible;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.team-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-hero-logo-fallback {
  color: var(--brand-dark);
  font-size: 2rem;
  font-weight: 900;
}

.donor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stats-row {
  display: flex;
  gap: 8px;
}

.stat-pill {
  background: linear-gradient(180deg, #f2f7ff, #eaf1fb);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 12px;
  text-align: center;
}

.stat-pill span {
  display: block;
  font-weight: 700;
}

.stat-pill small {
  color: var(--muted);
}

.player-image {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.player-image-tall {
  width: 100%;
  max-width: none;
  aspect-ratio: 3 / 4;
  min-height: 420px;
}

.player-image-placeholder {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px dashed #cbd7ef;
  background: linear-gradient(180deg, #f6f9ff, #edf3ff);
  color: #56708f;
  text-align: center;
}

.player-image-placeholder span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dfe9ff;
  color: #1d62d1;
  font-size: 1.8rem;
  font-weight: 800;
}

.player-image-placeholder p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.team-logo-field {
  display: grid;
  gap: 8px;
}

.team-logo-controls {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.team-logo-preview {
  max-width: 140px;
  max-height: 110px;
  display: grid;
  place-items: start;
}

.team-logo-preview img {
  max-width: 140px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.team-theme-field {
  display: grid;
  gap: 8px;
}

.theme-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-choice-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.theme-choice-chip.is-active {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border) 45%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow-sm);
}

.theme-choice-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  flex: 0 0 auto;
}

.theme-choice-label {
  white-space: nowrap;
}

.player-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(460px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.player-left-rail {
  position: sticky;
  top: 18px;
}

.player-right-panel {
  min-width: 0;
}

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

.equipment-row {
  border: 1px solid #d7e3f7;
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #eef4ff 0%, #e8f0ff 100%);
  min-height: 192px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(20, 50, 108, 0.05);
}

.equipment-row.is-disabled {
  opacity: 0.8;
  background: #e8edf8;
}

.equipment-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.equipment-card-center {
  text-align: center;
  display: grid;
  gap: 10px;
  height: 100%;
  align-content: start;
  min-width: 0;
}

.equipment-card-title {
  margin: 0;
  font-size: clamp(0.84rem, 1.25vw, 1rem);
  font-weight: 700;
  font-style: italic;
  color: #235fc5;
  text-transform: uppercase;
  line-height: 1.18;
  letter-spacing: 0.015em;
  min-height: 2.8em;
  display: grid;
  align-items: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  padding-inline: 2px;
}

.equipment-card-price {
  margin: 0;
  font-size: clamp(1.45rem, 2.35vw, 2.2rem);
  font-weight: 800;
  color: #111827;
  line-height: 1;
  overflow-wrap: anywhere;
}

.equipment-card-progress-copy {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4c607d;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.equipment-card-cta {
  width: 100%;
}

.equipment-card-clickable {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.equipment-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 73, 153, 0.1);
  background: linear-gradient(180deg, #eaf2ff 0%, #dfebff 100%);
}

.equipment-card-general {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 24px 24px 22px;
}

.equipment-card-general .equipment-card-price {
  font-size: clamp(2.3rem, 3.6vw, 3.3rem);
}

.equipment-card-general-copy {
  margin: 0;
  color: #4a607d;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 48ch;
  justify-self: center;
}

.equipment-row-edit {
  min-height: 260px;
}

.equipment-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.equipment-card-field {
  display: grid;
  gap: 8px;
}

.equipment-card-field input[type="text"] {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.equipment-card-goal {
  justify-self: center;
}

.equipment-card-goal .goal-input-wrap {
  min-width: 120px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.84);
}

.equipment-card-goal .goal-input-wrap input[type="number"] {
  width: 72px;
  text-align: center;
}

.equipment-card-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.equipment-card-progress {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.equipment-row .subtle-copy {
  font-size: 0.82rem;
  line-height: 1.45;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #4f6075;
}

.toggle-label input {
  width: auto;
}

.compact-toggle {
  font-weight: 600;
}

.equipment-main {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 8px;
  align-items: end;
}

.equipment-name,
.equipment-goal {
  display: grid;
  gap: 6px;
}

.field-caption {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #617183;
  font-weight: 700;
}

.equipment-goal input[type="number"] {
  width: 110px;
}

.goal-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fbff;
  min-height: 44px;
}

.goal-input-wrap span {
  color: #4a5f76;
  font-weight: 700;
}

.goal-input-wrap input[type="number"] {
  width: 72px;
  border: 0;
  background: transparent;
  padding: 6px 0;
  box-shadow: none;
}

.goal-input-wrap input[type="number"]:focus {
  outline: none;
}

.equipment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0d3f99;
  background: #e6efff;
  padding: 6px 10px;
}

.meta-pill-muted {
  background: #edf2f8;
  color: #5a6878;
}

.equipment-raised {
  white-space: nowrap;
  font-size: 0.84rem;
  color: #526273;
  font-weight: 600;
}

.equipment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.donation-form {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #f9fbfe;
}

.donation-top-row {
  display: flex;
  gap: 14px;
  align-items: end;
}

.donation-donor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.donation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.donation-fee-toggle {
  width: 100%;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #f2f7ff);
  color: #35506f;
  line-height: 1.45;
}

.donation-fee-toggle input {
  margin-top: 2px;
}

.donation-fee-note {
  margin: -2px 2px 2px;
  color: #4d6688;
}

#stripe-onboarding-container {
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #f9fbff;
}

.changes-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
}

.sql-editor {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #f9fbff;
}

.sql-builder-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sql-statement-picker {
  display: grid;
  gap: 8px;
  min-width: 180px;
  font-size: 0.92rem;
  font-weight: 700;
}

.sql-statement-picker select {
  min-width: 180px;
}

.sql-template-note {
  max-width: 54ch;
}

.filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  border: 1px solid var(--border);
  background: #f3f7ff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.chip-btn:hover {
  background: #e8f0ff;
}

.coach-collapsible {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #f7fbff;
}

.coach-collapsible-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.coach-collapsible-summary::-webkit-details-marker {
  display: none;
}

.coach-collapsible[open] .coach-collapsible-arrow {
  transform: rotate(180deg);
}

.coach-collapsible-arrow {
  transition: transform 180ms ease;
  color: var(--muted);
}

.coach-collapsible-content {
  padding: 8px 18px 18px;
}

.coach-collapsible-summary .section-title {
  margin-bottom: 0;
}

#donation-modal {
  width: min(640px, 100%);
}

#donation-modal .modal-header {
  margin-bottom: 14px;
}

#donation-modal .stack-form {
  gap: 16px;
}

#donation-modal .stack-form label {
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

#csv-preview-section input {
  width: 100%;
  min-width: 140px;
}

.csv-progress-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  border: 1px solid #dbe8fb;
}

.csv-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #dbe7f8;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(18, 45, 95, 0.08);
}

.csv-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7dff, #47b3ff);
  transition: width 180ms ease;
}

.csv-progress-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #476588;
  font-size: 0.9rem;
  font-weight: 800;
}

.csv-template-card {
  border: 1px solid #d9e7fa;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.csv-template-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.action-message-modal .intro-spinner {
  border-color: rgba(31, 111, 235, 0.25);
  border-top-color: #1f6feb;
}

.policy-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px 12px;
  font-size: 0.94rem;
  padding: 4px 0 2px;
}

.policy-check input[type="checkbox"] {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
}

.policy-copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .signup-location-grid {
    grid-template-columns: 1fr;
  }
}

.inline-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #1f6feb;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

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

.welcome-overview-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 168px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #f9fbff, #f2f7ff);
  display: grid;
  align-content: start;
  gap: 12px;
}

.welcome-overview-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

.welcome-overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.52;
  max-width: 25ch;
}

#get-started-modal {
  width: min(760px, 100%);
}

#get-started-modal .modal-header {
  margin-bottom: 12px;
}

.get-started-intro {
  max-width: 60ch;
  margin-bottom: 16px;
}

.get-started-tabs {
  margin-bottom: 18px;
}

.get-started-panel {
  margin-top: 6px;
}

.guide-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.guide-kicker {
  margin: 0 0 8px;
  color: #1f6feb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-panel-grid h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.guide-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.55;
}

.guide-aside {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  display: grid;
  gap: 10px;
}

.guide-aside-title {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.guide-aside .btn {
  margin-top: 4px;
}

.legal-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.66;
}

.legal-copy p {
  margin: 0;
}

.inline-link-anchor {
  color: #1f6feb;
  font-weight: 800;
  text-decoration: underline;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
  padding: 16px 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.24;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

#get-started-modal {
  max-width: min(760px, 100%);
}

.site-footer {
  margin-top: auto;
  background: linear-gradient(120deg, #1359c8, #1f6feb 52%, #2e82ff);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.site-footer-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.footer-link {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.95;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: none;
}

@keyframes page-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .site-header {
    width: min(960px, 94vw);
    flex-wrap: wrap;
    gap: 10px;
  }

  main,
  .dashboard-main {
    width: min(960px, 94vw);
  }

  .player-workspace {
    grid-template-columns: 1fr;
  }

  .player-left-rail {
    position: static;
  }

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

  .hero-grid,
  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    width: min(960px, 94vw);
  }
}

@media (max-width: 820px) {
  .site-header {
    margin-top: 0;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-search-card {
    padding: 18px;
  }

  .home-page .site-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .home-page .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

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

  .player-top {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .player-top-center {
    justify-self: stretch;
    width: 100%;
  }

  .player-top-center .btn {
    width: 100%;
  }

  .player-payout-actions {
    width: 100%;
  }

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

  .stats-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .stat-pill {
    flex: 1 1 calc(50% - 8px);
  }

  .btn {
    min-height: 46px;
  }

  .preview-grid {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .equipment-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .equipment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .donation-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .donation-donor-grid {
    grid-template-columns: 1fr;
  }

  .donation-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions {
    flex-direction: column;
  }

  #get-started-modal .modal-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .modal {
    width: min(96vw, 560px);
    border-radius: 16px;
    padding: 16px;
  }

  .modal-roomy {
    padding: 20px;
    border-radius: 20px;
  }

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

  .player-workspace {
    grid-template-columns: 1fr;
  }

  .player-left-rail {
    position: static;
  }

  .player-image-tall {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .hero {
    border-radius: 22px;
    padding: 18px;
  }

  .hero-search-card,
  .hero-proof-card {
    border-radius: 18px;
  }

  .home-page .hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
    line-height: 1.08;
    max-width: 11ch;
  }

  .modal-header h2 {
    font-size: 1.28rem;
  }

  .modal-form {
    gap: 12px;
  }

  .selected-setup-banner,
  .payout-choice-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .hero-copy {
    margin-bottom: 14px;
  }

  .featured-player-card .btn {
    width: 100%;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
  }

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

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .header-actions .btn {
    width: auto;
  }

  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .home-page .logo-text {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .home-page .header-actions .btn {
    min-height: 42px;
    padding: 9px 12px;
  }

  .suggestion-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .user-menu {
    width: 100%;
  }

  .user-menu-trigger {
    width: 100%;
    min-width: 0;
  }

  .user-menu-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
  }

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

  .logo-text {
    font-size: 0.92rem;
  }

  .data-table {
    min-width: 680px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
