/* NotBadCloud design system (nbc) — dark premium UI kit for the client cabinet 2.0.
   Source of truth for colours/radii: billdesign/nbc_assets_v2/notbadcloud_design_pack/tokens.json.
   Every class is prefixed .nbc- so it never collides with BILLmanager (dragon) styles. */

/* brand fonts (landing notbad.cloud files; -s1 = Latin + Cyrillic subset, rename on every change: served immutable) */
@font-face { font-family: "SF-Pro-Display-Regular"; src: url("/nb/static/fonts/SF-Pro-Display-Regular-s1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Headings and KPI values: Inter (owner choice 2026-11-10, replaced Bounded) */
@font-face { font-family: "Inter"; src: url("/nb/static/fonts/Inter-Variable-s1.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bounded"; src: url("/nb/static/fonts/Bounded-Variable-s1.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --nbc-bg: #080f1d;
  --nbc-bg-2: #0b1423;
  --nbc-sidebar: #0b1423;
  --nbc-surface: #101c30;
  --nbc-surface-2: #0d182a;
  --nbc-raised: #17243a;
  --nbc-border: #23324a;
  --nbc-border-2: #2e4059;
  --nbc-text: #f7f9ff;
  --nbc-text-2: #c4d0e4;
  --nbc-muted: #98a9c3;
  --nbc-primary: #376bff;
  --nbc-primary-hover: #2557e5;
  --nbc-primary-soft: rgba(55, 107, 255, .16);
  --nbc-link: #6d9bff;
  --nbc-success: #33d88c;
  --nbc-success-bg: #113e32;
  --nbc-warning: #ffaf57;
  --nbc-warning-bg: #483021;
  --nbc-danger: #ff6b6b;
  --nbc-danger-bg: #4a1f27;
  --nbc-r-sm: 10px;
  --nbc-r-md: 16px;
  --nbc-r-lg: 24px;
  --nbc-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  --nbc-glow: 0 0 0 1px rgba(80, 130, 255, .25), 0 8px 30px rgba(55, 107, 255, .18);
  --nbc-font: "SF-Pro-Display-Regular", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nbc-font-display: "Inter", "SF-Pro-Display-Regular", system-ui, sans-serif;
  --nbc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
.nbc-app { margin: 0; background: radial-gradient(1200px 600px at 75% -10%, #12234a 0%, transparent 60%), var(--nbc-bg);
  color: var(--nbc-text); font: 14px/1.45 var(--nbc-font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
.nbc-app *, .nbc-app *::before, .nbc-app *::after { box-sizing: border-box; }
.nbc-app a { color: inherit; text-decoration: none; }
.nbc-app h1, .nbc-app h2, .nbc-app h3 { margin: 0; letter-spacing: -.02em; font-family: var(--nbc-font-display); font-weight: 700; }
.nbc-brand, .nbc-kpi-value { font-family: var(--nbc-font-display); }
.nbc-app button { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; cursor: pointer; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.nbc-muted { color: var(--nbc-muted); }
.nbc-small { font-size: 12px; }
.nbc-sub { color: var(--nbc-muted); font-size: 12px; margin-top: 4px; }
.nbc-end { margin-left: auto; }

/* ---------- buttons ---------- */
.nbc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #4277ff, var(--nbc-primary)); color: #fff !important; padding: 11px 18px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(55, 107, 255, .35); transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.nbc-btn:hover { background: var(--nbc-primary-hover); transform: translateY(-1px); }
.nbc-btn:focus-visible, .nbc-iconbtn:focus-visible, .nbc-nav:focus-visible { outline: 2px solid var(--nbc-link); outline-offset: 2px; }
.nbc-btn .i { width: 18px; height: 18px; }
.nbc-btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.nbc-btn-secondary { background: var(--nbc-raised); border: 1px solid var(--nbc-border-2); box-shadow: none; }
.nbc-btn-secondary:hover { background: #1d2d48; }
.nbc-btn-danger { background: #c53c4a; box-shadow: none; }
.nbc-iconbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px;
  background: var(--nbc-raised); border: 1px solid var(--nbc-border); color: var(--nbc-text); }
.nbc-iconbtn:hover { border-color: var(--nbc-border-2); background: #1b2a43; }
.nbc-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--nbc-primary);
  box-shadow: 0 0 0 3px var(--nbc-raised); }
.nbc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(145deg, #5163ec, #3446c4); }
.nbc-link { color: var(--nbc-link) !important; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.nbc-link .i { width: 16px; height: 16px; }
.nbc-link:hover { color: #9dbbff !important; }

/* ---------- chips, badges, statuses ---------- */
.nbc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--nbc-raised); border: 1px solid var(--nbc-border-2); color: var(--nbc-text-2); }
.nbc-chip.is-active { background: var(--nbc-primary-soft); border-color: #3b5fbf; color: #fff; }
.nbc-badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; background: var(--nbc-primary); color: #fff; }
.nbc-badge.is-beta { background: #2a2f63; color: #b9c4ff; }
.nbc-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--nbc-primary); color: #fff; font-size: 11px; text-align: center; }
.nbc-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; font-weight: 600; border-radius: 20px;
  background: var(--nbc-success-bg); color: #99f3cd; white-space: nowrap; }
.nbc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--nbc-success); box-shadow: 0 0 6px var(--nbc-success); }
.nbc-status.is-warn { background: var(--nbc-warning-bg); color: #ffc58e; }
.nbc-status.is-warn::before { background: var(--nbc-warning); box-shadow: none; }
.nbc-status.is-error { background: var(--nbc-danger-bg); color: #ffb0b0; }
.nbc-status.is-error::before { background: var(--nbc-danger); }
.nbc-loc { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.nbc-loc img { width: 20px; height: 20px; border-radius: 50%; }

/* ---------- cards & modules ---------- */
.nbc-card { border: 1px solid var(--nbc-border); background: linear-gradient(155deg, var(--nbc-surface), var(--nbc-surface-2));
  border-radius: var(--nbc-r-md); box-shadow: var(--nbc-shadow); }
a.nbc-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.nbc-card:hover { border-color: #35507e; box-shadow: var(--nbc-glow); transform: translateY(-1px); }
.nbc-module { padding: 22px; min-width: 0; }
.nbc-module-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.nbc-module-head h2 { font-size: 19px; }
.nbc-iconbox { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex: none; border-radius: 13px;
  background: linear-gradient(145deg, #2c3f60, #18263d); color: #e6edff; border: 1px solid rgba(255, 255, 255, .05); }
.nbc-iconbox-sm { width: 38px; height: 38px; border-radius: 11px; }
.nbc-iconbox-sm .i { width: 18px; height: 18px; }
.nbc-iconbox-lg { width: 54px; height: 54px; border-radius: 14px; }
.nbc-iconbox-lg .i { width: 26px; height: 26px; }

/* ---------- KPI ---------- */
.nbc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.nbc-kpi { min-height: 108px; padding: 18px; display: flex; align-items: center; gap: 15px; }
.nbc-kpi > div { min-width: 0; }
.nbc-kpi .nbc-btn { margin-left: auto; }
.nbc-kpi-name { font-size: 13px; color: var(--nbc-text-2); margin-bottom: 4px; }
.nbc-kpi-value { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.nbc-kpi-value.is-negative { color: var(--nbc-warning); }
.nbc-kpi-sub { font-size: 12px; color: var(--nbc-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tables ---------- */
.nbc-table { width: 100%; border-collapse: collapse; text-align: left; }
.nbc-table th { font-size: 11px; font-weight: 500; color: var(--nbc-muted); padding: 10px 8px; border-bottom: 1px solid var(--nbc-border); }
.nbc-table td { padding: 14px 8px; border-bottom: 1px solid var(--nbc-border); font-size: 13px; vertical-align: middle; }
.nbc-table tbody tr:last-child td { border-bottom: 0; }
.nbc-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.nbc-server { display: flex; gap: 11px; align-items: center; min-width: 0; }
.nbc-server-name { font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbc-copy { background: none; border: 0; padding: 0; color: var(--nbc-muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.nbc-copy .i { width: 13px; height: 13px; opacity: .7; }
.nbc-copy:hover { color: var(--nbc-text); }
.nbc-copy.is-copied::after { content: attr(data-copied); color: var(--nbc-success); margin-left: 6px; }
.nbc-cpu { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.nbc-spark { width: 64px; height: 24px; }
.nbc-spark polyline { fill: none; stroke: #4c82ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- tabs & forms ---------- */
.nbc-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #141f32; border: 1px solid var(--nbc-border); border-radius: 11px; }
.nbc-tabs button { border: 0; background: transparent; color: var(--nbc-text-2); border-radius: 8px; padding: 7px 11px; font-size: 12px; font-weight: 600; }
.nbc-tabs button.is-active { background: var(--nbc-primary); color: #fff; }
.nbc-field { display: flex; flex-direction: column; gap: 7px; }
.nbc-field label { font-size: 12px; font-weight: 700; color: var(--nbc-text-2); }
.nbc-input, .nbc-select { width: 100%; min-width: 0; background: #0b1527; color: var(--nbc-text); border: 1px solid var(--nbc-border-2);
  border-radius: var(--nbc-r-sm); padding: 11px 12px; font: inherit; }
.nbc-input:focus, .nbc-select:focus { outline: none; border-color: var(--nbc-primary); box-shadow: 0 0 0 3px var(--nbc-primary-soft); }
.nbc-terminal { background: #060c18; border: 1px solid var(--nbc-border); border-radius: var(--nbc-r-md); padding: 18px; color: #cfe0ff;
  font: 13px/1.7 var(--nbc-mono); white-space: pre-wrap; min-height: 200px; overflow: auto; }

/* ---------- chart, tiles, progress ---------- */
.nbc-chart-label { color: var(--nbc-text-2); font-size: 13px; margin: 0 0 8px; }
.nbc-chart { height: 190px; position: relative; }
.nbc-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nbc-chart .grid line { stroke: #26344c; stroke-width: 1; }
.nbc-chart .axis text { fill: #8ea2c0; font-size: 11px; }
.nbc-chart .line { fill: none; stroke: #4c82ff; stroke-width: 2.5; stroke-linejoin: round; }
.nbc-chart .bar { fill: #3d6ff5; }
.nbc-chart .hover-dot { fill: #fff; stroke: #4c82ff; stroke-width: 2; }
.nbc-chart-tip { position: absolute; pointer-events: none; background: #1a2944; border: 1px solid var(--nbc-border-2); border-radius: 8px;
  padding: 5px 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); }
.nbc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.nbc-tile { border: 1px solid var(--nbc-border); background: var(--nbc-raised); border-radius: 12px; padding: 14px; }
.nbc-tile strong { display: block; font-size: 17px; margin: 6px 0 8px; }
.nbc-progress { height: 8px; background: #28344a; border-radius: 20px; overflow: hidden; }
.nbc-progress span { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #3a6cff, #6d9bff); }

/* ---------- events, notices, empty states ---------- */
.nbc-events { list-style: none; margin: 0; padding: 0; }
.nbc-events li { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--nbc-border); padding: 11px 2px; font-size: 13px; }
.nbc-events li:first-child { border-top: 0; }
.nbc-ev { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--nbc-raised); color: var(--nbc-text-2); }
.nbc-ev .i { width: 16px; height: 16px; }
.nbc-ev-pay, .nbc-ev-open { color: var(--nbc-success); background: rgba(51, 216, 140, .1); }
.nbc-ev-ticket { color: #9dbbff; background: var(--nbc-primary-soft); }
.nbc-ev-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbc-events time { color: var(--nbc-muted); font-size: 12px; white-space: nowrap; }
.nbc-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 13px;
  background: var(--nbc-primary-soft); border: 1px solid #2b4a96; color: var(--nbc-text-2); }
.nbc-notice .i { color: var(--nbc-link); }
.nbc-notice.is-warn { background: rgba(255, 175, 87, .1); border-color: #6a4a26; }
.nbc-notice.is-error { background: rgba(255, 107, 107, .1); border-color: #6d2e36; }
.nbc-empty { text-align: center; padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nbc-empty h3 { font-size: 17px; }
.nbc-empty p { color: var(--nbc-muted); margin: 0 0 6px; max-width: 360px; }
.nbc-empty-sm { padding: 34px 16px; }
.nbc-skeleton { background: linear-gradient(90deg, #15223a 25%, #1d2d4a 50%, #15223a 75%); background-size: 200% 100%;
  animation: nbc-shimmer 1.4s infinite; border-radius: 8px; min-height: 14px; }
@keyframes nbc-shimmer { to { background-position: -200% 0; } }

/* ---------- shell ---------- */
.nbc-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.nbc-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 22px 14px;
  background: linear-gradient(160deg, #101a2a, #0a1424 50%, #0b1628); border-right: 1px solid var(--nbc-border); }
.nbc-brand { display: flex; align-items: center; gap: 9px; padding: 6px 12px 26px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.nbc-brand img { width: 40px; height: 32px; }
.nbc-nav { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin: 2px 0; border-radius: 11px; color: #d5deef;
  font-weight: 600; font-size: 14px; transition: background .12s; }
.nbc-nav .i { opacity: .8; }
.nbc-nav:hover { background: #17253d; }
.nbc-nav.is-active { background: linear-gradient(100deg, #24448e, #1c305d); color: #fff; box-shadow: inset 0 0 0 1px rgba(110, 150, 255, .25); }
.nbc-nav.is-active .i { opacity: 1; }
.nbc-nav-muted { color: var(--nbc-muted); font-size: 13px; }
.nbc-nav-section { color: #7f90ab; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 18px 13px 8px; }
.nbc-sidebar-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--nbc-border); }
.nbc-main { padding: 28px 32px 48px; width: 100%; max-width: 1640px; margin: 0 auto; }
.nbc-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; }
.nbc-topbar h1 { font-size: 30px; margin-bottom: 4px; }
.nbc-topbar p { margin: 0; color: var(--nbc-text-2); }
.nbc-topbar-actions { display: flex; align-items: center; gap: 12px; }
.nbc-mobilebar { display: none; }
.nbc-footnote { color: #7385a3; font-size: 11px; margin: 18px 0 0; }
.nbc-footnote a { color: var(--nbc-link); }

/* ---------- dashboard layout ---------- */
.nbc-grid-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-bottom: 18px; }
.nbc-grid-bottom { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 18px; }
.nbc-feature h3 { font-size: 22px; margin: 16px 0 8px; }
.nbc-feature p { color: var(--nbc-text-2); margin: 0 0 14px; font-size: 13px; }
.nbc-locrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 11px; font-size: 13px; font-weight: 600;
  background: var(--nbc-raised); border: 1px solid var(--nbc-border-2); }
.nbc-locrow img { width: 22px; height: 22px; border-radius: 50%; }
.nbc-locrow span { margin-left: auto; color: #95b3ff; font-size: 11px; }
.nbc-locrow:hover { border-color: #4a6bb3; background: #1b2b47; }
.nbc-tools { position: relative; display: grid; gap: 12px; align-content: start; }
.nbc-tool { display: flex; align-items: center; gap: 14px; padding: 16px; position: relative; z-index: 1; }
.nbc-tool h3 { font-size: 16px; }
.nbc-tool p { margin: 3px 0 0; color: var(--nbc-muted); font-size: 12px; }
.nbc-tool > .i { margin-left: auto; color: var(--nbc-link); }
.nbc-tool .nbc-iconbox { width: 44px; height: 44px; }
.nbc-wave { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; opacity: .5; pointer-events: none; }
.nbc-stack { display: grid; gap: 16px; align-content: start; }
.nbc-telegram { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(125deg, #102c2f, #0f252c); border-color: #1c5556; }
.nbc-telegram .nbc-iconbox { background: #15604e; border-color: transparent; }
.nbc-telegram p { margin: 3px 0 0; font-size: 12px; color: #b7d4ce; }
.nbc-telegram .nbc-ok { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1b7a5f; color: #fff; flex: none; }
.nbc-telegram.is-off { background: linear-gradient(125deg, #12203d, #0f1a30); border-color: #2b4a96; }
.nbc-telegram.is-off .nbc-iconbox { background: #23408a; }
.nbc-telegram.is-off p { color: var(--nbc-text-2); }
.nbc-telegram .nbc-btn { margin-left: auto; }
.nbc-slot { max-width: 760px; }
.nbc-slot h2 { font-size: 24px; margin: 16px 0 8px; }
.nbc-checklist { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.nbc-checklist li { display: flex; gap: 10px; align-items: center; }
.nbc-checklist .i { color: var(--nbc-success); width: 18px; height: 18px; }
.nbc-center { min-height: 100vh; display: grid; place-items: center; padding: 20px; text-align: center; }
.nbc-center .nbc-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ---------- responsive ---------- */
/* compact KPI cards (v2) fit four in a row down to ~1150 px */
@media (max-width: 1150px) { .nbc-kpis, .nbc-pageskel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1400px) {
  .nbc-grid-main { grid-template-columns: 1fr; }
  .nbc-grid-bottom { grid-template-columns: 1fr 1fr; }
  .nbc-stack { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nbc-shell { display: block; }
  .nbc-sidebar { display: none; position: fixed; inset: 64px 0 0 0; z-index: 20; height: auto; }
  .nbc-sidebar.is-open { display: flex; }
  .nbc-sidebar > .nbc-brand { display: none; }
  .nbc-mobilebar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; position: sticky; top: 0; z-index: 21;
    background: #0c1727; border-bottom: 1px solid var(--nbc-border); }
  .nbc-mobilebar .nbc-brand { padding: 0; font-size: 18px; }
  .nbc-main { padding: 20px 16px 40px; }
  .nbc-grid-bottom, .nbc-stack { grid-template-columns: 1fr; }
  .nbc-stack { grid-column: auto; }
  .nbc-topbar h1 { font-size: 24px; }
}
@media (max-width: 600px) {
  .nbc-kpis { gap: 10px; }
  .nbc-kpi { padding: 13px; min-height: 92px; flex-wrap: wrap; gap: 8px; }
  .nbc-kpi .nbc-iconbox { display: none; }
  .nbc-kpi .nbc-btn { margin-left: 0; }
  .nbc-kpi-value { font-size: 21px; }
  .nbc-topbar-actions .nbc-btn { display: none; }
  .nbc-hide-sm { display: none; }
  .nbc-server .nbc-iconbox { display: none; }
  .nbc-server-name { max-width: 140px; }
  .nbc-tiles { grid-template-columns: 1fr; }
  .nbc-module { padding: 16px; }
}
.nbc-more { margin-top: 12px; }
.nbc-kpi-value { white-space: nowrap; }
@media (min-width: 1401px) and (max-width: 1700px) { .nbc-kpi-value { font-size: 23px; } }
.nbc-tabs button { white-space: nowrap; }
@media (max-width: 600px) {
  .nbc-module-head { flex-wrap: wrap; }
  .nbc-module-head .nbc-tabs { margin-left: 0; }
  .nbc-table th, .nbc-table td { padding: 12px 4px; }
  .nbc-server-name { max-width: 118px; }
  .nbc-status { padding: 5px 8px; }
  .nbc-topbar h1 { font-size: 22px; }
}
.nbc-frame-wrap { border: 1px solid var(--nbc-border); border-radius: var(--nbc-r-md); overflow: hidden; background: var(--nbc-bg); }
.nbc-frame { display: block; width: 100%; min-height: 400px; border: 0; transition: opacity .18s ease; }
/* embedded slot page: loads invisible under a skeleton of its layout, shown in one step when its data is in */
.nbc-frame-wrap { position: relative; }
.nbc-frame-wrap.is-loading .nbc-frame { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.nbc-frame-wrap:not(.is-loading) .nbc-frame-skel { display: none; }
.nbc-frame-skel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 0 0 8px; }
.nbc-skel-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--nbc-border); border-radius: var(--nbc-r-md);
  background: var(--nbc-surface); min-height: 230px; }
.nbc-skel-card .nbc-skeleton { display: block; height: 14px; border-radius: 6px; }
.nbc-skel-card .nbc-skel-h { height: 20px; width: 45%; margin-bottom: 6px; }
.nbc-skel-card .nbc-skel-short { width: 60%; }
.nbc-skel-card .nbc-skel-btn { height: 38px; width: 160px; border-radius: 10px; margin-top: auto; }
.nbc-skel-wide { grid-column: 1 / -1; min-height: 170px; }
@media (max-width: 820px) { .nbc-frame-skel { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.nbc-preview { margin: -8px 0 20px; }
.nbc-kpi { flex-wrap: wrap; row-gap: 10px; } .nbc-kpi > div { min-width: 0; }

/* ---------- section pages ---------- */
.nbc-table-scroll { overflow-x: auto; margin: 0 -4px; }
.nbc-actions { text-align: right; white-space: nowrap; }
.nbc-actions .nbc-btn + .nbc-btn { margin-left: 6px; }
.nbc-iconbtn-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; line-height: 1; }
.nbc-menu { position: relative; display: inline-block; }
.nbc-menu > summary { list-style: none; cursor: pointer; }
.nbc-menu > summary::-webkit-details-marker { display: none; }
.nbc-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; display: grid; gap: 2px;
  background: #13213a; border: 1px solid var(--nbc-border-2); border-radius: 12px; box-shadow: var(--nbc-shadow); text-align: left; }
.nbc-menu-list a, .nbc-menu-list button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: none; border: 0;
  color: var(--nbc-text); font-size: 13px; text-align: left; width: 100%; }
.nbc-menu-list a:hover, .nbc-menu-list button:hover { background: #1d2d48; }
.nbc-menu-list .i { width: 16px; height: 16px; color: var(--nbc-link); }
.nbc-menu-list button:disabled { opacity: .5; cursor: wait; }
.nbc-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 380px; padding: 14px 16px; border-radius: 12px;
  background: #123a2e; border: 1px solid #1f6b52; color: #c9f5e2; box-shadow: var(--nbc-shadow); font-size: 13px; }
.nbc-toast.is-error { background: #3d1c24; border-color: #7a2e3a; color: #ffd0d0; }
.nbc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nbc-chip img { width: 16px; height: 16px; border-radius: 50%; }
.nbc-chart-lg { height: 300px; }
.nbc-tabs button:disabled { opacity: .35; cursor: default; }
.nbc-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nbc-stack-1 { grid-template-columns: 1fr !important; grid-column: auto !important; }
.nbc-tickets a { display: flex; align-items: center; gap: 12px; width: 100%; }
.nbc-tickets a:hover .nbc-ev-text { color: #9dbbff; }
.nbc-tickets .nbc-ev-text .nbc-sub { display: block; margin-top: 2px; }
.nbc-nowrap { white-space: nowrap; }
.nbc-status.is-muted { background: #1b2840; color: var(--nbc-muted); }
.nbc-status.is-muted::before { background: var(--nbc-muted); box-shadow: none; }
@media (max-width: 1000px) { .nbc-kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nbc-kpis-3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .nbc-chart-lg { height: 220px; }
  .nbc-tickets .nbc-status, .nbc-tickets time { display: none; }
  .nbc-menu-list { min-width: 220px; }
}
@media (max-width: 760px) {
  .nbc-table-cards thead { display: none; }
  .nbc-table-cards, .nbc-table-cards tbody { display: block; }
  .nbc-table-cards tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--nbc-border); }
  .nbc-table-cards tbody tr:last-child { border-bottom: 0; }
  .nbc-table-cards td { display: block; padding: 0; border: 0 !important; }
  .nbc-table-cards td:first-child { grid-column: 1 / -1; }
  .nbc-table-cards td.nbc-actions { grid-column: 1 / -1; text-align: left; }
  .nbc-table-cards .nbc-hide-sm { display: none; }
  .nbc-table-cards .nbc-server-name { max-width: 260px; }
  .nbc-menu-list { left: 0; right: auto; }
}

.nbc-slot-wide { max-width: none; }

/* ---------- BILLmanager forms in the new design ---------- */
.nbc-form-card { max-width: 860px; }
.nbc-form { display: grid; gap: 16px; margin-top: 16px; }
.nbc-form.is-busy { pointer-events: none; }
.nbc-form [data-nbc-fields] { display: grid; gap: 16px; }
.nbc-form-section { font-size: 16px; margin: 8px 0 -4px; color: var(--nbc-text-2); }
.nbc-form-text { color: var(--nbc-text); font-size: 14px; }
.nbc-req { color: var(--nbc-warning); }
.nbc-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.nbc-form textarea.nbc-input { resize: vertical; font-family: inherit; }
.nbc-input[readonly] { background: #0f1a2e; color: var(--nbc-text-2); }
.nbc-radios { display: grid; gap: 8px; }
.nbc-radio { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--nbc-border-2);
  background: #0b1527; cursor: pointer; font-size: 13px; }
.nbc-radio:has(input:checked) { border-color: var(--nbc-primary); background: var(--nbc-primary-soft); }
.nbc-radio input { accent-color: var(--nbc-primary); }
.nbc-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.nbc-switch input { opacity: 0; width: 0; height: 0; }
.nbc-switch span { position: absolute; inset: 0; border-radius: 24px; background: #28344a; transition: .15s; cursor: pointer; }
.nbc-switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; }
.nbc-switch input:checked + span { background: var(--nbc-primary); }
.nbc-switch input:checked + span::before { transform: translateX(20px); }
.nbc-flash { margin: -8px 0 18px; }
.nbc-notice.is-error { color: #ffd0d0; }
.nbc-mt { margin-top: 14px; }
.nbc-form-card > .nbc-link .i, .nbc-module > .nbc-link .i { width: 16px; height: 16px; }
.nbc-thread { display: grid; gap: 12px; margin: 6px 0 18px; }
.nbc-msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; background: var(--nbc-raised); border: 1px solid var(--nbc-border); }
.nbc-msg.is-mine { margin-left: auto; background: #172c57; border-color: #2b4a96; }
.nbc-msg-head { display: flex; gap: 10px; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.nbc-msg-head time { color: var(--nbc-muted); }
.nbc-msg-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.nbc-methods .nbc-radio span { display: grid; gap: 2px; }
.nbc-rows { display: grid; gap: 10px; }
.nbc-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 14px; border-radius: 12px;
  border: 1px solid var(--nbc-border); background: var(--nbc-raised); }
.nbc-row-text { white-space: pre-line; font-size: 13px; color: var(--nbc-text-2); }
.nbc-row-price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.nbc-row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.nbc-row-actions:empty { display: none; }
.nbc-input-sm { width: auto; min-width: 160px; padding: 8px 10px; }

/* ---------- auth: login, registration, recovery ---------- */
.nbc-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 18px; }
.nbc-auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--nbc-font-display); font-weight: 800; font-size: 24px; }
.nbc-auth-brand img { width: 46px; height: 37px; }
.nbc-auth-card { width: 100%; max-width: 440px; padding: 30px; }
.nbc-auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.nbc-auth-card > p { margin: 0 0 18px; font-size: 13px; }
.nbc-auth-card .nbc-notice { margin-bottom: 14px; }
.nbc-btn-wide { width: 100%; padding: 13px 18px; }
.nbc-auth-links { display: flex; justify-content: space-between; margin-top: 16px; }
.nbc-center-text { text-align: center; }

/* ---------- order ---------- */
.nbc-order-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 8px 0; }
.nbc-order-row .nbc-chips { margin: 0; }
.nbc-order-label { color: var(--nbc-muted); font-size: 13px; }
.nbc-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--nbc-text-2); }
.nbc-tab .i { width: 16px; height: 16px; }
.nbc-tab.is-active { background: var(--nbc-primary); color: #fff; }
.nbc-tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.nbc-tariff { padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, box-shadow .15s; }
.nbc-tariff:hover { border-color: #35507e; box-shadow: var(--nbc-glow); }
.nbc-tariff h3 { font-size: 17px; }
.nbc-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--nbc-text-2); }
.nbc-specs li { display: flex; gap: 8px; align-items: center; }
.nbc-specs .i { width: 15px; height: 15px; color: var(--nbc-success); }
.nbc-tariff-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--nbc-border); }
.nbc-tariff-price { font-family: var(--nbc-font-display); font-size: 17px; }
@media (max-width: 600px) { .nbc-order-row { grid-template-columns: 1fr; gap: 6px; } }
.nbc-app h1, .nbc-app h2, .nbc-app h3 { font-weight: 600; }
.nbc-topbar h1 { font-size: 26px; }
.nbc-tariff h3 { font-size: 16px; line-height: 1.3; }
.nbc-tariff-price { font-size: 16px; white-space: nowrap; }
.nbc-menu-list form { margin: 0; }
.nbc-c-green { background: var(--nbc-success-bg); color: #99f3cd; }
.nbc-c-yellow, .nbc-c-orange { background: var(--nbc-warning-bg); color: #ffc58e; }
.nbc-c-yellow::before, .nbc-c-orange::before { background: var(--nbc-warning); box-shadow: none; }
.nbc-c-red { background: var(--nbc-danger-bg); color: #ffb0b0; }
.nbc-c-red::before { background: var(--nbc-danger); }
.nbc-c-grey, .nbc-c-gray { background: #1b2840; color: var(--nbc-muted); }
.nbc-c-grey::before, .nbc-c-gray::before { background: var(--nbc-muted); box-shadow: none; }
.nbc-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.nbc-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nbc-files .i { width: 14px; height: 14px; }
.nbc-rate { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--nbc-muted); }
.nbc-rate form { margin: 0; }
.nbc-danger-text { color: #ffb0b0 !important; }
.nbc-danger-text .i { color: var(--nbc-danger) !important; }
.nbc-module-head form { margin: 0; }
/* Telegram Mini App: no sticky desktop chrome, safe areas */
.nbc-tg .nbc-beta-note { display: none; }
.nbc-tg .nbc-main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

/* ---------- QA 2026-11-10: mobile / Mini App fixes ---------- */
.nbc-main { min-width: 0; overflow-wrap: anywhere; }
.nbc-topbar { flex-wrap: wrap; }
.nbc-topbar > div:first-child { min-width: 0; flex: 1 1 200px; }
.nbc-topbar h1 { overflow-wrap: anywhere; }
.nbc-form-card, .nbc-field, .nbc-radios, .nbc-row { min-width: 0; }
.nbc-form-text, .nbc-row-text, .nbc-radio span, .nbc-table td { overflow-wrap: anywhere; word-break: break-word; }
.nbc-table td { white-space: normal; }
.nbc-menu-list { max-height: min(60vh, 460px); overflow-y: auto; background: #13213a; }
.nbc-menu[open] > summary { background: #1d2d48; border-color: var(--nbc-border-2); }
.nbc-archive { margin-top: 16px; }
.nbc-archive > summary { cursor: pointer; color: var(--nbc-muted); font-size: 13px; padding: 10px 0; }
.nbc-file { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; }
.nbc-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nbc-file span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--nbc-border-2); background: var(--nbc-raised); font-weight: 600; font-size: 13px; }
.nbc-file span .i { width: 16px; height: 16px; }
.nbc-file em { font-style: normal; color: var(--nbc-muted); font-size: 12px; }
.nbc-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(4, 8, 16, .6); }
body.nbc-noscroll { overflow: hidden; }
@media (max-width: 900px) {
  .nbc-sidebar { padding-bottom: calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; }
}
@media (max-width: 600px) {
  .nbc-topbar h1 { font-size: 22px; }
  .nbc-topbar-actions .nbc-btn.nbc-btn-order { display: inline-flex; width: 44px; height: 44px; padding: 0; }
  .nbc-btn-order span { display: none; }
  .nbc-kpis-3 > :last-child { grid-column: 1 / -1; }
  .nbc-tickets .nbc-status { display: inline-flex; }
  .nbc-tickets a { flex-wrap: wrap; }
  .nbc-events .nbc-ev-text { white-space: normal; }
  .nbc-events li { flex-wrap: wrap; }
  /* larger tap targets */
  .nbc-link { padding: 8px 0; }
  .nbc-copy { padding: 6px 0; }
  .nbc-tabs button, .nbc-tab, .nbc-chip { min-height: 38px; }
  .nbc-iconbtn-sm { width: 42px; height: 42px; }
  .nbc-radio input { width: 18px; height: 18px; }
  .nbc-menu-list a, .nbc-menu-list button { padding: 12px 10px; }
  /* list cards: show column names */
  .nbc-table-cards td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; color: var(--nbc-muted); font-size: 11px; margin-bottom: 2px; }
}

/* ---------- notifications: toasts + bell panel ---------- */
.nbc-toasts { position: fixed; top: 20px; right: 20px; z-index: 60; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.nbc-toastx { pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px;
  border-radius: 14px; background: linear-gradient(155deg, #13233c, #0f1b2f); border: 1px solid var(--nbc-border-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color: var(--nbc-text); font-size: 13px; line-height: 1.45; animation: nbc-toast-in .25s ease-out; }
.nbc-toastx.is-out { animation: nbc-toast-out .2s ease-in forwards; }
.nbc-toastx-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nbc-toastx-icon .i { width: 18px; height: 18px; }
.nbc-toastx b { display: block; font-size: 14px; margin-bottom: 2px; }
.nbc-toastx.is-success { border-color: #1f6b52; }
.nbc-toastx.is-success .nbc-toastx-icon { background: rgba(51, 216, 140, .14); color: var(--nbc-success); }
.nbc-toastx.is-error { border-color: #7a2e3a; }
.nbc-toastx.is-error .nbc-toastx-icon { background: rgba(255, 107, 107, .14); color: var(--nbc-danger); }
.nbc-toastx.is-info .nbc-toastx-icon { background: var(--nbc-primary-soft); color: var(--nbc-link); }
.nbc-toastx-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--nbc-muted); font-size: 18px; line-height: 1; }
.nbc-toastx-close:hover { background: rgba(255, 255, 255, .06); color: var(--nbc-text); }
.nbc-toastx-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: nbc-toast-bar linear forwards; }
.nbc-toastx.is-success .nbc-toastx-bar { background: var(--nbc-success); }
.nbc-toastx.is-error .nbc-toastx-bar { background: var(--nbc-danger); }
.nbc-toastx.is-info .nbc-toastx-bar { background: var(--nbc-primary); }
.nbc-toastx:hover .nbc-toastx-bar { animation-play-state: paused; }
@keyframes nbc-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes nbc-toast-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes nbc-toast-bar { to { transform: scaleX(0); } }
.nbc-flash.is-toasted { display: none; }
.nbc-bell { position: relative; }
.nbc-bell > summary { list-style: none; cursor: pointer; }
.nbc-bell > summary::-webkit-details-marker { display: none; }
.nbc-bell-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
  padding: 12px; border-radius: 14px; background: #13213a; border: 1px solid var(--nbc-border-2); box-shadow: var(--nbc-shadow); display: grid; gap: 4px; }
.nbc-bell-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; }
.nbc-bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 6px; border-radius: 10px; font-size: 13px; }
.nbc-bell-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.nbc-bell-item.is-new { background: var(--nbc-primary-soft); }
a.nbc-bell-item:hover { background: #1d2d48; }
@media (max-width: 600px) {
  .nbc-toasts { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; }
  .nbc-bell-panel { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; }
}
.nbc-bell-item .nbc-sub, .nbc-toastx-text { display: block; }
.nbc-toastx-body { min-width: 0; overflow-wrap: anywhere; }

/* order page: smooth in-place switching */
[data-nbc-order] .nbc-tariffs { transition: opacity .2s ease; }
[data-nbc-order].is-loading .nbc-tariffs { opacity: .35; pointer-events: none; }
[data-nbc-order] .nbc-chip, [data-nbc-order] .nbc-tab { transition: background .15s, border-color .15s, color .15s; }
@keyframes nbc-fade-up { from { opacity: 0; transform: translateY(6px); } }
[data-nbc-order] .nbc-tariff { animation: nbc-fade-up .25s ease-out both; }
[data-nbc-order] .nbc-tariff:nth-child(2) { animation-delay: .03s; }
[data-nbc-order] .nbc-tariff:nth-child(3) { animation-delay: .06s; }
[data-nbc-order] .nbc-tariff:nth-child(4) { animation-delay: .09s; }
[data-nbc-order] .nbc-tariff:nth-child(5) { animation-delay: .12s; }
.nbc-off { display: none !important; }
.nbc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-right: 14px; }
.nbc-check .nbc-switch { width: 40px; height: 22px; }
.nbc-check .nbc-switch span::before { width: 16px; height: 16px; }
.nbc-check .nbc-switch input:checked + span::before { transform: translateX(18px); }

html { background: #060b16; }
/* ================= visual polish (mockup: gradients, glow, glass) ================= */
.nbc-app {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(56, 108, 255, .22), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(124, 92, 255, .14), transparent 60%),
    radial-gradient(900px 700px at 70% 110%, rgba(30, 90, 220, .14), transparent 60%),
    linear-gradient(180deg, #070d1a, #060b16);
  background-attachment: fixed;
}
/* cards: glass panel with a gradient hairline border and a top highlight */
.nbc-card {
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(20, 36, 64, .92), rgba(11, 21, 38, .92)) padding-box,
    linear-gradient(140deg, rgba(110, 150, 255, .38), rgba(45, 66, 105, .25) 35%, rgba(45, 66, 105, .18) 65%, rgba(130, 100, 255, .30)) border-box;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}
a.nbc-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(110, 150, 255, .35), 0 10px 36px rgba(60, 110, 255, .22); }
/* icon boxes: blue-violet gradient with soft glow */
.nbc-iconbox {
  background: linear-gradient(145deg, rgba(64, 112, 255, .28), rgba(118, 86, 255, .18));
  border: 1px solid rgba(120, 160, 255, .28);
  color: #cfe0ff;
  box-shadow: 0 6px 18px rgba(55, 107, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.nbc-kpi .nbc-iconbox { width: 48px; height: 48px; }
.nbc-kpi-value { background: linear-gradient(180deg, #ffffff, #c9d8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nbc-kpi-value.is-negative { background: none; color: var(--nbc-warning); }
/* primary buttons: gradient + glow */
.nbc-btn { background: linear-gradient(135deg, #4a86ff, #3a62f5 55%, #5a4df0); box-shadow: 0 8px 22px rgba(58, 98, 245, .38), inset 0 1px 0 rgba(255, 255, 255, .18); }
.nbc-btn:hover { background: linear-gradient(135deg, #5b93ff, #456cff 55%, #6a5cff); box-shadow: 0 10px 28px rgba(58, 98, 245, .5); }
.nbc-btn-secondary { background: rgba(23, 36, 58, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.nbc-btn-secondary:hover { background: #1d2d48; box-shadow: none; }
.nbc-btn-danger { background: linear-gradient(135deg, #e0505f, #b83246); box-shadow: 0 8px 22px rgba(200, 60, 80, .3); }
/* sidebar: deeper gradient, active item with accent bar and glow */
.nbc-sidebar { background: linear-gradient(170deg, rgba(16, 28, 50, .96), rgba(8, 15, 29, .98) 55%, rgba(10, 18, 36, .98)); border-right: 1px solid rgba(80, 110, 170, .18); }
.nbc-nav { position: relative; }
.nbc-nav.is-active { background: linear-gradient(100deg, rgba(58, 98, 245, .45), rgba(58, 98, 245, .12)); box-shadow: inset 0 0 0 1px rgba(110, 150, 255, .30), 0 6px 20px rgba(58, 98, 245, .18); }
.nbc-nav.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #6d9bff, #7c5cff); box-shadow: 0 0 10px rgba(109, 155, 255, .8); }
.nbc-nav .i { color: #8fb0ff; }
.nbc-brand img { filter: drop-shadow(0 0 10px rgba(92, 130, 255, .45)); }
/* section headings get a quiet gradient */
.nbc-module-head h2 { background: linear-gradient(90deg, #ffffff, #cbd9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nbc-topbar h1 { background: linear-gradient(90deg, #ffffff 30%, #9fbcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* statuses glow */
.nbc-status { box-shadow: inset 0 0 0 1px rgba(60, 233, 163, .22); }
.nbc-status.is-warn { box-shadow: inset 0 0 0 1px rgba(255, 159, 73, .25); }
/* tables, tiles, tabs */
.nbc-table tbody tr:hover td { background: linear-gradient(90deg, rgba(58, 98, 245, .08), transparent); }
.nbc-tile, .nbc-locrow, .nbc-row, .nbc-radio { background: linear-gradient(160deg, rgba(25, 40, 66, .85), rgba(17, 29, 49, .85)); }
.nbc-tabs { background: rgba(10, 18, 33, .7); }
.nbc-tabs button.is-active, .nbc-tab.is-active { background: linear-gradient(135deg, #4a86ff, #3a62f5); box-shadow: 0 4px 14px rgba(58, 98, 245, .4); }
.nbc-chip.is-active { background: linear-gradient(135deg, rgba(74, 134, 255, .35), rgba(90, 77, 240, .25)); border-color: rgba(120, 160, 255, .55); box-shadow: 0 0 0 1px rgba(110, 150, 255, .2), 0 6px 16px rgba(58, 98, 245, .2); }
.nbc-progress span { background: linear-gradient(90deg, #3a6cff, #7c5cff); box-shadow: 0 0 10px rgba(92, 120, 255, .6); }
.nbc-chart .line { stroke: url(#nbcstroke); filter: drop-shadow(0 0 6px rgba(76, 130, 255, .55)); }
.nbc-chart .bar { fill: #4a7dff; filter: drop-shadow(0 0 4px rgba(76, 130, 255, .45)); }
.nbc-spark polyline { filter: drop-shadow(0 0 3px rgba(76, 130, 255, .6)); }
/* tool cards: each tool its own accent */
.nbc-tools .nbc-tool:nth-child(1) .nbc-iconbox { background: linear-gradient(145deg, rgba(56, 189, 248, .30), rgba(59, 130, 246, .18)); }
.nbc-tools .nbc-tool:nth-child(2) .nbc-iconbox { background: linear-gradient(145deg, rgba(167, 139, 250, .32), rgba(99, 102, 241, .18)); }
.nbc-tools .nbc-tool:nth-child(3) .nbc-iconbox { background: linear-gradient(145deg, rgba(52, 211, 153, .30), rgba(16, 185, 129, .16)); }
.nbc-telegram { background: linear-gradient(125deg, rgba(16, 60, 60, .9), rgba(12, 38, 46, .9)) padding-box, linear-gradient(120deg, rgba(60, 220, 170, .45), rgba(30, 90, 90, .25)) border-box; }
.nbc-tariff-price { background: linear-gradient(90deg, #fff, #a9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nbc-tariff:hover { transform: translateY(-2px); }
.nbc-ev { background: linear-gradient(145deg, rgba(40, 60, 96, .9), rgba(25, 38, 62, .9)); }

.nbc-ro { padding: 11px 12px; border-radius: var(--nbc-r-sm); border: 1px dashed var(--nbc-border-2); color: var(--nbc-text-2); background: rgba(10, 18, 33, .5); }
.nbc-input[readonly] { background: rgba(10, 18, 33, .5); border-style: dashed; color: var(--nbc-text-2); }
.nbc-ro-wrap { display: flex; gap: 8px; align-items: center; }
.nbc-ro-wrap .nbc-input { flex: 1; min-width: 0; }
.nbc-menu-group { padding: 10px 10px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #7f90ab; }
.nbc-more > summary { list-style: none; cursor: pointer; padding: 9px 10px; font-size: 13px; color: var(--nbc-muted); border-radius: 8px; }
.nbc-more > summary::-webkit-details-marker { display: none; }
.nbc-more > summary::after { content: " ▾"; }
.nbc-more > summary:hover { background: #1d2d48; }
.nbc-cart { position: relative; }
.nbc-cart-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(135deg, #ffaf57, #ff7a3d); color: #1a0d00; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.nbc-hub-main { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.nbc-hub-main .nbc-tool { padding: 20px; }

/* ---------- order configurator ---------- */
.nbc-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: -6px 0 18px; counter-reset: st; flex-wrap: wrap; }
.nbc-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: 13px; color: var(--nbc-muted); background: rgba(16, 28, 48, .7); border: 1px solid var(--nbc-border); }
.nbc-steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #1b2840; }
.nbc-steps li.is-done::before { content: "✓"; background: var(--nbc-success-bg); color: var(--nbc-success); }
.nbc-steps li.is-current { color: #fff; border-color: rgba(110, 150, 255, .5); background: linear-gradient(135deg, rgba(74, 134, 255, .3), rgba(90, 77, 240, .2)); }
.nbc-steps li.is-current::before { background: linear-gradient(135deg, #4a86ff, #5a4df0); color: #fff; }
.nbc-conf { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.nbc-conf-main { display: grid; gap: 18px; min-width: 0; }
.nbc-conf-side { position: sticky; top: 18px; }
.nbc-os { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nbc-os-family { padding: 12px; border-radius: 12px; background: linear-gradient(160deg, rgba(25, 40, 66, .85), rgba(17, 29, 49, .85)); border: 1px solid var(--nbc-border); }
.nbc-os-family:has(input:checked) { border-color: rgba(110, 150, 255, .6); box-shadow: 0 0 0 1px rgba(110, 150, 255, .25), 0 8px 22px rgba(58, 98, 245, .18); }
.nbc-os-name { font-weight: 700; margin-bottom: 8px; }
.nbc-os-vers { display: flex; flex-wrap: wrap; gap: 6px; }
.nbc-os-ver input, .nbc-chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.nbc-os-ver span { display: inline-block; padding: 6px 10px; border-radius: 8px; font-size: 12px; border: 1px solid var(--nbc-border-2); background: rgba(10, 18, 33, .6); cursor: pointer; transition: .15s; }
.nbc-os-ver span:hover { border-color: #4a6bb3; }
.nbc-os-ver input:checked + span { background: linear-gradient(135deg, #4a86ff, #3a62f5); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(58, 98, 245, .4); }
.nbc-chip-radio { cursor: pointer; }
.nbc-chip-radio:has(input:checked) { background: linear-gradient(135deg, rgba(74, 134, 255, .35), rgba(90, 77, 240, .25)); border-color: rgba(120, 160, 255, .55); color: #fff; }
.nbc-sliders { display: grid; gap: 18px; }
.nbc-slider-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--nbc-text-2); margin-bottom: 8px; }
.nbc-slider-head b { color: #fff; font-size: 15px; }
.nbc-slider-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--nbc-muted); margin-top: 4px; }
.nbc-slider input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #3a6cff, #7c5cff); outline: none; }
.nbc-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid #4a86ff; box-shadow: 0 0 0 4px rgba(74, 134, 255, .25); cursor: pointer; }
.nbc-slider input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid #4a86ff; cursor: pointer; }
.nbc-summary h2 { font-size: 18px; margin-bottom: 12px; }
.nbc-summary-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; font-size: 13px; color: var(--nbc-text-2); }
.nbc-summary-list li { display: flex; gap: 8px; }
.nbc-summary-list li::before { content: "•"; color: var(--nbc-link); }
.nbc-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin-bottom: 12px; border-top: 1px solid var(--nbc-border); }
.nbc-summary-total b { font-family: var(--nbc-font-display); font-size: 26px; background: linear-gradient(90deg, #fff, #a9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nbc-summary .nbc-btn-wide + .nbc-btn-wide { margin-top: 8px; }
@media (max-width: 1100px) { .nbc-conf { grid-template-columns: 1fr; } .nbc-conf-side { position: static; } }

.nbc-bell-head .nbc-link { padding: 8px 6px; }
.nbc-toasts .nbc-toastx { padding-top: 12px; padding-bottom: 12px; }

/* QA round 3 */
.nbc-main { overflow-wrap: break-word; }
.nbc-topbar h1, .nbc-form-text, .nbc-row-text, .nbc-radio span, .nbc-table td { overflow-wrap: break-word; word-break: normal; }
.nbc-table tbody tr:hover td { background: transparent; }
.nbc-table tbody tr:hover { background: linear-gradient(90deg, rgba(58, 98, 245, .08), transparent); }
.nbc-menu-list { max-height: min(70vh, 560px); }
.nbc-menu.is-up .nbc-menu-list { top: auto; bottom: calc(100% + 6px); }
.nbc-toastx-close { width: 40px; height: 40px; top: 4px; right: 4px; }
.nbc-toastx { padding-right: 48px; }
.nbc-radio input { flex: none; width: 18px; height: 18px; }
@media (max-width: 600px) {
  .nbc-tabs button, .nbc-tab, .nbc-chip, .nbc-btn-sm, .nbc-os-ver span { min-height: 40px; }
  .nbc-btn-sm { padding: 10px 14px; }
  .nbc-link, .nbc-copy, .nbc-bell-head .nbc-link { min-height: 40px; display: inline-flex; align-items: center; }
}

/* thin dark scrollbars everywhere (no OS light scrollbar on the dark UI) */
* { scrollbar-width: thin; scrollbar-color: #2c3c58 transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2c3c58; border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: #3b5078; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* the ⋯ menu fits on desktop: no inner scroll there */
.nbc-menu-list { max-height: none; overflow-y: visible; }
@media (max-height: 760px), (max-width: 600px) { .nbc-menu-list { max-height: 70vh; overflow-y: auto; } }

/* server / VPN page */
tr[data-href] { cursor: pointer; }
a.nbc-server-name { display: block; color: var(--nbc-text) !important; }
a.nbc-server-name:hover { color: #9dbbff !important; }
.nbc-srv-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.nbc-srv-id { display: flex; align-items: center; gap: 14px; }
.nbc-srv-flag { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(110, 150, 255, .25); }
.nbc-srv-ip .nbc-copy { font-size: 18px; font-weight: 700; color: var(--nbc-text); }
.nbc-srv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nbc-actionbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nbc-anchors { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.nbc-anchors a { padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--nbc-text-2); background: rgba(16, 28, 48, .7); border: 1px solid var(--nbc-border); }
.nbc-anchors a:hover { border-color: #4a6bb3; color: #fff; }
.nbc-main > section.nbc-card + section.nbc-card { margin-top: 14px; }
.nbc-ip-row .nbc-row-text b { font-size: 15px; color: var(--nbc-text); }
.nbc-ip-row .nbc-row-text .nbc-sub { display: block; }
.nbc-danger-zone { border-color: transparent; background: linear-gradient(160deg, rgba(60, 20, 30, .55), rgba(30, 14, 22, .55)) padding-box, linear-gradient(140deg, rgba(255, 107, 107, .45), rgba(120, 40, 50, .25)) border-box; }
.nbc-qr-box { background: #fff; border-radius: 14px; padding: 12px; width: min(260px, 100%); }
.nbc-qr-svg { width: 100%; height: auto; display: block; }
.nbc-modal-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(4, 8, 16, .7); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.nbc-modal { width: min(440px, 100%); padding: 22px; border-radius: 16px; background: linear-gradient(160deg, #13233c, #0f1b2f); border: 1px solid rgba(255, 107, 107, .4); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; gap: 12px; }
.nbc-modal h3 { font-size: 18px; }
.nbc-modal-text { margin: 0; color: var(--nbc-text-2); }
.nbc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 600px) {
  .nbc-actionbar { position: sticky; bottom: 0; z-index: 15; margin: 0 -16px 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 11, 22, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--nbc-border); }
  .nbc-actionbar .nbc-btn { flex: 1 1 45%; }
  .nbc-srv-meta { align-items: flex-start; }
}

@media (max-width: 600px) {
  .nbc-actionbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 25; }
  body:has(.nbc-actionbar) .nbc-main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .nbc-anchors a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* owner 2026-11-10: no heavy drop shadows on cards (they looked crooked between cards); spacing in the sidebar */
.nbc-card, .nbc-danger-zone, .nbc-telegram { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); backdrop-filter: none; }
a.nbc-card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(110, 150, 255, .35); }
.nbc-nav { margin: 5px 0; }
.nbc-nav.is-active { box-shadow: inset 0 0 0 1px rgba(110, 150, 255, .30); }
.nbc-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.nbc-btn:hover { box-shadow: 0 6px 18px rgba(58, 98, 245, .3); }
.nbc-qr-box { background: none; padding: 0; }
.nbc-qr-box img.nbc-qr-svg { background: #fff; border-radius: 14px; padding: 12px; width: min(260px, 100%); }

/* KPI cards: same layout in all four; «Пополнить» sits in the top-right corner and does not push the content */
.nbc-kpi { position: relative; flex-wrap: nowrap; }
.nbc-kpi .nbc-btn { position: absolute; top: 12px; right: 12px; margin: 0; padding: 6px 12px; font-size: 12px; border-radius: 9px; }
@media (max-width: 600px) {
  .nbc-kpi { flex-wrap: nowrap; }
  .nbc-kpi .nbc-btn { top: 10px; right: 10px; padding: 5px 10px; font-size: 11px; min-height: 0; }
}

/* KPI v2 (owner reference): label / big value / extra line on the left, icon on the right, compact */
.nbc-kpi { min-height: 0; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nbc-kpi-body { min-width: 0; display: grid; gap: 4px; }
.nbc-kpi-name { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--nbc-muted); margin: 0; font-weight: 600; }
.nbc-kpi-value { font-size: 28px; line-height: 1.1; }
.nbc-kpi-sub { font-size: 12px; color: var(--nbc-muted); margin: 0; }
.nbc-kpi-link { color: var(--nbc-link) !important; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.nbc-kpi-link .i { width: 14px; height: 14px; }
.nbc-kpi-link:hover { color: #9dbbff !important; }
.nbc-kpi > .nbc-iconbox { width: 48px; height: 48px; flex: none; align-self: center; }
@media (max-width: 600px) {
  .nbc-kpi { padding: 14px; flex-wrap: nowrap; }
  .nbc-kpi > .nbc-iconbox { display: none; }
  .nbc-kpi-value { font-size: 21px; }
}
/* «Пополнить»: bigger tap area (QA r5: 73x26) without moving the card layout */
.nbc-kpi .nbc-kpi-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px 10px 0; margin: -7px 0 -10px; overflow: visible; }

/* ---------- pre-loaders (2026-11-10) ---------- */
@keyframes nbc-spin { to { transform: rotate(360deg); } }
@keyframes nbc-progress { 0% { width: 0; } 12% { width: 38%; } 45% { width: 68%; } 100% { width: 92%; } }
@keyframes nbc-loader-pulse { 50% { transform: scale(.9); opacity: .75; } }
/* top bar: every navigation */
.nbc-progress { position: fixed; top: 0; left: 0; z-index: 3000; height: 3px; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, #3c73fc, #8b6cff 60%, #4a86ff); box-shadow: 0 0 10px rgba(92, 132, 255, .8), 0 0 2px rgba(139, 108, 255, .9);
  border-radius: 0 3px 3px 0; transition: opacity .3s ease; }
.nbc-progress.is-on { opacity: 1; animation: nbc-progress 12s cubic-bezier(.1, .7, .2, 1) forwards; }
/* branded overlay: only when the page takes longer than ~0.7 s */
.nbc-loader { position: fixed; inset: 0; z-index: 2900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(5, 9, 20, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s; }
.nbc-loader.is-on { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.nbc-loader p { margin: 0; color: var(--nbc-muted); font-size: 14px; letter-spacing: .01em; }
.nbc-loader-box { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(74, 134, 255, .22), rgba(14, 22, 42, .9) 70%); box-shadow: 0 10px 40px rgba(60, 115, 252, .35); }
.nbc-loader-box img { width: 40px; height: 32px; animation: nbc-loader-pulse 1.4s ease-in-out infinite; }
.nbc-loader-ring { position: absolute; inset: -3px; border-radius: 50%; animation: nbc-spin .9s linear infinite;
  background: conic-gradient(from 0deg, rgba(74, 134, 255, 0) 0 30%, #4a86ff 70%, #a58bff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
/* spinner inside the button that started an action; the button keeps its size */
.nbc-btn.is-loading, button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.nbc-btn.is-loading > *, button.is-loading > * { visibility: hidden; }
.nbc-btn.is-loading::after, button.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .28); border-top-color: #fff; animation: nbc-spin .7s linear infinite; }
.nbc-btn-secondary.is-loading::after, .nbc-btn-ghost.is-loading::after { border-color: rgba(122, 162, 255, .25); border-top-color: #7aa2ff; }
/* configurator / form recalculation: a small pill instead of a dimmed form */
.nbc-form.is-recalc [data-nbc-total], .nbc-form.is-recalc [data-nbc-orderinfo] { opacity: .45; transition: opacity .2s ease; }
.nbc-form.is-recalc::after { content: attr(data-recalc); position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2800;
  padding: 10px 18px 10px 42px; border-radius: 999px; font-size: 13px; color: #dfe7ff; background: rgba(16, 26, 50, .92);
  border: 1px solid rgba(92, 132, 255, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: nbc-fade-up .2s ease; }
.nbc-form.is-recalc::before { content: ""; position: fixed; left: 50%; bottom: calc(24px + 12px + env(safe-area-inset-bottom)); z-index: 2801;
  width: 14px; height: 14px; margin-left: -64px; border-radius: 50%; border: 2px solid rgba(122, 162, 255, .3); border-top-color: #7aa2ff; animation: nbc-spin .7s linear infinite; }
/* order page: location / period switch */
[data-nbc-order] { position: relative; }
[data-nbc-order].is-loading .nbc-tariffs { opacity: .3; filter: saturate(.6); }
[data-nbc-order].is-loading::after { content: ""; position: absolute; left: 50%; top: 260px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(74, 134, 255, 0) 0 30%, #4a86ff 70%, #a58bff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: nbc-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .nbc-loader-ring, .nbc-loader-box img, [data-nbc-order].is-loading::after, .nbc-btn.is-loading::after, button.is-loading::after { animation-duration: 2.4s; }
}
/* page skeleton shown while the next page loads (nbcLoading) */
.nbc-pageskel { display: none; }
.nbc-main.is-leaving > :not(.nbc-pageskel) { display: none !important; }
.nbc-main.is-leaving > .nbc-pageskel { display: block; animation: nbc-fade-up .25s ease; }
.nbc-pageskel .nbc-skeleton { display: block; height: 14px; border-radius: 7px; }
.nbc-pageskel-head { display: grid; gap: 12px; margin: 6px 0 26px; }
.nbc-pageskel .nbc-pageskel-title { width: min(340px, 70%); height: 30px; border-radius: 10px; }
.nbc-pageskel .nbc-pageskel-sub { width: min(240px, 50%); }
.nbc-pageskel-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.nbc-pageskel-kpi { gap: 12px; min-height: 108px; }
.nbc-pageskel .nbc-pageskel-big { width: 55%; height: 28px; border-radius: 9px; }
.nbc-pageskel-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.nbc-pageskel-grid .nbc-skel-card { gap: 18px; min-height: 340px; }
.nbc-pageskel-row { display: grid; grid-template-columns: 38px 1fr 90px; gap: 14px; align-items: center; }
.nbc-pageskel .nbc-pageskel-ico { width: 38px; height: 38px; border-radius: 11px; }
.nbc-pageskel .nbc-pageskel-chart { height: 220px; border-radius: 14px; margin-top: 6px; }
@media (max-width: 900px) {
  .nbc-pageskel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nbc-pageskel-grid { grid-template-columns: 1fr; }
  .nbc-pageskel-grid .nbc-skel-card + .nbc-skel-card { display: none; }
}

/* ---------- payment page (payment.add / payment.add.redirect): tiles + «Итого» column ---------- */
.nbc-grid-bottom > :only-child { grid-column: 1 / -1; }
.nbc-form-card.nbc-pay { max-width: 1180px; }
.nbc-pay .nbc-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px 28px; align-items: start; }
.nbc-pay .nbc-form > [data-nbc-fields] { grid-column: 1; display: grid; gap: 18px; align-content: start; }
.nbc-pay .nbc-pay-summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 20px; display: grid; gap: 16px; padding: 22px;
  border-radius: 18px; border: 1px solid rgba(92, 132, 255, .28);
  background: radial-gradient(120% 80% at 100% 0%, rgba(84, 110, 255, .22), transparent 60%), linear-gradient(180deg, #13213d, #0e1830);
  box-shadow: 0 18px 50px rgba(5, 10, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .04); }
.nbc-pay-sum-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.nbc-pay-sum-head .i { width: 18px; height: 18px; color: #7aa2ff; }
.nbc-pay-summary dl { margin: 0; display: grid; gap: 10px; }
.nbc-pay-summary dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.nbc-pay-summary dt { color: var(--nbc-muted); }
.nbc-pay-summary dd { margin: 0; font-weight: 600; text-align: right; }
.nbc-pay-summary dd.nbc-neg { color: var(--nbc-warning); }
.nbc-pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed rgba(122, 162, 255, .25); }
.nbc-pay-total span { color: var(--nbc-text-2); font-size: 14px; }
.nbc-pay-total b { font-family: var(--nbc-font-display); font-size: 30px; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #a9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nbc-pay .nbc-form-actions { margin: 0; }
.nbc-pay .nbc-form-actions .nbc-btn { width: 100%; min-height: 50px; font-size: 15px; border-radius: 14px;
  background: linear-gradient(90deg, #3c73fc, #7b5cff); box-shadow: 0 10px 28px rgba(60, 115, 252, .35); }
.nbc-pay .nbc-form-actions .nbc-btn:hover { filter: brightness(1.08); }
.nbc-pay .nbc-form-actions .nbc-btn .i { width: 17px; height: 17px; }
.nbc-pay-safe { display: flex; gap: 8px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--nbc-muted); }
.nbc-pay-safe .i { flex: none; width: 15px; height: 15px; color: var(--nbc-success); margin-top: 1px; }
/* amount */
.nbc-pay [data-field=amount] { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--nbc-border); background: var(--nbc-surface-2); }
.nbc-pay [data-field=amount] > label { width: 100%; margin: 0; font-size: 13px; color: var(--nbc-text-2); }
.nbc-pay [data-field=amount] > .nbc-input { flex: 1 1 200px; height: 56px; font-size: 26px; font-weight: 700; font-family: var(--nbc-font-display); letter-spacing: -.01em; }
.nbc-pay [data-field=amount] > .nbc-input[readonly] { border-style: solid; background: transparent; }
.nbc-pay [data-field=amount] > .nbc-select { flex: 0 0 96px; height: 56px; font-size: 16px; font-weight: 600; }
.nbc-pay [data-field=amount] > .nbc-sub { width: 100%; }
.nbc-pay-quick { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.nbc-pay-quick .nbc-chip { padding: 8px 14px; font-size: 13px; cursor: pointer; }
.nbc-pay-quick .nbc-chip:hover { border-color: #3b5fbf; color: #fff; }
.nbc-pay .nbc-form-section { margin: 4px 0 -6px; font-size: 15px; }
/* method tiles */
.nbc-pay .nbc-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nbc-method.nbc-radio { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: start; gap: 14px; padding: 16px;
  border-radius: 16px; border: 1px solid var(--nbc-border-2); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
  cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.nbc-method.nbc-radio:hover { border-color: #3b5fbf; transform: translateY(-1px); }
.nbc-method.nbc-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nbc-method.nbc-radio:has(input:checked) { border-color: #5b84ff; background: linear-gradient(180deg, rgba(60, 115, 252, .18), rgba(123, 92, 255, .08));
  box-shadow: 0 0 0 1px rgba(91, 132, 255, .5), 0 10px 26px rgba(60, 115, 252, .18); }
.nbc-method.nbc-radio:has(input:focus-visible) { outline: 2px solid var(--nbc-link); outline-offset: 2px; }
.nbc-method-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #9db8ff;
  background: linear-gradient(145deg, rgba(74, 134, 255, .22), rgba(139, 108, 255, .12)); border: 1px solid rgba(122, 162, 255, .22); }
.nbc-method-ico .i { width: 22px; height: 22px; }
.nbc-method-body { display: grid; gap: 4px; min-width: 0; }
.nbc-method-body b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.nbc-method-badge { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--nbc-warning); background: var(--nbc-warning-bg); }
.nbc-method-lim { font-size: 13px; color: var(--nbc-text-2); }
.nbc-method-note { font-size: 12px; line-height: 1.45; color: var(--nbc-muted); }
.nbc-method-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--nbc-border-2); color: transparent; transition: all .15s ease; }
.nbc-method-check .i { width: 13px; height: 13px; }
.nbc-method.nbc-radio:has(input:checked) .nbc-method-check { border-color: transparent; color: #fff; background: linear-gradient(135deg, #3c73fc, #7b5cff); }
@media (max-width: 1100px) {
  .nbc-pay .nbc-form { grid-template-columns: 1fr; }
  .nbc-pay .nbc-pay-summary { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 640px) {
  .nbc-pay .nbc-methods { grid-template-columns: 1fr; }
  .nbc-pay [data-field=amount] > .nbc-input { font-size: 22px; }
}
.nbc-pay-total b.is-empty { font-size: 22px; background: none; color: var(--nbc-muted); -webkit-text-fill-color: currentColor; }

/* sidebar: external links (updates / uptime / Telegram) */
.nbc-nav-ext { margin-left: auto; display: inline-flex; opacity: .45; }
.nbc-nav-ext .i { width: 14px !important; height: 14px !important; }
.nbc-nav:hover .nbc-nav-ext { opacity: .9; }
/* partner page */
.nbc-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nbc-plabel { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--nbc-text-2); }
.nbc-partner-top .nbc-module .nbc-ro-wrap .nbc-input { font-size: 14px; }
.nbc-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; counter-reset: st; }
.nbc-steps li { position: relative; display: grid; gap: 2px; padding-left: 40px; counter-increment: st; }
.nbc-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3c73fc, #7b5cff); }
.nbc-steps b { font-size: 14px; }
.nbc-steps span { font-size: 13px; color: var(--nbc-muted); }
.nbc-right { text-align: right !important; }
.nbc-module-head .nbc-count.nbc-end { margin-left: auto; }
@media (max-width: 900px) { .nbc-grid-2 { grid-template-columns: 1fr; } }
.nbc-steps li { border: 0 !important; background: none !important; padding: 0 0 0 40px !important; min-height: 28px; }
/* the menu grew (Полезное): scroll inside the sidebar instead of cutting the bottom items */
.nbc-sidebar { overflow-y: auto; scrollbar-width: thin; }
/* user menu in the top bar (account, classic cabinet, logout moved out of the sidebar) */
.nbc-user { position: relative; }
.nbc-user > summary { list-style: none; cursor: pointer; }
.nbc-user > summary::-webkit-details-marker { display: none; }
.nbc-user[open] > summary { box-shadow: 0 0 0 3px rgba(91, 132, 255, .35); }
.nbc-user-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: 260px; padding: 8px; border-radius: 16px;
  border: 1px solid var(--nbc-border-2); background: linear-gradient(180deg, #14213b, #0d1729); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); animation: nbc-fade-up .15s ease; }
.nbc-user-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--nbc-border); }
.nbc-user-head b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.nbc-avatar-sm { width: 34px; height: 34px; font-size: 13px; flex: none; }
.nbc-user-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 14px; color: var(--nbc-text); }
.nbc-user-item .i { width: 17px; height: 17px; color: var(--nbc-muted); }
.nbc-user-item:hover { background: rgba(91, 132, 255, .12); }
.nbc-user-out { color: #ff9c9c; }
.nbc-user-out .i { color: #ff9c9c; }
/* sidebar fits a laptop screen without scrolling: compact rows, external links as one row of pills */
.nbc-nav { padding: 9px 13px; margin: 3px 0; }
.nbc-nav-section { margin: 14px 13px 6px; }
.nbc-sidebar > .nbc-brand { padding-bottom: 20px; }
.nbc-nav-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 6px 0; }
.nbc-nav-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; color: #c4d0e6;
  border: 1px solid var(--nbc-border-2); background: rgba(255, 255, 255, .02); }
.nbc-nav-links a:hover { border-color: #3b5fbf; color: #fff; background: var(--nbc-primary-soft); }
.nbc-nav-links .i { width: 14px; height: 14px; color: #8fb0ff; }
@media (max-width: 600px) { .nbc-user-panel { right: auto; left: 50%; transform: translateX(-50%); } }
/* menu marker (Slowaris): a line inside the item on the left — white on the active item, grey on hover */
.nbc-nav::before { content: ""; position: absolute; left: 6px; top: 50%; width: 2px; height: 0; border-radius: 2px; background: rgba(255, 255, 255, .35);
  transform: translateY(-50%); box-shadow: none; transition: height .18s ease, background .18s ease; }
.nbc-nav:hover::before { height: 55%; background: rgba(200, 212, 235, .45); }
.nbc-nav.is-active::before { left: 6px; top: 50%; bottom: auto; width: 2px; height: 60%; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .55); }
.nbc-nav { padding-left: 16px; }
/* sticky top bar (Slowaris): stays on top while scrolling, becomes a dense bar with blur — «Заказать сервер», bell and
   the user menu are always at hand */
@media (min-width: 901px) {
  .nbc-topbar { position: sticky; top: 0; z-index: 30; margin: -28px -32px 22px; padding: 22px 32px 16px; border-bottom: 1px solid transparent;
    transition: padding .2s ease, background .2s ease, border-color .2s ease; }
  .nbc-topbar.is-stuck { padding: 10px 32px; background: rgba(8, 13, 26, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: rgba(80, 110, 170, .2); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
  .nbc-topbar h1 { transition: font-size .2s ease; }
  .nbc-topbar.is-stuck h1 { font-size: 20px; margin: 0; }
  .nbc-topbar.is-stuck p { display: none; }
  .nbc-topbar.is-stuck .nbc-btn-order { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
  .nbc-topbar.is-stuck .nbc-iconbtn, .nbc-topbar.is-stuck .nbc-avatar { width: 38px; height: 38px; }
}
/* tariff cards (Slowaris): bigger, every spec with its detail — CPU boost clock, RAM type and frequency */
.nbc-tariffs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.nbc-tariff { padding: 24px; gap: 18px; }
.nbc-tariff h3 { font-size: 19px; line-height: 1.3; }
.nbc-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 14px; }
.nbc-specs-grid li { align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--nbc-border); background: rgba(255, 255, 255, .02); }
.nbc-spec-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #9db8ff;
  background: linear-gradient(145deg, rgba(74, 134, 255, .2), rgba(139, 108, 255, .1)); }
.nbc-spec-ico .i { width: 17px !important; height: 17px !important; color: inherit !important; }
.nbc-specs-grid li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.nbc-specs-grid b { color: var(--nbc-text); font-size: 14px; white-space: nowrap; }
.nbc-specs-grid em { font-style: normal; font-size: 12px; color: var(--nbc-muted); }
.nbc-tariff-foot { padding-top: 16px; }
.nbc-tariff-price { font-size: 22px !important; }
.nbc-tariff .nbc-btn-sm { padding: 10px 18px; font-size: 14px; }
@media (max-width: 420px) { .nbc-specs-grid { grid-template-columns: 1fr; } }
/* language switcher in the user menu */
.nbc-langs { display: flex; gap: 4px; padding: 6px 6px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--nbc-border); }
.nbc-langs a { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--nbc-muted); }
.nbc-langs a:hover { background: rgba(91, 132, 255, .12); color: #fff; }
.nbc-langs a.is-active { background: var(--nbc-primary-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(110, 150, 255, .35); }
.nbc-langs-auth { border: 0; justify-content: center; margin: 16px auto 0; max-width: 300px; }

/* language picker: flag + native name, dropdown (login pages) or inline list (user menu) */
.nbc-lang { position: relative; }
.nbc-lang > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--nbc-border-2); background: rgba(255, 255, 255, .03); font-size: 14px; color: var(--nbc-text); user-select: none; }
.nbc-lang > summary::-webkit-details-marker { display: none; }
.nbc-lang > summary:hover { border-color: #3b5fbf; background: var(--nbc-primary-soft); }
.nbc-lang > summary .i { width: 15px; height: 15px; margin-left: auto; color: var(--nbc-muted); transition: transform .15s ease; }
.nbc-lang[open] > summary .i { transform: rotate(180deg); }
.nbc-lang img { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.nbc-lang-list { display: grid; gap: 2px; padding: 6px; border-radius: 14px; border: 1px solid var(--nbc-border-2);
  background: linear-gradient(180deg, #14213b, #0d1729); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); animation: nbc-fade-up .15s ease; }
.nbc-lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--nbc-text); }
.nbc-lang-list a:hover { background: rgba(91, 132, 255, .12); }
.nbc-lang-list a.is-active { background: var(--nbc-primary-soft); }
.nbc-lang-list a .i { width: 15px; height: 15px; margin-left: auto; color: #8fb0ff; }
/* login pages: centred pill, the list opens upwards */
.nbc-auth-lang { display: flex; justify-content: center; margin-top: 18px; }
.nbc-lang-auth > summary { min-width: 190px; border-radius: 999px; padding: 8px 14px; }
.nbc-lang-auth .nbc-lang-list { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 220px; z-index: 50; }
/* user menu: a row that unfolds in place */
.nbc-lang-menu { padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--nbc-border); }
.nbc-lang-menu > summary { border: 0; background: none; padding: 10px; }
.nbc-lang-menu > summary:hover { background: rgba(91, 132, 255, .12); }
.nbc-lang-menu .nbc-lang-list { border: 0; box-shadow: none; background: rgba(255, 255, 255, .03); margin: 4px 0 0; }
/* login: social buttons and the Telegram wait box */
.nbc-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--nbc-muted); font-size: 12px; }
.nbc-auth-or::before, .nbc-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--nbc-border); }
.nbc-auth-social { display: grid; gap: 10px; }
.nbc-auth-social .nbc-btn .i { width: 18px; height: 18px; }
.nbc-btn-tg { background: linear-gradient(90deg, #2aabee, #229ed9) !important; box-shadow: 0 8px 22px rgba(34, 158, 217, .3); }
.nbc-btn-tg:hover { filter: brightness(1.07); }
.nbc-tglogin { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(42, 171, 238, .35);
  background: rgba(42, 171, 238, .08); }
.nbc-tglogin p { margin: 4px 0 6px; }
.nbc-tglogin-spin { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(42, 171, 238, .3); border-top-color: #2aabee;
  animation: nbc-spin .8s linear infinite; }


/* traffic quota (server page, monitoring); .nbc-progress is the page-loading bar, hence its own meter */
.nbc-quota { display: grid; gap: 8px; margin-bottom: 10px; }
.nbc-quota-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.nbc-quota-head b { font-family: var(--nbc-font-display); font-size: 20px; color: var(--nbc-text); }
.nbc-meter { height: 8px; background: #28344a; border-radius: 20px; overflow: hidden; }
.nbc-meter span { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #3a6cff, #7c5cff); box-shadow: 0 0 10px rgba(92, 120, 255, .6); }
.nbc-meter.is-warn span { background: linear-gradient(90deg, #f0a23a, #ffc46b); box-shadow: 0 0 10px rgba(240, 162, 58, .5); }
.nbc-meter.is-over span { background: linear-gradient(90deg, #e5484d, #ff7a7f); box-shadow: 0 0 10px rgba(229, 72, 77, .5); }
.nbc-meter-sm { height: 5px; margin-top: 6px; min-width: 120px; }

/* pictures inside BILLmanager forms (2FA QR code) */
.nbc-form-img { display: block; max-width: 100%; height: auto; padding: 10px; background: #fff; border-radius: 12px; }
