/* NestVPN — новый личный кабинет (NV-CABINET-V4): тёмная и светлая тема, размытая Земля по центру.
   Тема хранится в браузере (nv-cabinet-theme), по умолчанию — как в настройках устройства. */
body.dashboard-mode{
  --c-bg:#040705;--c-ink:#f5f7f4;--c-ink2:rgba(255,255,255,.8);--c-muted:rgba(255,255,255,.6);
  --c-card:rgba(14,20,15,.68);--c-card-strong:rgba(14,20,15,.86);--c-border:rgba(255,255,255,.09);
  --c-field:rgba(0,0,0,.35);--c-field-border:rgba(255,255,255,.14);
  --c-nav:rgba(255,255,255,.06);--c-nav-ink:rgba(255,255,255,.72);--c-nav-on:#f5f7f4;--c-nav-on-ink:#0c110b;
  --c-btn:#f5f7f4;--c-btn-ink:#0c110b;--c-btn2:rgba(255,255,255,.06);--c-btn2-ink:#fff;--c-btn2-border:rgba(255,255,255,.13);
  --c-shadow:0 20px 50px rgba(0,0,0,.35);--c-slot:rgba(255,255,255,.12);--c-slot-on:#f5f7f4;--c-sep:rgba(255,255,255,.07);
  --c-menu:#0e140f;--c-earth:.95;--c-glow:rgba(110,180,255,.28);
  --c-ok-bg:rgba(125,255,0,.08);--c-ok-border:rgba(125,255,0,.24);--c-ok-ink:#d8ffc0;
  --c-err-bg:rgba(255,111,125,.08);--c-err-border:rgba(255,111,125,.26);--c-err-ink:#ffc5cb;
  --c-link:#c6ff8f;--c-lime:#9dff1a;
  --text:var(--c-ink);--muted:var(--c-muted);--line:var(--c-border);
  height:auto!important;min-height:100vh;overflow-y:auto!important;background:var(--c-bg);color:var(--c-ink)
}
html[data-nv-theme="light"] body.dashboard-mode{
  --c-bg:#eef1ec;--c-ink:#0c110b;--c-ink2:#3d463b;--c-muted:#5d665a;
  --c-card:rgba(255,255,255,.76);--c-card-strong:rgba(255,255,255,.92);--c-border:rgba(255,255,255,.75);
  --c-field:#fff;--c-field-border:#dfe4dc;
  --c-nav:rgba(255,255,255,.88);--c-nav-ink:#3d463b;--c-nav-on:#0c110b;--c-nav-on-ink:#fff;
  --c-btn:#0c110b;--c-btn-ink:#fff;--c-btn2:rgba(255,255,255,.92);--c-btn2-ink:#0c110b;--c-btn2-border:rgba(12,17,11,.06);
  --c-shadow:0 12px 30px rgba(20,30,15,.07);--c-slot:rgba(12,17,11,.1);--c-slot-on:#0c110b;--c-sep:rgba(12,17,11,.07);
  --c-menu:#fff;--c-earth:.9;--c-glow:rgba(130,190,255,.3);
  --c-ok-bg:#efffdf;--c-ok-border:#cdeeb0;--c-ok-ink:#24520c;
  --c-err-bg:#fff1f2;--c-err-border:#ffd3d7;--c-err-ink:#9f1c28;
  --c-link:#2f6b12;
  color-scheme:light
}
html[data-nv-theme="light"]:has(body.dashboard-mode){color-scheme:light;background:#eef1ec}
body.dashboard-mode:before{display:none}
body.dashboard-mode .header,body.dashboard-mode footer{display:none!important}
body.dashboard-mode .nv-rv-card{display:none!important}

/* Земля по центру */
.nv-earth{display:none}
body.dashboard-mode .nv-earth{display:block;position:fixed;z-index:0;left:50%;--ew:max(150vw,120vh);width:var(--ew);aspect-ratio:1/1;
  top:calc(46svh - var(--ew) * .09);transform:translateX(-50%);pointer-events:none;
  background:url("cabinet-earth.webp?v=20261110e") center/contain no-repeat;opacity:var(--c-earth)}
body.dashboard-mode .nv-earth:after{content:"";position:absolute;inset:-6%;background:radial-gradient(closest-side,var(--c-glow),rgba(0,0,0,0) 72%);z-index:-1}
body.dashboard-mode .account-shell{position:relative;z-index:1}

/* каркас */
body.dashboard-mode main{padding:0 0 56px!important}
body.dashboard-mode .container.layout{display:block!important;width:min(1160px,calc(100% - 48px))!important;max-width:none;margin:0 auto}
body.dashboard-mode .layout>section:last-child,body.dashboard-mode #dashboard{width:100%;max-width:none;margin:0;padding:0}
body.dashboard-mode .account-shell{display:block}
body.dashboard-mode .account-workspace{margin:0;height:auto!important;padding:4px 0 0;overflow:visible!important}
body.dashboard-mode .account-workspace>*{max-width:900px;margin-left:auto;margin-right:auto}
body.dashboard-mode .account-workspace>#dashboardViewKeys,body.dashboard-mode .account-workspace>#selectedPlan{max-width:620px}
body.dashboard-mode .workspace-head{margin:8px auto 22px}
body.dashboard-mode .account-workspace:not([data-active-tab]) .workspace-head,body.dashboard-mode .account-workspace[data-active-tab="keys"] .workspace-head{display:none}
body.dashboard-mode .workspace-title{color:var(--c-ink);font-size:34px;font-weight:800;letter-spacing:-.04em}
body.dashboard-mode .workspace-subtitle{margin-top:8px;color:var(--c-muted);font-size:15px}

/* шапка */
body.dashboard-mode .account-nav{position:relative;inset:auto;z-index:30;width:auto;height:auto;min-height:0;display:flex;flex-direction:row;align-items:center;gap:12px;padding:22px 0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.nv-side-brand{display:flex;align-items:center;gap:12px;flex:none;color:var(--c-ink)}
body.dashboard-mode .nv-side-brand .logo{width:40px;height:40px;border-radius:12px;border:1px solid rgba(125,255,0,.3);background:#0c110b;color:var(--c-lime);box-shadow:none}
.nv-side-brand .logo svg{width:26px}
.nv-side-brand strong{font-size:19px;letter-spacing:-.02em}
.nv-burger,.nv-theme{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid var(--c-btn2-border);border-radius:13px;background:var(--c-nav);color:var(--c-ink);cursor:pointer}
.nv-burger svg,.nv-theme svg{width:20px;height:20px}
.nv-burger{display:none}
.nv-theme{order:3}
.nv-theme .nv-i-moon{display:none}
html[data-nv-theme="light"] .nv-theme .nv-i-sun{display:none}
html[data-nv-theme="light"] .nv-theme .nv-i-moon{display:block}
.nv-menu{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;order:2}
body.dashboard-mode .account-menu{display:flex;flex-direction:row;gap:4px;margin:0 auto;padding:5px;border:1px solid var(--c-btn2-border);border-radius:16px;background:var(--c-nav);box-shadow:var(--c-shadow);overflow:visible}
body.dashboard-mode .account-menu-item{width:auto;min-height:40px;padding:0 16px;border:0;border-radius:12px;background:transparent;color:var(--c-nav-ink);font-size:14.5px;font-weight:600;gap:8px;box-shadow:none}
body.dashboard-mode .account-menu-item:hover{background:var(--c-btn2);color:var(--c-ink)}
body.dashboard-mode .account-menu-item.active{background:var(--c-nav-on);color:var(--c-nav-on-ink);border:0;box-shadow:none}
body.dashboard-mode .account-menu .account-menu-icon{display:none}
body.dashboard-mode .account-menu-icon svg{width:20px;height:20px}
body.dashboard-mode .account-logout{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;padding:0;border:0;background:transparent;overflow:visible}
body.dashboard-mode .account-logout .account-profile{display:flex;align-items:center;gap:10px;padding:0;border:0;text-align:right}
.nv-who{display:flex;flex-direction:column;min-width:0}
body.dashboard-mode .account-logout .user-email{width:auto;margin:0;max-width:220px;overflow:hidden;color:var(--c-ink2);font-size:14px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
body.dashboard-mode .account-logout .user-name{display:none}
body.dashboard-mode .account-logout .avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--c-nav-on);color:var(--c-nav-on-ink);font-size:15px;font-weight:700;box-shadow:none}
body.dashboard-mode #logoutButton{width:auto;min-height:42px;padding:0 13px;border:1px solid var(--c-btn2-border);border-radius:13px;background:var(--c-nav);color:var(--c-ink2);font-size:14px;font-weight:600;gap:7px}
body.dashboard-mode #logoutButton:before{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E") center/contain no-repeat}

@media(min-width:981px){
  body.dashboard-mode .nv-menu{justify-content:flex-end}
  body.dashboard-mode .account-menu{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}
}
@media(min-width:981px) and (max-width:1180px){
  body.dashboard-mode .account-logout .nv-who{display:none}
}

/* кнопки, поля, сообщения */
body.dashboard-mode #dashboard .button{min-height:50px;padding:0 18px;border:0;border-radius:16px;background:var(--c-btn);color:var(--c-btn-ink);font-size:15px;font-weight:700;box-shadow:none;transform:none}
body.dashboard-mode #dashboard .button:hover{filter:brightness(1.06);box-shadow:none;transform:none}
body.dashboard-mode #dashboard .button.secondary{background:var(--c-btn2);color:var(--c-btn2-ink);border:1px solid var(--c-btn2-border)}
body.dashboard-mode #dashboard .button.danger{background:var(--c-err-bg);color:var(--c-err-ink);border:1px solid var(--c-err-border)}
body.dashboard-mode #dashboard .button.nv-primary{background:var(--c-lime);color:#071003}
body.dashboard-mode #dashboard .button:disabled{opacity:.5}
body.dashboard-mode #dashboard .input,body.dashboard-mode #dashboard .key-select{border:1px solid var(--c-field-border);background:var(--c-field);color:var(--c-ink)}
body.dashboard-mode #dashboard .input:focus{border-color:var(--c-ink);box-shadow:0 0 0 3px rgba(125,255,0,.12)}
body.dashboard-mode #dashboard .field label{color:var(--c-ink2)}
body.dashboard-mode #dashboard .password-toggle{color:var(--c-muted)}
body.dashboard-mode #dashboard .text-button{color:var(--c-link);font-weight:600}
body.dashboard-mode #dashboard .message{border-radius:14px}
body.dashboard-mode #dashboard .message.error{background:var(--c-err-bg);border-color:var(--c-err-border);color:var(--c-err-ink)}
body.dashboard-mode #dashboard .message.success{background:var(--c-ok-bg);border-color:var(--c-ok-border);color:var(--c-ok-ink)}
body.dashboard-mode #dashboard .footnote,body.dashboard-mode #dashboard .dashboard-note{color:var(--c-muted)}

/* карточки */
body.dashboard-mode #dashboard .dashboard-panel,body.dashboard-mode #dashboard .purchase-choice,body.dashboard-mode #dashboard .selected-plan{border:1px solid var(--c-border);border-radius:24px;background:var(--c-card);box-shadow:var(--c-shadow);color:var(--c-ink)}
body.dashboard-mode #dashboard .selected-plan.show{padding:16px 20px}
body.dashboard-mode #dashboard .selected-plan small{color:var(--c-muted)}
body.dashboard-mode #dashboard .clear-plan{color:var(--c-ink2)}
body.dashboard-mode #dashboard .purchase-choice{padding:22px}
body.dashboard-mode #dashboard .purchase-choice>p{color:var(--c-muted)}
body.dashboard-mode #dashboard .choice-option{border:1px solid var(--c-btn2-border);border-radius:16px;background:var(--c-btn2)}
body.dashboard-mode #dashboard .choice-option:has(input:checked){border-color:var(--c-ink);background:var(--c-card-strong)}
body.dashboard-mode #dashboard .choice-option small{color:var(--c-muted)}
body.dashboard-mode #dashboard .purchase-limit{background:var(--c-btn2);color:var(--c-muted)}
body.dashboard-mode #dashboard .purchase-pay-button{width:100%;margin-top:12px}

/* «Ключи» — одна колонка по центру */
body.dashboard-mode #dashboardViewKeys.active{display:flex;flex-direction:column;gap:16px}
body.dashboard-mode #dashboardViewKeys>*{margin:0}
body.dashboard-mode #dashboardViewKeys>#paymentMessage{order:-2}
body.dashboard-mode #dashboardViewKeys>#purchaseChoice{order:-1}
body.dashboard-mode #dashboardViewKeys>.nv-guides{order:2}
body.dashboard-mode #dashboardViewKeys>#paymentMessage:not(.show){display:none}
body.dashboard-mode #dashboardViewKeys>.dashboard-note{order:3;text-align:center;font-size:13px}
body.dashboard-mode .key-list{gap:24px}
.nv-guides{align-self:center;max-width:100%;margin:0;padding:9px 16px;border:1px solid var(--c-border);border-radius:18px;background:var(--c-card-strong);box-shadow:var(--c-shadow);text-align:center;font-size:14px;line-height:1.5;color:var(--c-muted)}
.nv-guides a{color:var(--c-ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--c-btn2-border);text-underline-offset:3px}

/* карточка ключа */
body.dashboard-mode #dashboard .key-card.nv-b-key{display:flex;flex-direction:column;gap:12px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.nv-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:22px;padding:26px;border:1px solid rgba(255,255,255,.08);border-radius:28px;color:#fff;
  background:radial-gradient(120% 90% at 85% 0%,rgba(31,74,42,.96) 0%,rgba(11,26,16,.96) 45%,rgba(5,8,6,.97) 100%);box-shadow:0 20px 50px rgba(0,0,0,.28)}
.nv-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nv-hero-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.nv-pill{display:inline-flex;align-items:center;gap:7px;flex:none;padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.1);font-size:13px;font-weight:600}
.nv-pill i{width:7px;height:7px;border-radius:50%;background:var(--c-lime)}
.nv-pill.off i{background:#ffd56a}
.nv-hero-mid{display:flex;align-items:center;gap:24px}
.nv-ring{width:140px;height:140px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--c-lime) 0 var(--deg,0deg),rgba(255,255,255,.12) var(--deg,0deg) 360deg)}
.nv-ring>div{width:120px;height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:#08120b}
.nv-ring strong{font-size:48px;letter-spacing:-.05em;line-height:.9}
.nv-ring span{margin-top:4px;font-size:13px;color:rgba(255,255,255,.7)}
.nv-hero-info{display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}
.nv-hero-info strong{font-size:23px;letter-spacing:-.02em}
.nv-hero-info span{font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.72)}
.nv-hero-note{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.08);font-size:13.5px;color:rgba(255,255,255,.85)}
.nv-hero-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px}
.nv-hero-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:rgba(255,255,255,.55)}
.nv-hero-renew{display:inline-flex;align-items:center;gap:7px;flex:none;min-height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
.nv-hero-renew:hover{background:rgba(255,255,255,.14)}
.nv-hero-del{display:inline-flex;align-items:center;gap:7px;flex:none;min-height:34px;padding:0 13px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.85);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
.nv-hero-del:before{content:"";width:15px;height:15px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%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='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E") center/contain no-repeat}
.nv-hero-del:hover,.nv-hero-del.is-armed{border-color:rgba(255,111,125,.45);background:rgba(255,111,125,.14);color:#ffd0d5}
.nv-hero-del:disabled{opacity:.6;cursor:default}
.nv-hero-foot .nv-hero-link:empty{display:none}
.nv-hero-foot:has(.nv-hero-link:empty){justify-content:flex-end}
body.dashboard-mode #dashboard .nv-b-key .key-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
body.dashboard-mode #dashboard .nv-b-key .key-actions .button{min-width:0;padding:0 12px}
body.dashboard-mode #dashboard .nv-b-key .key-actions .nv-primary,body.dashboard-mode #dashboard .nv-b-key .key-actions .nv-wide{grid-column:1/-1}
.nv-b-key [data-happ-key]:before,.nv-b-key [data-copy-key]:before,.nv-b-key [data-qr-key]:before,.nv-b-key [data-renew-key]:before{content:"";width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:var(--nv-ico) center/contain no-repeat;mask:var(--nv-ico) center/contain no-repeat}
.nv-b-key .nv-hero-renew:before{width:15px;height:15px}
.nv-b-key [data-happ-key]{--nv-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E")}
.nv-b-key [data-copy-key]{--nv-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M4 16V4h12'/%3E%3C/svg%3E")}
.nv-b-key [data-qr-key]{--nv-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Cpath d='M14 14h3v3h-3zM20 14v7M14 20h3'/%3E%3C/svg%3E")}
.nv-b-key [data-renew-key]{--nv-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 4v5h-5'/%3E%3C/svg%3E")}
body.dashboard-mode #dashboard .nv-b-key .key-qr{margin:0;padding:18px;border:0;border-radius:22px;background:#fff;box-shadow:var(--c-shadow)}
body.dashboard-mode #dashboard .nv-b-key .key-qr:not(.show){display:none}
body.dashboard-mode #dashboard .nv-b-key .key-error{margin:0;color:var(--c-err-ink);font-size:13.5px}

/* устройства */
body.dashboard-mode #dashboard .nv-b-key .key-devices{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:20px 22px;border:1px solid var(--c-border);border-radius:22px;background:var(--c-card);box-shadow:var(--c-shadow);color:var(--c-ink)}
body.dashboard-mode #dashboard .nv-b-key .key-devices:before{content:"Устройства";font-size:16px;font-weight:700}
body.dashboard-mode #dashboard .nv-b-key .key-devices>[data-list-devices]{min-height:34px;padding:0 14px;border-radius:11px;font-size:13.5px}
body.dashboard-mode #dashboard .nv-b-key .key-devices-list{flex:1 0 100%;margin:2px 0 0;padding:0;border:0}
@supports selector(:has(a)){
  body.dashboard-mode #dashboard .nv-b-key .key-devices>[data-list-devices]{font-size:0}
  body.dashboard-mode #dashboard .nv-b-key .key-devices>[data-list-devices]:after{content:"Скрыть";font-size:13.5px}
  body.dashboard-mode #dashboard .nv-b-key .key-devices:has(>.key-devices-list[hidden])>[data-list-devices]:after{content:"Показать"}
}
body.dashboard-mode #dashboard .nv-b-key .nv-dev-count{margin:0 0 10px;font-size:14px;font-weight:600;color:var(--c-ink)}
.nv-dev-slots{display:grid;grid-template-columns:repeat(var(--n,10),minmax(0,1fr));gap:5px;margin:0 0 10px}
.nv-dev-slots i{height:9px;border-radius:4px;background:var(--c-slot)}
.nv-dev-slots i.on{background:var(--c-slot-on)}
body.dashboard-mode #dashboard .nv-b-key .key-devices-list p{color:var(--c-muted)}
body.dashboard-mode #dashboard .nv-b-key .key-device-row{padding:10px 0;border-top:1px solid var(--c-sep);color:var(--c-ink)}
body.dashboard-mode #dashboard .nv-b-key .nv-dev-name{color:var(--c-ink)}
body.dashboard-mode #dashboard .nv-b-key .key-device-row .button{min-height:34px;padding:0 12px;border-radius:11px;font-size:13px}

/* пустой кабинет */
body.dashboard-mode #dashboard .keys-empty-state{display:flex;flex-direction:column;align-items:center;gap:22px;padding:34px 30px 30px;text-align:center;
  border:1px solid var(--c-border);border-radius:28px;color:var(--c-ink);background:var(--c-card);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--c-shadow);--text:var(--c-ink);--muted:var(--c-muted)}
body.dashboard-mode #dashboard .key-empty-hero{display:flex;flex-direction:column;align-items:center;gap:16px}
body.dashboard-mode #dashboard .key-empty-icon{width:64px;height:64px;border-radius:20px;border:0;background:linear-gradient(140deg,#9dff1a,#6fe000);color:#071003;box-shadow:0 12px 30px rgba(125,255,0,.25)}
body.dashboard-mode #dashboard .key-empty-icon svg{width:30px;height:30px;stroke-width:2}
body.dashboard-mode #dashboard .key-empty-copy{display:flex;flex-direction:column;align-items:center;gap:8px}
body.dashboard-mode #dashboard .key-state-inactive{min-height:0;padding:5px 11px;border:1px solid var(--c-btn2-border);background:var(--c-btn2);color:var(--c-muted);font-size:12px;font-weight:600}
body.dashboard-mode #dashboard .key-state-inactive:before{background:var(--c-muted);box-shadow:none}
body.dashboard-mode #dashboard .trial-offer-card .key-state-inactive{border-color:rgba(157,255,26,.4);background:rgba(157,255,26,.1);color:var(--c-ink)}
body.dashboard-mode #dashboard .trial-offer-card .key-state-inactive:before{background:#9dff1a;box-shadow:0 0 10px #9dff1a}
body.dashboard-mode #dashboard .keys-empty-state h3{margin:2px 0 0;max-width:440px;font-size:26px;line-height:1.15;letter-spacing:-.03em;color:var(--c-ink)}
body.dashboard-mode #dashboard .keys-empty-state p{max-width:420px;margin:0;font-size:15px;line-height:1.55;color:var(--c-muted)}
body.dashboard-mode #emptyKeyCard:not(.trial-offer-card) .key-empty-stats{display:none}
body.dashboard-mode #dashboard .key-empty-stats{width:100%;max-width:440px;margin:0;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--c-btn2-border);background:var(--c-btn2);text-align:left}
body.dashboard-mode #dashboard .key-empty-stats>div{padding:14px 16px}
body.dashboard-mode #dashboard .key-empty-stats>div+div{border-left:1px solid var(--c-btn2-border);border-top:0}
body.dashboard-mode #dashboard .key-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;max-width:440px;margin:0}
body.dashboard-mode #dashboard .key-empty-actions .button{flex:1 1 170px;min-height:50px}
body.dashboard-mode #dashboard .keys-empty-state .button{background:var(--c-lime);color:#071003;border:0}
body.dashboard-mode #dashboard .keys-empty-state .button.secondary{background:var(--c-btn2);color:var(--c-btn2-ink);border:1px solid var(--c-btn2-border)}
body.dashboard-mode #dashboardViewKeys:has(#emptyKeyCard)>.dashboard-note{display:none}

/* настройки и оплата */
body.dashboard-mode #dashboard .settings-card h2,body.dashboard-mode #dashboard .nv-settings-billing-title{color:var(--c-ink)}
body.dashboard-mode #dashboard .settings-card>p{color:var(--c-muted)}
body.dashboard-mode #dashboard .settings-account-row{border:1px solid var(--c-btn2-border);background:var(--c-btn2)}
body.dashboard-mode #dashboard .billing-history{border-color:var(--c-btn2-border);background:var(--c-btn2)}
body.dashboard-mode #dashboard .billing-history-row+.billing-history-row{border-top-color:var(--c-sep)}
body.dashboard-mode #dashboard .billing-history-status{background:var(--c-btn2)}
body.dashboard-mode #dashboard .billing-mode{background:var(--c-ok-bg);color:var(--c-ok-ink)}
body.dashboard-mode #dashboardViewSupport{color:#f7fff3;--text:#f7fff3;--muted:#9aa695;--line:rgba(126,255,0,.14)}

/* планшет и телефон */
@media(max-width:980px){
  body.dashboard-mode .container.layout{width:calc(100% - 32px)!important}
  body.dashboard-mode .account-nav{padding:14px 0;gap:8px}
  .nv-theme{order:2;margin-left:auto;width:44px;height:44px}
  .nv-burger{display:grid;order:3;width:44px;height:44px}
  .nv-menu{display:none;position:absolute;top:calc(100% - 4px);left:0;right:0;flex-direction:column;align-items:stretch;gap:6px;padding:8px;border:1px solid var(--c-btn2-border);border-radius:20px;background:var(--c-menu);box-shadow:0 24px 60px rgba(0,0,0,.25)}
  body.nv-menu-open .nv-menu{display:flex}
  body.dashboard-mode .account-menu{flex-direction:column;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
  body.dashboard-mode .account-menu-item{justify-content:flex-start;min-height:48px;padding:0 14px;font-size:15.5px;gap:12px}
  body.dashboard-mode .account-menu .account-menu-icon{display:grid}
  body.dashboard-mode .account-logout{justify-content:space-between;padding:10px 6px 4px 14px;border-top:1px solid var(--c-sep)}
  body.dashboard-mode .account-logout .account-profile{flex-direction:row-reverse;text-align:left}
  body.dashboard-mode .account-logout .avatar{width:32px;height:32px;font-size:13px}
  body.dashboard-mode .account-logout .user-email{max-width:none;white-space:normal;overflow-wrap:anywhere}
  body.dashboard-mode .workspace-title{font-size:28px}
  body.dashboard-mode .settings-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:560px){
  .nv-hero{padding:20px;gap:18px;border-radius:26px}
  .nv-hero-mid{gap:16px}
  .nv-ring{width:108px;height:108px}
  .nv-ring>div{width:90px;height:90px}
  .nv-ring strong{font-size:36px}
  .nv-ring span{font-size:12px}
  .nv-hero-info strong{font-size:19px}
  .nv-hero-info span{font-size:13.5px}
  body.dashboard-mode #dashboard .nv-b-key .key-actions{gap:10px}
}
@media(max-width:440px){
  body.dashboard-mode #dashboard .keys-empty-state{padding:26px 18px 20px;gap:18px}
  body.dashboard-mode #dashboard .keys-empty-state h3{font-size:22px}
  body.dashboard-mode #dashboard .key-empty-stats{grid-template-columns:1fr}
  body.dashboard-mode #dashboard .key-empty-stats>div+div{border-left:0;border-top:1px solid var(--c-btn2-border)}
  body.dashboard-mode .container.layout{width:calc(100% - 24px)!important}
  body.dashboard-mode #dashboard .nv-b-key .key-actions .button{padding:0 8px;font-size:14px}
  .nv-hero-name{font-size:11px;letter-spacing:.08em}
}
/* «Настройки»: без истории операций и «Данных для оплаты» */
body.dashboard-mode .billing-card[hidden],body.dashboard-mode .billing-card:has(#billingHistory),body.dashboard-mode .billing-card:has(#billingEmail){display:none!important}
