:root {
  color-scheme: light;
  --ink: #20232a;
  --muted: #4b5563;
  --paper: #f4f6f8;
  --line: #d7dce2;
  --accent: #b4232b;
  --accent-dark: #8f1d24;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #e29a9c;
  outline-offset: 3px;
}

.payments-header {
  display: flex;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: #171717;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  place-items: center;
  font-size: 18px;
}

.home-link {
  color: #eee;
  font-size: 14px;
}

.payments-main {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 48px 20px;
  place-items: start center;
}

.payments-card {
  width: min(100%, 760px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(34, 24, 18, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.intro {
  margin-bottom: 28px;
  color: var(--muted);
}

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

.login-form label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cfc8c0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-primary {
  margin-top: 12px;
  color: #fff;
  background: var(--accent);
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover:not(:disabled) {
  background: var(--paper);
}

.button-passkey {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: #d7dce5;
  background: linear-gradient(135deg, #fff, #f3f6fb);
  color: #202b42;
  font-weight: 700;
}

.button-passkey:hover:not(:disabled) {
  border-color: #8d9fbd;
  background: #edf2fa;
}

.button-passkey svg,
.passkey-dialog-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.passkey-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.passkey-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(19 28 45 / 24%);
}

.passkey-dialog::backdrop {
  background: rgb(17 24 39 / 58%);
  backdrop-filter: blur(3px);
}

.passkey-dialog-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #edf2fa;
  color: #30466b;
  place-items: center;
}

.passkey-dialog h2 {
  margin: 0 0 10px;
}

.passkey-dialog > p:not(.eyebrow):not(.form-message) {
  color: var(--muted);
  font-size: 14px;
}

.passkey-dialog-actions {
  display: grid;
  margin-top: 20px;
  gap: 10px;
}

.passkey-dialog-actions .button {
  min-height: 46px;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-message:empty {
  display: none;
}

.form-message.is-error,
.notice-error {
  color: #9c2025;
}

.notice {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #e8b8ba;
  border-radius: 8px;
  background: #fff5f5;
  font-size: 14px;
}

.payments-view {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.summary-grid {
  display: grid;
  margin-bottom: 34px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.summary-card {
  display: grid;
  min-height: 100px;
  padding: 18px;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f5;
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.summary-card strong {
  font-size: clamp(20px, 4vw, 27px);
  letter-spacing: -0.04em;
}

.family-section,
.dues-section {
  margin-bottom: 30px;
}

.family-section h2,
.dues-section h2 {
  margin-bottom: 8px;
}

.family-members {
  display: grid;
  margin: 0 0 18px;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.family-members li,
.due-card {
  display: flex;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.family-member-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.family-members input {
  width: min(100%, 220px);
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cfc8c0;
  border-radius: 7px;
  font: inherit;
}

.family-members .button {
  min-height: 36px;
  padding: 6px 10px;
}

.family-member-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.family-member-remove {
  border-color: #e8b8ba;
  color: #9c2025;
}

.family-fee-message {
  margin: 12px 0 0;
}

.dues-list {
  display: grid;
  gap: 10px;
}

.due-card strong,
.due-card span {
  display: block;
}

.due-card-details {
  color: var(--muted);
  font-size: 13px;
}

.due-card-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 8px;
}

.due-card-period {
  margin: 0 !important;
}

.due-card-amounts {
  display: grid;
  justify-items: start;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

.due-card-euro {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 34px) !important;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.due-card-bs {
  color: #17613a;
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 700;
  line-height: 1.25;
}

.due-card.is-bonified {
  border-color: #9cc9aa;
  background: #f0f8f2;
}

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

.payment-notice {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.payment-notice.is-confirmed {
  border-color: #9cc9aa;
  background: #f0f8f2;
}

.payment-notice.is-rejected {
  border-color: #e8b8ba;
  background: #fff5f5;
}

.payment-notice strong {
  display: block;
  margin-bottom: 4px;
}

.payment-notice p {
  margin-bottom: 6px;
}

.payment-notice-reason {
  color: #8f1d24;
}

.due-card .payment-status {
  flex: 0 0 auto;
}

.due-card .button {
  flex: 0 0 auto;
}

.report-section {
  margin-bottom: 34px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf8f5;
}

.report-section h2 {
  margin-bottom: 6px;
}

.section-description {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.payment-instructions {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #d5dce5;
  border-radius: 12px;
  background: #fff;
}

.payment-instructions h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.payment-instructions dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.payment-instructions dl > div {
  display: grid;
  gap: 3px;
}

.payment-instructions dt {
  color: var(--muted);
  font-size: 12px;
}

.payment-instructions dd {
  margin: 0;
  font-weight: 700;
}

.payment-instructions p {
  margin: 12px 0 0;
  font-size: 13px;
}

.payment-instructions a {
  color: inherit;
}

.telegram-settings {
  margin-top: 28px;
}

.telegram-link-reminder {
  display: flex;
  margin: 0 0 18px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e8cf9f;
  border-radius: 12px;
  background: #fff9eb;
}

.telegram-link-reminder[hidden] {
  display: none;
}

.telegram-link-reminder p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.app-install-banner {
  display: flex;
  margin: 0 0 22px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cbd9e5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f8fc, #fff);
}

.app-install-banner[hidden] {
  display: none;
}

.app-install-copy strong {
  display: block;
  margin-bottom: 3px;
}

.app-install-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-install-copy .app-install-help {
  margin-top: 7px;
  color: #30466b;
}

.app-install-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.app-install-actions .button-primary {
  margin-top: 0;
}

.telegram-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.telegram-link-actions [hidden] {
  display: none;
}

.payment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.form-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 650;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cfc8c0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-field input[type="file"] {
  padding: 7px;
  font-size: 13px;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.payment-form .button-primary {
  margin-top: 0;
}

.account-row {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-row p {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-row strong {
  color: var(--ink);
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid #eee9e3;
}

th {
  background: #f8f5f0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.payment-status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.payment-status.is-paid {
  color: #17613a;
  background: #e6f4eb;
}

.payment-status.is-pending {
  color: #8a4b08;
  background: #fff1d9;
}

.payment-status.is-rejected {
  color: #9c2f2f;
  background: #fae8e7;
}

.receipt-link {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
}

.receipt-unavailable {
  color: var(--muted);
  font-size: 13px;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

body.is-installed-app .payments-header .home-link,
body.is-installed-app .back-link {
  display: none !important;
}

body.is-installed-app .payments-header .brand {
  cursor: default;
  pointer-events: none;
}

@media (display-mode: standalone) {
  .payments-header .home-link,
  .back-link {
    display: none !important;
  }

  .payments-header .brand {
    cursor: default;
    pointer-events: none;
  }
}

@media (max-width: 560px) {
  .payments-main {
    padding: 24px 12px;
  }

  .payments-card {
    padding: 24px 18px;
  }

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

  .app-install-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .app-install-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .summary-card {
    min-height: 78px;
  }

  .payment-form {
    grid-template-columns: 1fr;
  }

  .family-member-form {
    grid-template-columns: 1fr;
  }

  .family-member-form .form-field-wide {
    grid-column: auto;
  }

  .family-members li,
  .due-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.payments-main {
  padding-top: 40px;
}

.payments-card {
  width: min(100%, 1000px);
  border-color: #e0e4e9;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(26, 34, 48, 0.07);
}

.intro {
  font-size: 18px;
}

.login-form label,
.form-field label {
  font-size: 15px;
  font-weight: 700;
}

.login-form input,
.form-field input,
.form-field select {
  min-height: 50px;
  border-color: #aeb7c2;
  border-radius: 10px;
  font-size: 16px;
}

.button {
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
}

.payments-nav {
  display: flex;
  margin: 0 0 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.payments-nav a {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #333a45;
  font-weight: 700;
  text-decoration: none;
}

.payments-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.summary-card {
  min-height: 108px;
  border-radius: 14px;
  background: #f8fafc;
}

.summary-label {
  font-size: 14px;
}

.summary-card:last-child {
  border-color: #efc7c9;
  background: #fff6f6;
}

.summary-card:last-child strong {
  color: var(--accent-dark);
}

.family-section,
.dues-section,
.report-section {
  scroll-margin-top: 20px;
}

.family-add {
  margin: 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.family-add summary {
  min-height: 48px;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 700;
}

.family-add[open] {
  padding-bottom: 16px;
}

.family-add[open] summary {
  margin-bottom: 12px;
}

.family-add .family-member-form {
  padding: 0 16px;
}

.due-card {
  min-height: 82px;
  padding: 16px 18px;
  border-radius: 12px;
}

.due-card strong {
  margin-bottom: 3px;
  font-size: 18px;
}

.due-card-details,
.section-description {
  font-size: 16px;
}

.report-section {
  padding: clamp(20px, 4vw, 28px);
  border-color: #d5dce5;
  border-radius: 16px;
  background: #f8fafc;
}

.field-help {
  font-size: 14px;
}

h2 {
  font-size: clamp(22px, 3vw, 26px);
}

th,
td {
  padding: 14px 16px;
  font-size: 14px;
}

th {
  background: #f3f5f7;
  font-size: 13px;
}

@media (max-width: 760px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .payments-main {
    padding: 18px 10px 36px;
  }

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

  .summary-grid {
    gap: 10px;
  }

  .summary-card {
    min-height: 94px;
    padding: 14px;
  }

  .summary-label {
    font-size: 13px;
  }

  .summary-card strong {
    font-size: 22px;
  }

  .payments-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .payments-nav a {
    min-height: 46px;
    padding: 8px 6px;
    justify-content: center;
    font-size: 14px;
    text-align: center;
  }

  .due-card .button {
    width: 100%;
  }

  .family-member-form {
    grid-template-columns: 1fr;
  }

  .family-member-form .form-field-wide {
    grid-column: auto;
  }

  .family-members li {
    flex-wrap: wrap;
  }

  .family-members li > strong {
    width: 100%;
  }

  .family-members li > input {
    flex: 1 1 120px;
  }

  .family-member-actions {
    flex-wrap: wrap;
  }
}

.payments-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 8px;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.payments-tab {
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #333a45;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.payments-tab:hover {
  background: #eef1f4;
}

.payments-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.payments-tab.is-active:hover {
  background: var(--accent-dark);
}

.athlete-tab-panel[hidden] {
  display: none !important;
}

.dashboard-message {
  margin: 0 0 18px;
}

.athlete-welcome {
  margin-bottom: 18px;
}

.athlete-welcome h2 {
  margin-bottom: 6px;
}

.athlete-welcome .section-description {
  margin-bottom: 0;
}

#athlete-panel-home .summary-grid {
  margin-bottom: 24px;
}

.summary-card-balance {
  border-color: #efc7c9;
  background: #fff6f6;
}

.summary-card-balance strong {
  color: var(--accent-dark);
}

.summary-card-paid {
  border-color: #b7d9c3;
  background: #f1faf4;
}

.summary-card-paid strong {
  color: #17613a;
}

.athlete-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.athlete-shortcut {
  display: grid;
  min-height: 100px;
  padding: 18px;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.athlete-shortcut:hover {
  border-color: #c9a0a2;
  background: #fffafa;
}

.athlete-shortcut strong {
  color: var(--accent-dark);
  font-size: 17px;
}

.athlete-shortcut span {
  color: var(--muted);
  font-size: 15px;
}

#athlete-panel-dues > section,
#athlete-panel-account > section,
#athlete-panel-history > * {
  margin-bottom: 24px;
}

#athlete-panel-history > h2 {
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .payments-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .athlete-shortcuts {
    grid-template-columns: 1fr;
  }

  .payment-instructions dl {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .payments-nav {
    gap: 6px;
  }

  .payments-tab {
    min-height: 48px;
    padding: 8px 6px;
    font-size: 14px;
  }

  .telegram-link-reminder {
    align-items: stretch;
    flex-direction: column;
  }

  .athlete-shortcut {
    min-height: 82px;
  }
}

.athlete-exchange-card {
  display: grid;
  margin-bottom: 22px;
  padding: 20px 22px;
  gap: 5px;
  border: 1px solid #cbd9e5;
  border-radius: 15px;
  background: linear-gradient(135deg, #f3f8fc, #fff);
}

.athlete-exchange-card h3 {
  margin: 0;
  font-size: 19px;
}

.athlete-exchange-card > strong {
  color: #17613a;
  font-size: clamp(22px, 4vw, 29px);
  letter-spacing: -0.03em;
}

.athlete-exchange-card .exchange-rate-meta,
.athlete-exchange-card .exchange-rate-equivalents {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.athlete-exchange-card .exchange-rate-equivalents {
  color: var(--ink);
  font-weight: 650;
}

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

.athlete-welcome {
  margin-bottom: 24px;
}

.athlete-welcome h2 {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.035em;
}

.account-overview {
  display: flex;
  min-height: 194px;
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 36px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e8c1c3;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 92% 8%, rgba(180, 35, 43, 0.1), transparent 42%),
    linear-gradient(135deg, #fff, #fff8f8);
}

.account-overview-copy {
  display: grid;
  gap: 5px;
}

.account-overview-copy .eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-balance {
  color: #242126;
  font-size: clamp(36px, 7vw, 54px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.account-balance-bs-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.account-balance-bs {
  color: #17613a;
  font-size: clamp(23px, 4vw, 30px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.account-balance-bs-meta {
  color: var(--muted);
  font-size: 12px;
}

.account-payment-status {
  color: var(--muted);
  font-size: 15px;
}

.account-overview-action {
  min-height: 50px;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
}

.account-overview-action span {
  font-size: 20px;
  line-height: 1;
}

#athlete-panel-home .summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

#athlete-panel-home .summary-card {
  min-height: 100px;
}

.home-notices {
  margin-bottom: 20px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.section-heading {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading .eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h3 {
  margin: 0;
  font-size: 19px;
}

.notice-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.text-button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f7f8;
  color: var(--muted);
  font-size: 14px;
}

.athlete-exchange-card {
  display: block;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.athlete-exchange-card summary {
  display: flex;
  min-height: 70px;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.athlete-exchange-card summary::-webkit-details-marker,
.payment-instructions summary::-webkit-details-marker {
  display: none;
}

.athlete-exchange-card summary > span:first-child {
  display: grid;
}

.athlete-exchange-card summary .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.athlete-exchange-card summary strong {
  color: var(--ink);
  font-size: 16px;
}

.exchange-summary-toggle {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.athlete-exchange-card[open] .exchange-summary-toggle {
  font-size: 0;
}

.athlete-exchange-card[open] .exchange-summary-toggle::after {
  content: "Ocultar tasa";
  font-size: 14px;
}

.athlete-exchange-card > div {
  padding: 0 20px 18px;
}

.payment-instructions > summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 750;
}

.payment-instructions-content {
  padding-top: 16px;
}

.account-security {
  display: grid;
  gap: 2px;
}

.account-security .family-section {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 760px) {
  .payments-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .account-overview {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .account-overview-action {
    width: 100%;
  }

  #athlete-panel-home .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .athlete-exchange-card summary {
    padding: 13px 15px;
  }

  .payment-instructions-content {
    padding-top: 12px;
  }
}
