/* =========================================================
   Tournament Site — ZORC Stylesheet
   Loaded AFTER styles.css, home.css, and (on the Add ZORC page)
   edit-profile.css so it inherits shared tokens, the .field-group
   inputs and the .edit-profile-card layout. Covers the balance
   card on Profile, the Add ZORC page, and the entry-fee line on
   the Match Registration page.
   ========================================================= */

/* ---------- Balance card (Profile + Add ZORC page) ---------- */

.zorc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-clip);
  padding: 20px 24px;
}

.zorc-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.zorc-card__label {
  font-size: 12px;
  color: var(--text-muted);
}

.zorc-card__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
}

.zorc-card__cta {
  flex: none;
  width: auto;
  min-height: auto;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Add ZORC page ---------- */

.zorc-hint {
  margin: 0 0 14px;
}

.zorc-numbers,
.zorc-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Scroll long order history on Add ZORC page */
.zorc-orders {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.zorc-orders::-webkit-scrollbar {
  width: 6px;
}
.zorc-orders::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.zorc-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-clip);
  padding: 12px 14px;
}

.zorc-number__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.zorc-number__copy {
  flex: none;
  width: auto;
  min-height: auto;
  padding: 8px 16px;
  font-size: 12.5px;
}

.zorc-number__title {
  font-size: 12px;
  color: var(--text-muted);
}

/* Keep the full payment number on one straight line */
.zorc-number__value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  line-height: 1.3;
  scrollbar-width: none;
}
.zorc-number__value::-webkit-scrollbar {
  display: none;
}

.zorc-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
}

.zorc-message {
  margin: 4px 0 0;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius-clip);
  border: 1px solid var(--border);
}

.zorc-message[hidden] {
  display: none;
}

.zorc-message--ok {
  color: var(--success);
  border-color: var(--success);
  background: rgba(61, 220, 132, 0.08);
}

.zorc-message--pending {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(63, 224, 208, 0.06);
}

.zorc-message--error {
  color: var(--text-primary);
  border-color: var(--crimson-dim);
  background: rgba(232, 40, 63, 0.08);
}

/* ---------- Orders ---------- */

.zorc-order {
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-clip);
  padding: 12px 14px;
}

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

.zorc-order__amount {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.zorc-order__status {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-clip);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.zorc-order--pending .zorc-order__status {
  color: var(--cyan);
  border-color: var(--cyan);
}

.zorc-order--approved .zorc-order__status {
  color: var(--success);
  border-color: var(--success);
}

.zorc-order--canceled .zorc-order__status {
  color: var(--crimson);
  border-color: var(--crimson-dim);
}

.zorc-order__meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.zorc-order__note {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Entry fee on the Match Registration page ---------- */

.register-fee {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-clip);
  padding: 12px 14px;
  font-size: 13px;
}

.register-fee[hidden] {
  display: none;
}

.register-fee__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.register-fee__row span:first-child {
  color: var(--text-muted);
}

.register-fee__row strong {
  font-family: var(--font-display);
  color: var(--gold);
}

.register-fee__note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

.register-fee__note a {
  color: var(--cyan);
  text-decoration: underline;
}

/* ---------- ZORC history (Profile) ---------- */

.zorc-history {
  padding: 6px 14px 6px 20px;
}

.zorc-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.zorc-history__list::-webkit-scrollbar {
  width: 6px;
}
.zorc-history__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.zorc-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.zorc-history__row:first-child {
  border-top: none;
}

.zorc-history__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.zorc-history__title {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.zorc-history__when {
  font-size: 12px;
  color: var(--text-muted);
}

.zorc-history__amount {
  flex: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.zorc-history__amount--in {
  color: var(--success);
}

.zorc-history__amount--out {
  color: var(--crimson);
}

.zorc-history .zorc-empty {
  padding: 14px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .zorc-card {
    padding: 18px 16px;
  }

  .zorc-card__value {
    font-size: 21px;
  }

  .zorc-number__value {
    font-size: 18px;
  }
}