/* Styles specific to Moje konto (account & registrations management). */

.eb-container { padding-top: 40px; }

/* Shared button-shape modifiers — always composed with .btn-primary or .btn-ghost from
   base.css, never a new button shape. See BRAND-BRIEF.md: "nie wprowadzać nowych stylów
   przycisków bez potrzeby". */
.btn-primary--sm, .btn-ghost--sm { padding: 9px 14px; font-size: 12px; gap: 6px; }
.btn-primary--block { width: 100%; justify-content: center; }
.btn-primary--dark { background: var(--asphalt); }
.btn-primary--dark:hover { background: var(--asphalt-2); }
.btn-primary--yellow { background: var(--flag-yellow); color: var(--asphalt); }
.btn-primary--yellow:hover { background: var(--flag-yellow); filter: brightness(.95); transform: none; }
.btn-ghost--danger { border-color: rgba(200, 24, 46, .3); color: var(--track-red); }
.btn-ghost--danger:hover { border-color: var(--track-red); background: rgba(200, 16, 46, .06); }

/* ---------- Auth card (logged out) — dark asphalt card, mirrors .live-card treatment ---------- */
.eb-auth-card {
  max-width: 420px;
  margin: 40px auto 0;
  background: var(--asphalt);
  color: var(--chalk);
  border-radius: var(--radius);
  padding: 32px;
}
/* .tape-stripe-bg (base.css) provides the diagonal accent + position:relative;overflow:hidden */

.eb-auth-card__title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: .01em;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.eb-auth-card__desc {
  margin: 0 0 22px;
  font: 500 13px/1.55 Inter, sans-serif;
  color: var(--chalk-dim);
  position: relative;
  z-index: 1;
}

.eb-auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--asphalt-3);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.eb-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--chalk-dim);
  font: 700 12.5px/1 Inter, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 11px;
  border-radius: var(--radius);
  cursor: pointer;
}
.eb-auth-tab--active { background: var(--track-red); color: var(--chalk); }

.eb-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.eb-auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* The one place inputs sit on a dark surface — override the light-surface default from base.css */
.eb-auth-card input, .eb-auth-card select {
  background: var(--asphalt-3);
  border-color: rgba(245, 243, 238, .14);
  color: var(--chalk);
  color-scheme: dark;
}
.eb-auth-card input::placeholder { color: rgba(245, 243, 238, .32); }
.eb-auth-card input:focus, .eb-auth-card select:focus { border-color: var(--track-red); background: var(--asphalt-3); }
.eb-auth-card label { color: var(--chalk-dim); }

.eb-auth-error {
  font: 600 12.5px/1.4 Inter, sans-serif;
  color: var(--danger-soft);
  display: none;
}
.eb-auth-error--visible { display: block; }

.eb-auth-footnote {
  margin-top: 16px;
  font: 500 10.5px/1.4 'JetBrains Mono', monospace;
  color: var(--steel);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- Logged-in account bar ---------- */
.eb-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 34px;
  padding: 18px 22px;
  background: var(--asphalt);
  color: var(--chalk);
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 10px;
}

.eb-account-bar__email { font-weight: 800; font-size: 16px; }

.eb-account-bar__meta {
  font: 500 11px/1 'JetBrains Mono', monospace;
  color: var(--steel);
  margin-top: 5px;
}

/* ---------- Section labels / add buttons ---------- */
.eb-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Generic light card — same shape as .card (base.css); no hover-lift here since
   these hold forms/buttons, not whole-card links, so a lift-on-hover would fire constantly
   while interacting with the fields inside. ---------- */
.eb-list { display: flex; flex-direction: column; gap: 16px; }
.eb-list--profiles { margin-bottom: 40px; }
.eb-list--regs { margin-bottom: 24px; }

.eb-card { padding: 20px; }

.eb-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.eb-card__title { font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: var(--track-red); }

.eb-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.eb-span-2 { grid-column: 1 / -1; }

/* ---------- Registration cards ---------- */
.eb-reg-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.eb-reg-event { font-weight: 800; font-size: 17px; }

.eb-reg-meta {
  font: 500 11px/1.4 'JetBrains Mono', monospace;
  color: var(--steel-dark);
  margin-top: 5px;
}

/* Registration status reuses the site's .status-badge exactly (base.css): open=confirmed/paid,
   soon=pending payment, closed=cancelled. Same visual vocabulary as race-status badges elsewhere
   on the site, just applied to a different kind of status. */

.eb-reg-summary {
  font: 500 13px/1.5 Inter, sans-serif;
  color: var(--steel-dark);
  margin-bottom: 14px;
}

.eb-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.eb-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--chalk);
  border: 1px solid rgba(20, 24, 28, .14);
  color: var(--steel-dark);
}
.eb-chip--on {
  background: rgba(200, 16, 46, .08);
  border-color: var(--track-red);
  color: var(--track-red);
}
.eb-chip { margin-bottom: 0; text-transform: none; letter-spacing: normal; font-weight: 400; }
.eb-chip input { width: 14px; height: 14px; accent-color: var(--track-red); flex: none; }
.eb-chip span {
  font: 600 11px/1.2 Inter, sans-serif;
  text-transform: none; /* .eb-chip is a <label> — override the global label reset (base.css) */
  letter-spacing: normal;
}

/* Team-name field gets a gold tint (flag-yellow family) to flag it as a distinct, extra
   classification, layered on top of the base input styling from base.css. */
.eb-team-input { background: rgba(255, 198, 60, .1); border-color: rgba(255, 198, 60, .5); }
.eb-team-input:focus { border-color: #b8860b; background: rgba(255, 198, 60, .1); }

.eb-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.eb-paid-note {
  margin-top: 10px;
  font: 500 11.5px/1.4 Inter, sans-serif;
  color: var(--steel-dark);
}

.eb-empty-state {
  background: #fff;
  border: 1px dashed rgba(20, 24, 28, .2);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  font: 500 13.5px/1.6 Inter, sans-serif;
  color: var(--steel-dark);
  margin-bottom: 24px;
}
.eb-empty-state a { color: var(--track-red); font-weight: 700; }
.eb-empty-state a:hover { color: var(--track-red-dark); }

/* ---------- Pay modal (Paynow-style light overlay — intentionally NOT brand-styled;
   this simulates the real third-party gateway the browser would redirect to) ---------- */
.eb-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: #f4f5f7;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
}

.eb-pay-topbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e6e8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.eb-pay-logo { display: flex; align-items: center; gap: 8px; }
.eb-pay-logo__dots { display: flex; align-items: center; gap: 2px; }
.eb-pay-logo__dot { width: 13px; height: 13px; border-radius: 50%; }
.eb-pay-logo__dot--pink { background: #e6007e; }
.eb-pay-logo__dot--orange { background: #ff6a00; margin-left: -5px; }
.eb-pay-logo__text { font: 800 17px/1 Inter, sans-serif; color: #1a1a1a; }
.eb-pay-logo__text span { color: #e6007e; }

.eb-pay-content { width: 100%; max-width: 440px; margin-top: 22px; }

.eb-pay-summary {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.eb-pay-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.eb-pay-summary__label { font: 500 12px/1 Inter, sans-serif; color: #6b7280; }
.eb-pay-summary__order { font: 700 12px/1 'JetBrains Mono', monospace; color: #6b7280; }
.eb-pay-summary__event { font: 800 16px/1.3 Inter, sans-serif; color: #111; }

.eb-pay-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}
.eb-pay-summary__total-label { font: 600 14px/1 Inter, sans-serif; color: #111; }
.eb-pay-summary__total-amount { font: 800 24px/1 'JetBrains Mono', monospace; color: #111; }

.eb-pay-methods-label {
  font: 700 12px/1 Inter, sans-serif;
  color: #6b7280;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 4px 10px;
}

.eb-pay-methods { display: flex; flex-direction: column; gap: 10px; }

.eb-pay-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e6e8ec;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
}
.eb-pay-method--active { border-color: #e6007e; }

.eb-pay-method__left { display: flex; align-items: center; gap: 12px; }
.eb-pay-method__badge {
  width: 38px;
  height: 26px;
  border-radius: 5px;
  color: #fff;
  font: 800 9px/26px Inter, sans-serif;
  text-align: center;
}
.eb-pay-method__label { font: 700 14px/1 Inter, sans-serif; color: #111; }

.eb-pay-method__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cfd4db;
  display: block;
  flex: none;
}
.eb-pay-method__radio--active { border: 5px solid #e6007e; }

.eb-pay-blik {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 16px;
}
.eb-pay-blik__label { font: 600 12px/1 Inter, sans-serif; color: #6b7280; margin-bottom: 8px; }
.eb-pay-blik__input {
  width: 100%;
  border: 1px solid #d5d9e0;
  border-radius: 10px;
  font: 700 24px/1 'JetBrains Mono', monospace;
  letter-spacing: .3em;
  text-align: center;
  padding: 14px;
  outline: none;
  color: #111;
  background: #fff;
}
.eb-pay-blik__input:focus { border-color: #e6007e; }

.eb-pay-hint {
  margin-top: 14px;
  background: #fff7fb;
  border: 1px dashed #f3a9cf;
  border-radius: 11px;
  padding: 12px 14px;
}
.eb-pay-hint__title {
  font: 700 10px/1 Inter, sans-serif;
  color: #c2185b;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.eb-pay-hint__body { font: 500 12px/1.7 Inter, sans-serif; color: #6b8f3f; }
.eb-pay-hint__body code { font-family: 'JetBrains Mono', monospace; color: #111; }

.eb-pay-confirm {
  margin-top: 16px;
  width: 100%;
  background: #e6007e;
  border: none;
  color: #fff;
  font: 800 15px/1 Inter, sans-serif;
  padding: 16px;
  border-radius: 11px;
  cursor: pointer;
}
.eb-pay-confirm:hover { filter: brightness(1.06); }

.eb-pay-cancel {
  margin-top: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: #6b7280;
  font: 600 13px/1 Inter, sans-serif;
  padding: 10px;
  cursor: pointer;
}

.eb-pay-error {
  margin-top: 6px;
  text-align: center;
  font: 600 12px/1.4 Inter, sans-serif;
  color: #c2185b;
}
