/* Строгое оформление кабинета (действует, пока виден блок #dash) */
html:has(#dash:not(.hidden)) { --text: #ecebf3; --muted: #8d8c98; --accent: #8b7bff; --accent-ink: #0d0d10; --warn: #e8b84e; --add: #4fd6a0; --del: #ff7a8a;
  --line: #25252d; --edge: #2a2a33; --field: #0f0f13; --glass: rgba(20, 20, 26, .85); --glass-strong: #17171c; --shadow: none;
  --heat-0: #1b1b22; --heat-1: #2e2a52; --heat-2: #4a3fa0; --heat-3: #6e5fe0; --heat-4: #a79bff; color-scheme: dark;
  background: radial-gradient(900px 520px at 85% -5%, rgba(139, 123, 255, .16), transparent 70%), radial-gradient(700px 480px at 0% 40%, rgba(139, 123, 255, .07), transparent 70%), #0d0d10 fixed; }
html:has(#dash:not(.hidden)) header.top .wrap { background: rgba(20, 20, 26, .85); box-shadow: none; }
html:has(#dash:not(.hidden)) main { padding-top: 40px; }

#dash h1 { margin: 0 0 22px; font-size: 38px; font-weight: 500; letter-spacing: -.035em; }

/* вкладки */
.tabs { display: flex; gap: 4px; margin: 0 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; padding: 12px 18px; border: 0; background: none; color: var(--muted); font: 500 15px var(--font); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: #fff; }
.tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: #8b7bff; }
.tab[hidden] { display: none; }
.tab { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* карточки */
#dash .block { position: relative; padding: 28px 30px; border-radius: 20px; border: 1px solid #2a2a33; background: linear-gradient(180deg, #17171c, #111115); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#dash .block::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(185, 174, 255, .45), transparent); }
#dash .block > h2 { display: block; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #a79bff; }
#dash .block > h2::before { display: none; }
#dash .block--hero { background: linear-gradient(180deg, #17171c, #111115); padding: 30px 32px; }
.heat-head h2 { font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #a79bff; }

/* элементы форм и кнопки */
#dash .btn { border-radius: 999px; background: #ececf2; color: #0d0d10; font-weight: 600; box-shadow: none; }
#dash .btn:hover { background: #fff; filter: none; }
#dash .btn.ghost { background: transparent; color: var(--text); border: 1px solid #2a2a33; }
#dash .btn.ghost:hover { background: #1a1a1f; border-color: rgba(139, 123, 255, .5); }
#dash .btn.danger { background: transparent; border: 1px solid rgba(255, 122, 138, .4); color: var(--del); }
#dash .field { border-radius: 12px; border: 1px solid #2a2a33; background: #0f0f13; }
#dash .field:focus { border-color: rgba(139, 123, 255, .7); box-shadow: 0 0 0 3px rgba(139, 123, 255, .16); outline: none; }
.seg { border-color: #2a2a33; background: #0f0f13; }
.seg button.on { background: #25243a; color: #fff; box-shadow: inset 0 0 0 1px rgba(139, 123, 255, .45); }

/* прогресс и графики: один фиолетовый, без разноцветных градиентов */
.bar > i, .models .row .track i { background: #8b7bff; }
.bar.warn > i { background: var(--warn); } .bar.full > i { background: var(--del); }
.pill { background: transparent; border: 1px solid rgba(139, 123, 255, .5); color: #b9aeff; font-weight: 500; }
.plan-name { font-weight: 500; letter-spacing: -.03em; }
.remain { font-weight: 500; }

/* тарифы внутри кабинета */
#dash .plans .p { border-radius: 16px; background: #0f0f13; border: 1px solid #2a2a33; box-shadow: none; }
#dash .plans .p.cur { border-color: rgba(139, 123, 255, .6); box-shadow: none; }
#dash .plans .price { font-weight: 500; }

/* шаги подключения */
#dash .steps li::before { background: transparent; border: 1px solid rgba(139, 123, 255, .5); color: #b9aeff; font-weight: 500; font-family: var(--mono); }

/* таблица ключей */
table.keys th { text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
table.keys td, table.keys th { border-bottom-color: var(--line); }
code { background: #0f0f13; border: 1px solid #25252d; }
.newkey { border-radius: 12px; }

@media (max-width: 860px) { .tab { grid-template-columns: 1fr; } #dash h1 { font-size: 30px; } #dash .block { padding: 22px 20px; } }
.blocks { display: block; }
