/* ЛК PRO — общий стиль для всех страниц кабинета */

:root {
  --ground: #0A0D12;
  --surface: #121821;
  --surface-2: #18202B;
  --ink: #E8EDF4;
  --ink-2: #B4C0CF;
  --muted: #7A889A;
  --line: #1F2935;
  --line-2: #2A3745;
  --accent: #4C9AFF;
  --accent-deep: #10243D;
  --ok: #46C08B;
  --ok-deep: #0F2C21;
  --warn: #E0A458;
  --warn-deep: #2E2312;
  --crit: #E8705F;
  --crit-deep: #2E1714;

  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --body: "Onest", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }

.shell { max-width: 880px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

/* ---------- шапка ---------- */

header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 18, .9);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}

.top-in { display: flex; align-items: center; gap: 16px; height: 62px; }

.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.brand .sub { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: .1em; padding-left: 8px; border-left: 1px solid var(--line-2); }

.top-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-solid { background: var(--accent); color: #051020; font-weight: 600; }
.btn-solid:hover:not(:disabled) { background: #6BAEFF; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-wide { width: 100%; }

/* ---------- карточки ---------- */

main { padding: clamp(24px, 5vw, 44px) 0 72px; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.card-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; margin: 0; }
.card-head .hint { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-left: auto; }

h1 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 4.4vw, 32px); letter-spacing: -.03em; margin: 0 0 8px; }
.sub { color: var(--ink-2); margin: 0 0 24px; }

/* ---------- статус подписки ---------- */

.status-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.pill {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
}
.pill-ok { background: var(--ok-deep); color: var(--ok); }
.pill-warn { background: var(--warn-deep); color: var(--warn); }
.pill-crit { background: var(--crit-deep); color: var(--crit); }
.pill-mute { background: var(--surface-2); color: var(--muted); }

.big-date { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.03em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 20px; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 19px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- ссылка подписки ---------- */

.link-box { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.link-box input {
  flex: 1 1 260px; min-width: 0;
  background: var(--ground); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; padding: 11px 13px;
}
.link-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- тарифы ---------- */

.period { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
.period button { font-family: var(--body); font-size: 14px; color: var(--ink-2); background: transparent; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--accent); color: #051020; font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.plan {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px; cursor: pointer;
  transition: border-color .15s ease;
}
.plan:hover { border-color: var(--line-2); }
.plan[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(180deg, rgba(76,154,255,.07), var(--surface-2)); }
.plan h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; letter-spacing: -.02em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price .p { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price .cur { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.plan ul li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; }
.plan ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 8px; margin-left: 5px; }

/* ---------- служебное ---------- */

.note { font-size: 14px; color: var(--muted); }
.note-warn { background: var(--warn-deep); border: 1px solid #4A3A1C; color: var(--warn); border-radius: 10px; padding: 12px 15px; font-size: 14.5px; }
.note-crit { background: var(--crit-deep); border: 1px solid #4C231D; color: var(--crit); border-radius: 10px; padding: 12px 15px; font-size: 14.5px; }

.skeleton { background: var(--surface-2); border-radius: 8px; height: 1em; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 0%,100% { opacity: .45; } 50% { opacity: .8; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input {
  background: var(--ground); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); font-family: var(--body); font-size: 15px; padding: 12px 14px;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

footer.bot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
.bot-in { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.bot-in a:hover { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ok-deep); color: var(--ok); border: 1px solid #1D4F3A;
  padding: 11px 20px; border-radius: 100px; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }
