/* Use the site's existing arcade font for clear, distinct metric digits. */
@font-face{font-family:'AVPN Cyrillic Fix';src:url(assets/fonts/avpn-pixelify-cyrillic-400.woff2?v=2) format('woff2');font-weight:400;unicode-range:U+0423,U+044A-044C;font-display:swap}
@font-face{font-family:'AVPN Cyrillic Fix';src:url(assets/fonts/avpn-pixelify-cyrillic-700.woff2?v=2) format('woff2');font-weight:700;unicode-range:U+0423,U+044A-044C;font-display:swap}
.cab-body{--f-pixel:'AVPN Cyrillic Fix','Pixelify Sans','Segoe UI',system-ui,sans-serif}
.cab-body .dashboard-stats .stat .big{
  font-family:var(--f-arcade);
  font-size:clamp(26px,2.5vw,34px);
  font-weight:400;
  font-variant-numeric:tabular-nums;
  line-height:1.4;
}
.cab-body .dashboard-stats .stat .metric-unit{
  font-family:var(--f-text);
  font-size:20px;
  font-weight:600;
}
.cab-body .dashboard-stats .stat .big .metric-number{color:#fff}
.dashboard-stats>.panel>.btn[data-i18n="btn_manage"],
.dashboard-stats>.panel>#serverCheckBtn{font-family:var(--f-text);font-size:22px;font-weight:700}
.cab-body .dashboard-stats .sessions-card .metric-unit{font-family:var(--f-arcade);font-weight:400}
.cab-body .dashboard-intro h1{font-size:clamp(34px,9vw,46px);letter-spacing:.04em;line-height:1.3;overflow-wrap:anywhere}
/* PLAN_HEAD_20260926: название тарифа — тем же шрифтом, что цифры сессий и трафика;
   заголовок «С возвращением» — читаемым Handjet, как заголовки разделов */
.cab-body .dashboard-plan{font-family:var(--f-arcade);font-weight:400;font-size:clamp(20px,2vw,26px);line-height:1.4;color:#fff;overflow-wrap:normal;word-break:normal}
.cab-body .dashboard-intro h1{font-family:var(--f-text);font-weight:700;font-size:clamp(44px,6vw,64px);letter-spacing:2px;line-height:1.05;text-transform:uppercase}

/* AVATARS_20260926: выбор аватарки — при наведении слева выезжают три других */
.ava-pick{position:relative;flex:0 0 auto}
.ava-pick .ava-btn{display:block;padding:0;border:0;cursor:pointer;transition:box-shadow .12s steps(2)}
.ava-pick .ava-btn:hover,.ava-pick .ava-btn:focus-visible,.ava-pick.open .ava-btn{box-shadow:0 0 0 3px var(--gold),0 0 18px rgba(245,197,24,.55)}
.ava-menu{position:absolute;right:calc(100% + 10px);top:50%;transform:translate(8px,-50%);display:flex;gap:8px;padding:8px;background:var(--bg2);border:2px solid var(--line);box-shadow:4px 4px 0 var(--deep);opacity:0;visibility:hidden;transition:opacity .12s,transform .12s;z-index:60}
.ava-menu:before{content:"";position:absolute;left:100%;top:0;bottom:0;width:14px}
.ava-pick:hover .ava-menu,.ava-pick.open .ava-menu,.ava-pick:focus-within .ava-menu{opacity:1;visibility:visible;transform:translate(0,-50%)}
.ava-pick.below .ava-menu{right:auto;left:0;top:calc(100% + 10px);transform:translateY(-6px)}
.ava-pick.below .ava-menu:before{left:0;right:0;top:-14px;bottom:auto;width:auto;height:14px}
.ava-pick.below:hover .ava-menu,.ava-pick.below.open .ava-menu,.ava-pick.below:focus-within .ava-menu{transform:none}
.ava-opt{display:block;width:48px;height:48px;padding:0;border:0;background:#000;cursor:pointer;box-shadow:0 0 0 2px var(--line);transition:box-shadow .12s steps(2)}
.ava-opt img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.ava-opt:hover,.ava-opt:focus-visible{box-shadow:0 0 0 3px var(--red),0 0 14px rgba(255,45,59,.6)}
:root[data-theme="light"] .ava-menu{background:#fffdf5}

/* CAB_TABS_MINIAPP_20260926: вкладки кабинета как в мини-приложении — общая плашка,
   пиксельные подписи заглавными, активная вкладка красным блоком с тенью и свечением.
   На телефоне (<760px) нижняя панель уже в этом стиле — не трогаем. */
@media(min-width:760px){
 .cab-body .cab-sidebar .cabinet-tabs{gap:4px;padding:5px;background:var(--surf3);box-shadow:0 0 0 3px var(--line),0 6px 0 #0000004d}
 .cab-body .cab-sidebar .tab{min-height:48px;padding:12px;font-family:var(--f-arcade);font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--dimmer);background:transparent;box-shadow:none;transition:all .07s steps(2)}
 .cab-body .cab-sidebar .tab:hover{color:var(--ink);background:var(--surf2)}
 .cab-body .cab-sidebar .tab.on{color:#fff;background:var(--red-mid);box-shadow:0 3px 0 var(--red-deep),0 0 14px rgba(255,45,59,.4)}
 .cab-body .cab-sidebar .tab:active{transform:translateY(3px)}
 .cab-body .cab-sidebar .tab-ico{color:currentColor}
 :root[data-theme="light"] .cab-body .cab-sidebar .cabinet-tabs{background:#fffdf5}
}
/* BRAND_ALIGN_20260926: верх логотипа «Алиса VPN» на одной линии со строкой «01 / YOUR PROFILE» */
@media(min-width:900px){
 .cab-body .cab-sidebar .cab-brand{line-height:1;margin-top:-2px}
}
/* TABS_ALIGN_20260926: верх рамки вкладок на одной линии с красной линией карточки «Подписка»;
   аватар, логин и логотип не двигаются — сдвигается только блок вкладок */
@media(min-width:900px){
 .cab-body .cab-sidebar .tabs{margin-top:55px} /* сливается с margin-bottom:28px у .cab-identity: итог +27px */
}

/* CAB_HEADINGS_20260926: одинаковая высота шапок перед карточками сессий и оплаты. */
.cab-body .cab-section-head{display:flex;flex-direction:column;gap:4px;min-height:48px;margin:0 0 18px}
.cab-body .cab-section-head .h2{margin:0;line-height:1.2}
@media(max-width:759px){
 .cab-body .cab-section-head{min-height:77px}
}
/* MOBILE_TRAFFIC_UNIT_20260927 */
@media(max-width:759px){
 .cab-body .dashboard-stats .traffic-card #trafficVal{flex-direction:column;align-items:flex-start;gap:0}
}

/* CARD_BUTTON_HEIGHT_20260927 */
.cab-body .dashboard-stats>.sessions-card>.btn,
.cab-body .dashboard-stats>.traffic-card>.btn{height:48px;flex-shrink:0;box-sizing:border-box}
@media(max-width:759px){
 .cab-body .dashboard-stats>.sessions-card>.btn,
 .cab-body .dashboard-stats>.traffic-card>.btn{height:calc(2.4em + 20px)}
}

/* SUBSCRIPTION_PRICE_20260927 */
.subscription-price { color:var(--gold); margin:10px 0; overflow-wrap:anywhere; }
