/* LuxTCG members area — forms, notices, tables, admin. Same tokens as app.css (DESIGN.md Spotify). */
.acc { padding-top: calc(var(--nav) + var(--s-7)); }
.acc .wrap { max-width: 1040px; }
.acc h1 { font-size: clamp(30px, 2vw + 20px, 44px); margin: 0 0 var(--s-3); }
.acc-head { margin-bottom: var(--s-6); }
.acc-head p { color: var(--p-muted); margin: 0 0 var(--s-3); max-width: 70ch; }
.acc-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5); }
.acc-h2 { font-size: 24px; margin: var(--s-8) 0 var(--s-4); }
.acc-card { padding: var(--s-6); border-radius: 8px; background: var(--sp-card); margin-bottom: var(--s-5); }
.acc-card h2 { font-size: 22px; margin: 0 0 var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.acc-card--danger { box-shadow: inset 0 0 0 1px #5a2a2e; }
.acc-form { max-width: 720px; }
.acc-form--narrow { max-width: 440px; }

/* fields */
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: 14px; font-weight: 500; color: #fff; }
.field input:not([type="checkbox"]), .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 8px; background: var(--sp-elev); color: #fff;
  font: 400 16px/1.4 var(--font-text); box-shadow: var(--sp-inset); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #fff; outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #f3727f; }
.field input[type="date"], .field input[type="datetime-local"] { color-scheme: dark; }
.field__hint { margin: 0; font-size: 14px; color: var(--p-muted); }
.field__error { margin: 0; font-size: 14px; color: #f3727f; }
.field--check label { display: flex; gap: var(--s-3); align-items: flex-start; font-weight: 400; line-height: 1.5; cursor: pointer; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--p-accent); }
.field--invalid label { color: #ffb3ba; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* notices and badges */
.notice { padding: var(--s-4) var(--s-5); border-radius: 8px; margin: 0 0 var(--s-5); background: #1f2a3a; color: #dbe9ff; }
.notice--success { background: #12301f; color: #c7f5d9; }
.notice--error { background: #3a1d20; color: #ffd0d4; }
.notice .link { color: inherit; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 9999px; font-size: 13px; font-weight: 500; background: #2a2a2a; color: #e6e6e6; vertical-align: middle; }
.badge--approved, .badge--paid, .badge--open, .badge--delivered { background: #12301f; color: #8ff0b0; }
.badge--pending, .badge--reserved, .badge--draft { background: #3b3218; color: #ffd36a; }
.badge--rejected, .badge--suspended, .badge--cancelled { background: #3a1d20; color: #ffb3ba; }
.badge--refunded, .badge--closed, .badge--unverified { background: #26262b; color: #c9c9d1; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 8px; background: var(--sp-card); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #2a2a2a; vertical-align: top; }
.table th { color: var(--p-muted); font-weight: 500; font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--font-mono); }

/* pre-orders */
.products { display: grid; gap: var(--s-5); }
.product__form { margin-top: var(--s-5); max-width: 560px; }
.transfer dd { font-size: 17px; }
.totp-key { font-size: 20px; letter-spacing: .08em; }

/* admin */
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4); }
.admin-tile { display: grid; gap: var(--s-2); color: #fff; text-decoration: none; margin: 0; transition: background-color .2s ease, transform .2s ease; }
.admin-tile:hover { background: var(--sp-hover); transform: translateY(-2px); }
.admin-tile__n { font-size: 36px; font-weight: 500; }
.member__form, .order-row .form { margin-top: var(--s-4); }

@media (max-width: 639px) {
  .acc-card { padding: var(--s-5); }
  .btn-row { flex-wrap: wrap; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* the kit's .form is a two-column grid; here every form is one column, with pairs only inside .form-row */
.acc .form { grid-template-columns: minmax(0, 1fr); align-items: start; }
.acc .form > * { grid-column: 1 / -1; }
.acc .form-row { align-items: start; }
.acc .field { align-content: start; }

/* inline links inside a checkbox sentence stay inline */
.field--check label > span .link { display: inline; }

/* tables (pre-orders, admin lists) on a phone: each row becomes a small card, each value with its column name
   (js/ui.js copies the header names into data-label) */
@media (max-width: 767px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 14px; border-bottom: 1px solid #2a2a2a; }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .table td[data-label]::before { content: attr(data-label); color: var(--p-muted); font-size: 13px; text-align: left; flex: none; }
}
