:root {
  --cf-ink: #17233c;
  --cf-ink-soft: #526078;
  --cf-primary: #08766f;
  --cf-primary-hover: #07564f;
  --cf-primary-soft: #e5f3f1;
  --cf-canvas: #f5f7fa;
  --cf-border: #dce2e9;
  --cf-radius: 0.85rem;
  --cf-radius-sm: 0.55rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f7fa;
  color: #17233c;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: #08766f;
}

:focus-visible {
  outline: 3px solid #d89000 !important;
  outline-offset: 3px;
}

.skip-link {
  background: #17233c;
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 2000;
}
.skip-link:focus {
  top: 1rem;
}

.btn,
.form-control,
.form-select,
.nav-link,
.page-link {
  min-height: 44px;
}

.btn {
  align-items: center;
  border-radius: 0.55rem;
  display: inline-flex;
  font-weight: 650;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.625rem 1rem;
}

.btn-sm {
  min-height: 38px;
  padding: 0.4rem 0.75rem;
}

.btn-primary {
  --bs-btn-bg: #08766f;
  --bs-btn-border-color: #08766f;
  --bs-btn-hover-bg: #07564f;
  --bs-btn-hover-border-color: #07564f;
}

.btn-outline-primary {
  --bs-btn-color: #08766f;
  --bs-btn-border-color: #08766f;
  --bs-btn-hover-bg: #08766f;
  --bs-btn-hover-border-color: #08766f;
}

.btn-danger {
  --bs-btn-bg: #a3221b;
  --bs-btn-border-color: #a3221b;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

.eyebrow {
  color: #08766f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.surface {
  background: #ffffff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.brand {
  align-items: center;
  color: #17233c;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}
.brand small {
  color: #526078;
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
}

.brand-logo {
  display: block;
  height: auto;
  width: 9.25rem;
}

.brand-logo-dark {
  width: 10.6rem;
}

.brand-isotype {
  display: block;
  height: 2.9rem;
  width: 2.9rem;
}

.brand-context {
  min-width: 0;
}
.brand-context small {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-control,
.form-select {
  border-color: #b9c3cf;
  border-radius: 0.55rem;
}
.form-control:focus,
.form-select:focus {
  border-color: #08766f;
  box-shadow: 0 0 0 0.22rem rgba(8, 118, 111, 0.18);
}

.form-label {
  font-weight: 700;
}

.error-summary {
  background: #fce9e7;
  border: 1px solid #e2a6a1;
  border-left: 4px solid #a3221b;
  border-radius: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
}

.badge-status {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 750;
  gap: 0.35rem;
  min-height: 1.8rem;
  padding: 0.25rem 0.6rem;
}
.badge-status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 0.4rem;
  width: 0.4rem;
}

.status-success {
  background: #e7f4ec;
  border-color: #add5bc;
  color: #236b47;
}

.status-warning {
  background: #fff3d6;
  border-color: #e5c572;
  color: #946000;
}

.status-danger {
  background: #fce9e7;
  border-color: #e2aaa6;
  color: #a3221b;
}

.status-neutral {
  background: #edf0f4;
  border-color: #cdd4dd;
  color: #46536a;
}

.table-shell {
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  overflow: hidden;
}

.table {
  --bs-table-color: #17233c;
  margin-bottom: 0;
}
.table > :not(caption) > * > * {
  border-bottom-color: #dce2e9;
  padding: 0.85rem 1rem;
  vertical-align: middle;
}
.table thead th {
  background: #f3f5f8;
  color: #455166;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.task-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}
.task-list li {
  align-items: center;
  border-top: 1px solid #dce2e9;
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
}
.task-list small {
  color: #526078;
  display: block;
}

.task-icon {
  align-items: center;
  border-radius: 0.7rem;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.task-warning {
  background: #fff3d6;
  color: #946000;
}

.task-danger {
  background: #fce9e7;
  color: #a3221b;
}

.task-success {
  background: #e7f4ec;
  color: #236b47;
}

.dense-admin-table > :not(caption) > * > * {
  padding: 0.48rem 0.65rem;
}

.table-actions {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.table-actions form {
  margin: 0;
}

.compact-filters {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 12rem) auto;
  padding: 0.8rem;
}

.directory-filters {
  grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 16rem) minmax(8rem, 10rem) auto;
}

.form-actions {
  border-top: 1px solid #dce2e9;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.form-narrow {
  max-width: 48rem;
}

.compact-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.compact-flags span {
  background: #edf0f4;
  border-radius: 0.3rem;
  color: #46536a;
  font-size: 0.72rem;
  padding: 0.14rem 0.35rem;
}

.onboarding-container {
  max-width: 62rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-grid div {
  border-bottom: 1px solid #dce2e9;
  padding-bottom: 0.65rem;
}
.detail-grid dt {
  color: #526078;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-grid dd {
  margin: 0.2rem 0 0;
}

.status-history {
  border-left: 2px solid #dce2e9;
  list-style: none;
  margin: 1rem 0 0 0.35rem;
  padding-left: 1.15rem;
}
.status-history li {
  margin-bottom: 1rem;
  position: relative;
}
.status-history li::before {
  background: #08766f;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dce2e9;
  content: "";
  height: 0.75rem;
  left: -1.58rem;
  position: absolute;
  top: 0.25rem;
  width: 0.75rem;
}
.status-history span {
  color: #526078;
  display: block;
  font-size: 0.8rem;
}

.family-player-card {
  align-items: flex-start;
  border: 1px solid #dce2e9;
  border-radius: 0.55rem;
  display: flex;
  gap: 0.8rem;
  height: 100%;
  padding: 1rem;
}

.consent-list {
  display: grid;
  gap: 1rem;
}

.consent-text {
  background: #f6f7f9;
  border: 1px solid #dce2e9;
  border-radius: 0.55rem;
  max-height: 20rem;
  overflow: auto;
  padding: 1rem;
  white-space: normal;
}

.document-drop-area {
  align-items: center;
  background: #f7faf9;
  border: 2px dashed #86aaa5;
  border-radius: 0.55rem;
  color: #526078;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 8.5rem;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}
.document-drop-area i {
  color: #08766f;
  font-size: 1.75rem;
}

.dropzone-enhanced [data-dropzone-input] {
  position: static;
}
.dropzone-enhanced .document-drop-area {
  display: flex;
}

.dropzone-preview .dz-preview {
  background: #f3f5f8;
  border: 1px solid #dce2e9;
  border-radius: 0.55rem;
  margin: 0.5rem 0 0;
  min-height: auto;
  padding: 0.65rem;
  width: 100%;
}
.dropzone-preview .dz-image,
.dropzone-preview .dz-progress,
.dropzone-preview .dz-error-mark,
.dropzone-preview .dz-success-mark {
  display: none;
}
.dropzone-preview .dz-details {
  padding: 0;
  position: static;
}

.month-grid {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.target-grid {
  display: grid;
  gap: 0.5rem;
  max-height: 24rem;
  overflow: auto;
  padding: 0.25rem;
}

.target-row {
  align-items: center;
  border: 1px solid #dce2e9;
  border-radius: 0.55rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 9rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.55rem;
}
.target-row small {
  color: #526078;
}

.allocation-total {
  align-self: start;
  background: #eef7f4;
  border: 1px solid #bcded3;
  border-radius: 0.55rem;
  color: #155c49;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}
.allocation-total.allocation-total-mismatch {
  background: #fff5e6;
  border-color: #efc77d;
  color: #744800;
}

.allocation-input {
  margin-left: auto;
  min-width: 12rem;
  width: 12rem;
}

.print-page {
  background: #eef1f4;
}

.receipt {
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  margin: 0 auto;
  max-width: 52rem;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.receipt-header,
.receipt-parties {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.receipt-header {
  border-bottom: 2px solid #08766f;
  padding-bottom: 1.5rem;
}
.receipt-header h1 {
  font-size: 1.55rem;
}

.receipt-number {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.receipt-parties {
  background: #f5f7f8;
  margin: 1.5rem 0;
  padding: 1rem;
}
.receipt-parties > div {
  display: flex;
  flex-direction: column;
  min-width: 40%;
}
.receipt-parties span,
.receipt-parties small {
  color: #526078;
}

.receipt-table {
  margin: 1.5rem 0;
}

.receipt-history {
  border-top: 1px solid #dce2e9;
  padding-top: 1rem;
}
.receipt-history h2 {
  font-size: 1rem;
}
.receipt-history p {
  margin-bottom: 0.25rem;
}

.receipt-note {
  color: #526078;
  font-size: 0.82rem;
  margin-top: 2rem;
}

.receipt-cancelled {
  border-color: #b42318;
}

.print-actions {
  margin: 1rem auto 3rem;
  max-width: 52rem;
  text-align: right;
}

@media (min-width: 768px) {
  .month-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .compact-filters {
    grid-template-columns: 1fr;
  }
  .responsive-admin-table thead {
    display: none;
  }
  .responsive-admin-table tbody,
  .responsive-admin-table tr,
  .responsive-admin-table td {
    display: block;
    width: 100%;
  }
  .responsive-admin-table tr {
    border-bottom: 1px solid #dce2e9;
    padding: 0.55rem 0.75rem;
  }
  .responsive-admin-table td {
    border: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    padding: 0.3rem 0 !important;
    text-align: left !important;
  }
  .responsive-admin-table td::before {
    color: #526078;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .responsive-admin-table .table-actions {
    justify-content: flex-start;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    min-height: 2.75rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .target-row {
    gap: 0.35rem;
    grid-template-columns: 1fr;
  }
  .allocation-input {
    margin-left: 0;
    width: 100%;
  }
  .receipt-header,
  .receipt-parties {
    flex-direction: column;
  }
  .receipt-number {
    text-align: left;
  }
}
@media print {
  @page {
    margin: 12mm;
  }
  .print-page {
    background: #fff;
  }
  .print-page .container {
    max-width: none;
    padding: 0 !important;
  }
  .receipt {
    border: 0;
    max-width: none;
    padding: 0;
  }
  .print-actions {
    display: none;
  }
}
.public-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dce2e9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero {
  background: radial-gradient(circle at 88% 20%, rgba(244, 183, 64, 0.2), transparent 20rem), #edf5f4;
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}
.hero h1 {
  font-size: clamp(2.45rem, 5.6vw, 4.55rem);
  font-weight: 800;
  line-height: 1.02;
}

.hero-copy {
  color: #526078;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 42rem;
}

.hero-panel {
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 1.2rem;
  box-shadow: 0 16px 45px rgba(23, 35, 60, 0.08);
  padding: clamp(1.4rem, 4vw, 2rem);
}

.price-note {
  margin: 1.25rem 0 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-top: 1.5rem;
}
.hero-facts span {
  align-items: center;
  color: #526078;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.4rem;
}
.hero-facts i {
  color: #08766f;
}

.club-preview {
  position: relative;
}
.club-preview::before {
  background: linear-gradient(90deg, #08766f 0 78%, #f4b740 78% 100%);
  border-radius: 999px;
  content: "";
  height: 0.35rem;
  left: 2rem;
  position: absolute;
  right: 2rem;
  top: 0;
}

.club-preview-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.preview-icon,
.feature-icon {
  align-items: center;
  background: #e5f3f1;
  border-radius: 0.8rem;
  color: #08766f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.4rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.club-preview .task-list {
  margin-bottom: 0.8rem;
}
.club-preview .task-list li {
  grid-template-columns: auto 1fr auto;
}
.club-preview .task-list li > i {
  color: #8793a7;
}

.club-preview-footer {
  align-items: center;
  background: #e5f3f1;
  border-radius: 0.55rem;
  color: #08766f;
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}
.club-preview-footer > i {
  font-size: 1.3rem;
}
.club-preview-footer span,
.club-preview-footer small {
  display: block;
}
.club-preview-footer small {
  margin-top: 0.1rem;
}

.landing-proof {
  background: #17233c;
  color: #fff;
}
.landing-proof .container {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}
.landing-proof .container > div {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1rem;
}
.landing-proof i {
  color: #72d2c7;
  font-size: 1.35rem;
}
.landing-proof .container > div:first-child i {
  color: #f4b740;
}
.landing-proof span,
.landing-proof small {
  display: block;
}
.landing-proof small {
  color: #bdc8d9;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-muted {
  background: #eef1f5;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 42rem;
}
.section-heading > p:last-child {
  color: #526078;
  font-size: 1.05rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  padding: 1.5rem;
}
.feature-card > i {
  color: #08766f;
  font-size: 1.65rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
}
.feature-card p {
  color: #526078;
  margin-bottom: 0;
}

.landing-feature {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.landing-feature:hover {
  border-color: #a9c7c3;
  transform: translateY(-3px);
}
.landing-feature > i {
  font-size: inherit;
}
.landing-feature .feature-icon i {
  font-size: 1.45rem;
}

.section-copy {
  color: #526078;
  font-size: 1.08rem;
}

.migration-note {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem;
}
.migration-note > i {
  color: #08766f;
  font-size: 1.3rem;
}
.migration-note p {
  color: #526078;
  margin: 0;
}

.landing-steps {
  counter-reset: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.landing-steps li {
  align-items: flex-start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.8rem 1fr;
  padding-bottom: 1.35rem;
  position: relative;
}
.landing-steps li:not(:last-child)::after {
  background: #b9cbc9;
  bottom: 0;
  content: "";
  left: 1.35rem;
  position: absolute;
  top: 2.8rem;
  width: 2px;
}
.landing-steps li > span {
  align-items: center;
  background: #08766f;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 2.8rem;
  justify-content: center;
  width: 2.8rem;
}
.landing-steps li:last-child > span {
  background: #f4b740;
  color: #17233c;
}
.landing-steps h3 {
  font-size: 1.05rem;
  margin: 0.1rem 0 0.25rem;
}
.landing-steps p {
  color: #526078;
  margin: 0;
}

.family-section {
  background: #f8fbfb;
}

.benefit-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.benefit-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}
.benefit-list i {
  color: #08766f;
  margin-top: 0.1rem;
}

.family-preview {
  background: #17233c;
  border: 0.55rem solid #17233c;
  border-radius: 1.6rem;
  box-shadow: 0 24px 60px rgba(23, 35, 60, 0.2);
  color: #17233c;
  margin: 0 auto;
  max-width: 31rem;
  overflow: hidden;
}

.family-preview-top {
  align-items: center;
  color: #fff;
  display: flex;
  font-weight: 750;
  justify-content: space-between;
  padding: 0.7rem 0.8rem 1.1rem;
}

.family-greeting {
  background: #edf5f4;
  padding: 1.3rem 1.25rem 0.9rem;
}
.family-greeting small,
.family-greeting strong {
  display: block;
}
.family-greeting strong {
  font-size: 1.4rem;
}

.family-metrics {
  background: #edf5f4;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  padding: 0 1.25rem 1.25rem;
}
.family-metrics > div {
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  padding: 1rem;
}
.family-metrics span,
.family-metrics strong,
.family-metrics small {
  display: block;
}
.family-metrics span,
.family-metrics small {
  color: #526078;
  font-size: 0.78rem;
}
.family-metrics strong {
  font-size: 1.15rem;
  margin: 0.25rem 0;
}

.family-player {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto 1fr auto;
  padding: 1.1rem 1.25rem 1.35rem;
}
.family-player strong,
.family-player small {
  display: block;
}
.family-player small {
  color: #526078;
}

.price-card {
  align-items: center;
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 1.2rem;
  box-shadow: 0 16px 45px rgba(23, 35, 60, 0.08);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.8fr) auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}
.price-card::before {
  background: #f4b740;
  border-radius: 999px;
  content: "";
  height: 0.3rem;
  left: clamp(1.5rem, 4vw, 3rem);
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  top: 0;
}
.price-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.price-card p {
  color: #526078;
  margin-bottom: 0;
}
.price-card ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-card li {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}
.price-card li i {
  color: #236b47;
}

.faq-card {
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  padding: 1.35rem;
}
.faq-card h3 {
  font-size: 1.05rem;
}
.faq-card p {
  color: #526078;
  margin: 0;
}

.landing-final-cta {
  background: #08766f;
  color: #fff;
}
.landing-final-cta .cta-panel {
  align-items: center;
  flex-direction: row;
  padding: 0;
}
.landing-final-cta .eyebrow,
.landing-final-cta p {
  color: #c4e7e3;
}
.landing-final-cta p {
  margin-bottom: 0;
}
.landing-final-cta .btn-light {
  box-shadow: 0.35rem 0.35rem 0 #f4b740;
}

.form-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.cta-panel {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
}

.auth-brand-panel {
  background: #17233c;
  color: #fff;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.auth-brand-panel h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
}
.auth-brand-panel p:not(.eyebrow) {
  color: #bdc8d9;
  font-size: 1.1rem;
  max-width: 34rem;
}
.auth-brand-panel > small {
  color: #9eacc1;
}

.auth-form-panel {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 2rem 1.25rem;
}

.auth-form-wrap {
  max-width: 34rem;
  width: 100%;
}

.auth-result-icon {
  align-items: center;
  background: #e7f4ec;
  border-radius: 50%;
  color: #236b47;
  display: inline-flex;
  font-size: 1.8rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.auth-result-error {
  background: #fce9e7;
  color: #a3221b;
}

.empty-state {
  background: #f5f7fa;
  border: 1px dashed #b8c3cf;
  border-radius: 0.85rem;
  padding: 2rem;
  text-align: center;
}
.empty-state > i {
  color: #08766f;
  font-size: 2rem;
}
.empty-state p {
  color: #526078;
  margin: 0 auto;
  max-width: 34rem;
}

.account-list {
  margin-bottom: 0;
}
.account-list > div {
  border-top: 1px solid #dce2e9;
  padding: 0.8rem 0;
}
.account-list dt {
  color: #526078;
  font-size: 0.74rem;
  text-transform: uppercase;
}
.account-list dd {
  font-weight: 650;
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.club-select {
  max-width: 220px;
}

.user-summary {
  max-width: 180px;
}
.user-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offline-card {
  max-width: 42rem;
}

.public-footer {
  background: #17233c;
  color: #dce4ef;
  font-size: 0.85rem;
  padding: 1.5rem 0;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  background: #17233c;
  color: #fff;
  display: none;
  flex-direction: column;
  inset: 0 auto 0 0;
  overflow: hidden;
  padding: 1.1rem 0.75rem 0.65rem;
  position: fixed;
  width: 248px;
  z-index: 90;
}
.sidebar .brand-light {
  align-items: flex-start;
  color: #fff;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.2rem;
  margin-inline: 0.25rem;
}
.sidebar .brand-light small {
  color: #aebbd0;
}

.sidebar-nav {
  margin-top: 1.25rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  scrollbar-width: thin;
}
.sidebar-nav .nav-link {
  align-items: center;
  border-radius: 0.55rem;
  color: #d6deea;
  display: flex;
  font-size: 0.925rem;
  gap: 0.65rem;
  margin-bottom: 0.1rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
}
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.sidebar-group {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 0.4rem;
  padding-top: 0.35rem;
}
.sidebar-group summary {
  align-items: center;
  border-radius: 0.55rem;
  color: #aebbd0;
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 750;
  justify-content: space-between;
  list-style: none;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  text-transform: uppercase;
}
.sidebar-group summary::-webkit-details-marker {
  display: none;
}
.sidebar-group summary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.sidebar-group summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}
.sidebar-group summary span {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}
.sidebar-group[open] .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-chevron {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.sidebar-group-links {
  padding: 0.1rem 0 0.2rem 0.35rem;
}
.sidebar-group-links .nav-link {
  font-size: 0.875rem;
}

.app-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dce2e9;
  display: flex;
  min-height: 70px;
  padding: 0.75rem 1rem;
}
.app-topbar small {
  color: #526078;
  display: block;
  font-size: 0.7rem;
}

.mobile-brand {
  align-items: center;
  display: inline-flex;
  margin-left: 0.65rem;
}
.mobile-brand img {
  display: block;
}

.mobile-menu-brand {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  min-width: 0;
}
.mobile-menu-brand img {
  flex: 0 0 auto;
}
.mobile-menu-brand span,
.mobile-menu-brand small {
  display: block;
}
.mobile-menu-brand span {
  color: #08766f;
  font-weight: 800;
}
.mobile-menu-brand small {
  color: #526078;
  font-size: 0.72rem;
  margin-top: 0.12rem;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  align-items: center;
  background: #e5f3f1;
  border-radius: 50%;
  color: #08766f;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.season-select {
  min-width: 110px;
}

.app-content {
  margin-inline: auto;
  max-width: 1500px;
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.legal-copy {
  max-width: 820px;
}
.legal-copy h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.legal-copy p {
  line-height: 1.7;
}

.page-heading,
.surface-heading {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.page-heading {
  margin-bottom: 1.6rem;
}
.page-heading h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin-bottom: 0.25rem;
}
.page-heading p:last-child {
  color: #526078;
  margin-bottom: 0;
}

.surface-heading {
  padding: 1.15rem 1.25rem;
}
.surface-heading h2 {
  font-size: 1.15rem;
  margin: 0;
}
.surface-heading .eyebrow {
  margin-bottom: 0.2rem;
}

.metric {
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 136px;
  padding: 1.2rem;
}
.metric span,
.metric small {
  color: #526078;
}
.metric strong {
  font-size: 1.85rem;
  margin: 0.3rem 0 auto;
}
.metric .metric-small {
  font-size: 1.2rem;
}

.dashboard-metric {
  color: #17233c;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dashboard-metric::before {
  background: #08766f;
  border-radius: 999px;
  content: "";
  height: 0.22rem;
  left: 1.2rem;
  position: absolute;
  right: 1.2rem;
  top: 0;
}
.dashboard-metric:hover {
  border-color: #a9c7c3;
  box-shadow: 0 12px 30px rgba(23, 35, 60, 0.08);
  color: #17233c;
  transform: translateY(-2px);
}

.dashboard-metric.metric-danger::before {
  background: #a3221b;
}

.dashboard-panel {
  overflow: hidden;
}

.dashboard-empty {
  margin: 0 1.25rem 1.25rem;
}

.dashboard-task-list {
  border-top: 1px solid #dce2e9;
}
.dashboard-task-list a {
  align-items: center;
  color: #17233c;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto 1fr auto;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
}
.dashboard-task-list a + a {
  border-top: 1px solid #dce2e9;
}
.dashboard-task-list a:hover {
  background: #f5f7fa;
}
.dashboard-task-list strong,
.dashboard-task-list small {
  display: block;
}
.dashboard-task-list small {
  color: #526078;
  margin-top: 0.12rem;
}
.dashboard-task-list a > i {
  color: #8793a7;
}

.dashboard-match-list {
  border-top: 1px solid #dce2e9;
}
.dashboard-match-list article {
  align-items: center;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 3.1rem 1fr;
  padding: 0.85rem 1.25rem;
}
.dashboard-match-list article + article {
  border-top: 1px solid #dce2e9;
}
.dashboard-match-list time {
  align-items: center;
  background: #e5f3f1;
  border-radius: 0.7rem;
  color: #08766f;
  display: flex;
  flex-direction: column;
  height: 3.1rem;
  justify-content: center;
  width: 3.1rem;
}
.dashboard-match-list time strong {
  font-size: 1.1rem;
  line-height: 1;
}
.dashboard-match-list time small {
  font-size: 0.63rem;
  font-weight: 800;
  margin-top: 0.2rem;
}
.dashboard-match-list h3 {
  font-size: 0.92rem;
  margin: 0 0 0.15rem;
}
.dashboard-match-list div > small {
  color: #526078;
}

.schedule-preview {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.schedule-preview-round {
  background: #f5f7fa;
  border: 1px solid #dce2e9;
  border-radius: 0.85rem;
  padding: 0.85rem;
}
.schedule-preview-round li {
  border-top: 1px solid #dce2e9;
  font-size: 0.84rem;
  padding: 0.35rem 0;
}

.schedule-editor .accordion-button {
  min-height: 3.25rem;
}
.schedule-editor .table {
  min-width: 1050px;
}
.schedule-editor .match-team-select {
  min-width: 155px;
}

#competition-calendar {
  --fc-border-color: #dce2e9;
  --fc-button-bg-color: #08766f;
  --fc-button-border-color: #08766f;
  --fc-button-hover-bg-color: #07564f;
  --fc-button-hover-border-color: #07564f;
  --fc-event-bg-color: #08766f;
  --fc-event-border-color: #08766f;
}
#competition-calendar .fc-toolbar {
  gap: 0.75rem;
}
#competition-calendar .fc-toolbar-title {
  font-size: clamp(1rem, 3vw, 1.35rem);
}
#competition-calendar .fc-button {
  min-height: 2.75rem;
}

@media (min-width: 576px) {
  .cta-panel {
    align-items: center;
    flex-direction: row;
  }
  .page-heading,
  .surface-heading {
    align-items: center;
    flex-direction: row;
  }
}
@media (min-width: 992px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  }
  .auth-brand-panel {
    display: flex;
  }
  .sidebar {
    display: flex;
  }
  .app-main {
    margin-left: 248px;
  }
}
@media (min-width: 768px) {
  .admin-page .table {
    font-size: 0.875rem;
  }
  .admin-page .table > :not(caption) > * > * {
    padding: 0.42rem 0.65rem;
  }
  .admin-page .table thead th {
    font-size: 0.68rem;
    padding-block: 0.5rem;
  }
  .admin-page .table .small {
    font-size: 0.72rem;
    line-height: 1.15;
  }
  .admin-page .table .badge-status {
    min-height: 1.5rem;
    padding: 0.14rem 0.45rem;
  }
  .admin-page .table .btn-sm {
    font-size: 0.78rem;
    min-height: 30px;
    padding: 0.22rem 0.55rem;
  }
}
.trial-reminder {
  align-items: center;
  background: #fff3d6;
  border: 1px solid rgba(244, 183, 64, 0.55);
  border-radius: 0.85rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
}
.trial-reminder span {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}
.trial-reminder i {
  color: #946000;
  font-size: 1.2rem;
}

.subscription-heading {
  align-items: flex-start;
}

.subscription-plan,
.subscription-payment {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.subscription-plan {
  background: radial-gradient(circle at 100% 0, rgba(244, 183, 64, 0.2), transparent 11rem), #ffffff;
}

.subscription-price {
  align-items: baseline;
  display: flex;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
.subscription-price strong {
  color: #17233c;
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}
.subscription-price span {
  color: #526078;
  font-weight: 700;
}

.subscription-tax {
  color: #236b47;
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0.45rem 0 1.5rem;
}

.subscription-includes {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.subscription-includes li {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
}
.subscription-includes i {
  color: #08766f;
  margin-top: 0.1rem;
}

.payment-option {
  display: grid;
  gap: 1rem;
  grid-template-columns: 3rem 1fr;
  padding: 1.4rem 0;
}
.payment-option + .payment-option {
  border-top: 1px solid #dce2e9;
}
.payment-option h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}
.payment-option p {
  color: #526078;
}

.payment-option-icon {
  align-items: center;
  background: #e5f3f1;
  border-radius: 0.75rem;
  color: #08766f;
  display: flex;
  font-size: 1.25rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.payment-option-icon-accent {
  background: #fff3d6;
  color: #946000;
}

.payment-details {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
}
.payment-details div {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 5.5rem minmax(0, 1fr);
}
.payment-details dt {
  color: #526078;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}
.payment-details dd {
  color: #17233c;
  font-weight: 750;
  margin: 0;
}

.payment-value,
.payment-phone {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
}

.payment-phone {
  color: #17233c !important;
  font-size: 1.15rem;
  font-weight: 800;
}

.btn-accent {
  background: #f4b740;
  border-color: #f4b740;
  color: #17233c;
  font-weight: 800;
}
.btn-accent:hover, .btn-accent:focus {
  background: #dca128;
  border-color: #dca128;
  color: #17233c;
}

.subscription-note {
  align-items: flex-start;
  background: #f5f7fa;
  border-radius: 0.55rem;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 1rem;
}
.subscription-note i {
  color: #08766f;
}
.subscription-note p {
  color: #526078;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 991.98px) {
  .price-card {
    grid-template-columns: 1fr;
  }
  .price-card .btn {
    justify-self: start;
  }
}
@media (max-width: 767.98px) {
  .hero {
    padding-top: 3.25rem;
  }
  .landing-proof .container {
    grid-template-columns: 1fr;
  }
  .landing-proof .container > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .family-metrics {
    grid-template-columns: 1fr;
  }
  .landing-final-cta .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-responsive-cards thead {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
  }
  .table-responsive-cards,
  .table-responsive-cards tbody,
  .table-responsive-cards tr,
  .table-responsive-cards td {
    display: block;
    width: 100%;
  }
  .table-responsive-cards tbody {
    background: #f5f7fa;
    padding: 0.75rem;
  }
  .table-responsive-cards tr {
    background: #fff;
    border: 1px solid #dce2e9;
    border-radius: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.8rem;
  }
  .table-responsive-cards td {
    align-items: center;
    border-bottom: 1px solid #dce2e9;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 2.75rem;
    padding: 0.5rem 0 !important;
    text-align: right;
  }
  .table-responsive-cards td::before {
    color: #526078;
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 750;
    text-align: left;
  }
  .table-responsive-cards td:first-child {
    display: block;
    text-align: left;
  }
  .table-responsive-cards td:first-child::before {
    display: none;
  }
  .table-responsive-cards td:last-child {
    border-bottom: 0;
  }
}
