html {
  width: 100%;
  overflow-x: hidden;
}

:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-dark: #142233;
  --card: #ffffff;
  --ink: #1d232b;
  --muted: #5e6b78;
  --accent: #1f4b73;
  --accent-strong: #163552;
  --highlight: #e9eef4;
  --line: #d9dee5;
  --shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  padding: 32px 16px 56px;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

body.page-home,
body.page-league,
body.page-register {
  background: var(--bg);
}

body.page-league .brand,
body.page-register .brand {
  color: var(--accent);
}

body.page-league .hero,
body.page-register .hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.bg-shape {
  display: none;
}

.shape-one {
  width: 320px;
  height: 320px;
  background: #f06543;
  top: -120px;
  right: -80px;
}

.shape-two {
  width: 220px;
  height: 220px;
  background: #f9c74f;
  bottom: -60px;
  left: -40px;
  animation-delay: -4s;
}

.shape-three {
  width: 160px;
  height: 160px;
  background: #2a9d8f;
  top: 40%;
  left: 10%;
  animation-delay: -7s;
}

body.page-league .shape-one {
  background: #2a9d8f;
}

body.page-league .shape-two {
  background: #f4a261;
}

body.page-league .shape-three {
  background: #264653;
}

body.page-register .shape-one {
  background: #f4a261;
}

body.page-register .shape-two {
  background: #e76f51;
}

body.page-register .shape-three {
  background: #2a9d8f;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.site-header {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 600;
  color: var(--muted);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.nav-link.active {
  color: var(--ink);
  border-color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--accent-strong);
  color: #ffffff;
}

.hero {
  text-align: left;
  margin-bottom: 32px;
  animation: rise 0.8s ease-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.3rem, 3vw, 3.4rem);
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--highlight);
  color: var(--accent-strong);
  font-weight: 700;
}

.meta-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.meta-value {
  display: block;
  font-weight: 600;
  margin-top: 6px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-list {
  display: grid;
  gap: 12px;
}

.hero-item {
  display: grid;
  gap: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.section {
  margin-bottom: 36px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.band {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.band-card {
  display: grid;
  gap: 6px;
}

.band-number {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
}

.band-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.12);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.section-content {
  display: grid;
  gap: 12px;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--line);
}

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

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f4f7;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}

.callout {
  margin-top: 20px;
}

.callout-card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.callout-card .tag {
  background: var(--highlight);
  color: var(--accent-strong);
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 12px;
  background: #e7f1ea;
  color: #205844;
}

.status.closed {
  background: #f3e7e7;
  color: #8b2c2c;
}

.info-message {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.info-block {
  background: #f8f9fb;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.link {
  color: var(--accent-strong);
  font-weight: 600;
}

.info-block h2 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-block ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.info-block li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.info-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.detail:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-value {
  font-weight: 600;
  text-align: right;
}

.form {
  overflow: hidden;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.auth-gate {
  border-left: 4px solid var(--accent);
}

.auth-head h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

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

.auth-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f1f4f7;
  margin-bottom: 16px;
}


.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f5f7;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.step.active {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.12);
  transform: translateY(-1px);
}

.step.active .step-number {
  background: var(--accent);
  color: #ffffff;
}

.step.complete {
  background: #e7f1ea;
  color: #205844;
}

.step.complete .step-number {
  background: var(--accent);
  color: #ffffff;
}

.step-counter {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.progress {
  margin-bottom: 12px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2f6ea3);
  transition: width 0.35s ease;
}

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

.form-step[hidden] {
  display: none;
}

.step-title {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.step-note {
  color: var(--muted);
  margin-top: -6px;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

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

.step-actions [hidden] {
  display: none !important;
}

.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
}

.review-photo {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f1f4f7;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.review-photo img.active {
  display: block;
}

.review-stack {
  display: grid;
  gap: 16px;
}

.review-section h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 16px;
}

.review-item {
  display: grid;
  gap: 4px;
}

.review-item span:last-child {
  font-weight: 600;
}

.review-alert {
  margin-top: 12px;
  background: #f1f4f7;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
}

.form-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 34, 51, 0.88);
  color: #ffffff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.form-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

form {
  display: grid;
  gap: 16px;
}

.field label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
}

.field input[readonly] {
  background: #f1f4f7;
  color: var(--muted);
}

.is-locked {
  background: #f1f4f7;
  color: var(--muted);
}

.photo-block {
  display: grid;
  gap: 10px;
}

.photo-placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 160px;
  background: #f6f8fb;
  color: var(--muted);
  text-align: center;
}

.photo-placeholder strong {
  color: var(--ink);
  font-size: 1rem;
}

.photo-placeholder.hidden {
  display: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.checkbox input {
  margin-top: 4px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input[type="file"] {
  border-style: dashed;
  padding: 10px 12px;
  background: #ffffff;
}

.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.field-error {
  color: #b03c2b;
  font-size: 0.85rem;
  min-height: 18px;
  margin-top: 6px;
}

.field-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.secondary.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.secondary:hover {
  background: #f1f4f7;
}

.primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.15);
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.form-result {
  min-height: 22px;
  font-weight: 600;
  color: var(--bg-dark);
}

#registration-form[hidden],
.registration-receipt[hidden] {
  display: none;
}

body.page-register.receipt-active .hero,
body.page-register.receipt-active .grid > .panel.info {
  display: none;
}

body.page-register.receipt-active .grid {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

body.page-register.receipt-active .grid > .panel.form {
  max-width: 820px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.registration-receipt {
  display: grid;
  gap: 18px;
}

.receipt-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
}

.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.receipt-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.receipt-brand-lockup img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.receipt-league,
.receipt-kicker {
  margin: 0;
}

.receipt-league {
  color: var(--ink);
  font-weight: 700;
}

.receipt-kicker {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.receipt-paid-badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f1ea;
  color: #237045;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-success-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px;
  padding: 18px;
  border: 1px solid #cfe3d5;
  border-radius: 8px;
  background: #f4faf6;
}

.receipt-success-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #237045;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 700;
}

.registration-receipt h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
}

.receipt-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
}

.receipt-grid {
  margin: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  text-align: left;
}

.receipt-grid div {
  min-width: 0;
  padding: 15px 16px;
  background: #ffffff;
}

.receipt-grid div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.receipt-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.receipt-note {
  margin: 20px 24px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1f4f7;
  color: var(--muted);
  text-align: center;
}

.receipt-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

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

.photo-preview {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.photo-preview.active {
  display: flex;
}

.photo-preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
}

.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 31, 28, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.crop-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.crop-card {
  width: min(520px, 92vw);
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.crop-body {
  display: grid;
  gap: 12px;
}

.crop-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1a1a1a;
  border-radius: 16px;
  cursor: grab;
  touch-action: none;
}

.crop-canvas:active {
  cursor: grabbing;
}

.crop-controls {
  display: grid;
  gap: 6px;
}

.crop-controls input[type="range"] {
  width: 100%;
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-size: 0.85rem;
}

.footer-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9eef4;
  color: var(--accent-strong);
  font-weight: 600;
}

.pill.pending {
  background: #f4e6e6;
  color: #8b2c2c;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d6dde6;
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background-color: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(16px);
  }
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

.reveal {
  animation: fadeUp 0.8s ease both;
  animation-delay: var(--delay, 0s);
}

@media (max-width: 720px) {
  body {
    padding: 26px 16px 42px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-link {
    font-size: 0.95rem;
  }

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

  .hero {
    text-align: left;
  }

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

  .hero-actions .primary,
  .hero-actions .secondary {
    width: 100%;
  }

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

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

  .detail-value {
    text-align: left;
  }

  .footer {
    gap: 12px;
  }

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

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

  .auth-actions .primary,
  .auth-actions .secondary {
    width: 100%;
  }

  .auth-status {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .step-actions-right {
    width: 100%;
  }

  .step-actions-right .primary,
  .step-actions-right .secondary {
    width: 100%;
  }

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

  .review-photo {
    width: 100%;
    height: 180px;
  }

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

  .receipt-header,
  .receipt-success-panel,
  .receipt-footer {
    align-items: flex-start;
  }

  .receipt-header,
  .receipt-footer {
    flex-direction: column;
  }

  .receipt-success-panel {
    margin: 16px;
  }

  .receipt-grid {
    margin: 0 16px;
  }

  .receipt-note {
    margin: 16px 16px 0;
  }

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

  .receipt-actions .primary,
  .receipt-actions .secondary {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .logo span {
    font-size: 0.95rem;
  }

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

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.4s ease;
  font-weight: 500;
}

.toast.toast-exit {
  animation: toastOut 0.3s ease forwards;
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast.success { border-left: 4px solid #2f855a; }
.toast.success .toast-icon { background: #e7f1ea; color: #2f855a; }
.toast.error { border-left: 4px solid #b03c2b; }
.toast.error .toast-icon { background: #fde8e8; color: #b03c2b; }
.toast.info { border-left: 4px solid var(--accent); }
.toast.info .toast-icon { background: var(--highlight); color: var(--accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ── Auth Tabs ── */
.auth-tabs {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.auth-tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  background: #f3f5f7;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.auth-tab:hover {
  background: #e9eef4;
}

.auth-tab.active {
  background: var(--accent);
  color: #ffffff;
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
  animation: fadeUp 0.35s ease;
}

/* ── Loading Spinner ── */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-loading-dark::after {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--ink);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Auth Loading Skeleton ── */
.auth-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8edf3 25%, #f1f4f7 50%, #e8edf3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.h40 { height: 40px; border-radius: 10px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Password Strength Meter ── */
.password-meter {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.password-meter-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #e8edf3;
  transition: background 0.3s ease;
}

.password-meter-bar.active.weak { background: #e53e3e; }
.password-meter-bar.active.fair { background: #ed8936; }
.password-meter-bar.active.good { background: #38a169; }
.password-meter-bar.active.strong { background: #2f855a; }

.password-meter-label {
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Already Registered Panel ── */
.already-registered {
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
}

.already-registered-header {
  margin-bottom: 20px;
}

.already-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.already-registered h3 {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #15803d;
}

.already-registered p {
  color: #4b5563;
  font-size: 0.95rem;
}

.submitted-data {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.submitted-item {
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d1fae5;
}

.submitted-item .meta-label {
  font-size: 0.7rem;
  display: block;
  margin-bottom: 2px;
}

.submitted-item .submitted-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Mobile Menu Button ── */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  z-index: 60;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: var(--highlight);
}

.hamburger .menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger .menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger.open .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Full-Screen Overlay Nav ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 34, 51, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  padding: 24px;
}

.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-overlay-close:hover {
  background: rgba(255,255,255,0.2);
}

.nav-overlay .nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border-bottom: none;
  transition: color 0.2s ease, background 0.2s ease;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.nav-overlay .nav-link:hover,
.nav-overlay .nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.nav-overlay .nav-cta {
  background: var(--accent);
  color: #ffffff;
  margin-top: 12px;
}

.nav-overlay .nav-cta:hover {
  background: var(--accent-strong);
}

.nav-overlay-brand {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 32px;
}

/* ── Auth card smooth transition ── */
.auth-card-wrapper {
  transition: opacity 0.4s ease, max-height 0.5s ease;
  overflow: hidden;
}

.auth-card-wrapper.collapsing {
  opacity: 0;
  max-height: 0 !important;
  margin: 0;
  padding: 0;
}

/* ── Draft saved indicator ── */
.draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f1ea;
  color: #205844;
  font-size: 0.78rem;
  font-weight: 600;
  animation: fadeUp 0.3s ease;
}

/* ── Form field character count ── */
.char-count {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  margin-top: 2px;
}

.char-count.over {
  color: #b03c2b;
  font-weight: 600;
}

/* ── Inline auth on register page ── */
.inline-auth-form .field label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.inline-auth-form .field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
}

@media (max-width: 720px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
  }

  .toast-container {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  /* On mobile, show the auth/form panel FIRST above the info panel */
  .grid {
    display: flex;
    flex-direction: column;
  }

  .grid > .panel.form {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body.receipt-printing * {
    visibility: hidden !important;
  }

  body.receipt-printing #registration-receipt,
  body.receipt-printing #registration-receipt * {
    visibility: visible !important;
  }

  body.receipt-printing #registration-receipt {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    background: #ffffff;
  }

  body.receipt-printing .receipt-sheet {
    max-width: 180mm;
    margin: 0 auto;
    border-color: #d9e0e8;
    box-shadow: none;
  }

  body.receipt-printing .receipt-actions {
    display: none !important;
  }
}
