:root {
  --navy: #071a35;
  --navy-deep: #020b18;
  --navy-soft: #0b2b55;
  --red: #e80f19;
  --blue: #173fb0;
  --gold: #f4bd3b;
  --white: #ffffff;
  --ink: #071225;
  --muted: #627188;
  --line: rgba(7, 18, 37, 0.12);
  --shadow: 0 22px 54px rgba(2, 11, 24, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f3f6fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 4%, rgba(23, 63, 176, 0.12), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(232, 15, 25, 0.1), transparent 24%),
    #f3f6fb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.admin-shell {
  min-height: 100svh;
}

.admin-hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.admin-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 11, 24, 0.9), rgba(2, 11, 24, 0.58)),
    url("assets/hero-volleyball-camp.png") center / cover;
}

.admin-hero-bg::before,
.admin-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 31%;
  background: rgba(232, 15, 25, 0.42);
  clip-path: polygon(0 0, 76% 0, 54% 100%, 0 100%);
  mix-blend-mode: multiply;
}

.admin-hero-bg::after {
  inset: 0 0 0 auto;
  width: 34%;
  background: rgba(11, 43, 85, 0.72);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  padding-top: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 67px;
  flex: 0 0 auto;
}

.brand-mark path:first-child {
  fill: var(--red);
}

.brand-mark path:nth-child(2) {
  fill: var(--navy-soft);
  stroke: var(--white);
  stroke-width: 2;
}

.brand-mark circle {
  fill: var(--white);
  stroke: var(--gold);
  stroke-width: 3;
}

.brand-mark path:nth-child(n+4) {
  fill: none;
  stroke: var(--navy-soft);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark path:last-child {
  stroke: var(--white);
  stroke-width: 3;
}

.brand strong,
.brand small {
  display: block;
  text-transform: uppercase;
  line-height: 0.96;
}

.brand strong {
  max-width: 190px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 820;
}

.brand small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 740;
}

.site-link,
.dashboard-actions a,
.dashboard-actions button,
.file-action,
.auth-form button,
.form-actions button {
  border: 0;
  border-radius: 4px;
  min-height: 44px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--white);
  background: var(--red);
  font-weight: 720;
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(232, 15, 25, 0.22);
}

.file-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.site-link {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.admin-hero-copy {
  width: min(100% - 40px, 1160px);
  margin: 70px auto 0;
}

.admin-hero-copy h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 0.96;
  font-weight: 820;
}

.admin-hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  line-height: 1.5;
}

.admin-card,
.admin-dashboard {
  width: min(100% - 40px, 1160px);
  margin: -54px auto 70px;
  position: relative;
  z-index: 2;
}

.admin-card,
.editor-panel,
.metric-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
}

.admin-card h2,
.dashboard-head h2,
.editor-panel h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 780;
}

.admin-card h2,
.dashboard-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-card h2::after,
.dashboard-head h2::after,
.editor-panel h3::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 13px;
  background: var(--red);
}

.admin-card p,
.dashboard-head p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form,
.editor-panel {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 18, 37, 0.18);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  line-height: 1.4;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 63, 176, 0.13);
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-dashboard {
  margin-top: 36px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

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

.dashboard-actions a,
.dashboard-actions button,
.dashboard-actions .file-action,
.button-secondary,
.button-light {
  background: var(--blue) !important;
  box-shadow: 0 16px 36px rgba(23, 63, 176, 0.18) !important;
}

.button-light {
  background: var(--navy) !important;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.metric-grid article {
  min-height: 130px;
  padding: 22px;
}

.metric-grid span {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 740;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 720;
  line-height: 1.1;
}

.editor-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.tab-button {
  min-height: 42px;
  border: 1px solid rgba(7, 18, 37, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  text-transform: uppercase;
}

.tab-button.active {
  border-color: rgba(232, 15, 25, 0.28);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(232, 15, 25, 0.2);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.editor-panel {
  padding: 24px;
}

.editor-panel-wide {
  grid-column: 1 / -1;
}

.editor-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

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

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

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

.full-field {
  grid-column: 1 / -1;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 260px);
  gap: 14px;
  margin-bottom: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 18px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(7, 18, 37, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid rgba(7, 18, 37, 0.1);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

td span {
  color: var(--muted);
}

td button,
.link-button {
  border: 1px solid rgba(7, 18, 37, 0.14);
  border-radius: 4px;
  margin: 2px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
}

.link-button {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: inherit;
  text-align: left;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--navy);
  font-size: 0.74rem;
  font-weight: 780;
  text-transform: uppercase;
}

.status-pill.paid {
  background: #107a48;
}

.status-pill.pending {
  background: var(--red);
}

.participant-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(7, 18, 37, 0.08);
}

.participant-detail h3,
.participant-detail h4 {
  margin: 0;
  color: var(--navy);
}

.participant-detail h4 {
  margin-top: 18px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.participant-detail p {
  color: var(--muted);
  line-height: 1.55;
}

.participant-detail dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.participant-detail div {
  display: grid;
  gap: 4px;
}

.participant-detail dt {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 780;
  text-transform: uppercase;
}

.participant-detail dd {
  margin: 0;
  color: var(--ink);
}

.payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(7, 18, 37, 0.1);
  padding: 12px 0;
}

.payment-row span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.payment-row strong {
  color: var(--navy);
  text-align: right;
}

.manual-entry,
.settings-panel {
  margin-top: 18px;
}

.is-hidden {
  display: none !important;
}

/* Keep all admin wording regular weight. */
:where(body, body *, strong, b, button, input, select, textarea) {
  font-weight: 400 !important;
}

@media (max-width: 820px) {
  .auth-card,
  .dashboard-head,
  .editor-grid,
  .metric-grid,
  .form-grid.two,
  .toolbar,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    display: grid;
  }

  .admin-hero-copy {
    margin-top: 48px;
  }
}
