/* ==========================================================================
   account.css — личный кабинет (/account)
   Сгруппированные списки в духе iOS; цвета — токены из styles.css.
   Основная кнопка = цвет текста; акцент — только для состояния.
   Подключается ПОСЛЕ styles.css и info.css.
   ========================================================================== */

.acc {
  --acc-sep:  rgba(255, 255, 255, 0.07);
  --acc-ok:   var(--accent);
  --acc-err:  #e0857a;

  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.acc [hidden] { display: none !important; }

.acc-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0 4px;
}

.acc-note {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.acc-note span { color: var(--text); }

.acc-h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 28px 0 8px 16px;
}

/* ---------- Форма входа ---------- */
.acc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.acc-form .acc-note { margin: 0; }

.acc-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-subtle);
  border-radius: var(--radius-md);
  outline: none;
}

.acc-input::placeholder { color: var(--text-faint); }
.acc-input:focus { border-color: var(--text-muted); }

.acc-input--code::placeholder { font-size: 17px; letter-spacing: normal; }

.acc-input--code {
  font-size: 22px;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.acc-btn {
  height: 50px;
  font-size: 17px;
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius-md);
  transition: opacity 0.15s;
}

.acc-btn:disabled { opacity: 0.5; cursor: default; }
.acc-btn:active:not(:disabled) { opacity: 0.85; }

.acc-actions {
  display: flex;
  justify-content: space-between;
}

.acc-link {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
}

.acc-link:disabled { color: var(--text-muted); cursor: default; }

.acc-error {
  font-size: 15px;
  color: var(--acc-err);
  margin: 12px 0 0;
}

/* ---------- Сгруппированный список ---------- */
.acc-group {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.acc-group + .acc-group,
.acc-seg + .acc-group { margin-top: 12px; }

.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text);
  text-align: left;
  position: relative;
}

.acc-row + .acc-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  border-top: 1px solid var(--acc-sep);
}

.acc-row__value {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.acc-row__sub {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

button.acc-row:hover:not(:disabled) { background: var(--bg-subtle); }
button.acc-row:disabled { cursor: default; opacity: 0.5; }

/* Цена в покупаемой строке — как основной текст, с шевроном */
button.acc-row .acc-row__value { color: var(--text); }

button.acc-row .acc-row__value::after {
  content: "›";
  margin-left: 10px;
  color: var(--text-faint);
  font-size: 20px;
  line-height: 0;
  position: relative;
  top: 1px;
}

.acc-row--loading .acc-row__value { visibility: hidden; }

.acc-row--refunded .acc-row__value { text-decoration: line-through; }

.acc-foot {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 16px 0;
}

/* ---------- Сегменты тарифа ---------- */
.acc-seg {
  display: flex;
  gap: 2px;
  margin-top: 12px;
  padding: 2px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.acc-seg button {
  flex: 1;
  height: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
}

.acc-seg button[aria-selected="true"] {
  color: var(--text);
  background: var(--bg-subtle);
}

/* ---------- Статус оплаты ---------- */
.acc-banner {
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text);
  margin: 0 0 8px;
}

.acc-banner--ok    { color: var(--acc-ok); }
.acc-banner--error { color: var(--acc-err); }
