.akfcp,
.akfcp * {
  box-sizing: border-box;
}

.page-with-social-sidebar:has(.akfcp) .main-head.main-head--mini {
  display: block !important;
  height: 170px !important;
  min-height: 0 !important;
  background: linear-gradient(115deg, #0d2944, #194d72) !important;
}

.page-with-social-sidebar:has(.akfcp) .main-head.main-head--mini::before { display: none; }
.page-with-social-sidebar:has(.akfcp) .main-head__container--padding {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 92px 24px 20px !important;
}

.page-with-social-sidebar:has(.akfcp) .main-head__breadcrumbs { display: none; }
.page-with-social-sidebar:has(.akfcp) .main-head__title { color: #fff !important; font-size: clamp(25px, 4vw, 34px); }

.akfcp {
  --akfcp-blue: #143d64;
  --akfcp-ink: #253448;
  --akfcp-muted: #64748b;
  --akfcp-line: #dce4ed;
  --akfcp-surface: #fff;
  width: min(100% - 32px, 1440px);
  margin: 42px auto 76px;
  color: var(--akfcp-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}

.akfcp--access-message { color: #fff; }

.akfcp h1,
.akfcp h2,
.akfcp h3,
.akfcp p {
  margin-top: 0;
}

.akfcp h1,
.akfcp h2,
.akfcp h3 {
  color: var(--akfcp-blue) !important;
  font-family: inherit;
  line-height: 1.2;
}

.akfcp h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 38px); }
.akfcp h2 { margin-bottom: 18px; font-size: clamp(21px, 3vw, 26px); }
.akfcp p { margin-bottom: 14px; }

.akfcp__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--akfcp-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Sign-in card */
.akfcp--login {
  max-width: 560px;
  margin-top: 52px;
}

.akfcp__login-card {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid var(--akfcp-line);
  border-radius: 16px;
  background: var(--akfcp-surface);
  box-shadow: 0 14px 42px rgba(20, 43, 68, .09);
}

.akfcp__login-card h2 { margin-bottom: 10px; }
.akfcp__login-intro { margin-bottom: 24px !important; color: var(--akfcp-muted); }
.akfcp__login-form form { margin: 0; }
.akfcp__login-form form p { margin: 0 0 18px; }
.akfcp__login-form form label {
  display: block;
  margin-bottom: 7px;
  color: var(--akfcp-ink) !important;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.akfcp__login-form input[type="text"],
.akfcp__login-form input[type="email"],
.akfcp__login-form input[type="password"] {
  display: block;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0;
  padding: 10px 13px !important;
  border: 1px solid #b9c7d6 !important;
  border-radius: 8px !important;
  outline: none;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--akfcp-ink) !important;
  font: inherit !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.akfcp__login-form input[type="text"]:focus,
.akfcp__login-form input[type="email"]:focus,
.akfcp__login-form input[type="password"]:focus {
  border-color: var(--akfcp-blue) !important;
  box-shadow: 0 0 0 3px rgba(20, 61, 100, .12) !important;
}

.akfcp__login-form .login-remember { margin-top: 2px !important; }
.akfcp__login-form .login-remember label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 9px;
  width: fit-content;
  margin: 0;
  color: var(--akfcp-muted) !important;
  font-weight: 500;
  cursor: pointer;
}

.akfcp__login-form input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-grid !important;
  flex: 0 0 18px !important;
  place-content: center;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #91a2b5 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}

.akfcp__login-form input[type="checkbox"]:checked {
  border-color: var(--akfcp-blue) !important;
  background: var(--akfcp-blue) !important;
}

.akfcp__login-form input[type="checkbox"]:checked::before {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.akfcp__login-form .login-submit { margin: 14px 0 10px !important; }
.akfcp__login-form input[type="submit"] {
  display: inline-flex;
  width: 100% !important;
  min-height: 48px !important;
  justify-content: center;
  align-items: center;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--akfcp-blue) !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit !important;
  font-weight: 700 !important;
  transition: background .18s ease, transform .18s ease;
}

.akfcp__login-form input[type="submit"]:hover { background: #0d2944 !important; }
.akfcp__login-form input[type="submit"]:active { transform: translateY(1px); }

/* Club cabinet */
.akfcp__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--akfcp-line);
}

.akfcp__header h1 { color: #fff !important; }
.akfcp__header .akfcp__eyebrow { color: rgba(255, 255, 255, .78); }
.akfcp__logout { color: #fff !important; font-weight: 600; }
.akfcp__logout:hover { color: #cfe4ff !important; }
.akfcp__tab-list {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(220, 228, 237, .55);
  border-radius: 11px;
  background: rgba(10, 31, 49, .48);
  scrollbar-width: thin;
}
.akfcp__tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.akfcp__tab:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.akfcp__tab[aria-selected="true"] {
  border-color: rgba(255, 255, 255, .8);
  background: #fff;
  color: var(--akfcp-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.akfcp__tab:focus-visible { outline: 3px solid #8fc7ff; outline-offset: 2px; }
.akfcp__tabs--ready [data-akfcp-panel][hidden] { display: none !important; }
.akfcp__section {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--akfcp-line);
  border-radius: 14px;
  background: var(--akfcp-surface);
  box-shadow: 0 8px 26px rgba(20, 43, 68, .045);
}

.akfcp__table-wrap { overflow-x: auto; border: 1px solid var(--akfcp-line); border-radius: 9px; }
.akfcp__table { width: 100%; border-collapse: collapse; background: #fff; }
.akfcp__table th,
.akfcp__table td { padding: 12px 14px; border-bottom: 1px solid var(--akfcp-line); text-align: left; vertical-align: top; }
.akfcp__table th { background: #f4f7fa; color: var(--akfcp-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.akfcp__table tr:last-child td { border-bottom: 0; }
.akfcp__table-actions { width: 1%; white-space: nowrap; }
.akfcp__delete-button {
  padding: 6px 10px;
  border: 1px solid #efd0d0;
  border-radius: 6px;
  background: #fff;
  color: #a12a2a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.akfcp__delete-button:hover { border-color: #a12a2a; background: #fff2f0; }
.akfcp__delete-button:focus-visible { outline: 2px solid #a12a2a; outline-offset: 2px; }
.akfcp__edit-button { padding: 6px 10px; border: 1px solid var(--akfcp-line); border-radius: 6px; background: #f4f7fa; color: var(--akfcp-blue); font: inherit; font-size: 13px; cursor: pointer; }
.akfcp__edit-button:hover { border-color: var(--akfcp-blue); background: #eaf1f8; }
.akfcp__edit-button:focus-visible { outline: 2px solid var(--akfcp-blue); outline-offset: 2px; }
.akfcp [data-cancel-athlete-edit][hidden],
.akfcp [data-athlete-edit-hint][hidden] { display: none !important; }
.akfcp__delete-dialog {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(22px, 4vw, 32px);
  overflow-y: auto;
  border: 1px solid var(--akfcp-line);
  border-radius: 14px;
  background: #fff;
  color: var(--akfcp-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
  font: inherit;
}
.akfcp__delete-dialog:not([open]) { display: none !important; }
.akfcp__delete-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.akfcp__delete-dialog h2 { margin-bottom: 16px; }
.akfcp__delete-dialog .akfcp__delete-name { padding: 12px 14px; border-radius: 7px; background: #f4f7fa; font-weight: 700; overflow-wrap: anywhere; }
.akfcp__delete-dialog label { margin-top: 20px; }
.akfcp__button.akfcp__button--danger { background: #a12a2a !important; }
.akfcp__button.akfcp__button--danger:hover { background: #7f2020 !important; }
.akfcp__button.akfcp__button--danger:disabled { opacity: .45; cursor: not-allowed; }
.akfcp__details { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--akfcp-line); }
.akfcp__details summary { color: var(--akfcp-blue); font-weight: 700; cursor: pointer; }
.akfcp__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.akfcp label { display: flex; flex-direction: column; gap: 6px; color: var(--akfcp-ink); font-size: 14px; font-weight: 600; }
.akfcp input:not([type="hidden"]):not([type="checkbox"]),
.akfcp select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #b9c7d6;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: var(--akfcp-ink);
  font: inherit;
}

.akfcp select:focus,
.akfcp input:focus { border-color: var(--akfcp-blue); outline: 2px solid rgba(20, 61, 100, .12); }
.akfcp__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--akfcp-blue) !important;
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.akfcp__button:hover { background: #0d2944 !important; }
.akfcp__button--secondary { border: 1px solid var(--akfcp-line); background: #f4f7fa !important; color: var(--akfcp-blue) !important; }
.akfcp__form .akfcp__button { align-self: end; }
.akfcp__country-picker { position: relative; min-width: 0; }
.akfcp__trainer-picker { position: relative; min-width: 0; }
.akfcp__trainer-control { position: relative; }
.akfcp__trainer-control input[data-trainer-search] { padding-right: 44px; }
.akfcp__choice-picker { position: relative; min-width: 0; }
.akfcp__choice-control { position: relative; }
.akfcp__choice-control input[data-choice-search] { padding-right: 44px; }
.akfcp__choice-control select[data-choice-value][hidden] { display: none !important; }
.akfcp__entry .akfcp__choice-picker > label { margin-bottom: 6px; }
.akfcp .akfcp__field-error { margin: 6px 0 0 !important; color: #a12a2a; font-size: 12px; font-weight: 400; line-height: 1.45; }
.akfcp .akfcp__age-hint { margin: 6px 0 0 !important; color: var(--akfcp-muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.akfcp [data-age-hint][hidden] { display: none !important; }
.akfcp [data-choice-search][aria-invalid="true"] { border-color: #bc3636 !important; background: #fff7f7 !important; }
.akfcp__validation-summary { margin-bottom: 16px; }
.akfcp__validation-summary ul { margin: 8px 0 0; padding-left: 20px; }
.akfcp__validation-summary li + li { margin-top: 6px; }
.akfcp__validation-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.akfcp__validation-link:hover { text-decoration: underline; }
.akfcp__validation-link:focus-visible { outline: 2px solid #a12a2a; outline-offset: 3px; }
.akfcp [data-field-error][hidden],
.akfcp [data-application-feedback][hidden],
.akfcp [data-application-errors][hidden],
.akfcp [data-add-entry][hidden],
.akfcp [data-remove-entry][hidden],
.akfcp .akfcp__actions[hidden] { display: none !important; }
.akfcp__application-form[aria-busy="true"] button { opacity: .6; cursor: wait; }
.akfcp [data-trainer-roster][hidden],
.akfcp [data-trainer-roster-empty][hidden],
.akfcp [data-trainer-feedback][hidden],
.akfcp [data-athlete-roster][hidden],
.akfcp [data-athlete-roster-empty][hidden],
.akfcp [data-athlete-feedback][hidden],
.akfcp [data-roster-application][hidden],
.akfcp [data-application-roster-empty][hidden] { display: none !important; }
.akfcp [data-trainer-feedback] { margin-top: 14px; }
.akfcp__trainer-form button:disabled,
.akfcp [data-create-athlete] button:disabled { opacity: .6; cursor: wait; }
.akfcp h3.akfcp__subheading { margin: 24px 0 0; color: var(--akfcp-blue); font-size: 18px; }
.akfcp__country-control { position: relative; }
.akfcp__country-control input[data-country-search] { padding-right: 44px; }
.akfcp__country-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.akfcp__country-toggle:hover { background: #f1f5f9; }
.akfcp__country-toggle span {
  width: 9px;
  height: 9px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
}
.akfcp__country-options[hidden] { display: none !important; }
.akfcp__country-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(360px, 48vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--akfcp-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 43, 68, .18);
}
.akfcp__country-group[hidden] { display: none !important; }
.akfcp__country-empty { margin: 0 !important; padding: 10px; color: var(--akfcp-muted); font-size: 13px; }
.akfcp__country-empty[hidden] { display: none !important; }
.akfcp__country-group-title {
  position: sticky;
  top: -6px;
  z-index: 1;
  display: block;
  padding: 8px 10px 6px;
  background: #f4f7fa;
  color: var(--akfcp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.akfcp__country-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--akfcp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.akfcp__country-option[hidden] { display: none !important; }
.akfcp__country-option:hover,
.akfcp__country-option:focus,
.akfcp__country-option.is-active,
.akfcp__country-option[aria-selected="true"] { background: #eaf1f8; color: var(--akfcp-blue); outline: none; }
.akfcp__tournaments { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.akfcp__tournament { display: flex; flex-direction: column; gap: 7px; padding: 16px; border: 1px solid var(--akfcp-line); border-radius: 9px; background: #fff; color: inherit !important; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.akfcp__tournament:hover { border-color: #8fa8c0; box-shadow: 0 4px 14px rgba(20, 43, 68, .08); }
.akfcp__tournament strong { color: var(--akfcp-blue); }
.akfcp__tournament span { color: var(--akfcp-muted); font-size: 14px; }
.akfcp__entries { display: grid; gap: 12px; margin: 18px 0; }
.akfcp__entry { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr auto; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--akfcp-line); border-radius: 9px; background: #f9fbfd; }
.akfcp__entry .akfcp__remove { margin-top: 26px; }
.akfcp__remove { min-height: 42px; border: 0; background: transparent; color: #a12a2a; cursor: pointer; }
.akfcp__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.akfcp__button--secondary:hover { background: #eaf1f8 !important; }
.akfcp__notice,
.akfcp__error { padding: 12px 14px; border-radius: 7px; }
.akfcp [data-akfcp-flash][hidden] { display: none !important; }
.akfcp__notice { background: #edf8f0; color: #145c2e; }
.akfcp__error { background: #fff2f0; color: #8a2424; }
.akfcp__readonly { line-height: 1.9; }

@media (max-width: 800px) {
  .akfcp__entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .akfcp__entry .akfcp__remove { justify-self: start; }
}

@media (max-width: 560px) {
  .akfcp { width: min(100% - 24px, 1440px); margin: 28px auto 48px; }
  .page-with-social-sidebar:has(.akfcp) .main-head.main-head--mini { height: 150px !important; }
  .page-with-social-sidebar:has(.akfcp) .main-head__container--padding { padding: 84px 16px 16px !important; }
  .page-with-social-sidebar:has(.akfcp) .main-head__title { font-size: 25px; }
  .akfcp--login { max-width: 100%; }
  .akfcp__login-card { padding: 22px 18px; border-radius: 12px; }
  .akfcp__section { padding: 17px; border-radius: 11px; }
  .akfcp__header { align-items: flex-start; }
  .akfcp__tab-list { gap: 4px; margin-top: 18px; }
  .akfcp__tab { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .akfcp__form,
  .akfcp__entry { grid-template-columns: 1fr; }
  .akfcp__actions { flex-direction: column; }
  .akfcp__actions .akfcp__button { width: 100%; }
}
