/* CS Monitor — основні стилі */
:root {
  --bg: #111214;
  --bg2: #16181b;
  --panel: #1b1d21;
  --panel2: #23262b;
  --line: #2d3036;
  --text: #e7e9ee;
  --muted: #8a92a3;
  --accent: #e2b45a;
  --accent2: #f0cc82;
  --ok: #34d399;
  --off: #ef4444;
  --gold: #f5c542;
  --vip: #a78bfa;
  --boost: #38bdf8;
  --radius: 10px;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* загальний масштаб сайту на ПК (1 = 100%) */
@media (min-width: 1100px) { html { zoom: .88; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(226,180,90,.10), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 24px; padding-bottom: 48px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; }
.center { text-align: center; }
.h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0; font-weight: 650; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(17,18,20,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.logo__mark { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 550; }
.nav a:hover { color: #fff; background: var(--panel); }
.nav a.is-active { color: #fff; background: var(--panel2); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.stat__v { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__v--ok { color: var(--ok); }
.stat__l { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- blocks ---------- */
.block { margin-bottom: 28px; }
.block__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.block__head h2 { font-size: 19px; }

/* ---------- top cards ---------- */
.topgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tcard { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
a.tcard:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.tcard__map { position: relative; height: 96px; background: center/cover no-repeat; }
.tcard__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); }
.tcard__map--empty, .shead__map--empty {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, #24272c, #191b1e);
}
.tcard__pos { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--accent); color: #1d1504; font-weight: 800; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.tcard__map .gbadge { position: absolute; top: 8px; right: 8px; z-index: 1; }
.tcard__mapname { position: absolute; left: 10px; bottom: 6px; z-index: 1; font-family: var(--mono); font-size: 12px; color: #fff; }
.tcard__body { padding: 10px 12px 12px; }
.tcard__name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.tcard__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tcard--free { border-style: dashed; opacity: .7; }

/* ---------- filters ---------- */
.filters { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 550; }
.chip:hover { color: #fff; border-color: #41454d; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #1d1504; }
.filters__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters__row input[type=search] { flex: 1 1 260px; }
.filters__row select { flex: 0 1 200px; }

.input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 9px 12px; font: inherit; width: 100%; outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,180,90,.18); }
textarea.input { resize: vertical; }
select.input { width: auto; }
.check { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 14px; white-space: nowrap; cursor: pointer; }
.check input { accent-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #1d1504; border: 1px solid var(--accent); border-radius: 8px;
  padding: 9px 16px; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent2); border-color: var(--accent2); color: #1d1504; }
.btn--ghost { background: var(--panel2); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--panel); border-color: #41454d; }
.btn--lg { padding: 12px 22px; font-size: 16px; }
.btn small { color: var(--muted); font-family: inherit; font-size: 12px; }

/* ---------- badges ---------- */
.gbadge { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; letter-spacing: .3px; color: #fff; background: #4b5563; flex: none; }
.gbadge--cs16 { background: #c2410c; }
.gbadge--cs2  { background: #2563eb; }
.gbadge--css  { background: #0f766e; }
.gbadge--csgo { background: #b45309; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag--gold  { color: #1a1300; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.tag--vip   { color: #fff; background: rgba(167,139,250,.22); border-color: rgba(167,139,250,.5); font-weight: 700; }
.tag--boost { color: #fff; background: rgba(56,189,248,.2); border-color: rgba(56,189,248,.5); font-weight: 700; }
.cc { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.off { color: var(--off); font-style: normal; font-weight: 600; }

.bar { display: block; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #a3e635 70%, var(--accent)); border-radius: 4px; }

/* ---------- server list ---------- */
.slist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.slist__head, .srow {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 218px 150px 120px 72px;
  gap: 12px; align-items: center; padding: 0 16px;
}
.slist__head { height: 38px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.srow { min-height: 52px; border-bottom: 1px solid var(--line); position: relative; }
.srow:last-child { border-bottom: 0; }
.srow:hover { background: var(--panel2); }
.srow--first { background: linear-gradient(90deg, rgba(245,197,66,.10), transparent 60%); box-shadow: inset 3px 0 0 var(--gold); }
.srow--color { background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), transparent 75%); box-shadow: inset 3px 0 0 var(--rc); }
.srow--off { opacity: .55; }
.srow__pos { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.srow--first .srow__pos { color: var(--gold); font-size: 17px; }
.srow__name { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); }
.srow__name:hover { color: #fff; }
.srow__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.srow__tags { display: flex; gap: 5px; flex: none; }
.srow__addr { display: flex; align-items: center; gap: 7px; min-width: 0; }
.srow__map { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow__players { font-variant-numeric: tabular-nums; color: var(--muted); }
.srow__players b { color: var(--text); }
.srow__players .bar { margin-top: 4px; }
.srow__rating { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.copy { background: none; border: 0; color: var(--text); cursor: pointer; padding: 2px 4px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy:hover { background: var(--panel2); color: #fff; }
.copy.is-copied { color: var(--ok); }

.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; color: var(--muted); }
.empty--sm { padding: 18px; border: 0; background: none; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 0 8px; }
.pager .is-on { background: var(--accent); border-color: var(--accent); color: #1d1504; font-weight: 700; }
.pager .gap { border: 0; background: none; }

/* ---------- server page ---------- */
.crumbs { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.crumbs span { margin: 0 6px; opacity: .5; }
.shead { display: grid; grid-template-columns: 300px minmax(0, 1fr) 170px; gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.shead__map { position: relative; border-radius: 8px; min-height: 160px; background: center/cover no-repeat; overflow: hidden; }
.shead__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }
.shead__mapname { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: 14px; }
.shead__info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.shead__badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shead__title { font-size: 26px; margin: 10px 0 16px; line-height: 1.25; word-break: break-word; }
.shead__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status--on { color: var(--ok); background: rgba(52,211,153,.12); }
.status--off { color: var(--off); background: rgba(239,68,68,.12); }

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.tile__l { color: var(--muted); font-size: 12.5px; }
.tile__v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile__v small { font-size: 15px; color: var(--muted); font-weight: 600; }
.tile__v--sm { font-size: 16px; font-weight: 650; padding-top: 4px; }
.tile .bar { margin-top: 6px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.stack > .card:last-child { margin-bottom: 0; }
.prose { color: #cfd3dc; word-break: break-word; }

.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 6px; cursor: pointer; }
.seg button.is-on { background: var(--panel2); color: #fff; }

.chart__sum { display: flex; gap: 18px; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.chart__sum b { color: var(--text); }
.chart__plot { position: relative; height: 240px; }
.chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .tip { position: absolute; pointer-events: none; background: #0b0d12; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -110%); }
.chart .tip b { color: var(--accent2); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 8px; border-bottom: 1px solid rgba(37,43,56,.6); word-break: break-word; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.narrow { max-width: 720px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 22px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; border: 1px solid; }
.alert--ok { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.35); color: #a7f3d0; }
.alert--err { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.35); color: #fecaca; }
.big404 { font-size: 110px; font-weight: 900; color: var(--accent); line-height: 1; margin-top: 40px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 13.5px; }
.footer__in { display: flex; justify-content: space-between; gap: 20px; padding: 22px 20px; flex-wrap: wrap; }
.footer strong { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .topgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slist__head, .srow { grid-template-columns: 40px minmax(0, 1fr) 180px 110px 60px; }
  .srow__map, .slist__head span:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .topbar__in { gap: 14px; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .logo span { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__v { font-size: 22px; }
  .topgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .grid2, .shead { grid-template-columns: minmax(0, 1fr); }
  .shead__map { min-height: 130px; }
  .shead__title { font-size: 21px; }
  .slist__head { display: none; }
  .srow {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas: "pos name rating" "pos addr players";
    row-gap: 4px; padding: 10px 12px;
  }
  .srow__pos { grid-area: pos; align-self: start; padding-top: 2px; }
  .srow__name { grid-area: name; flex-wrap: wrap; }
  .srow__tags { flex-wrap: wrap; }
  .srow__addr { grid-area: addr; }
  .srow__players { grid-area: players; text-align: right; }
  .srow__players .bar { display: none; }
  .srow__rating { grid-area: rating; }
  .filters__row select { flex: 1 1 auto; }
}

/* стискання grid-елементів з довгим текстом */
.stat, .tcard, .tile, .card, .srow > * { min-width: 0; }
.tcard__meta .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat__l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .tcard__meta .mono { display: none; }
  .filters__row .btn { flex: 1 1 auto; }
  .shead__actions .btn { flex: 1 1 auto; }
  .table td, .table th { padding: 6px 5px; }
}

/* ================= Етап 2: акаунти ================= */
.usernav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.usernav form { margin: 0; }
.usernav__link { color: var(--muted); font-weight: 550; padding: 8px 10px; }
.usernav__link:hover { color: #fff; }
.usernav__me { display: flex; align-items: center; gap: 8px; color: var(--text); padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; }
.usernav__me:hover, .usernav__me.is-active { background: var(--panel); border-color: var(--line); color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0cc82, #b8862f); color: #1d1504; font-weight: 800; font-size: 14px; flex: none; }
.avatar--lg { width: 56px; height: 56px; font-size: 24px; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px; }
.linkbtn:hover { color: #fff; }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }

.alert--info { background: rgba(56,189,248,.07); border-color: rgba(56,189,248,.35); color: #bae6fd; }

/* сторінка сервера: власник і голос */
.shead__owner { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 13.5px; }
.verified { color: var(--ok); }
.verified b { color: var(--text); }
.vote { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.vote form { width: 100%; margin: 0; }
.vote__num { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent2); }
.vote__lbl { color: var(--muted); font-size: 12px; line-height: 1.3; margin-bottom: 4px; }
.vote__hint { color: var(--muted); font-size: 11.5px; }

/* підтвердження */
.steps { display: flex; flex-direction: column; gap: 22px; padding: 22px; margin-top: 16px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.step__n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #1d1504; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step b { display: block; margin-bottom: 8px; font-size: 16px; }
.step p { margin: 6px 0; }
.codebox { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 14px; width: fit-content; max-width: 100%; }
.codebox .mono { font-size: 22px; font-weight: 800; color: var(--accent2); letter-spacing: 1.5px; }
.pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 13px; overflow-x: auto; margin: 6px 0; color: #cfd3dc; }

/* форми входу */
.auth { max-width: 460px; margin: 10px auto 0; }
.field__err { color: #fca5a5; font-size: 12.5px; }
.field.has-err .input { border-color: var(--off); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form--flat { padding: 0; margin: 0; background: none; border: 0; }
.narrow--left { margin: 0; max-width: 720px; }
.dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }

/* кабінет */
.mehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mehead__user { display: flex; align-items: center; gap: 14px; }
.mehead__user .h1 { margin: 0; }
.mehead__actions { display: flex; gap: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: #fff; }
.tabs a.is-on { color: #fff; border-bottom-color: var(--accent); }
.mylist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.myrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.myrow:last-child { border-bottom: 0; }
.myrow__name { font-weight: 650; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myrow__name:hover { color: #fff; }
.myrow__main { min-width: 0; }
.myrow__stats { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.myrow__actions { display: flex; gap: 6px; }
.myrow > .btn { justify-self: end; }

@media (max-width: 1100px) {
  .shead { grid-template-columns: 240px minmax(0, 1fr); }
  .vote { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: 12px; }
  .vote form { width: auto; }
  .vote .btn--block { width: auto; }
}
@media (max-width: 760px) {
  .usernav__name { display: none; }
  .usernav .btn--sm { padding: 6px 10px; }
  .shead { grid-template-columns: minmax(0, 1fr); }
  .myrow { grid-template-columns: auto minmax(0, 1fr); }
  .myrow__stats { grid-column: 2; align-items: flex-start; }
  .myrow__actions, .myrow > .btn { grid-column: 2; justify-self: start; }
  .mehead__actions { width: 100%; }
  .mehead__actions .btn { flex: 1; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
}

/* ================= Етап 3: послуги й оплата ================= */
.ok { color: var(--ok); }
.tag--ok { color: var(--ok); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); }
a.tcard--free:hover { border-color: var(--accent); opacity: 1; }
.hero { margin-bottom: 20px; max-width: 720px; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.price h2 { font-size: 18px; }
.price p { margin: 0 0 6px; flex: 1; }
.price__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; background: var(--panel2); color: var(--accent2); margin-bottom: 4px; }
.price--befirst .price__icon { background: rgba(245,197,66,.15); color: var(--gold); }
.price--vip .price__icon { background: rgba(167,139,250,.15); color: var(--vip); }
.price--boost .price__icon { background: rgba(56,189,248,.15); color: var(--boost); }
.price__val { font-size: 22px; font-weight: 800; }
.price__val .muted { font-size: 14px; font-weight: 600; }
.price__slots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.slot { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); }
.slot--free { color: var(--ok); border-color: rgba(52,211,153,.4); }
.slot--busy { color: var(--muted); background: var(--bg2); text-decoration: line-through; }
.howto ol { margin: 0 0 14px; padding-left: 20px; line-height: 1.9; }
.howto__mine { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.svchead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.svchead .h1 { margin-bottom: 2px; }
.wallet { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 10px 16px; }
.wallet b { font-size: 20px; }
.activebar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

.shop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.buy { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.buy p { margin: 0; }
.buy .alert { margin: 0; padding: 8px 12px; }
.buy__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy__price { font-weight: 800; color: var(--accent2); white-space: nowrap; }
.buy__price small { color: var(--muted); font-weight: 600; }
.buy__foot { display: flex; gap: 10px; align-items: flex-end; margin-top: auto; flex-wrap: wrap; }
.buy__foot .btn { flex: 1 1 auto; }
.field--inline { flex: 0 1 220px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; }
.slotpick input { position: absolute; opacity: 0; pointer-events: none; }
.slotpick span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); font-weight: 800; cursor: pointer; }
.slotpick span small { font-weight: 500; font-size: 11px; color: var(--muted); }
.slotpick input:checked + span { border-color: var(--accent); background: rgba(226,180,90,.12); color: #fff; }
.slotpick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(226,180,90,.3); }
.laps .slotpick span { min-width: 96px; }
.slotpick.is-busy span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 8px; background: var(--c); border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.swatch input:checked + span { border-color: #fff; transform: scale(1.08); }
.swatch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); vertical-align: middle; }

.balgrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.balgrid .card { margin-bottom: 16px; }
.balcard { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.balcard__v { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.topup .chips { margin-bottom: 10px; }
.topup .chip { cursor: pointer; font: inherit; font-size: 13.5px; }
.topup__row { display: flex; gap: 8px; }
.topup__row .input { max-width: 220px; }
.paybox { text-align: center; display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.paybox__sum { font-size: 40px; font-weight: 900; }
.paybox__actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.payres { padding-top: 30px; }
.payres__icon { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; background: var(--panel2); }
.payres__icon--ok { background: rgba(52,211,153,.15); color: var(--ok); }
.payres__icon--err { background: rgba(239,68,68,.15); color: var(--off); }

@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pricing, .shop, .balgrid { grid-template-columns: minmax(0, 1fr); }
  .wallet { width: 100%; justify-content: space-between; }
  .topup__row .input { max-width: none; }
  .table { font-size: 13px; }
}

