/* ==========================================================
   Orvin VPN — оболочка приложения и базовые элементы.
   ========================================================== */

/* ==========================================================
   1. КАРКАС
   ========================================================== */
.app{
  display:flex;flex-direction:column;
  min-height:100vh;min-height:100dvh;
}

/* ---------- шапка ---------- */
.topbar{
  position:sticky;top:0;z-index:60;
  padding-top:var(--safe-top);
  background:rgba(5,7,11,.72);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  backdrop-filter:blur(20px) saturate(180%);
  transition:background var(--mid) var(--ease);
}
[data-theme="light"] .topbar{background:rgba(255,255,255,.78)}

.topbar-in{
  height:var(--topbar-h);
  max-width:var(--wrap);margin:0 auto;
  padding:0 var(--pad);
  display:flex;align-items:center;gap:9px;
}

/* ---------- аватар с шестерёнкой: вход в профиль ---------- */
.ava{
  position:relative;flex:0 0 auto;
  width:38px;height:38px;
  display:grid;place-items:center;
  transition:transform var(--fast) var(--ease);
}
.ava:active{transform:scale(.94)}
.ava .pic{
  width:100%;height:100%;border-radius:13px;overflow:hidden;
  display:grid;place-items:center;
  background:var(--grad-duo);
  font-family:var(--display);font-size:15px;font-weight:600;color:var(--on-accent);
  box-shadow:0 0 0 1.5px var(--line-2), 0 0 18px -8px var(--halo-2);
}
.ava .pic img{width:100%;height:100%;object-fit:cover}
/* шестерёнка сидит на рамке аватарки */
.ava .gear{
  position:absolute;right:-5px;bottom:-5px;
  width:19px;height:19px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--text);
  background:var(--void);
  box-shadow:0 0 0 1.5px var(--line-2);
}
.ava .gear svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ava:hover .gear{color:var(--accent);box-shadow:0 0 0 1.5px var(--accent)}

/* ---------- чипы в шапке: подписка и баланс ---------- */
.top-chip{
  display:inline-flex;align-items:center;gap:6px;
  height:34px;padding:0 11px;border-radius:12px;
  font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;
  background:var(--surface);border:1px solid var(--line);
  transition:background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.top-chip:active{transform:scale(.96)}
.top-chip b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.top-chip svg{width:15px;height:15px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* точка состояния подписки */
.top-chip.sub i{width:6px;height:6px;border-radius:50%;flex:0 0 auto}
.top-chip.sub.ok   i{background:var(--good);box-shadow:0 0 8px rgba(111,207,151,.6)}
.top-chip.sub.low  i{background:var(--warn);box-shadow:0 0 8px rgba(226,160,91,.6)}
.top-chip.sub.none i{background:var(--bad)}
.top-chip.sub.none{color:var(--bad);background:rgba(224,119,107,.09);border-color:rgba(224,119,107,.24)}
.top-chip.sub .unit{color:var(--dim)}

/* баланс: цифра плюс маленький «плюс» для пополнения */
.top-chip.money{margin-left:auto;color:var(--accent);padding-right:6px}
.top-chip.money .add{
  width:20px;height:20px;border-radius:7px;display:grid;place-items:center;
  background:rgba(94,231,200,.14);color:var(--accent);
}
.top-chip.money .add svg{width:12px;height:12px;stroke-width:2.4}

/* круглые кнопки в шапке */
.icon-btn{
  width:38px;height:38px;flex:0 0 auto;border-radius:12px;
  display:grid;place-items:center;position:relative;
  color:var(--muted);
  background:var(--surface);border:1px solid var(--line);
  transition:background var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.icon-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn:active{transform:scale(.94)}
.icon-btn.wide{width:auto;padding:0 11px;gap:6px;font-size:13px;font-weight:600}
.icon-btn .flag{font-size:14px;line-height:1}
/* красная точка непрочитанных */
.icon-btn .dot{
  position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:50%;
  background:var(--bad);box-shadow:0 0 0 2px var(--void);
}

/* ---------- рабочая область ---------- */
.screen{
  flex:1;width:100%;max-width:var(--wrap);margin:0 auto;
  padding:20px var(--pad) calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
  display:flex;flex-direction:column;gap:16px;
}
/* мягкое появление экрана при переходе */
.screen.enter{animation:screen-in .34s var(--ease) both}
@keyframes screen-in{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

.screen-head{display:flex;flex-direction:column;gap:4px;margin-bottom:2px}
.screen-head .sub{font-size:14px;color:var(--muted)}

/* ---------- нижнее меню ---------- */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  padding:0 10px calc(var(--safe-bottom) + 8px);
  display:flex;justify-content:center;
  pointer-events:none;
}
.tabbar-in{
  pointer-events:auto;
  width:100%;max-width:calc(var(--wrap) - 12px);
  height:var(--tabbar-h);
  display:grid;grid-template-columns:repeat(5,1fr);
  padding:6px;border-radius:var(--r-xl);
  background:var(--glass-bg);border:1px solid var(--glass-line);
  box-shadow:var(--glass-lip), var(--glass-drop);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
}
.tab{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border-radius:var(--r-md);
  font-size:10px;font-weight:600;letter-spacing:.01em;color:var(--dim);
  transition:color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.tab svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tab:active{transform:scale(.95)}
.tab[aria-current="page"]{
  color:var(--accent);
  background:linear-gradient(180deg,rgba(94,231,200,.14),rgba(94,231,200,.05));
}


/* ==========================================================
   2. КНОПКИ
   ========================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 20px;border-radius:var(--r-md);
  font-size:14.5px;font-weight:700;white-space:nowrap;
  transition:transform var(--mid) var(--ease), filter var(--mid) var(--ease),
             background var(--mid) var(--ease), color var(--mid) var(--ease);
}
.btn svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn:active{transform:scale(.975)}

.btn-primary{
  color:var(--on-accent);
  background:var(--grad-accent);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), 0 12px 30px -14px var(--halo);
}
.btn-primary:hover{filter:brightness(1.06)}

.btn-duo{
  color:#fff;
  background:var(--grad-duo);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2), 0 12px 30px -14px var(--halo-2);
}
.btn-duo:hover{filter:brightness(1.08)}

.btn-line{
  color:var(--text);background:var(--surface);
  box-shadow:inset 0 0 0 1px var(--line-2);font-weight:600;
}
.btn-line:hover{background:var(--surface-2)}

/* мягкая акцентная — заметнее контурной, но не спорит с главной кнопкой */
.btn-soft{
  color:var(--accent);
  background:rgba(94,231,200,.09);
  box-shadow:inset 0 0 0 1px rgba(94,231,200,.28);
}
.btn-soft:hover{background:rgba(94,231,200,.14)}
[data-theme="light"] .btn-soft{background:rgba(15,168,138,.08);box-shadow:inset 0 0 0 1px rgba(15,168,138,.3)}

.btn-ghost{color:var(--muted);font-weight:600}
.btn-ghost:hover{color:var(--text);background:var(--surface)}

.btn-block{width:100%}
.btn-sm{padding:9px 14px;font-size:13px;border-radius:var(--r-sm)}
.btn-lg{padding:16px 26px;font-size:15.5px;border-radius:var(--r-lg)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;pointer-events:none}

/* ==========================================================
   3. КАРТОЧКИ И ПАНЕЛИ
   ========================================================== */
.card{
  border-radius:var(--r-xl);padding:18px;
  background:var(--surface);border:1px solid var(--line);
  display:flex;flex-direction:column;gap:8px;
}
.card.glass{
  background:var(--glass-bg);border-color:var(--glass-line);
  box-shadow:var(--glass-lip);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
}
.card.tap{transition:transform var(--mid) var(--ease), border-color var(--mid) var(--ease)}
.card.tap:active{transform:scale(.985);border-color:var(--line-2)}

.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* строка «ключ — значение» */
.kv{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;
}
.kv:last-child{border-bottom:0}
.kv .k{color:var(--muted)}
.kv .v{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
.kv .v.accent{color:var(--accent)}

/* ==========================================================
   4. ПИЛЮЛИ СТАТУСОВ
   ========================================================== */
.pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:100px;white-space:nowrap;
  font-size:11.5px;font-weight:600;
}
.pill::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.pill.ok{color:var(--good);background:rgba(111,207,151,.12)}
.pill.wait{color:var(--warn);background:rgba(226,160,91,.12)}
.pill.info{color:var(--info);background:rgba(143,180,222,.12)}
.pill.bad{color:var(--bad);background:rgba(224,119,107,.13)}
.pill.off{color:var(--dim);background:var(--surface)}
.pill.accent{color:var(--accent);background:rgba(94,231,200,.12)}
.pill.plain::before{display:none}

/* ==========================================================
   5. ЗАГЛУШКА ЭКРАНА (до наполнения)
   ========================================================== */
.stub{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:56px 20px;text-align:center;
  border-radius:var(--r-xl);border:1px dashed var(--line-2);
  background:var(--surface);
}
.stub .ic{
  width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
  background:var(--surface-2);border:1px solid var(--line);color:var(--dim);
}
.stub .ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.stub h3{margin:0}
.stub p{font-size:13.5px;max-width:34ch}

/* ==========================================================
   6. ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ
   ========================================================== */
.toast{
  position:fixed;left:50%;z-index:100;
  bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 20px);
  transform:translate(-50%, 14px);
  max-width:min(360px,88vw);
  padding:12px 18px;border-radius:100px;
  font-size:13.5px;font-weight:600;text-align:center;color:var(--text);
  background:var(--glass-bg);border:1px solid var(--glass-line);
  box-shadow:var(--glass-lip), var(--glass-drop);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility var(--mid);
}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.toast.ok{color:var(--accent)}
.toast.info{color:var(--info)}
.toast.warn{color:var(--warn)}
.toast.bad{color:var(--bad)}

/* ==========================================================
   7. УЗКИЕ ЭКРАНЫ (старые и маленькие телефоны)
   ========================================================== */
@media (max-width:360px){
  :root{--pad:13px}
  .topbar-in{gap:7px}
  .top-chip{padding:0 9px;gap:5px;font-size:12.5px}
  .top-chip.sub .unit{display:none}          /* остаётся точка и число дней */
  .top-chip.sub.none .unit{display:inline}   /* но «нет подписки» показываем всегда */
  /* кнопки в две колонки: текст переносим, лишь бы не вылезал за край */
  .row2 .btn{white-space:normal;font-size:12.5px;padding:12px 8px;line-height:1.25}
  .brand .name{display:none}          /* оставляем только знак, чтобы кнопки влезли */
  .icon-btn{width:35px;height:35px}
  .tab{font-size:9px;gap:2px}
  .tab svg{width:19px;height:19px}
  .tab span{
    max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .tabbar-in{padding:5px}
}

/* ==========================================================
   8. ПОЛЯ ВВОДА
   ========================================================== */
.field{display:flex;flex-direction:column;gap:7px}
.field > label{font-size:12.5px;font-weight:600;letter-spacing:.03em;color:var(--muted)}
.input,.textarea,select.input{
  width:100%;padding:13px 15px;
  font-family:var(--body);font-size:15px;color:var(--text);
  background:var(--surface);border:1px solid var(--line-2);border-radius:var(--r-md);
  transition:border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.textarea{min-height:110px;resize:vertical;line-height:1.5}
.input::placeholder,.textarea::placeholder{color:var(--dim)}
.input:focus,.textarea:focus{
  outline:none;border-color:var(--accent);background:var(--surface-2);
  box-shadow:0 0 0 3px rgba(94,231,200,.12);
}
.input:disabled{opacity:.5}
.field .hint{font-size:12px;color:var(--dim)}
.field.bad .input{border-color:var(--bad)}
.field.bad .hint{color:var(--bad)}
.field.ok .input{border-color:var(--good)}

/* поле + кнопка в одну строку */
.input-row{display:flex;gap:8px}
.input-row .input{flex:1;min-width:0}

/* ==========================================================
   9. ЧИПЫ И СЕГМЕНТЫ
   ========================================================== */
.chips{display:flex;gap:7px;flex-wrap:wrap}
.chip{
  padding:8px 14px;border-radius:100px;white-space:nowrap;
  font-size:13px;font-weight:600;color:var(--muted);
  background:var(--surface);border:1px solid var(--line);
  transition:all var(--fast) var(--ease);
}
.chip:hover{color:var(--text);background:var(--surface-2)}
.chip[aria-pressed="true"]{
  color:var(--on-accent);background:var(--grad-accent);
  border-color:transparent;
  box-shadow:0 8px 20px -12px var(--halo);
}

/* переключатель на всю ширину: iOS / Android / Windows */
.segment{
  display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;
  padding:4px;border-radius:var(--r-md);
  background:var(--surface);border:1px solid var(--line);
}
.segment button{
  padding:9px 8px;border-radius:calc(var(--r-md) - 5px);
  font-size:13px;font-weight:600;color:var(--muted);
  transition:all var(--fast) var(--ease);
}
.segment button[aria-selected="true"]{
  color:var(--text);background:var(--surface-2);
  box-shadow:var(--glass-lip);
}

/* ==========================================================
   10. ТУМБЛЕР
   ========================================================== */
.switch{
  position:relative;flex:0 0 auto;width:50px;height:29px;border-radius:100px;
  background:var(--surface);border:1px solid var(--line-2);
  transition:background var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.switch::after{
  content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;
  background:var(--muted);
  transition:transform var(--mid) var(--ease), background var(--mid) var(--ease);
}
.switch[aria-checked="true"]{background:rgba(94,231,200,.18);border-color:rgba(94,231,200,.5)}
.switch[aria-checked="true"]::after{transform:translateX(21px);background:var(--accent)}

/* ==========================================================
   11. СПИСКИ-СТРОКИ
   ========================================================== */
.list{
  border-radius:var(--r-xl);overflow:hidden;
  background:var(--surface);border:1px solid var(--line);
}
.list-item{
  display:flex;align-items:center;gap:13px;width:100%;text-align:left;
  padding:14px 16px;border-bottom:1px solid var(--line);
  transition:background var(--fast) var(--ease);
}
.list-item:last-child{border-bottom:0}
.list-item:active{background:var(--surface-2)}
.list-item .ic{
  width:38px;height:38px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;
  background:var(--surface-2);color:var(--accent);
}
.list-item .ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.list-item .body{flex:1;min-width:0;display:block}
.list-item .t{display:block;font-size:14.5px;font-weight:600;color:var(--text);line-height:1.3}
.list-item .s{display:block;font-size:12.5px;color:var(--dim);line-height:1.35}
.list-item .end{
  margin-left:auto;flex:0 0 auto;text-align:right;
  font-size:14px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;
}
.list-item .arrow{flex:0 0 auto;color:var(--dim)}
.list-item .arrow svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ==========================================================
   12. ПОКАЗАТЕЛИ
   ========================================================== */
.stat{
  border-radius:var(--r-lg);padding:15px 16px;
  background:var(--surface);border:1px solid var(--line);
  display:flex;flex-direction:column;gap:3px;
}
.stat .k{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--dim)}
.stat .v{
  font-family:var(--display);font-size:22px;font-weight:600;letter-spacing:-.035em;
  color:var(--text);font-variant-numeric:tabular-nums;line-height:1.2;
}
.stat .v.accent{color:var(--accent)}
.stat .v.good{color:var(--good)}
.stat .d{font-size:12px;color:var(--muted)}

/* полоса заполнения */
.bar{height:7px;border-radius:100px;background:var(--surface-2);overflow:hidden}
.bar > i{
  display:block;height:100%;border-radius:100px;
  background:var(--grad-accent);
  transition:width var(--slow) var(--ease);
}
.bar.warn > i{background:linear-gradient(90deg,var(--warn),#F0C08A)}
.bar.bad  > i{background:linear-gradient(90deg,var(--bad),#F0A79C)}

/* ==========================================================
   13. ПЛАШКА-ПОДСКАЗКА
   ========================================================== */
.note{
  border-radius:var(--r-lg);padding:14px 16px;
  background:rgba(94,231,200,.07);border:1px solid rgba(94,231,200,.22);
  border-left:3px solid var(--accent);
  display:flex;flex-direction:column;gap:5px;
}
.note .t{font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--accent)}
.note p{font-size:13.5px;line-height:1.5;color:var(--muted);margin:0}
.note.warn{background:rgba(226,160,91,.08);border-color:rgba(226,160,91,.24);border-left-color:var(--warn)}
.note.warn .t{color:var(--warn)}
.note.bad{background:rgba(224,119,107,.08);border-color:rgba(224,119,107,.24);border-left-color:var(--bad)}
.note.bad .t{color:var(--bad)}

/* ==========================================================
   14. МОНОШИРИННЫЙ БЛОК (ключи, ссылки)
   ========================================================== */
.code{
  position:relative;border-radius:var(--r-md);overflow:hidden;
  background:rgba(0,0,0,.35);border:1px solid var(--line-2);
}
[data-theme="light"] .code{background:rgba(12,20,32,.05)}
.code pre{
  margin:0;padding:14px 15px;overflow-x:auto;
  font-family:var(--mono);font-size:12.5px;line-height:1.65;color:var(--muted);
  white-space:pre-wrap;word-break:break-all;
}
.code.one pre{white-space:nowrap;word-break:normal}

/* ==========================================================
   15. ЗАГРУЗКА (скелетоны)
   ========================================================== */
.sk{
  border-radius:var(--r-sm);
  background:linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 37%,var(--surface) 63%);
  background-size:400% 100%;
  animation:sk 1.4s ease-in-out infinite;
}
@keyframes sk{from{background-position:100% 50%}to{background-position:0 50%}}
.sk.line{height:13px;margin:6px 0}
.sk.title{height:22px;width:55%;margin-bottom:12px}
.sk.block{height:120px;border-radius:var(--r-xl)}

/* ==========================================================
   16. ПУСТОЕ СОСТОЯНИЕ
   ========================================================== */
.empty{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:42px 20px;text-align:center;
}
.empty .ic{
  width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
  background:var(--surface-2);border:1px solid var(--line);color:var(--dim);margin-bottom:4px;
}
.empty .ic svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.empty h3{margin:0;color:var(--text)}
.empty p{font-size:13.5px;max-width:36ch;margin:0}

/* ==========================================================
   17. ГАРМОШКА (вопрос-ответ)
   ========================================================== */
.acc{display:flex;flex-direction:column;gap:9px}
.acc details{
  border-radius:var(--r-lg);overflow:hidden;
  background:var(--surface);border:1px solid var(--line);
  transition:border-color var(--mid) var(--ease), background var(--mid) var(--ease);
}
.acc details[open]{background:var(--surface-2);border-color:var(--line-2)}
.acc summary{
  list-style:none;cursor:pointer;padding:15px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  font-size:14.5px;font-weight:600;color:var(--text);
}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{
  content:"";flex:0 0 auto;width:8px;height:8px;
  border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);
  transform:rotate(45deg) translate(-2px,-2px);
  transition:transform var(--mid) var(--ease);
}
.acc details[open] summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.acc .a{padding:0 16px 16px;font-size:13.8px;line-height:1.6;color:var(--muted)}

/* ==========================================================
   18. ШАГИ ИНСТРУКЦИИ
   ========================================================== */
.steps{display:flex;flex-direction:column;gap:2px;counter-reset:step}
.step{display:flex;gap:13px;padding:2px 0}
.step .n{
  counter-increment:step;flex:0 0 auto;
  width:26px;height:26px;border-radius:9px;display:grid;place-items:center;
  font-size:12px;font-weight:700;color:var(--accent);
  background:rgba(94,231,200,.12);border:1px solid rgba(94,231,200,.25);
}
.step .n::before{content:counter(step)}
.step .c{flex:1;padding-bottom:16px;position:relative}
.step:not(:last-child) .c::before{
  content:"";position:absolute;left:-26px;top:2px;bottom:-2px;width:1px;background:var(--line);
}
.step .t{display:block;font-size:14px;font-weight:600;color:var(--text);margin-bottom:3px}
.step .d{display:block;font-size:13px;color:var(--muted);line-height:1.5}


/* ==========================================================
   20. ПАНЕЛЬ СНИЗУ И ДИАЛОГ
   Панель снизу — привычный для телефона способ показать
   подробности, не уходя с экрана.
   ========================================================== */
.veil{
  position:fixed;inset:0;z-index:90;
  background:rgba(2,4,8,.62);
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  opacity:0;visibility:hidden;
  transition:opacity var(--mid) var(--ease), visibility var(--mid);
}
.veil.open{opacity:1;visibility:visible}

.sheet{
  position:fixed;left:0;right:0;bottom:0;z-index:95;
  max-height:92vh;max-height:92dvh;
  display:flex;flex-direction:column;
  padding:10px 0 calc(var(--safe-bottom) + 18px);
  border-radius:var(--r-2xl) var(--r-2xl) 0 0;
  background:var(--glass-bg);border:1px solid var(--glass-line);border-bottom:0;
  box-shadow:var(--glass-lip), 0 -20px 60px -20px rgba(0,0,0,.8);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
  transform:translateY(102%);
  transition:transform var(--slow) var(--ease);
}
.sheet.open{transform:none}
.sheet .grab{
  width:38px;height:4px;border-radius:100px;margin:0 auto 12px;
  background:var(--line-2);flex:0 0 auto;
}
.sheet-head{
  display:flex;align-items:flex-start;gap:12px;
  padding:0 18px 12px;flex:0 0 auto;
}
.sheet-head h2{margin:0;flex:1}
.sheet-head .sub{font-size:13px;color:var(--muted);margin-top:3px}
.sheet-body{
  padding:4px 18px 0;overflow-y:auto;
  display:flex;flex-direction:column;gap:12px;
}
.sheet-foot{padding:14px 18px 0;display:flex;flex-direction:column;gap:7px;flex:0 0 auto}

/* диалог по центру — для коротких вопросов «точно?» */
.modal{
  position:fixed;left:50%;top:50%;z-index:95;
  width:min(400px,90vw);
  transform:translate(-50%,-46%) scale(.96);
  padding:22px;border-radius:var(--r-2xl);
  background:var(--glass-bg);border:1px solid var(--glass-line);
  box-shadow:var(--glass-lip), var(--glass-drop);
  -webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);
  display:flex;flex-direction:column;gap:14px;
  opacity:0;visibility:hidden;
  transition:opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility var(--mid);
}
.modal.open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.modal h2{margin:0}
.modal p{font-size:14px;line-height:1.55;margin:0}
.modal .acts{display:flex;flex-direction:column;gap:8px}

/* значок сверху панели — крупная иконка в кружке */
.sheet-icon{
  width:52px;height:52px;flex:0 0 auto;border-radius:17px;display:grid;place-items:center;
  background:rgba(94,231,200,.12);border:1px solid rgba(94,231,200,.26);color:var(--accent);
}
.sheet-icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sheet-icon.duo{background:rgba(124,108,255,.13);border-color:rgba(124,108,255,.3);color:var(--accent-2)}
.sheet-icon.warn{background:rgba(226,160,91,.12);border-color:rgba(226,160,91,.28);color:var(--warn)}

/* ==========================================================
   21. КОЛЬЦО ОСТАТКА
   ========================================================== */
.ring{position:relative;width:112px;height:112px;flex:0 0 auto}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:8;stroke-linecap:round}
.ring .track{stroke:var(--surface-2)}
.ring .fill{
  stroke:url(#ring-grad);
  transition:stroke-dashoffset 1s var(--ease);
}
.ring .mid{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1px;text-align:center;
}
.ring .mid .v{
  font-family:var(--display);font-size:27px;font-weight:600;letter-spacing:-.04em;
  color:var(--text);line-height:1;font-variant-numeric:tabular-nums;
}
.ring .mid .k{font-size:11px;color:var(--dim)}

/* ==========================================================
   22. МЕЛОЧИ
   ========================================================== */
.badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px;border-radius:8px;
  font-size:11px;font-weight:700;letter-spacing:.02em;
  color:var(--accent);background:rgba(94,231,200,.12);
}
.badge.hot{color:var(--accent-2);background:rgba(124,108,255,.14)}
.badge.sale{color:var(--warn);background:rgba(226,160,91,.14)}

.divider{height:1px;background:var(--line);margin:2px 0}
.center{text-align:center}
.mt-a{margin-top:auto}
.gap-sm{gap:8px}
.stack{display:flex;flex-direction:column;gap:12px}
.inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}
