/* ============================================================
   SkinSignal / membership

   Rides css/style.css and css/market.css for the shell and header.
   Everything here is the one card this page draws.

   Skeleton quality on purpose: functional, on brand, and not the final
   design pass. The job is to say what somebody's membership is without
   making them hunt for it.
   ============================================================ */

.acct { padding: 0 0 clamp(48px, 8vw, 96px); }

.acct__card {
  max-width: 620px;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--edge-lit);
}

/* A paying member's card carries the accent edge. The difference is
   deliberately quiet: it is a receipt, not a trophy. */
.acct__card--member {
  border-color: var(--line-warm);
  background:
    linear-gradient(180deg, rgba(61, 127, 255, 0.05), rgba(61, 127, 255, 0) 55%),
    var(--surface);
}

.acct__eyebrow {
  font-family: var(--font-display);
  font-stretch: var(--display-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 6px;
}

.acct__title {
  font-family: var(--font-display);
  font-stretch: var(--display-hero);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.1;
}

.acct__body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}

.acct__body--quiet { color: var(--faint); font-size: 13px; }

/* ---------- The detail rows ---------- */

.acct__rows {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.acct__rowlabel {
  font-family: var(--font-display);
  font-stretch: var(--display-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}

.acct__rowvalue {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

/* ---------- Post purchase notes ---------- */

.acct__note {
  padding: 12px 14px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-sunken);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.acct__note strong { color: var(--text); font-weight: 400; }

.acct__note--good {
  border-color: rgba(31, 214, 125, 0.32);
  background: rgba(31, 214, 125, 0.06);
}

/* Waiting is not an error and is not styled as one. The payment worked;
   only the record is behind. */
.acct__note--wait {
  border-color: rgba(224, 165, 58, 0.32);
  background: rgba(224, 165, 58, 0.06);
}

/* ---------- CTA ----------

   The site button system (css/buttons.css): green for See the plans,
   which is the way to paying, blue for Sign in with Steam, which is
   only the way in. This hook only spaces it from the copy above. */

.acct__cta { margin-top: 4px; }

/* ---------- Billing portal ----------

   A secondary action, not a conversion one. The upgrade CTA is the
   filled accent button; this is an outline, because "cancel my plan"
   should be easy to find and never feel like it is being sold to you.
   Hiding it would be the dishonest choice, and a button somebody has
   to hunt for is hiding it with extra steps. */

.acct__billing {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* The site button system in blue, small (css/buttons.css): managing a
   plan is not a conversion. What stays here is particular to this
   control: it waits on Stripe while disabled, and the cursor says so. */
.acct__manage { align-self: flex-start; }

button.acct__manage:disabled { cursor: progress; }

.acct__billing .acct__body { margin-top: 10px; margin-bottom: 0; }

.acct__error {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: #ff8b7a;
}

@media (max-width: 620px) {
  .acct__card { padding: 20px 18px 22px; }
  .acct__rows { grid-template-columns: 1fr; gap: 3px 0; }
  .acct__rowvalue { margin-bottom: 9px; }
}

/* NOTHING SHIFTS WHILE THE ACCOUNT LOADS (the polish pass): js/account.js
   draws the panel after auth answers; until then its place is held at
   the panel's own height (about 370px at every width). */
#account:empty { min-height: 370px; }
@media (min-width: 1025px) { #account:empty { min-height: 390px; } }
