/* ============================================================
   RU CS2 PUG — тёмная тема
   Слева чат, справа вкладки, по центру контент.
   ============================================================ */

:root {
  --bg: #070a12;
  --panel: #0d1322;
  --panel-2: #121a2c;
  --card: rgba(255, 255, 255, .038);
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --txt: #e9eefb;
  --dim: #8e9ab5;
  --acc: #3dd6ff;
  --acc-2: #7b5cff;
  --ok: #2fe08a;
  --warn: #ffb454;
  --danger: #ff5d73;
  --r: 14px;
  --rail-w: 108px;
  --chat-w: 322px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(123, 92, 255, .20), transparent 60%),
    radial-gradient(900px 560px at -5% 8%, rgba(61, 214, 255, .14), transparent 60%),
    var(--bg);
  color: var(--txt);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(61, 214, 255, .3); }

code {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
}

img { max-width: 100%; }

/* --- скроллбары --- */
* { scrollbar-width: thin; scrollbar-color: #2a3550 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3550; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3a4770; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   Кнопки / элементы управления
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--txt);
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: .16s;
  text-decoration: none;
}
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%);
  border: none; color: #06101a; font-weight: 800;
  box-shadow: 0 10px 26px rgba(61, 214, 255, .18);
}
.btn-primary:hover { background: linear-gradient(135deg, #57dcff 0%, #8f74ff 100%); color: #06101a; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--dim); }
.btn-ghost:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }

.btn-danger { border-color: rgba(255, 93, 115, .35); color: var(--danger); background: rgba(255, 93, 115, .08); }

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--dim);
  border-radius: 999px;
  padding: 7px 15px;
  font: inherit;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.chip:hover { color: var(--txt); border-color: var(--line-strong); }
.chip.active {
  background: linear-gradient(135deg, rgba(61, 214, 255, .22), rgba(123, 92, 255, .22));
  border-color: rgba(61, 214, 255, .55);
  color: #dff7ff;
}

input[type=text], input[type=search], input[type=number], select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line-strong);
  color: var(--txt);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: .15s;
}
input::placeholder { color: #6f7b96; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(61, 214, 255, .65);
  box-shadow: 0 0 0 3px rgba(61, 214, 255, .14);
}
select { cursor: pointer; }
select option { background: #101728; color: var(--txt); }

input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--acc-2);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--acc-2); cursor: pointer;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
}

.muted { color: var(--dim); }
.small { font-size: 13px; }
.mono { font-family: Consolas, "Courier New", monospace; }

/* ============================================================
   Вход
   ============================================================ */
.login-wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow: auto;
}
.login-card {
  width: 100%; max-width: 470px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
}
.login-card h1 { margin: 16px 0 6px; font-size: 25px; letter-spacing: -.4px; }
.login-card p { margin: 0 0 20px; color: var(--dim); font-size: 14.5px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card .btn-primary { width: 100%; padding: 13px; font-size: 15.5px; }
.login-err {
  background: rgba(255, 93, 115, .1);
  border: 1px solid rgba(255, 93, 115, .4);
  color: #ffb9c4;
  border-radius: 10px; padding: 10px 13px; font-size: 13.5px;
}
.login-hint {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--dim); font-size: 13px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.logo {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #06101a; font-weight: 900; font-size: 20px;
  box-shadow: 0 8px 22px rgba(61, 214, 255, .25);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.3px; line-height: 1.15; }
.brand-sub { color: var(--dim); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* ============================================================
   Каркас приложения
   ============================================================ */
.shell { height: 100%; display: flex; flex-direction: column; }

.topbar {
  height: 64px; flex: 0 0 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: rgba(7, 10, 18, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 30;
}
.top-right { display: flex; align-items: center; gap: 14px; }

.user { display: flex; align-items: center; gap: 11px; }
.user-pic {
  width: 38px; height: 38px; border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--acc-2), var(--acc));
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #06101a;
  border: 1px solid var(--line-strong);
  flex: 0 0 38px;
}
.user-name { font-weight: 700; font-size: 14px; line-height: 1.2; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-id { color: var(--dim); font-size: 11.5px; font-family: Consolas, monospace; }

.icon-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--txt); font-size: 17px; cursor: pointer;
}

.body {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: var(--chat-w) minmax(0, 1fr) var(--rail-w);
}

/* ============================================================
   Чат (слева)
   ============================================================ */
.chat {
  min-height: 0;
  display: flex; flex-direction: column;
  background: rgba(10, 14, 25, .7);
  border-right: 1px solid var(--line);
}
.chat-head {
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-head b { font-size: 14.5px; letter-spacing: .02em; }
.chat-online { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.chat-list {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column; gap: 11px;
  scroll-behavior: smooth;
}
.chat-empty { color: var(--dim); font-size: 13.5px; text-align: center; padding: 26px 8px; }

.msg { display: flex; gap: 10px; }
.msg-pic {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg, #3a4a70, #26304d);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #cfe0ff;
}
.msg-body { min-width: 0; }
.msg-top { display: flex; align-items: baseline; gap: 8px; }
.msg-name { font-weight: 700; font-size: 13px; color: #a9c8ff; }
.msg-name.me { color: var(--acc); }
.msg-time { font-size: 11px; color: #616d88; font-family: Consolas, monospace; }
.msg-text {
  font-size: 14px; color: #dbe3f4;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.msg-new .msg-name { animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

.chat-form {
  display: flex; gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .2);
}
.chat-form input { padding: 10px 12px; }
.chat-form button {
  flex: 0 0 44px;
  border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #06101a; font-size: 16px; cursor: pointer;
  transition: .15s;
}
.chat-form button:hover { filter: brightness(1.12); }
.chat-form button:disabled { opacity: .45; cursor: not-allowed; }
.chat-error {
  background: rgba(255, 93, 115, .12);
  color: #ffb9c4; font-size: 12.5px;
  padding: 7px 13px;
}
.chat-error:empty { display: none; }

/* ============================================================
   Вкладки (справа)
   ============================================================ */
.rail {
  border-left: 1px solid var(--line);
  background: rgba(10, 14, 25, .7);
  display: flex; flex-direction: column; align-items: stretch;
  gap: 8px; padding: 14px 9px;
}
.rail-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  border-radius: 13px;
  padding: 13px 4px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 700;
  line-height: 1.2; text-align: center;
  transition: .16s;
  position: relative;
}
.rail-btn svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.rail-btn.active {
  color: #eafaff;
  background: linear-gradient(160deg, rgba(61, 214, 255, .18), rgba(123, 92, 255, .18));
  border-color: rgba(61, 214, 255, .38);
}
.rail-btn.active::before {
  content: "";
  position: absolute; left: -9px; top: 22%; bottom: 22%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
}
.rail-spacer { flex: 1; }
.rail-foot { font-size: 10.5px; color: #55607a; text-align: center; line-height: 1.35; }

/* ============================================================
   Контент
   ============================================================ */
.content {
  min-height: 0; min-width: 0;
  overflow-y: auto;
  padding: 26px 30px 46px;
}
.tab { display: none; animation: fade .22s ease; }
.tab.show { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.page-head { margin-bottom: 22px; }
.page-head h1 {
  margin: 0 0 6px;
  font-size: 27px; letter-spacing: -.7px;
  background: linear-gradient(90deg, #fff, #a9c8ff 55%, var(--acc));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head p { margin: 0; color: var(--dim); font-size: 14.5px; max-width: 760px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* --- подписка --- */
.sub-status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 15px 18px; margin-bottom: 20px;
  border-radius: var(--r);
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}
.badge.off { background: rgba(255, 255, 255, .07); color: var(--dim); border: 1px solid var(--line); }
.badge.on { background: rgba(47, 224, 138, .13); color: var(--ok); border: 1px solid rgba(47, 224, 138, .4); }
.badge.live { background: rgba(47, 224, 138, .13); color: var(--ok); border: 1px solid rgba(47, 224, 138, .35); }
.badge.down { background: rgba(255, 93, 115, .1); color: var(--danger); border: 1px solid rgba(255, 93, 115, .35); }

.plan {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  display: flex; flex-direction: column;
  transition: .18s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(61, 214, 255, .4); box-shadow: var(--shadow); }
.plan.hot {
  border-color: rgba(61, 214, 255, .5);
  background: linear-gradient(180deg, rgba(61, 214, 255, .11), rgba(123, 92, 255, .07));
}
.plan-flag {
  position: absolute; top: -11px; left: 22px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #06101a; font-size: 11.5px; font-weight: 900;
  padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
}
.plan h3 { margin: 0 0 4px; font-size: 19px; }
.plan .per { color: var(--dim); font-size: 13px; }
.price { margin: 14px 0 16px; display: flex; align-items: baseline; gap: 6px; }
.price .num { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; background: linear-gradient(90deg, #fff, var(--acc)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.price .cur { font-size: 20px; font-weight: 800; color: var(--acc); }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 14px; color: #cfd8ec; }
.plan li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(47, 224, 138, .16); color: var(--ok);
  font-size: 11px; font-weight: 900;
  display: grid; place-items: center;
}

/* --- сервера --- */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.server {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  display: flex; flex-direction: column; gap: 14px;
  transition: .18s;
}
.server:hover { border-color: rgba(61, 214, 255, .35); transform: translateY(-3px); }
.server-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.server h3 { margin: 0; font-size: 18px; }
.server-mode { color: var(--dim); font-size: 13px; margin-top: 3px; }
.server-desc { color: var(--dim); font-size: 13.5px; margin: 0; }
.server-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 110px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 13px;
}
.stat .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: width .5s; }
.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.server.skeleton { opacity: .55; }

/* --- скинченджер --- */
.knife-card {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(120deg, rgba(123, 92, 255, .12), rgba(61, 214, 255, .06));
}
.knife-card .pic {
  width: 168px; height: 88px; flex: 0 0 168px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.knife-card .pic img { width: 100%; height: 100%; object-fit: contain; }
.knife-card .ctl { flex: 1; min-width: 0; }
.knife-card label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); margin-bottom: 7px; }

.sec-title {
  margin: 28px 0 14px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--dim);
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-2 .knife-card { margin-bottom: 0; }

.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}
.wcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  overflow: hidden;
  cursor: pointer;
  transition: .16s;
  text-align: left;
  font: inherit; color: inherit;
  padding: 0;
}
.wcard:hover { transform: translateY(-3px); border-color: rgba(61, 214, 255, .45); box-shadow: var(--shadow); }
.wcard .pic {
  height: 104px;
  display: grid; place-items: center;
  background:
    radial-gradient(120px 70px at 50% 60%, rgba(61, 214, 255, .16), transparent 70%),
    rgba(0, 0, 0, .28);
  padding: 8px;
}
.wcard .pic img { max-height: 88px; width: auto; object-fit: contain; transition: .2s; }
.wcard:hover .pic img { transform: scale(1.06); }
.wcard .body { padding: 11px 13px 13px; }
.wcard .wn { font-weight: 800; font-size: 14px; }
.wcard .ws {
  font-size: 12.5px; color: var(--dim); margin-top: 3px;
  min-height: 17px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wcard.picked .ws { color: var(--acc); font-weight: 600; }
.wcard .tag {
  position: absolute; top: 9px; right: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(47, 224, 138, .18); color: var(--ok);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
}

.skins-pane { margin-top: 4px; }
.skins-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.skins-head h2 { margin: 0; font-size: 21px; letter-spacing: -.4px; }
.skins-head .search { flex: 1; min-width: 200px; max-width: 340px; }
.current-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47, 224, 138, .1);
  border: 1px solid rgba(47, 224, 138, .32);
  color: var(--ok); border-radius: 999px;
  padding: 6px 13px;
  font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: .15s;
}
button.current-pill:hover { background: rgba(47, 224, 138, .2); transform: translateY(-1px); }

.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 13px; }
.sc {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  overflow: hidden; cursor: pointer;
  transition: .15s; text-align: left;
  font: inherit; color: inherit; padding: 0;
}
.sc:hover { transform: translateY(-3px); border-color: rgba(61, 214, 255, .5); box-shadow: var(--shadow); }
.sc.active { border-color: rgba(47, 224, 138, .6); box-shadow: 0 0 0 2px rgba(47, 224, 138, .2); }
.sc .pic { height: 96px; display: grid; place-items: center; background: rgba(0, 0, 0, .3); padding: 8px; }
.sc .pic img { max-height: 80px; width: auto; object-fit: contain; }
.sc .nm { padding: 10px 12px; font-size: 13px; font-weight: 600; color: #cfd8ec; }
.sc { position: relative; }
.sc.alias { border-color: rgba(214, 168, 61, .45); background: linear-gradient(180deg, rgba(214, 168, 61, .09), rgba(255, 255, 255, .015)); }
.sc.alias .nm { color: #f0dcae; }
.sc .sc-tag {
  position: absolute; top: 9px; right: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(214, 168, 61, .18); color: #f0c869;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
}

.empty {
  text-align: center; color: var(--dim);
  padding: 44px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  grid-column: 1 / -1;
}
.skel {
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  background-size: 200% 100%;
  animation: sh 1.2s infinite;
}
@keyframes sh { to { background-position: -200% 0; } }

/* ============================================================
   Модальное окно
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 5, 10, .74);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  animation: fade .18s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  background: #0f1626;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-card.wide { max-width: 620px; }
.modal-x {
  position: absolute; top: 13px; right: 13px;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--dim); font-size: 19px; cursor: pointer;
  line-height: 1;
}
.modal-x:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.modal-card h3 { margin: 0 0 4px; font-size: 19px; padding-right: 40px; }
.modal-card .sub { color: var(--dim); font-size: 13.5px; margin: 0 0 18px; }
.modal-pic {
  height: 150px;
  display: grid; place-items: center;
  background: radial-gradient(160px 90px at 50% 60%, rgba(61, 214, 255, .16), transparent 70%), rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 16px;
  padding: 10px;
}
.modal-pic img { max-height: 130px; object-fit: contain; }

.field { margin-bottom: 15px; }
.field label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--dim); margin-bottom: 8px;
}
.field label b { color: var(--acc); font-size: 14px; font-family: Consolas, monospace; text-transform: none; letter-spacing: 0; }

.presets { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.presets .chip { padding: 6px 12px; font-size: 12.5px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
}
.pay-row .lbl { font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.pay-row .val { font-weight: 800; font-size: 15.5px; font-family: Consolas, monospace; word-break: break-all; }
.pay-row .col { flex: 1; min-width: 0; }
.pay-row .hint { font-size: 12px; color: var(--dim); }
.copy {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: .14s;
}
.copy:hover { background: rgba(61, 214, 255, .16); border-color: rgba(61, 214, 255, .5); }
.copy.done { background: rgba(47, 224, 138, .18); border-color: rgba(47, 224, 138, .5); color: var(--ok); }

.notice {
  background: rgba(61, 214, 255, .08);
  border: 1px solid rgba(61, 214, 255, .28);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: #cfeaff;
}
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: #101a2e;
  border: 1px solid rgba(61, 214, 255, .5);
  color: var(--txt);
  padding: 11px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: .22s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: rgba(255, 93, 115, .55); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1080px) {
  :root { --rail-w: 92px; --chat-w: 288px; }
  .content { padding: 22px 20px 40px; }
}

@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr) var(--rail-w); }
  .chat {
    position: fixed; left: 0; top: 64px; bottom: 0;
    width: min(88vw, 330px);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform .24s ease;
    background: #0a0f1c;
    box-shadow: 22px 0 50px rgba(0, 0, 0, .55);
  }
  body.chat-open .chat { transform: none; }
  body.chat-open::after {
    content: ""; position: fixed; inset: 64px 0 0 0;
    background: rgba(0, 0, 0, .55); z-index: 40;
  }
  .icon-btn { display: grid; place-items: center; }
  .user-name { max-width: 120px; }
}

@media (max-width: 620px) {
  .content { padding: 18px 14px 36px; }
  .brand-sub { display: none; }
  .user-id { display: none; }
  .page-head h1 { font-size: 23px; }
  .knife-card { flex-direction: column; align-items: stretch; }
  .knife-card .pic { width: 100%; flex: 0 0 96px; }
  .weapon-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
  .skin-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .wcard .pic { height: 84px; }
  .skins-head .search { max-width: none; }
}
