/* ConquestReborn — account dashboard page.
   Layers on css/style.css tokens; no new palette colors except the nine
   standard WoW class colors (deliberate — they ARE the convention). */

/* The base sheet has no [hidden] reset; card/locked layouts below use
   display values that would otherwise defeat the hidden attribute. */
.account-page [hidden] { display: none !important; }

/* ---------- Page frame ---------- */
.account-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.account-head { margin-bottom: 36px; }

.account-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  margin: 0 0 10px;
}
.account-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.account-sub { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- Logged-out lock panel ---------- */
.account-locked {
  display: grid;
  place-items: center;
  padding: 40px 0 60px;
}
.locked-panel {
  max-width: 520px;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 48px 40px;
}
.locked-panel h2 { font-size: 1.35rem; margin: 0 0 12px; }
.locked-panel p { color: var(--muted); margin: 0 0 26px; }
.locked-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Card grid ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.acct-card-wide { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
}

.acct-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: 8px;
  padding: 28px 26px;
}
.card-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  margin: 0 0 8px;
}
.acct-card h2 { font-size: 1.25rem; margin: 0 0 18px; }
.card-subhead {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 26px 0 12px;
}
.card-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; }
.card-actions { margin: 4px 0 6px; }

/* .btn is styled for <a>; reset button chrome so it matches */
button.btn { font: inherit; }
button.btn,
.acct-card button.btn {
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

/* ---------- Summary facts ---------- */
.acct-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0 0 22px;
}
.fact dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 3px;
}
.fact dd {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.pill-good {
  color: var(--good);
  border-color: rgba(87, 178, 106, 0.5);
  background: rgba(87, 178, 106, 0.08);
}
.pill-muted { color: var(--muted); }

/* ---------- Orders table ---------- */
.table-wrap { overflow-x: auto; }
.delta-pos { color: var(--good); }
.delta-neg { color: var(--gold-bright); }
.table-empty { color: var(--muted); font-size: 0.92rem; }

/* ---------- Characters ---------- */
.char-list { display: grid; gap: 12px; margin-bottom: 18px; }

.char-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line-faint);
  border-radius: 6px;
  background: rgba(10, 13, 22, 0.6);
}
.char-name {
  display: block;
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}
.char-meta { color: var(--muted); font-size: 0.85rem; }

.char-act { min-width: 0; text-align: right; }
.char-unstuck { padding: 8px 14px; font-size: 0.72rem; letter-spacing: 0.16em; }

.char-stat { min-width: 0; }
.char-stat .stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 2px;
}
.char-stat .stat-value { font-size: 0.95rem; overflow-wrap: anywhere; }
.stat-value.stat-none { color: var(--muted); }
.stat-value.stat-rating { color: var(--gold-bright); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .char-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char-id { grid-column: 1 / -1; }
  .char-act { grid-column: 1 / -1; text-align: left; }
}

/* The nine standard WoW class colors (the one sanctioned palette addition —
   they are the universal convention and belong verbatim). */
.cls-warrior { color: #c79c6e; }
.cls-paladin { color: #f58cba; }
.cls-hunter  { color: #abd473; }
.cls-rogue   { color: #fff569; }
.cls-priest  { color: #ffffff; }
.cls-shaman  { color: #0070de; }
.cls-mage    { color: #69ccf0; }
.cls-warlock { color: #9482c9; }
.cls-druid   { color: #ff7d0a; }
.cls-deathknight { color: #c41f3b; }

/* ---------- Forms (security / redeem) ---------- */
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 5px;
}
.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  padding: 10px 12px;
}
.field-input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-deep);
}
.field-input::placeholder { color: var(--muted); opacity: 0.7; letter-spacing: 0.08em; }

.acct-msg {
  color: var(--gold-bright);
  font-size: 0.9rem;
  margin: 12px 0 0;
}
.acct-msg.is-good { color: var(--good); }



/* ---------- Refer a Friend ---------- */
.raf-slots { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.raf-slot {
  padding: 10px 14px;
  border: 1px solid var(--line-faint);
  border-radius: 6px;
  background: rgba(10, 13, 22, 0.6);
  font-size: 0.95rem;
}
.raf-slot-none { color: var(--muted); }
#raf-link { font-family: inherit; overflow: hidden; text-overflow: ellipsis; }
#raf-card .card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
