/* =========================================================================
   MYKVADOR — «живой» слой оформления (fx.css)
   Свет, стекло и движение поверх main.css / admin.css. Подключается на главной,
   входе, оплате, привязке, в кабинете и админке (документы его не используют).
   Принципы: свет идёт от синего края знака M; поверхности — стекло с тонкой
   светлой кромкой сверху, без серых теней; движение отвечает на действие человека.
   Анимируются только transform и opacity. Без движения (prefers-reduced-motion) — статично.
   ========================================================================= */

:root {
  --ink: #05060e;
  --navy: #0e1330;
  --signal: #3a63ff;
  --ice: #8ea8ff;
  --violet: #7c52ff;
  --glass: linear-gradient(180deg, rgba(30, 37, 80, .55) 0%, rgba(13, 16, 38, .62) 100%);
  --glass-hi: linear-gradient(180deg, rgba(38, 47, 102, .62) 0%, rgba(15, 19, 46, .7) 100%);
  --edge: inset 0 1px 0 rgba(200, 214, 255, .085);
  --lift: 0 28px 60px -34px rgba(0, 0, 12, .9);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ================= Поверхности: стекло с кромкой ================= */
.box, .tile, .co-sum, .opt, .plan:not(.plan-best) {
  position: relative;
  background: var(--glass);
  box-shadow: var(--edge), var(--lift);
}
.box, .tile { transition: border-color .35s, box-shadow .5s var(--ease), transform .5s var(--ease); }
.box:hover, .tile:hover { border-color: var(--line-2); }

/* Свет за курсором: кромка карточки подсвечивается там, где мышь (координаты — fx.js) */
:is(.box, .tile, .co-sum, .opt, .plan, .auth-card)::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), rgba(170, 192, 255, .78), rgba(124, 82, 255, .32) 42%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .45s ease;
}
:is(.box, .tile, .co-sum, .opt, .plan, .auth-card):hover::before { opacity: 1; }
.plan-best::before { background: radial-gradient(240px circle at var(--mx, -400px) var(--my, -400px), rgba(58, 99, 255, .9), rgba(124, 82, 255, .4) 42%, transparent 72%); }
/* мягкое свечение внутри — только у больших блоков */
.box > .fx-glow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .box:hover, .tile:hover, .co-sum:hover {
    background:
      radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(92, 124, 255, .075), transparent 46%),
      var(--glass);
  }
}

/* ================= Кнопки ================= */
.btn { overflow: hidden; isolation: isolate; }
.btn-light { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -14px rgba(120, 150, 255, 0); transition: background-color .2s, color .2s, box-shadow .45s var(--ease), transform .15s, filter .2s; }
.btn-light:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 0, 0, .5), 0 12px 34px -12px rgba(110, 145, 255, .75); }
.btn-ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.btn-ghost:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(170, 190, 255, .14); }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--blue-2), 0 0 24px 2px rgba(58, 99, 255, .55); }
/* Волна от точки нажатия (координаты — fx.js) */
.btn.fx-rip:not(.is-loading)::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: var(--rx, 50%); top: var(--ry, 50%);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: currentColor; opacity: 0;
  animation: rip .65s var(--ease);
}
@keyframes rip { 0% { opacity: .22; transform: scale(0); } 100% { opacity: 0; transform: scale(var(--rs, 24)); } }
.btn .ico-ur { transition: transform .45s var(--ease), opacity .2s; }
.btn:hover .ico-ur { transform: translate(2px, -2px); opacity: 1; }

.icon-btn { transition: color .2s, background-color .2s, transform .35s var(--ease-spring); }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.is-done svg { animation: tickPop .5s var(--ease-spring); }
@keyframes tickPop { from { transform: scale(.4) rotate(-12deg); } }

/* ================= Поля ввода ================= */
.input { background: rgba(12, 16, 38, .62); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .25); }
.input:focus { background: rgba(16, 21, 52, .78); box-shadow: 0 0 0 3px rgba(58, 99, 255, .22), 0 0 26px -6px rgba(58, 99, 255, .6); }
.check .tick { transition: background-color .2s, border-color .2s, transform .35s var(--ease-spring); }
.check:active .tick { transform: scale(.88); }
.check input:checked + .tick { background: linear-gradient(180deg, #fff, #dfe6ff); box-shadow: 0 0 16px -2px rgba(120, 150, 255, .7); }

/* ================= Метки: «живая» точка у активного статуса ================= */
.chip { transition: background-color .3s, color .3s; }
.chip-ok i, .chip-blue i { position: relative; }
.chip-ok i::after, .chip-blue i::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
  animation: dotPing 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes dotPing { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

/* ================= Уведомления ================= */
.toast { background: linear-gradient(180deg, rgba(30, 37, 80, .94), rgba(16, 20, 46, .96)); box-shadow: inset 0 1px 0 rgba(200, 214, 255, .1), 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(58, 99, 255, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.toast svg { animation: tickPop .55s var(--ease-spring) .08s backwards; }

/* ================= Шапка главной: плашка, которая скользит за пунктом ================= */
.nav { position: relative; }
.nav a { position: relative; z-index: 1; }
.nav-glide {
  position: absolute; left: 0; top: 0; z-index: 0; height: 100%; width: 0;
  border-radius: 999px; pointer-events: none;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav.has-glide a.is-on { background: transparent; }
.nav-glide.is-on { opacity: 1; }

/* ================= Главная ================= */
/* Без надписей капсом */
.plan-tab { letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; padding: 5px 13px; background: linear-gradient(90deg, #2b4be0, #6a4dff); border-color: rgba(190, 205, 255, .35); box-shadow: 0 8px 22px -8px rgba(58, 99, 255, .8); }
.foot-cols h4 { font-size: 14px; letter-spacing: -.01em; text-transform: none; color: var(--tx-2); }
.plan { overflow: visible; }
.plan:hover { box-shadow: var(--edge), 0 34px 70px -30px rgba(10, 16, 60, .95), 0 0 0 1px rgba(142, 168, 255, .1); }
.plan-price b { background: linear-gradient(180deg, #fff 30%, #b9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-best .plan-price b { background: none; color: #0a0a0a; }
/* галочки «что входит» загораются по очереди, когда список появляется */
.incl.is-in li svg { animation: tickPop .6s var(--ease-spring) backwards; }
.incl.is-in li:nth-child(2) svg { animation-delay: .12s; }
.incl.is-in li:nth-child(3) svg { animation-delay: .24s; }
.incl.is-in li:nth-child(4) svg { animation-delay: .36s; }
/* вопросы: подсветка открытого */
.qa { position: relative; }
.qa::before { content: ''; position: absolute; left: -18px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--ice), var(--violet)); box-shadow: 0 0 12px rgba(58, 99, 255, .8); opacity: 0; transform: scaleY(.3); transition: opacity .4s, transform .6s var(--ease); }
.qa.is-open::before { opacity: 1; transform: none; }
.qa-q { transition: color .25s; }
.qa:not(.is-open) .qa-q { color: rgba(246, 247, 252, .86); }
.qa-q:hover { color: #fff; }
.qa-q:hover .qa-ic { transform: rotate(90deg); }
.qa.is-open .qa-q:hover .qa-ic { transform: rotate(45deg); }
.soc { transition: color .2s, background-color .2s, transform .4s var(--ease-spring); }
.soc:hover { transform: translateY(-3px); }
.foot-cols a { transition: color .2s, transform .35s var(--ease); }
.foot-cols a:hover { transform: translateX(3px); }

/* ================= Вход, регистрация, привязка: карточка из стекла ================= */
.auth-box.auth-card {
  position: relative; isolation: isolate;
  max-width: 440px;
  padding: clamp(26px, 5vw, 40px) clamp(20px, 5vw, 36px) clamp(24px, 4vw, 32px);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(26, 32, 72, .66), rgba(10, 13, 32, .74));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(200, 214, 255, .12), 0 50px 100px -40px rgba(0, 0, 12, .95), 0 0 80px -30px rgba(58, 99, 255, .45);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
/* знак M над заголовком — тихо «дышит» светом */
.auth-card::after {
  content: ''; position: absolute; left: 50%; top: -27px; z-index: 3;
  width: 54px; height: 54px; margin-left: -27px; border-radius: 17px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 446'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232C55E6'/%3E%3Cstop offset='1' stop-color='%236AA4FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M540 0V446L444 350V192L318 318L270 270ZM0 0V446L96 350V192L270 366L318 318Z'/%3E%3Cpath fill='%230A0E33' d='M96 192L175 271L96 350Z'/%3E%3C/svg%3E") center / 30px auto no-repeat,
    linear-gradient(180deg, #161d4a, #0b0f2a);
  border: 1px solid rgba(170, 195, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px -8px rgba(58, 99, 255, .7);
  animation: markBreath 5s ease-in-out infinite alternate;
}
@keyframes markBreath { from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 26px -10px rgba(58, 99, 255, .5); } to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 40px -6px rgba(90, 120, 255, .95); } }
.auth-card .auth-title { margin-top: 10px; }
.auth-card .seg { margin: 26px 0 22px; }
.auth-ok .ok-ring { position: relative; background: linear-gradient(180deg, #fff, #dde5ff); box-shadow: 0 0 0 8px rgba(58, 99, 255, .12), 0 0 60px -6px rgba(90, 130, 255, .85); }
.ok-ring svg { animation: drawTick .8s var(--ease) .3s backwards; }
@keyframes drawTick { from { clip-path: inset(0 100% 0 0); transform: scale(.7); } }
.seg-ind { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }

/* ================= Кабинет и админка: боковая панель ================= */
.page-cab .side { background: linear-gradient(180deg, rgba(10, 13, 32, .55), rgba(6, 8, 20, .35)); }
.side-nav { position: relative; }
.side-nav button { position: relative; z-index: 1; }
.side-nav svg { transition: transform .45s var(--ease-spring), color .25s; }
.side-nav button:hover svg { transform: translateX(2px) scale(1.06); }
.side-nav button[aria-selected="true"] svg { color: var(--ice); }
.side-ind {
  position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0;
  border-radius: 10px; pointer-events: none;
  background: linear-gradient(90deg, rgba(58, 99, 255, .24), rgba(58, 99, 255, .07));
  box-shadow: inset 0 0 0 1px rgba(142, 168, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
}
.side-ind::before {
  content: ''; position: absolute; left: -1px; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 3px;
  background: linear-gradient(180deg, var(--ice), var(--signal));
  box-shadow: 0 0 12px 1px rgba(58, 99, 255, .9);
}
.side-nav.has-ind button[aria-selected="true"] { background: transparent; }
.side-user .av { position: relative; box-shadow: 0 0 0 2px rgba(5, 6, 14, .9), 0 0 0 3.5px rgba(142, 168, 255, .45); transition: box-shadow .4s; }
.side-user:hover .av { box-shadow: 0 0 0 2px rgba(5, 6, 14, .9), 0 0 0 3.5px rgba(142, 168, 255, .9), 0 0 18px rgba(58, 99, 255, .7); }
.side-link svg { transition: transform .45s var(--ease-spring); }
.side-link:hover svg { transform: translateX(2px); }

/* Смена раздела: блоки поднимаются по очереди (запускается каждый раз, когда раздел показан) */
.panel:not([hidden]) > .cab-grid > * { animation: panelIn .7s var(--ease) backwards; }
.panel > .cab-grid > :nth-child(2) { animation-delay: .06s; }
.panel > .cab-grid > :nth-child(3) { animation-delay: .12s; }
.panel > .cab-grid > :nth-child(4) { animation-delay: .18s; }
.panel > .cab-grid > :nth-child(5) { animation-delay: .24s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.js:not(.is-loaded) .panel > .cab-grid > * { opacity: 0; }

/* ================= Кабинет: лицензия как пропуск ================= */
.b-sub {
  overflow: hidden; isolation: isolate;
  border-color: rgba(170, 195, 255, .24);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(96, 136, 255, .34), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(124, 82, 255, .26), transparent 60%),
    linear-gradient(135deg, #0b1240 0%, #13206f 58%, #1c34b0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 40px 80px -42px rgba(40, 80, 255, .7);
}
@media (hover: hover) and (pointer: fine) {
  .b-sub:hover { background:
    radial-gradient(110% 130% at 100% 0%, rgba(96, 136, 255, .34), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(124, 82, 255, .26), transparent 60%),
    linear-gradient(135deg, #0b1240 0%, #13206f 58%, #1c34b0 100%); }
}
/* голографический отлив, который смещается за курсором, и знак M водяным знаком */
.b-sub::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 32%, rgba(150, 210, 255, .16) 44%, rgba(196, 150, 255, .14) 51%, rgba(255, 255, 255, .1) 54%, transparent 66%) calc(var(--px, .3) * 100%) 0 / 260% 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 446'%3E%3Cpath fill='%23fff' fill-opacity='.07' d='M540 0V446L444 350V192L318 318L270 270ZM0 0V446L96 350V192L270 366L318 318Z'/%3E%3Cpath fill='%23fff' fill-opacity='.03' d='M96 192L175 271L96 350Z'/%3E%3C/svg%3E") no-repeat right -70px bottom -96px / 330px auto;
  transition: background-position .9s var(--ease);
}
.is-loaded .b-sub::after { animation: holoSweep 2.4s var(--ease) .5s backwards; }
@keyframes holoSweep { from { background-position: 140% 0, right -70px bottom -96px; } }
.b-sub .box-h h2 { color: rgba(255, 255, 255, .78); }
.b-sub .sub-until { color: rgba(220, 228, 255, .66); }
.b-sub .sub-plan > b { text-shadow: 0 2px 24px rgba(120, 160, 255, .45); }
.b-sub.has-ring { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr; column-gap: 26px; }
.b-sub.has-ring > * { grid-column: 1; }
.b-sub.has-ring > .box-h, .b-sub.has-ring > .box-btns { grid-column: 1 / -1; }
.b-sub.has-ring > .box-btns { align-self: end; }
.b-sub.has-ring > .pass-ring { grid-column: 2; grid-row: 2 / span 2; align-self: center; }

.pass-ring { position: relative; display: grid; place-items: center; align-content: center; width: 112px; height: 112px; text-align: center; line-height: 1; }
.pass-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pass-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.pass-ring .trk { stroke: rgba(255, 255, 255, .12); }
.pass-ring .val { stroke: url(#passGrad); stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(120, 160, 255, .8)); transition: stroke-dashoffset 1.6s var(--ease) .35s; }
.pass-ring b { font-size: 32px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pass-ring span { margin-top: 4px; font-size: 12.5px; color: rgba(220, 228, 255, .7); }

/* ================= Кабинет: прочее ================= */
.launcher-card { overflow: hidden; }
.launcher-mark { position: relative; isolation: isolate; box-shadow: 0 0 40px -10px rgba(58, 99, 255, .7); }
.launcher-mark::after {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 55%, rgba(142, 168, 255, .95) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinBorder 4.5s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --ang: 360deg; } }
.launcher-mark svg { animation: floatY 5s ease-in-out infinite alternate; }
@keyframes floatY { from { transform: translateY(2px); } to { transform: translateY(-3px); } }

/* шаги первого запуска — это последовательность, поэтому номера */
.steps.launcher-steps { counter-reset: st; list-style: none; padding-left: 0; gap: 16px; }
.launcher-steps li { position: relative; counter-increment: st; padding-left: 42px; min-height: 28px; }
.launcher-steps li::before {
  content: counter(st); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(58, 99, 255, .16); border: 1px solid rgba(142, 168, 255, .3);
  font-size: 13px; font-weight: 600; color: var(--ice);
}
.launcher-steps li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 30px; bottom: -14px; width: 1px; background: linear-gradient(var(--line-3), transparent); }

.rel { transition: border-color .3s, transform .4s var(--ease); }
.rel:hover { border-color: var(--line-3); transform: translateX(2px); }

/* таблицы */
.tbl tbody tr, .dt tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover td { background: rgba(142, 168, 255, .035); }
.tbl td.mono { color: var(--tx); }

/* резервные коды и ключ */
.recovery-list code, .key code { padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); border: 1px dashed var(--line-2); }

/* ================= Заглушки загрузки (скелетоны) ================= */
.sk {
  display: block; height: 12px; border-radius: 7px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .045) 30%, rgba(170, 190, 255, .13) 50%, rgba(255, 255, 255, .045) 70%) 0 0 / 300% 100%;
  animation: skMove 1.5s ease-in-out infinite;
}
@keyframes skMove { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-row td { padding-top: 16px !important; padding-bottom: 16px !important; }
.sk-row .sk { width: 100%; max-width: 100%; }
.sk-row:nth-child(2) .sk { width: 86%; }
.sk-row:nth-child(3) .sk { width: 72%; }
.sk-li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.sk-li .sk { width: 70%; }
.sk-li:nth-child(2) .sk { width: 54%; }
/* пока данные кабинета не пришли, прочерки — это мерцающие полоски */
.cab:not(.is-ready) .sk-t {
  display: inline-block; min-width: 5.5em; border-radius: 9px; color: transparent !important;
  background: linear-gradient(100deg, rgba(255, 255, 255, .06) 30%, rgba(170, 190, 255, .16) 50%, rgba(255, 255, 255, .06) 70%) 0 0 / 300% 100%;
  animation: skMove 1.5s ease-in-out infinite;
}
.cab:not(.is-ready) .chip.sk-t { min-width: 84px; }
.cab:not(.is-ready) .chip.sk-t i { opacity: 0; }
.cab.is-ready .sk-t { animation: fade .5s ease; }

/* админка: скелет раздела, пока идёт загрузка */
.sk-view { display: grid; gap: 14px; }
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.sk-tile { height: 118px; border-radius: var(--r-lg); }
.sk-panel { height: 300px; border-radius: var(--r-lg); }

/* ================= Пустые состояния: знак M парит ================= */
.empty, .tbl td.empty-cell { position: relative; }
.empty::before, .tbl td.empty-cell::before {
  content: ''; display: block; width: 46px; height: 38px; margin: 0 auto 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 446'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232C55E6' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23A9C4FF' stop-opacity='.8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M540 0V446L444 350V192L318 318L270 270ZM0 0V446L96 350V192L270 366L318 318Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 8px 18px rgba(58, 99, 255, .45));
  animation: floatY 3.2s ease-in-out infinite alternate;
}
.empty::after, .tbl td.empty-cell::after {
  content: ''; position: absolute; left: 50%; width: 30px; height: 6px; margin-left: -15px; border-radius: 50%;
  top: calc(var(--empty-top, 28px) + 46px); background: rgba(58, 99, 255, .35); filter: blur(4px);
  animation: shadowPulse 3.2s ease-in-out infinite alternate;
}
@keyframes shadowPulse { from { transform: scaleX(.8); opacity: .55; } to { transform: scaleX(1.15); opacity: .25; } }
.tbl td.empty-cell { padding: 40px 24px 36px; text-align: center; white-space: normal; color: var(--tx-3); --empty-top: 40px; }
.empty { padding: 32px 16px 30px; }

/* ================= Админка ================= */
.page-admin .sec-h { letter-spacing: -.005em; text-transform: none; font-size: 13.5px; font-weight: 500; color: var(--tx-3); margin: 20px 0 6px; }
.page-admin .sec-h:first-of-type { margin-top: 4px; }
.tile { overflow: hidden; isolation: isolate; }
.tile b { background: linear-gradient(180deg, #fff 35%, #b8c7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile.is-warn { border-color: rgba(242, 184, 75, .42); background: linear-gradient(180deg, rgba(64, 48, 18, .5), rgba(30, 22, 10, .55)); animation: warnBreath 3.6s ease-in-out infinite alternate; }
.tile.is-warn b { background: linear-gradient(180deg, #ffe2a6 25%, #f2b84b); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes warnBreath { from { box-shadow: var(--edge), 0 0 0 0 rgba(242, 184, 75, 0); } to { box-shadow: var(--edge), 0 0 44px -10px rgba(242, 184, 75, .42); } }
.tile::after { content: ''; position: absolute; right: -40px; top: -40px; z-index: -1; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(58, 99, 255, .16), transparent); pointer-events: none; }
.tile.is-warn::after { background: radial-gradient(closest-side, rgba(242, 184, 75, .18), transparent); }
.sums div { padding: 6px 0; }
.sums div b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

.badge { position: relative; box-shadow: 0 0 14px rgba(242, 184, 75, .55); }
.badge::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(242, 184, 75, .6); animation: badgePing 2.2s ease-out infinite; }
@keyframes badgePing { to { box-shadow: 0 0 0 9px rgba(242, 184, 75, 0); } }

/* график оплат: сетка, свечение, столбики вырастают */
.bars { position: relative; height: 180px; padding-top: 8px; gap: 5px; background-image: linear-gradient(rgba(170, 190, 255, .07) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 100%; border-bottom: 1px solid var(--line-2); }
.bars i { position: relative; transform-origin: 50% 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #9fb6ff, #3a63ff 55%, rgba(58, 99, 255, .25)); box-shadow: 0 0 18px -4px rgba(58, 99, 255, .7); transition: filter .25s, transform .3s var(--ease); }
.bars i:hover { filter: brightness(1.35); transform: scaleX(1.25); }
.bars i.is-zero { height: 3px !important; align-self: flex-end; background: rgba(255, 255, 255, .1); box-shadow: none; border-radius: 2px; }
#view.is-enter .bars i { animation: barUp .9s var(--ease) calc(.25s + var(--i, 0) * 16ms) backwards; }
@keyframes barUp { from { transform: scaleY(0); } }

/* таблицы админки: не рвать суммы, номера и даты */
.dt td { white-space: nowrap; }
.dt td.sm:has(> div) { white-space: normal; min-width: 150px; max-width: 230px; }
.dt td .mono, .dt td b.mono { letter-spacing: .01em; }
.dt tbody tr { position: relative; }
.dt tbody tr:hover td { background: rgba(142, 168, 255, .04); }
.dt tbody tr td:first-child { box-shadow: inset 2px 0 0 transparent; transition: box-shadow .25s; }
.dt tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--signal); }
.dt .chip-blue { box-shadow: 0 0 0 1px rgba(142, 168, 255, .22), 0 0 16px -4px rgba(58, 99, 255, .7); }
.tools .input { height: 42px; }
.tools select.input { max-width: 220px; flex: 0 1 220px; min-width: 160px; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--tx-3) 50%), linear-gradient(135deg, var(--tx-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.tools select.input option { background: #10132a; }
.pool i { transform-origin: 0 50%; animation: poolIn 1.2s var(--ease) .2s backwards; box-shadow: 0 0 12px rgba(60, 207, 134, .6); }
@keyframes poolIn { from { transform: scaleX(0); } }

/* смена раздела в админке */
#view.is-enter > * { animation: panelIn .65s var(--ease) backwards; }
#view.is-enter > :nth-child(2) { animation-delay: .07s; }
#view.is-enter > :nth-child(3) { animation-delay: .14s; }
#view.is-enter .tiles > *, #view.is-enter .view-grid > * { animation: panelIn .7s var(--ease) backwards; }
#view.is-enter .tiles > :nth-child(2), #view.is-enter .view-grid > :nth-child(2) { animation-delay: .06s; }
#view.is-enter .tiles > :nth-child(3), #view.is-enter .view-grid > :nth-child(3) { animation-delay: .12s; }
#view.is-enter .tiles > :nth-child(4), #view.is-enter .view-grid > :nth-child(4) { animation-delay: .18s; }
#view.is-enter .dt tbody tr { animation: rowIn .5s var(--ease) backwards; }
#view.is-enter .dt tbody tr:nth-child(2) { animation-delay: .03s; }
#view.is-enter .dt tbody tr:nth-child(3) { animation-delay: .06s; }
#view.is-enter .dt tbody tr:nth-child(4) { animation-delay: .09s; }
#view.is-enter .dt tbody tr:nth-child(5) { animation-delay: .12s; }
#view.is-enter .dt tbody tr:nth-child(6) { animation-delay: .15s; }
#view.is-enter .dt tbody tr:nth-child(7) { animation-delay: .18s; }
#view.is-enter .dt tbody tr:nth-child(n+8) { animation-delay: .21s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.page-admin .cab-top h1, .page-cab .cab-top h1 { animation: titleIn .6s var(--ease); }
@keyframes titleIn { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }

/* окна */
dialog.dlg { background: linear-gradient(180deg, rgba(24, 30, 66, .97), rgba(12, 15, 34, .98)); box-shadow: inset 0 1px 0 rgba(200, 214, 255, .1), 0 40px 120px rgba(0, 0, 0, .6), 0 0 90px -30px rgba(58, 99, 255, .45); }
dialog.dlg[open] { animation: modalIn .45s var(--ease); }
dialog.dlg[open]::backdrop { animation: fade .3s ease; }
.modal-card { background: linear-gradient(180deg, rgba(24, 30, 66, .97), rgba(12, 15, 34, .98)); box-shadow: inset 0 1px 0 rgba(200, 214, 255, .1); }
.callout { box-shadow: inset 3px 0 0 rgba(90, 125, 255, .7); }
.callout.warn { box-shadow: inset 3px 0 0 rgba(242, 184, 75, .8); }

/* ================= Оплата ================= */
.opt { transition: border-color .25s, box-shadow .35s var(--ease), background-color .2s, transform .35s var(--ease); }
.opt:hover { transform: translateY(-2px); }
.opt:active { transform: scale(.985); }
.opt[aria-checked="true"] { border-color: rgba(170, 192, 255, .7); background: linear-gradient(180deg, rgba(48, 66, 160, .42), rgba(18, 24, 62, .62)); box-shadow: inset 0 0 0 1px rgba(170, 192, 255, .5), 0 18px 40px -20px rgba(58, 99, 255, .9); }
.opt[aria-checked="true"] .opt-dot { border-color: var(--ice); box-shadow: 0 0 12px rgba(120, 150, 255, .8); }
.opt[aria-checked="true"] .opt-dot::after { background: #fff; }
.opt[aria-checked="true"] .opt-ic { background: rgba(58, 99, 255, .3); color: #fff; }
.opt-ic { transition: background-color .3s, transform .45s var(--ease-spring); }
.opt:hover .opt-ic { transform: rotate(-6deg) scale(1.06); }
.co-step h2 i { background: rgba(58, 99, 255, .16); border: 1px solid rgba(142, 168, 255, .28); color: var(--ice); }
.sum-total b { background: linear-gradient(180deg, #fff 30%, #b9c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-total b.is-bump { animation: bump .45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.08); } }
.co-sum { box-shadow: var(--edge), 0 40px 80px -40px rgba(0, 0, 14, .95); }
.co-done .ok-ring { width: 88px; height: 88px; background: linear-gradient(180deg, #fff, #dde5ff); box-shadow: 0 0 0 10px rgba(58, 99, 255, .12), 0 0 0 22px rgba(58, 99, 255, .05), 0 0 80px -6px rgba(90, 130, 255, .9); }
.co-done .ok-ring svg { width: 40px; height: 40px; }
.pay-instr { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .3); border-style: dashed; border-color: var(--line-2); }

/* ================= Конфетти ================= */
.fx-confetti { position: fixed; inset: 0; z-index: 400; width: 100%; height: 100%; pointer-events: none; }

/* ================= Адаптив ================= */
@media (max-width: 900px) {
  .side-ind::before { left: 50%; top: auto; bottom: 3px; width: 16px; height: 2px; margin: 0 0 0 -8px; }
  .page-cab .side { background: rgba(6, 8, 18, .86); }
}
@media (max-width: 600px) {
  .pass-ring { width: 84px; height: 84px; }
  .pass-ring b { font-size: 24px; }
  .pass-ring span { font-size: 11.5px; }
  .b-sub.has-ring { column-gap: 14px; }
  .auth-card::after { width: 46px; height: 46px; top: -23px; margin-left: -23px; background-size: 26px auto, auto; }
  .bars { height: 140px; gap: 3px; }
  .qa::before { left: -10px; }
}

/* ================= Без движения ================= */
@media (prefers-reduced-motion: reduce) {
  .sk, .cab:not(.is-ready) .sk-t { animation: none !important; background: rgba(255, 255, 255, .07); }
  .pass-ring .val, .b-sub::after { transition: none; }
  .chip-ok i::after, .chip-blue i::after, .badge::after { display: none; }
  .fx-confetti { display: none; }
}
.no-anim .panel > .cab-grid > *, .no-anim #view > * { animation: none !important; opacity: 1 !important; }

/* ================= Доводка после первых снимков ================= */
.side-nav button .badge { position: relative; }
/* доход: три колонки — сегодня, месяц, всё время */
.box:has(> .sums) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; grid-auto-flow: column; align-content: start; column-gap: 0; }
.box:has(> .sums) > .box-h { grid-column: 1 / -1; grid-row: 1; }
.box:has(> .sums) > .sec-h, .box:has(> .sums) > .sums { padding: 0 18px; border-left: 1px solid var(--line); }
.box:has(> .sums) > .box-h + .sec-h, .box:has(> .sums) > .box-h + .sec-h + .sums { padding-left: 0; border-left: 0; }
.page-admin .box:has(> .sums) > .sec-h { margin: 0 0 6px; }
.box > .sums { align-content: start; gap: 10px; margin-top: 0; }
.box > .sums div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 0; }
.box > .sums div b { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; line-height: 1.1; background: linear-gradient(180deg, #fff 35%, #b8c7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.box > .sums div span { font-size: 13px; }
/* «Подготовь к запуску» — строка: текст слева, кнопка справа */
.b-dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
.b-dl > .box-h { margin-bottom: 6px; min-height: 0; }
.b-dl > .box-note { grid-column: 1; margin-top: 0; }
.b-dl > .box-btns { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
/* срок тарифа: 12 делений — месяцы года, горят оплаченные */
.plan-meter { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 2px 0 22px; }
.plan-meter i { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.plan-meter i.on { background: linear-gradient(90deg, #8ea8ff, #3a63ff); box-shadow: 0 0 10px -1px rgba(58, 99, 255, .9); }
.plan.is-in .plan-meter i.on { animation: meterOn .6s var(--ease) calc(.35s + var(--i, 0) * 70ms) backwards; }
.plan-meter.is-forever i { background: linear-gradient(90deg, #8ea8ff, #7c52ff); }
.plan-best .plan-meter i { background: rgba(0, 0, 0, .1); }
.plan-best .plan-meter i.on, .plan-best .plan-meter.is-forever i { background: #111; box-shadow: none; }
@keyframes meterOn { from { opacity: .1; transform: scaleX(.3); } }
.plan > h3 { display: flex; align-items: center; justify-content: space-between; }
.plan:not(.plan-best)::after { background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(110, 140, 255, .1), transparent 45%); }
.plan:not(.plan-best) { border-top-color: rgba(170, 192, 255, .2); }
@media (max-width: 1100px) {
  .box:has(> .sums) { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .box:has(> .sums) > .sec-h, .box:has(> .sums) > .sums { padding: 0; border-left: 0; }
  .page-admin .box:has(> .sums) > .sec-h { margin-top: 14px; }
}
@media (max-width: 760px) {
  .b-dl { display: flex; }
  .b-dl > .box-btns { padding-top: 20px; }
}

.plan-price b .num { font-size: inherit; color: inherit; letter-spacing: inherit; }
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px; }
  .tile b { font-size: 26px; }
  .tile small { font-size: 12px; }
}

.box-note + .tbl-wrap { margin-top: 18px; }
