/* ============================================================
   VOLTPROXY dashboard — same deep space palette as the landing
   ============================================================ */

:root {
  --bg: #050913;
  --bg-raise: #0a1020;
  --bg-card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --ice: #7cd9ff;
  --ice-dim: rgba(124, 217, 255, 0.14);
  --aurora: #8fa3ff;
  --warn: #ffb46b;
  --danger: #ff7a7a;
  --ok: #7ee0a8;
  --text: #e9effa;
  --muted: #8b97ae;
  --display: "Unbounded", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100svh;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(124, 217, 255, 0.07), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(143, 163, 255, 0.07), transparent 55%);
  background-attachment: fixed;
}

svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { width: min(1240px, 94%); max-width: 100%; margin-inline: auto; }
.mono { font-family: var(--mono); }

h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 9px; }
.logo__mark { width: 30px; height: 30px; overflow: visible; }
.logo__planet { fill: none; stroke: var(--ice); stroke-width: 1.3; opacity: 0.3; }
.logo__orbit { fill: none; stroke: var(--ice); stroke-width: 1.2; opacity: 0.55; }
.logo__bolt { fill: var(--ice); filter: drop-shadow(0 0 7px rgba(124, 217, 255, 0.65)); }
.logo__word { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.logo__word em { font-style: normal; color: var(--ice); }
.logo--auth { justify-content: center; margin-bottom: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 13px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn--ice { background: var(--ice); color: #03111c; box-shadow: 0 0 30px rgba(124, 217, 255, 0.18); }
.btn--ice:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 46px rgba(124, 217, 255, 0.36); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover:not(:disabled) { border-color: var(--ice); color: var(--ice); }
.btn--sm { padding: 9px 18px; font-size: 0.72rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--danger { background: var(--danger); color: #1a0606; box-shadow: 0 0 30px rgba(255, 122, 122, 0.18); }
.btn--danger:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 46px rgba(255, 122, 122, 0.36); }
.topup__methods { display: flex; gap: 10px; flex-wrap: wrap; }
.topup__methods .btn { flex: 1 1 auto; }

/* ---------- form fields ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--ice); }
.field input::placeholder { color: rgba(139, 151, 174, 0.6); }
.field select option { background: var(--bg-raise); }

.field--inline { margin-bottom: 0; }
.field__row { display: flex; align-items: center; gap: 0; }
.field__prefix {
  display: grid;
  place-items: center;
  width: 38px;
  height: 46px;
  font-family: var(--mono);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.field__row input { border-radius: 0 12px 12px 0; }

.note {
  font-size: 0.86rem;
  color: var(--danger);
  margin-bottom: 14px;
}
.note--ok { color: var(--ok); }

/* ---------- auth screen ---------- */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 30px 20px; }
.auth__card {
  width: min(420px, 100%);
  padding: 36px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.tabs__btn {
  padding: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 10px;
  transition: 0.2s;
}
.tabs__btn.is-active { background: var(--ice); color: #03111c; }
.authalt__title { font-family: var(--display); font-size: 1.15rem; margin: 0 0 8px; text-align: center; }
.authalt__text { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0 0 20px; text-align: center; }
.authalt__forgot,
.authalt__back {
  display: block;
  margin: 14px auto 0;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.authalt__forgot:hover,
.authalt__back:hover { color: var(--ice); }
.auth__foot { margin-top: 22px; text-align: center; font-size: 0.85rem; }
.auth__foot a { color: var(--muted); }
.auth__foot a:hover { color: var(--ice); }

/* ---------- top bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  background: rgba(5, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar__right { display: flex; align-items: center; gap: 14px; }
.bar__email { font-size: 0.78rem; color: var(--muted); }

.main { padding: 34px 0 60px; }
.section { margin-bottom: 40px; }

/* ---------- balance ---------- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
}
.panel--balance {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  border-color: rgba(124, 217, 255, 0.3);
  background: linear-gradient(120deg, var(--ice-dim), transparent 60%), var(--bg-card);
}
.panel__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.balance {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--ice);
  text-shadow: 0 0 28px rgba(124, 217, 255, 0.35);
  line-height: 1.1;
}
.topup { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.topup input { width: 110px; }

/* ---------- admin strip ---------- */
.panel--admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-style: dashed;
}
.admin__state { font-size: 0.92rem; font-weight: 600; }
.admin__state--ok { color: var(--ok); }
.admin__state--warn { color: var(--warn); }
.admin__state--error { color: var(--danger); }
.admin__right { text-align: right; }
.admin__balance { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--ice); }

.admin__probe { flex-basis: 100%; }
.admin__out {
  margin-top: 12px;
  padding: 14px;
  max-height: 320px;
  overflow: auto;
  background: rgba(5, 9, 19, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plan:hover { border-color: rgba(124, 217, 255, 0.4); box-shadow: 0 0 34px rgba(124, 217, 255, 0.12); }
.plan__head { display: flex; align-items: baseline; justify-content: space-between; }
.plan__name { font-family: var(--display); font-weight: 600; }
.plan__price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--ice); }
.plan__per { font-size: 0.78rem; color: var(--muted); }
.plan__row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.plan__row .field { flex: 1; margin: 0; }
.plan__row .field--qty { flex: 0 0 88px; }

h2.h2--row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h2.h2--row .btn { margin-left: auto; }

/* ---------- protocol switch ---------- */
.switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 9, 19, 0.5);
  transition: opacity 0.2s;
}
.switch.is-busy { opacity: 0.5; pointer-events: none; }
.switch__opt {
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.switch__opt:hover:not(.is-on):not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.switch__opt.is-on {
  background: var(--ice);
  color: #03111c;
  font-weight: 700;
}
.switch__opt:disabled { cursor: default; }

/* ---------- proxy cards ---------- */
.proxy {
  padding: 20px 22px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.proxy--soon { border-color: rgba(255, 180, 107, 0.4); }
.proxy--expired { border-color: rgba(255, 122, 122, 0.35); opacity: 0.75; }
.proxy__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.proxy__geo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill--active { color: var(--ok); border-color: rgba(126, 224, 168, 0.4); }
.pill--soon { color: var(--warn); border-color: rgba(255, 180, 107, 0.45); }
.pill--expired { color: var(--danger); border-color: rgba(255, 122, 122, 0.45); }

.creds {
  display: grid;
  /* хост шире всех остальных значений */
  grid-template-columns: 2fr 1fr 1.3fr 1.5fr;
  gap: 12px;
  margin-bottom: 16px;
}
.cred {
  background: rgba(5, 9, 19, 0.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
}
.cred__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.cred__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.84rem;
  word-break: break-all;
}
.copy {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  transition: 0.2s;
}
.copy:hover { color: var(--ice); background: var(--ice-dim); }
.copy svg { width: 14px; height: 14px; }

.proxy__foot { display: flex; justify-content: flex-end; margin-top: 4px; }
/* у истёкшего в подвале двое: убрать — слева, продлить — справа */
.proxy__foot--split { justify-content: space-between; gap: 12px; }
/* «Удалить» видно сразу: действие необратимое, и цвет должен предупреждать
   до нажатия, а не только под курсором */
.proxy__del { color: #ff9b9b; border-color: rgba(255, 138, 138, 0.45); }
.proxy__del:hover:not(:disabled) {
  border-color: rgba(255, 138, 138, 0.85); color: #ffb3b3;
  background: rgba(255, 120, 120, 0.08);
}
.proxy__expiry { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.proxy__expiry b { color: var(--text); }
.proxy__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proxy__actions select {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  outline: none;
}
.proxy__actions select option { background: var(--bg-raise); }

.proxy__verdict {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  background: rgba(5, 9, 19, 0.5);
  color: var(--muted);
}
.proxy__verdict--ok { color: var(--ok); border-color: rgba(126, 224, 168, 0.35); }
.proxy__verdict--bad { color: var(--danger); border-color: rgba(255, 122, 122, 0.35); }

/* ---------- string blocks ---------- */
.connstr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  margin-bottom: 16px;
  background: rgba(5, 9, 19, 0.5);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

/* ---------- rotation ---------- */
.rotate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(124, 217, 255, 0.22);
  border-radius: 12px;
  background: rgba(124, 217, 255, 0.05);
}
.rotate__link {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  background: rgba(5, 9, 19, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-all;
}
.rotate__hint {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- history ---------- */
.history { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.history__row:last-child { border-bottom: 0; }
.history__when { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.history__amount { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.history__amount--plus { color: var(--ok); }
.history__amount--minus { color: var(--text); }

/* ---------- empty state ---------- */
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.count { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ---------- payment modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.8);
  backdrop-filter: blur(6px);
}
.modal__box {
  position: relative;
  width: min(430px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  padding: 26px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal__x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  border-radius: 9px;
}
.modal__x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.pay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 34px;
}
.pay__coin { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.pay__coin em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.pay__timer {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ice);
  padding: 6px 14px;
  border: 1px solid rgba(124, 217, 255, 0.4);
  border-radius: 20px;
}
.pay__timer.is-late { color: var(--danger); border-color: rgba(255, 122, 122, 0.5); }

/* once the address is dead, it stays visible but plainly out of use */
.modal__box.is-expired .pay__qr,
.modal__box.is-expired .pay__row {
  opacity: 0.32;
  pointer-events: none;
}

.pay__warn {
  padding: 10px 13px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--warn);
  background: rgba(255, 180, 107, 0.09);
  border: 1px solid rgba(255, 180, 107, 0.4);
  border-radius: 11px;
}

.pay__qr {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 14px;
}
.pay__qr img, .pay__qr svg { width: 100%; max-width: 190px; height: auto; display: block; }
.pay__qr--empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
  padding: 30px 20px;
}

.pay__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
  background: rgba(5, 9, 19, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pay__row > div { min-width: 0; }
.pay__label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.pay__value { font-size: 0.88rem; word-break: break-all; }
.pay__note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.pay__note b { color: var(--text); }

/* ---------- confirm dialog ---------- */
.modal__box--confirm { width: min(400px, 100%); padding: 28px 26px 24px; }
.confirm__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.confirm__msg {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}
.confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.confirm__actions .btn { padding: 11px 22px; font-size: 0.78rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(440px, 92vw);
  padding: 13px 22px;
  background: var(--bg-raise);
  border: 1px solid var(--ice);
  border-radius: 13px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  font-size: 0.88rem;
  animation: toastIn 0.25s ease;
}
.toast--error { border-color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.foot a:hover { color: var(--ice); }

/* ---------- статистика владельца ---------- */

#adminStats h2 { margin-top: 34px; }
#adminStats h2:first-child { margin-top: 0; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 20px;
}
.tile__label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tile__value {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--ice);
}
.tile__sub { font-size: 0.76rem; color: var(--muted); }

/* wide tables scroll on their own instead of stretching the page */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-card);
}
table.stat { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.stat th, table.stat td {
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.stat th {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.stat tbody tr:last-child td { border-bottom: none; }
table.stat tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
table.stat .right { text-align: right; }
table.stat .plus { color: var(--ok); }
table.stat .minus { color: var(--muted); }

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 0.68rem;
  color: var(--aurora);
  border: 1px solid rgba(143, 163, 255, 0.35);
  border-radius: 20px;
}
.stat__note { margin-top: 14px; font-size: 0.76rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .panel--balance { flex-direction: column; align-items: stretch; }
  .topup { justify-content: space-between; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .auth__card { padding: 26px 22px; }
  .bar__email { display: none; }
  .proxy__foot { display: flex; justify-content: flex-end; margin-top: 4px; }
  .proxy__actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ============================================================
   Кабинет в разделах: слева баланс и меню, справа один активный раздел.
   ============================================================ */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 30px; align-items: start; padding: 30px 0 60px; }
.shell--admin { grid-template-columns: minmax(0, 1fr); }
.shell .main { padding: 0; min-width: 0; }
.side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.side__balance {
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 18px 16px;
  border: 1px solid rgba(124, 217, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(124, 217, 255, 0.12), transparent 60%),
    var(--bg-card);
  box-shadow: 0 0 30px rgba(124, 217, 255, 0.08);
}
.side__balance .balance { margin: 2px 0 12px; }
.side__nav { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.side__nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.side__nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.side__nav a.is-active { color: var(--text); background: var(--ice-dim); }
.side__nav a.is-active .ni { background-color: var(--ice); }
.side__nav .count { margin-left: auto; font-size: 0.72rem; color: var(--ice); }
/* иконки пунктов меню — нарисованы CSS-маской, как на лендинге */
.ni {
  flex-shrink: 0; width: 18px; height: 18px;
  background-color: var(--muted);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: background-color 0.2s;
}
.ni--buy { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 5h2l2 11h11l2-8H7'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3C/svg%3E"); }
.ni--proxy { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.ni--pay { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='13' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.ni--learn { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h6v16H6a2 2 0 0 0-2 2zM20 5a2 2 0 0 0-2-2h-6v16h6a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.ni--settings { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
.ni--ref { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='7' cy='8' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3Cpath d='M9.5 9.5l5 5'/%3E%3C/svg%3E"); }
.ni--support { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12a8 8 0 0 1-8 8H4l2-3a8 8 0 1 1 15-5z'/%3E%3C/svg%3E"); }

.view { margin-bottom: 40px; }
.view[hidden] { display: none; }
.view > h2, .view__head h2 { margin-bottom: 6px; }
.view__sub { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; max-width: 640px; }
/* Заголовочный ряд раздела: его высота (JS) равна карточке баланса слева, поэтому
   второй ряд — панель действий, форма, список — начинается вровень с меню. */
.view__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.view__head--sub { margin-top: 34px; min-height: 0 !important; }
.view__head h2 { margin-bottom: 0; }
.view__title { min-width: 0; }
.view__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view__tools select, .bulk select {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none;
}
.view__tools select option, .bulk select option { background: var(--bg-raise); }
.panel__hint { font-size: 0.8rem; color: var(--muted); margin-top: 8px; max-width: 420px; }

/* отметка прокси + панель массовых действий */
.pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.82rem; color: var(--muted); user-select: none; }
.pick input { width: 16px; height: 16px; accent-color: var(--ice); cursor: pointer; }
.bulk {
  display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px;
  padding: 16px 22px;
  border: 1px solid rgba(124, 217, 255, 0.3); border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(124, 217, 255, 0.08), transparent 55%),
    var(--bg-card);
  box-shadow: 0 0 30px rgba(124, 217, 255, 0.06);
}
.bulk[hidden] { display: none; }
.bulk__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bulk__title { font-size: 1.1rem; margin: 0 !important; }
.bulk__count { font-family: var(--mono); font-size: 0.76rem; color: var(--ice); white-space: nowrap; }
.pick--all { margin-left: auto; }
.bulk__actions {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  /* всегда одной строкой: на узком экране ряд прокручивается, а не ломается */
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.bulk__actions::-webkit-scrollbar { display: none; }
.bulk__actions .btn { padding: 8px 11px; font-size: 0.68rem; white-space: nowrap; flex-shrink: 0; }
.bulk__actions select { padding: 7px 8px; font-size: 0.72rem; flex-shrink: 0; max-width: 120px; }
.bulk__group { flex-shrink: 0; }
.bulk__actions[hidden] { display: none; }
.bulk__group { display: inline-flex; align-items: center; gap: 6px; }
.bulk.is-idle .bulk__count { color: var(--muted); }

/* заметка на карточке прокси */
.proxy__top { flex-wrap: wrap; }
.proxy__pick { display: flex; align-items: center; gap: 12px; min-width: 0; line-height: 1.2; }
.pnote {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: center;
  margin: 0;
  /* точно такая же коробка, как у бейджа статуса рядом — одна высота, один уровень */
  padding: 3px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 0.74rem; line-height: 1.3;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color 0.2s, color 0.2s;
}
.pnote::before {
  content: "";
  flex-shrink: 0;
  width: 11px; height: 11px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M17 3l4 4L8 20l-5 1 1-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M17 3l4 4L8 20l-5 1 1-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pnote:hover { border-color: var(--ice); color: var(--ice); }
.pnote--set { color: var(--text); border-style: solid; border-color: var(--line); font-weight: 600; }
.note__edit {
  font-family: var(--body); font-size: 0.84rem; color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ice); border-radius: 8px; padding: 5px 9px; outline: none; width: 220px; max-width: 100%;
}
.cred__value .mini { margin-left: 6px; }
.mini {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--muted); padding: 3px 7px; border: 1px solid var(--line); border-radius: 7px;
  transition: color 0.2s, border-color 0.2s;
}
.mini:hover { color: var(--ice); border-color: var(--ice); }

/* авторотация */
.rotate__auto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.rotate__auto select {
  font-family: var(--mono); font-size: 0.76rem; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; outline: none;
}
.rotate__auto select option { background: var(--bg-raise); }
.rotate__auto .on { color: var(--ok); }

/* история операций таблицей */
.hist { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.hist th, .hist td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hist th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hist td.right, .hist th.right { text-align: right; white-space: nowrap; }
.hist td.mono { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.hist .plus { color: var(--ok); font-family: var(--mono); font-weight: 700; }
.hist .minus { color: var(--text); font-family: var(--mono); font-weight: 700; }
.hist .kind { display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 0.72rem; font-family: var(--mono); background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.more { margin-top: 14px; text-align: center; }

/* обучение, настройки, поддержка */
.learn { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 28px; }
.learn__item, .support__item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}
a.learn__item:hover, a.support__item:hover { border-color: rgba(124, 217, 255, 0.4); box-shadow: 0 0 30px rgba(124, 217, 255, 0.1); }
.learn__item b, .support__item b { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.learn__item span, .support__item span { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.tips { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.tips h3 { font-family: var(--display); font-weight: 600; font-size: 0.98rem; margin-bottom: 12px; }
.tips ol { padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; color: var(--muted); list-style: decimal; }
.tips li::marker { color: var(--ice); }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-form { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.card-form h3 { font-family: var(--display); font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.card-form .btn { align-self: flex-start; margin-top: 4px; }
.settings__row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; padding: 8px 0; border-bottom: 1px solid var(--line); }
.settings__row span { color: var(--muted); }
.settings__row b { font-weight: 600; text-align: right; }
.settings__hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.settings__hint a { color: var(--ice); }
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.si {
  width: 30px; height: 30px; margin-bottom: 4px;
  background-color: var(--ice);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(124, 217, 255, 0.5));
}
.si--tg { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 4 3 11l6 2 2 6 3-4 4 3z'/%3E%3Cpath d='M9 13l12-9'/%3E%3C/svg%3E"); }
.si--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.si--help { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.4-1 1-1 1.7M12 17h.01'/%3E%3C/svg%3E"); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .side { position: static; }
  .side__balance { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .side__balance .balance { margin: 0; }
  .side__balance .btn--full { width: auto; }
  /* меню кабинета переносом, а не горизонтальной прокруткой — все пункты видны */
  .side__nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side__nav a { padding: 9px 12px; }
  .learn, .settings, .support { grid-template-columns: 1fr; }

  /* панель действий «Мои прокси» — переносом, без горизонтального скролла */
  .bulk__actions { flex-wrap: wrap; overflow-x: visible; }
  .extend { margin-left: 0; }
  .bulk__row { gap: 8px 12px; }
  .pick--all { margin-left: 0; }

  /* поля данных прокси в один столбец, чтобы ничего не жалось */
  .creds { grid-template-columns: 1fr 1fr; }
  .cred--host { grid-column: 1 / -1; }
}
/* длинные строки (подключение, ссылка смены IP) прокручиваются внутри себя, а не растягивают страницу */
.connstr span, .rotate__link span { overflow-x: auto; white-space: nowrap; min-width: 0; scrollbar-width: thin; }
.connstr, .rotate__link { min-width: 0; }
.proxy, .view, .bulk { min-width: 0; max-width: 100%; }
/* хост длиннее остальных значений — занимает две ячейки сетки, чтобы не рвался посреди слова */
.cred__value { flex-wrap: nowrap; }
.cred__value > span { min-width: 0; overflow-wrap: anywhere; }
.mini { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 700px) {
  .creds { grid-template-columns: 1fr 1fr; }
  .cred--host { grid-column: span 2; }
}
.rotate__state { margin-top: 8px; font-size: 0.8rem; color: var(--ok); }
/* пока идёт авторотация, ручная смена выключена — блок гасим, чтобы это было видно */
.rotate--locked .rotate__link { opacity: 0.45; }
.rotate--locked .rotate__hint { color: var(--muted); }

/* Кнопки с выбором («Авторотация», срок продления) выглядят как остальные
   кнопки панели: те же рамка, шрифт и размер, только со стрелкой. Список лежит
   поверх кнопки невидимым слоем, поэтому нажатие в ЛЮБУЮ её точку открывает
   выбор — раньше отзывалась лишь узкая полоска самого поля. */
.picker { position: relative; cursor: pointer; }
.picker__arrow {
  width: 7px; height: 7px; flex-shrink: 0; margin: -3px 0 0 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: 0.7;
}
.picker select {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent;
  opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.picker.is-off { opacity: 0.5; cursor: not-allowed; }
.picker.is-off, .picker.is-off select { pointer-events: none; }

/* Продление: срок и кнопка — соседние кнопки с зазором, а не слипшаяся полоса */
.extend { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
/* у заливной кнопки нет рамки — прозрачная держит её вровень с остальными */
.bulk__actions .btn--ice { border: 1px solid transparent; }

/* ---------- центр обучения ---------- */
.learn2__lead { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 720px; margin-bottom: 30px; }
.learn2__lead a { color: var(--ice); }
.learn2__note { color: var(--text); font-size: 0.92rem; margin: -14px 0 26px; padding: 12px 16px; border: 1px solid rgba(124,217,255,0.3); border-radius: 12px; background: var(--ice-dim); }
.lgroup { margin-bottom: 34px; }
.lgroup > h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.lacc {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card);
  margin-bottom: 10px; overflow: hidden; transition: border-color 0.25s;
}
.lacc[open] { border-color: rgba(124, 217, 255, 0.4); }
.lacc summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-weight: 600; font-size: 0.94rem; user-select: none;
}
.lacc summary::-webkit-details-marker { display: none; }
.lacc summary::after {
  content: "+"; flex-shrink: 0; font-family: var(--mono); font-size: 1.25rem;
  color: var(--ice); transition: transform 0.25s;
}
.lacc[open] summary::after { transform: rotate(45deg); }
.lacc__body { padding: 0 20px 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.lacc__body p { margin: 0 0 12px; }
.lacc__body p:last-child { margin-bottom: 0; }
.lacc__body b { color: var(--text); }
.lacc__body ol { margin: 0 0 4px 20px; display: flex; flex-direction: column; gap: 8px; list-style: decimal; }
.lacc__body ol li::marker { color: var(--ice); }
.lacc__body code {
  font-family: var(--mono); font-size: 0.86em;
  background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; color: var(--text);
  overflow-wrap: anywhere;
}
/* блок «если не подключается» внутри группы — без своей рамки, чтобы не дублировать */
.lgroup .tips { border: 1px solid var(--line); }
.lgroup .tips ol li a, .lacc__body a { color: var(--ice); }

/* ---------- партнёрская программа ---------- */
.reflink { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.reflink__url { font-size: 0.9rem; color: var(--ice); word-break: break-all; margin-top: 4px; }
.refstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.tile--accent {
  border-color: rgba(124, 217, 255, 0.35);
  background: radial-gradient(ellipse at 100% 0%, rgba(124, 217, 255, 0.12), transparent 60%), var(--bg-card);
}
.tile--accent .tile__value { color: var(--ice); }
.refwd { margin-bottom: 24px; }
.refwd__head { margin-bottom: 14px; }
.refwd__head h3 { font-family: var(--display); font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; }
.refwd__form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.refwd__form .field { flex: 1; min-width: 240px; margin-bottom: 0; }
.refwd__form input {
  width: 100%; font-family: var(--mono); font-size: 0.85rem; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none;
}
.refwd__form input:focus { border-color: var(--ice); }

/* ---------- автопродление на карточке ---------- */
.autopay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; cursor: pointer; user-select: none; }
.autopay input { width: 16px; height: 16px; accent-color: var(--ice); cursor: pointer; }
.autopay span { font-size: 0.86rem; color: var(--text); }
.autopay em { font-style: normal; font-size: 0.78rem; color: var(--muted); }

/* ---------- двухфакторная защита ---------- */
.twofa { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.twofa__hint { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.twofa__qr { align-self: flex-start; padding: 10px; background: #fff; border-radius: 12px; }
.twofa__qr img { display: block; }
.twofa__secret { font-size: 0.82rem; color: var(--muted); }
.twofa__secret code { font-family: var(--mono); background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; color: var(--text); letter-spacing: 0.08em; }
.twofa .field { margin-top: 2px; }
.twofa .field input {
  font-family: var(--mono); font-size: 0.9rem; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%;
}
.twofa .field input:focus { border-color: var(--ice); }
.twofa form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

@media (max-width: 900px) {
  .refstats { grid-template-columns: 1fr; }
  .reflink { flex-direction: column; align-items: flex-start; }
}

/* переключатель языка в шапке кабинета */
.clang { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.clang__btn {
  font-family: var(--mono); font-size: 0.66rem; line-height: 1; padding: 6px 8px; border-radius: 6px;
  color: var(--muted); transition: 0.15s;
}
.clang__btn.is-active { background: var(--ice); color: #03111c; font-weight: 700; }
.clang__btn:not(.is-active):hover { color: var(--text); }
@media (max-width: 560px) { .bar__email { display: none; } }
