:root {
  --bg: #000;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .66);
  --ink-3: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .32);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 46%, rgba(255, 255, 255, .09));
  --glass-2: rgba(255, 255, 255, .11);
  --well: rgba(0, 0, 0, .38);
  /* Блик сверху и мягкая тень снизу: из них и складывается объём стекла */
  --edge: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 1px 0 0 rgba(255, 255, 255, .07), inset -1px 0 0 rgba(255, 255, 255, .07);
  --lift: 0 18px 50px rgba(0, 0, 0, .55);
  --blur: blur(26px) brightness(.72) saturate(160%);
  --radius: 22px;
  --radius-sm: 14px;
  --head: 'Manrope', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }

/* Что преломляет стекло: медленные белые пятна на чёрном */
body::before, body::after { content: ''; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; will-change: transform; }
body::before { width: 70vmax; height: 70vmax; right: -14vmax; top: -30vmax; background: radial-gradient(circle, rgba(255, 255, 255, .34), rgba(255, 255, 255, .17) 38%, rgba(255, 255, 255, 0) 70%); animation: drift-a 34s ease-in-out infinite alternate; }
body::after { width: 60vmax; height: 60vmax; left: -16vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(255, 255, 255, .28), rgba(255, 255, 255, .13) 38%, rgba(255, 255, 255, 0) 70%); animation: drift-b 42s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-26vmax, 22vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(30vmax, -18vmax) scale(.9); } }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.hidden { display: none !important; }

/* Шапка: плавающая стеклянная полоса */
.top { position: sticky; top: 12px; z-index: 20; padding: 0 12px; margin-top: 12px; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: 999px; box-shadow: var(--edge), var(--lift); padding: 6px 12px 6px 22px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--head); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.cube { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, #fff 0 42%, rgba(255, 255, 255, .28) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 16px rgba(255, 255, 255, .35); flex: none; }
.nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a.on { color: var(--ink); }
.balance { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; text-decoration: none; }

/* Кнопки-капли */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font: 600 .95rem var(--body); cursor: pointer; color: var(--ink); background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .15s; white-space: nowrap; text-decoration: none; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .19); transform: translateY(-1px) scale(1.015); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.primary { background: #fff; color: #000; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), 0 8px 28px rgba(255, 255, 255, .2); }
.btn.primary:hover:not(:disabled) { background: #fff; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), 0 10px 38px rgba(255, 255, 255, .34); }
.btn.danger { background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1.5px #fff; }
.btn.danger:hover:not(:disabled) { background: #000; }
.btn.ghost { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.big { padding: 17px 42px; font: 700 1.08rem var(--head); }

/* Поля */
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: var(--well); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font: 400 .95rem var(--body); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--line-strong); }
input::placeholder { color: var(--ink-3); }
option { background: #111; color: #fff; }
textarea { font-family: var(--mono); font-size: .85rem; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: #fff; flex: none; }
.hint { font-size: .82rem; color: var(--ink-2); font-weight: 400; }

.panel { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--edge), var(--lift); padding: 22px; }
.panel.tight { padding: 0; overflow: hidden; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.banner { padding: 11px 16px; border-radius: var(--radius-sm); font-size: .9rem; background: var(--glass-2); box-shadow: var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.banner.err { background: #fff; color: #000; box-shadow: none; font-weight: 500; }
.banner.err a { color: #000; }

.code-input { font: 700 1.7rem var(--mono) !important; letter-spacing: .4em; text-align: center; padding-left: 1.2rem !important; }

/* Единственный цветной элемент сайта: перегрузка должна быть заметна сразу */
.free-alert-wrap { padding-top: 14px; }
.free-alert-wrap:has(.free-alert.hidden) { display: none; }
.free-alert { width: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 16px; border: 0; border-radius: var(--radius-sm); background: #d92d20; color: #fff; font: 500 .92rem var(--body); text-align: left; cursor: pointer; box-shadow: 0 8px 28px rgba(217, 45, 32, .35); }
.free-alert:hover { background: #e8392b; }
.free-alert-more { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.free-alert-title { color: #ff6b5e; font-size: 1.15rem; }
.free-alert-list { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 5px; }

/* Очередь: кубики идут по конвейеру к вашему серверу */
.queue-box { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 520px; }
.queue-stage { position: relative; width: 100%; height: 96px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.queue-stage::after { content: ''; position: absolute; left: 0; right: 0; top: 76px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 14px, transparent 14px 28px); background-size: 28px 2px; animation: queue-belt 1.1s linear infinite; }
.queue-cube { position: absolute; left: 0; top: 50px; width: 24px; height: 24px; animation: queue-walk 12s linear infinite; }
.queue-cube b { display: block; width: 100%; height: 100%; border-radius: 7px; background: linear-gradient(145deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .14); animation: queue-hop 1.1s ease-in-out infinite; }
.queue-cube:nth-child(even) b { animation-delay: -.55s; }
.queue-you { position: absolute; left: 50%; top: 40px; width: 36px; height: 36px; margin-left: -18px; border-radius: 10px; background: linear-gradient(145deg, #fff 30%, rgba(255, 255, 255, .6)); box-shadow: 0 0 26px rgba(255, 255, 255, .55); animation: queue-breathe 2.2s ease-in-out infinite; }
.queue-ring { position: absolute; left: 50%; top: 58px; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); animation: queue-ripple 2.6s ease-out infinite; }
.queue-ring.second { animation-delay: -1.3s; }
.queue-head { text-align: center; }
.queue-place { font: 800 3.4rem/1.05 var(--head); letter-spacing: -.04em; background: linear-gradient(180deg, #fff 25%, rgba(255, 255, 255, .45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.queue-place.pop { animation: queue-pop .6s cubic-bezier(.3, 1.8, .5, 1); }
.queue-flow { width: 100%; height: 8px; border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(90deg, transparent 0 30%, rgba(255, 255, 255, .85) 50%, transparent 70%) 0 0 / 45% 100% no-repeat, var(--well); animation: queue-flow 2s ease-in-out infinite; }
.queue-total { font-weight: 600; }
.queue-waited { color: var(--ink-2); }
.queue-dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.queue-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: queue-dot 1.2s ease-in-out infinite; }
.queue-dots i:nth-child(2) { animation-delay: .15s; }
.queue-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes queue-walk { from { transform: translateX(-40px); } to { transform: translateX(540px); } }
@keyframes queue-hop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-13px) rotate(8deg); } }
@keyframes queue-belt { to { background-position-x: -28px; } }
@keyframes queue-breathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.09) rotate(3deg); } }
@keyframes queue-ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(4); opacity: 0; } }
@keyframes queue-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes queue-flow { 0% { background-position: -60% 0, 0 0; } 100% { background-position: 170% 0, 0 0; } }
@keyframes queue-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Лендинг */
.free-card-title { font: 800 2.4rem var(--head); letter-spacing: -.04em; line-height: 1.1; }
.free-card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.free-card-list b { font-family: var(--mono); font-weight: 600; }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; line-height: 1.05; }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .42) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin-bottom: 26px; }
.slots-card { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: 30px; padding: 26px; box-shadow: var(--edge), var(--lift); }
.section { padding: 48px 0; }
.section > .wrap > h2 { margin-bottom: 8px; }
.section .sub { color: var(--ink-2); margin-bottom: 26px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; }
.price { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--edge), var(--lift); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.price:hover { transform: translateY(-4px); background: var(--glass-2); }
.price.free { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), var(--lift); }
.price .cost { font: 800 1.7rem var(--head); letter-spacing: -.03em; }
.price .cost small { font: 400 .85rem var(--body); color: var(--ink-2); letter-spacing: 0; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .92rem; }
.price li b { font-family: var(--mono); font-weight: 600; }
.price .btn { margin-top: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--edge); padding: 18px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--glass-2); box-shadow: var(--edge); padding: 5px 14px; border-radius: 99px; font-size: .88rem; }
.group-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 6px 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--ink-2); margin-top: 8px; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--ink-2); font-size: .85rem; margin-top: 40px; }

/* Страницы */
.page { padding-top: 32px; padding-bottom: 60px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.auth { max-width: 420px; margin: 56px auto; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.server-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.server-card:hover { background: var(--glass-2); transform: translateY(-3px); }

/* Статусы без цвета: заливка точки и пульсация вместо красного и зелёного */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: var(--glass-2); box-shadow: var(--edge); }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.online { background: #fff; color: #000; box-shadow: 0 0 16px rgba(255, 255, 255, .4); }
.pill.starting::before, .pill.stopping::before, .pill.queued::before { animation: blink 1s infinite; }
.pill.crashed { background: #000; box-shadow: inset 0 0 0 1.5px #fff; }
.pill.crashed::before { border-radius: 1px; transform: rotate(45deg); }
.pill.offline { color: var(--ink-2); }
.pill.offline::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@keyframes blink { 50% { opacity: .2; } }

/* Заказ */
.order { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.summary { position: sticky; top: 92px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 14px 0; font-size: .92rem; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-family: var(--mono); text-align: right; }
.summary .total { font: 800 1.6rem var(--head); letter-spacing: -.03em; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick { text-align: left; background: rgba(255, 255, 255, .04); border: 0; border-radius: var(--radius-sm); padding: 13px 15px; color: var(--ink); cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.pick:hover:not(:disabled) { background: var(--glass-2); transform: translateY(-1px); }
.pick.on, .pick.on:hover:not(:disabled) { background: #fff; color: #000; box-shadow: 0 6px 26px rgba(255, 255, 255, .24); }
.pick.on .muted { color: rgba(0, 0, 0, .62); }
.pick:disabled { opacity: .38; cursor: not-allowed; }
.pick b { font-family: var(--head); font-size: .95rem; }

/* Сервер */
.srv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.addr { font-family: var(--mono); background: var(--glass-2); border: 0; box-shadow: var(--edge); padding: 7px 14px; border-radius: 99px; cursor: pointer; color: var(--ink); font-size: .92rem; transition: background .15s; }
.addr:hover { background: rgba(255, 255, 255, .2); }
.tabs { display: flex; gap: 2px; padding: 5px; margin-bottom: 20px; overflow-x: auto; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: 999px; box-shadow: var(--edge); scrollbar-width: none; }
.tabs a { padding: 8px 15px; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; border-radius: 999px; text-decoration: none; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.tabs a.on { color: #000; background: #fff; }

.status-hero { text-align: center; padding: 38px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.status-word { font: 800 2.1rem var(--head); letter-spacing: -.035em; }
.status-word.offline { color: var(--ink-2); }
.bar { width: 100%; height: 10px; background: var(--well); border-radius: 99px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .72)); box-shadow: 0 0 14px rgba(255, 255, 255, .5); transition: width .4s; }
.bar.warn i { background: repeating-linear-gradient(-45deg, #fff 0 6px, rgba(255, 255, 255, .55) 6px 12px); }
.bar.bad i { background: repeating-linear-gradient(-45deg, #fff 0 3px, rgba(255, 255, 255, .3) 3px 6px); }
.steps { display: flex; justify-content: center; gap: 6px 18px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-3); }
.steps .done { color: var(--ink-2); }
.steps .now { color: var(--ink); font-weight: 700; }
.start-live { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 620px; }
.start-note { font-weight: 600; }
.start-log { width: 100%; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.meter .val { font: 600 1.25rem var(--mono); }
.spark { width: 100%; height: 44px; display: block; margin-top: 8px; }
.spark path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .5)); }

.console { background: rgba(0, 0, 0, .62); font: 400 .82rem/1.55 var(--mono); padding: 16px; height: 480px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; color: rgba(255, 255, 255, .82); }
.console .warn { color: #fff; font-weight: 600; text-decoration: underline dotted rgba(255, 255, 255, .6); }
.console .err { background: #fff; color: #000; font-weight: 600; }
.console .panel-line { color: var(--ink-3); }
.console .cmd { color: #fff; font-weight: 600; }
.console-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.console-input input { font-family: var(--mono); border-radius: 999px; }

.crumbs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: .9rem; color: var(--ink-3); }
.crumbs button { background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; padding: 2px 4px; border-radius: 6px; }
.crumbs button:hover { background: var(--glass-2); }
.file-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.file-table td { padding: 8px 14px; border-top: 1px solid var(--line); }
.file-table tr:hover td { background: rgba(255, 255, 255, .05); }
.file-table .name { background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; text-align: left; padding: 0; word-break: break-all; }
.file-table .name:hover { text-decoration: underline; }
.file-table .ico { width: 22px; font-size: 0; }
.file-table .ico i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.file-table .ico i.dir { background: #fff; box-shadow: none; }
.file-table .acts { text-align: right; white-space: nowrap; }
.file-table .num { color: var(--ink-2); font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.dropping { outline: 2px dashed #fff; outline-offset: -8px; }

.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.head-ico { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .25)); flex: none; }
.addon-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
/* Иконки из каталога цветные, поэтому приводим их к общей гамме */
.addon-row img, .addon-row .noicon { width: 44px; height: 44px; border-radius: 12px; background: var(--glass-2); flex: none; object-fit: cover; filter: grayscale(1); }

.tx-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tx-table td { padding: 10px 14px; border-top: 1px solid var(--line); }
.tx-table .plus { font-weight: 700; }
.tx-table .amount { font-family: var(--mono); text-align: right; white-space: nowrap; }

.console-head { padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); }
.shop-card h3 { font-size: 1.2rem; }
.spawn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.spawn-card { padding: 0; overflow: hidden; gap: 0; }
.spawn-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0c0c0c; }
.spawn-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.spawn-body .row { margin-top: auto; }
.section-head { margin: 34px 0 14px; }
.shop-card .btn { margin-top: auto; }

/* ИИ-помощник: занимает 10–20% экрана справа, на телефоне весь экран */
:root { --ai-width: clamp(280px, 20vw, 420px); }
.ai-panel { position: fixed; top: 12px; right: 12px; bottom: 12px; width: var(--ai-width); z-index: 40; display: flex; flex-direction: column; background: rgba(24, 24, 24, .72); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--radius); box-shadow: var(--edge), var(--lift); overflow: hidden; }
body.ai-open #app { margin-right: calc(var(--ai-width) + 24px); }
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; background: rgba(40, 40, 40, .62); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), var(--lift); padding: 12px 20px; }
body.ai-open .ai-fab { display: none; }
#toasts { bottom: 72px; }
.ai-head { padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.ai-list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { padding: 9px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 92%; }
.ai-msg.user { align-self: flex-end; background: #fff; color: #000; }
.ai-msg.assistant { align-self: flex-start; background: var(--glass-2); }
.ai-msg.action { align-self: stretch; max-width: none; background: none; padding: 2px 4px; color: var(--ink-2); font-size: .8rem; }
.ai-wait { animation: blink 1.2s infinite; }
.ai-confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px #fff; font-size: .9rem; }
.ai-input { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.ai-input textarea { font-family: var(--body); font-size: .9rem; resize: none; }
.ai-input .btn { align-self: flex-end; }
.ai-note { padding: 0 12px 10px; font-size: .72rem; line-height: 1.35; }

/* Окна и уведомления */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: rgba(30, 30, 30, .62); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), 0 30px 80px rgba(0, 0, 0, .7); border-radius: 26px; padding: 24px; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal.wide { max-width: 980px; }
.modal input:focus-visible, .modal select:focus-visible, .modal textarea:focus-visible { outline-offset: -2px; }
.modal textarea { height: 62vh; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: rgba(40, 40, 40, .7); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--edge), 0 12px 34px rgba(0, 0, 0, .6); padding: 11px 18px; border-radius: 18px; font-size: .92rem; }
.toast.err { background: #fff; color: #000; font-weight: 500; }

/* Без поддержки размытия стекло не должно терять читаемость */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .price, .feature, .slots-card, .top .wrap, .tabs, .modal, .toast:not(.err) { background: #181818; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .pill::before, .ai-wait, .queue-cube, .queue-cube b, .queue-you, .queue-ring, .queue-place, .queue-flow, .queue-dots i, .queue-stage::after { animation: none !important; }
  .queue-cube, .queue-ring { display: none; }
  .btn, .pick, .price, .server-card, .bar i { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .price, .feature, .slots-card, .top .wrap, .tabs, .modal, .toast:not(.err) { background: #181818; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid, .order { grid-template-columns: 1fr; }
  .summary { position: static; }
  .file-table .num.hide-sm { display: none; }
  .btn.big { padding: 15px 30px; }
  .console { height: 380px; }
  .ai-panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; border-radius: 0; }
  body.ai-open #app { margin-right: 0; }
  .top { position: static; padding: 0 8px; margin-top: 8px; }
  .top .wrap { border-radius: 26px; padding: 8px 14px; gap: 10px; }
}
