﻿/* ============================================================
   NovaPlay вЂ” CS2 Community Hub
   Dark gaming UI В· glass В· neon В· adaptive
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-2: #0a0c14;
  --panel: rgba(17, 20, 32, 0.72);
  --panel-solid: #10131f;
  --panel-2: #161a29;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --muted: #8b94ac;
  --dim: #626b83;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #a3e635;
  --gold: #ffc857;
  --danger: #ff5c7a;
  --success: #34d399;
  --r-milspec: #4b69ff;
  --r-restricted: #8847ff;
  --r-classified: #d32ce6;
  --r-covert: #eb4b4b;
  --r-contraband: #e4ae39;
  --r-extraordinary: #ffd700;
  --r-industrial: #b0c3d9;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
code { font-family: var(--mono); }
::selection { background: rgba(124, 92, 255, .4); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #131735 0%, var(--bg) 55%); }
.bg-grid {
  position: absolute; inset: -20%;
  background-image: linear-gradient(rgba(124, 92, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(58deg) translateY(6%);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 65%);
  opacity: .55;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s var(--ease) infinite alternate; }
.blob-a { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(124, 92, 255, .7), transparent 65%); }
.blob-b { width: 40vw; height: 40vw; right: -10vw; top: 4vw; background: radial-gradient(circle, rgba(34, 211, 238, .45), transparent 65%); animation-delay: -7s; }
.blob-c { width: 38vw; height: 38vw; left: 30vw; bottom: -22vw; background: radial-gradient(circle, rgba(163, 230, 53, .22), transparent 65%); animation-delay: -13s; }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(3, 4, 7, .85) 100%); }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, 3vw, 0) scale(1.12); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 13, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; filter: drop-shadow(0 0 14px rgba(124, 92, 255, .55)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark path:first-child { fill: rgba(124, 92, 255, .16); stroke: rgba(124, 92, 255, .9); stroke-width: 1.2; }
.brand-mark .brand-n { fill: none; stroke: #d9d3ff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.brand-text em { font-style: normal; background: linear-gradient(100deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-badge { font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 3px 7px; border-radius: 6px; color: var(--accent-3); border: 1px solid rgba(163, 230, 53, .3); background: rgba(163, 230, 53, .07); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.balance {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 200, 87, .13), rgba(255, 200, 87, .04));
  border: 1px solid rgba(255, 200, 87, .26);
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.balance .icon { width: 18px; height: 18px; }
.balance b { font-size: 16px; font-weight: 800; }
.balance small { font-size: 11px; opacity: .65; font-weight: 700; }

.user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); transition: border-color .2s, background .2s;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(26, 30, 48, .8); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px; color: #0b0c12;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 2px rgba(124, 92, 255, .18);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; align-items: flex-start; }
.user-meta b { font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 10px; color: var(--dim); font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 17px; border-radius: 13px; border: 1px solid transparent;
  font-weight: 800; font-size: 14px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px -18px #000;
  transition: transform .18s var(--ease), background .25s, border-color .2s, box-shadow .25s, color .2s, opacity .2s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, .28) 48%, transparent 78%);
  transform: translateX(-135%) skewX(-12deg);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(135%) skewX(-12deg); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .58; cursor: not-allowed; transform: none; filter: saturate(.7); }
.btn:disabled::before { display: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(120deg, #9b7bff 0%, #6d4dff 34%, #3a7bff 68%, #22d3ee 100%);
  background-size: 190% 100%; background-position: 0 0;
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 12px 34px -12px rgba(124, 92, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 0, 0, .2);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 18px 44px -14px rgba(124, 92, 255, 1), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .085); border-color: rgba(34, 211, 238, .35); color: #fff; box-shadow: 0 12px 28px -22px var(--accent-2), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-lg { padding: 15px 24px; border-radius: 15px; font-size: 15px; letter-spacing: .01em; }
.btn-sm { padding: 8px 13px; border-radius: 10px; font-size: 12.5px; gap: 6px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-danger:hover { border-color: rgba(255, 92, 122, .5); color: var(--danger); }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { opacity: 0; }
.btn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 17px; height: 17px;
  margin: -9px 0 0 -9px; border-radius: 50%; z-index: 2;
  border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: btnspin .7s linear infinite;
}
.btn-ripple {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 55%, transparent 70%);
  transform: scale(0); opacity: .8; animation: ripple .65s ease-out forwards;
}
@keyframes btnspin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted);
  transition: .18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }
.icon-btn .icon { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(38px, 6vw, 82px) 0 clamp(30px, 4vw, 54px);
  transition: opacity .3s, transform .3s;
}
body[data-tab]:not([data-tab="shop"]) .hero { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, .13); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: .96; font-weight: 900; letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.grad {
  background: linear-gradient(100deg, #fff 0%, var(--accent-2) 35%, var(--accent) 70%, #ff7ad9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(124, 92, 255, .25));
}
.hero-sub { max-width: 560px; color: var(--muted); font-size: clamp(14px, 1.4vw, 17px); }
.hero-copy, .server-card, .grid > *, .quests-grid > *, .loadout-grid > *, .admin-grid > * { min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-actions code { font-size: 13.5px; color: var(--text); }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.hero-stats dd { margin: 0; font-size: clamp(21px, 2.4vw, 30px); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* server card */
.server-card {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 1px;
  background: linear-gradient(150deg, rgba(124, 92, 255, .55), rgba(34, 211, 238, .25) 40%, rgba(255, 255, 255, .06) 70%);
  box-shadow: var(--shadow), 0 0 60px -30px rgba(124, 92, 255, .8);
  transform: rotate(.6deg);
  transition: transform .4s var(--ease);
}
.server-card:hover { transform: rotate(0) translateY(-3px); }
.server-head, .server-body { background: linear-gradient(170deg, rgba(17, 20, 34, .96), rgba(9, 11, 19, .98)); }
.server-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 12px; border-radius: 23px 23px 0 0; }
.server-body { padding: 4px 22px 22px; border-radius: 0 0 23px 23px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: .14em; color: var(--success); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.8s infinite; }
.live.offline { color: var(--danger); }
.server-mode { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line-strong); padding: 4px 8px; border-radius: 7px; }
.server-name { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.server-name span { color: var(--accent-2); }
.server-tags { display: flex; gap: 6px; margin: 10px 0 18px; flex-wrap: wrap; }
.server-tags span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.server-ip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(3, 4, 8, .6); border: 1px solid var(--line); }
.server-ip code { font-size: 14px; letter-spacing: .02em; color: #c9d2ea; }
.server-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11.5px; color: var(--dim); }
.server-foot b { color: var(--text); font-weight: 700; }
.scanline { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, .06), transparent); height: 40%; animation: scan 5s linear infinite; }
@keyframes scan { from { transform: translateY(-120%); } to { transform: translateY(320%); } }

/* ---------- tabs ---------- */
.tabs-shell {
  position: sticky; top: 72px; z-index: 40;
  margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 8, 13, .92), rgba(7, 8, 13, .7));
  backdrop-filter: blur(16px);
}
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 15px; border: 0; background: none; color: var(--muted);
  font-weight: 700; font-size: 13.5px; white-space: nowrap;
  transition: color .2s;
}
.tab .icon { width: 18px; height: 18px; opacity: .8; }
.tab:hover { color: var(--text); }
.tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0); transform-origin: 50%; transition: transform .25s var(--ease);
}
.tab.active { color: var(--text); }
.tab.active .icon { color: var(--accent-2); opacity: 1; }
.tab.active::after { transform: scaleX(1); }
.tab-count { font-size: 10px; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: rgba(124, 92, 255, .22); color: #c7baff; font-weight: 800; }

/* ---------- section headings ---------- */
.view { animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.view-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.view-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 640px; }
.view-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-gap { height: 18px; }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 22px; }
.searchbox { position: relative; flex: 1 1 240px; max-width: 360px; }
.searchbox .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.searchbox input {
  width: 100%; padding: 11px 12px 11px 38px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.searchbox input::placeholder { color: var(--dim); }
.searchbox input:focus { outline: none; border-color: rgba(124, 92, 255, .6); background: rgba(255, 255, 255, .06); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted);
  transition: .18s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #fff; border-color: rgba(124, 92, 255, .55); background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .15)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.select, select {
  appearance: none; padding: 10px 34px 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b94ac' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text); font-size: 13px; font-weight: 600;
}
select:focus { outline: none; border-color: rgba(124, 92, 255, .6); }
.result-count { font-size: 12px; color: var(--dim); margin-left: auto; white-space: nowrap; }

/* ---------- skin grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.skin-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 26, 42, .9), rgba(12, 14, 23, .94));
  border: 1px solid var(--line);
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
  content-visibility: auto; contain-intrinsic-size: 300px;
}
.skin-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(140% 90% at 50% 0%, color-mix(in srgb, var(--r, #7c5cff) 22%, transparent), transparent 65%);
  transition: opacity .3s;
}
.skin-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); border-color: color-mix(in srgb, var(--r, #7c5cff) 58%, transparent); box-shadow: 0 28px 54px -30px var(--r, #7c5cff), 0 0 0 1px color-mix(in srgb, var(--r, #7c5cff) 12%, transparent); }
.skin-card:hover::before { opacity: 1; }
.skin-art {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(95% 80% at 50% 18%, color-mix(in srgb, var(--r, #7c5cff) 32%, transparent), transparent 60%),
    radial-gradient(100% 100% at 90% 100%, rgba(34, 211, 238, .16), transparent 62%),
    linear-gradient(160deg, #1b2033, #0b0d16 72%);
  display: grid; place-items: center;
  box-shadow: inset 0 -34px 52px -22px rgba(0, 0, 0, .8);
}
.skin-art::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) .7px, transparent .7px);
  background-size: 13px 13px; opacity: .18;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.skin-photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; padding: 10px 8px 4px;
  object-fit: contain; object-position: 50% 50%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .58)) drop-shadow(0 0 18px color-mix(in srgb, var(--r, #7c5cff) 32%, transparent));
  transition: transform .45s var(--ease), filter .3s;
  user-select: none; pointer-events: none;
}
.skin-card:hover .skin-photo {
  transform: translateY(-3px) scale(1.06) rotate(-.6deg);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .62)) drop-shadow(0 0 26px color-mix(in srgb, var(--r, #7c5cff) 52%, transparent)) saturate(1.08);
}
.skin-photo + .wpn { display: none; }
.skin-art::after {
  content: ""; position: absolute; inset: -40% -10%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .12) 48%, transparent 60%);
  transform: translateX(-60%) rotate(4deg);
  transition: transform .6s var(--ease);
}
.skin-card:hover .skin-art::after { transform: translateX(60%) rotate(4deg); }
.skin-art .wpn { width: 74%; height: auto; color: rgba(238, 241, 248, .92); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px color-mix(in srgb, var(--r, #7c5cff) 45%, transparent)); position: relative; z-index: 1; }
.skin-watermark {
  position: absolute; right: 8px; bottom: -8px; z-index: 0;
  font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  text-transform: uppercase; white-space: nowrap; pointer-events: none; user-select: none;
  max-width: 92%; overflow: hidden;
}
.skin-art .wpn path, .skin-art .wpn rect { fill: currentColor; }
.skin-art .wpn .brand-n { fill: none; }
.rarity-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, transparent, var(--r, #7c5cff), transparent); opacity: .9; }
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 9.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; color: var(--r, #fff);
  background: rgba(5, 6, 10, .72); border: 1px solid color-mix(in srgb, var(--r, #7c5cff) 45%, transparent);
  backdrop-filter: blur(6px);
}
.card-badge.free { color: var(--accent-3); border-color: rgba(163, 230, 53, .4); }
.owned-ribbon {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: auto; text-align: center;
  transform: none; font-size: 8.5px; font-weight: 900; letter-spacing: .07em; white-space: nowrap;
  padding: 4px 7px; border-radius: 6px; color: #06110b;
  background: linear-gradient(90deg, #34d399, #a3e635);
  box-shadow: 0 6px 16px -6px rgba(52, 211, 153, .8);
}
.skin-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px 15px; flex: 1; }
.skin-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.skin-weapon { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rarity-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--r, #fff); white-space: nowrap; flex-shrink: 0; }
.skin-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-desc { font-size: 11.5px; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; }
.skin-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { display: inline-flex; align-items: baseline; gap: 4px; color: var(--gold); font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font-size: 10px; font-weight: 800; opacity: .6; }
.price.free { color: var(--accent-3); font-size: 13px; letter-spacing: .08em; }
.skin-foot .btn { margin-left: auto; }
.skin-card.is-owned .skin-art .wpn { opacity: .55; }
.skin-card.is-locked .skin-art { filter: saturate(.35) brightness(.7); }
.lock-note { position: absolute; inset: auto 10px 10px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); background: rgba(5, 6, 10, .8); padding: 5px; border-radius: 7px; border: 1px solid var(--line); }

/* ---------- featured drops ---------- */
.drops-wrap { margin: 24px 0 4px; }
.drops-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.drops-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.drops-kicker .icon { width: 15px; height: 15px; }
.drops-note { font-size: 11.5px; color: var(--dim); }
.drops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drop-card {
  position: relative; display: flex; align-items: center; min-height: 156px;
  padding: 16px 18px; border-radius: 18px; overflow: hidden; text-align: left;
  color: var(--text); border: 1px solid color-mix(in srgb, var(--r, #7c5cff) 32%, transparent);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--r, #7c5cff) 28%, transparent), transparent 58%),
    linear-gradient(145deg, #171c2d, #0a0c15 76%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 18px 40px -30px #000;
  transition: transform .24s var(--ease), border-color .2s, box-shadow .25s;
}
.drop-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .08) 48%, transparent 70%);
  transform: translateX(-120%); transition: transform .65s var(--ease);
}
.drop-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); border-color: color-mix(in srgb, var(--r, #7c5cff) 62%, transparent); box-shadow: 0 28px 48px -30px var(--r, #7c5cff), inset 0 1px 0 rgba(255, 255, 255, .14); }
.drop-card:hover::before { transform: translateX(120%); }
.drop-card:hover .drop-img { transform: translateY(-50%) rotate(-1deg) scale(1.07); }
.drop-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 58%; }
.drop-kicker { font-size: 9px; font-weight: 900; letter-spacing: .14em; color: var(--r, var(--accent-2)); text-transform: uppercase; }
.drop-name { font-size: 21px; line-height: 1.06; font-weight: 900; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-sub { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-price { margin-top: 8px; font-size: 17px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.drop-price small { font-size: 10px; opacity: .65; }
.drop-img {
  position: absolute; z-index: 1; right: -7%; top: 50%; width: 61%; height: 94%;
  object-fit: contain; transform: translateY(-50%) rotate(-4deg);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px color-mix(in srgb, var(--r, #7c5cff) 38%, transparent));
  transition: transform .4s var(--ease); pointer-events: none;
}

/* rarity colors */
.r-industrial { --r: var(--r-industrial); }
.r-milspec { --r: var(--r-milspec); }
.r-restricted { --r: var(--r-restricted); }
.r-classified { --r: var(--r-classified); }
.r-covert { --r: var(--r-covert); }
.r-contraband { --r: var(--r-contraband); }
.r-extraordinary { --r: var(--r-extraordinary); }

/* ---------- empty / error ---------- */
.empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 64px 20px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, .015);
}
.empty .icon { width: 40px; height: 40px; color: var(--dim); }
.empty h3 { font-size: 18px; font-weight: 800; }
.empty p { color: var(--muted); font-size: 13.5px; max-width: 400px; }

/* ---------- skeleton ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.035) 20%, rgba(255,255,255,.08) 40%, rgba(255,255,255,.035) 60%); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--line); }
.sk-card { height: 290px; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- inventory / loadout ---------- */
.inv-actions { display: flex; gap: 8px; margin-left: auto; }
.loadout-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.team-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.team-switch button { padding: 8px 18px; border-radius: 8px; border: 0; background: none; color: var(--muted); font-weight: 800; font-size: 13px; }
.team-switch button.active { color: #0b0c12; background: linear-gradient(135deg, #fff, #cfd6ea); }
.team-switch button.active[data-team="T"] { background: linear-gradient(135deg, #ffd9a0, #ffb24d); }
.team-switch button.active[data-team="CT"] { background: linear-gradient(135deg, #a8d8ff, #58a6ff); }
.loadout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.slot-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 26, 42, .7), rgba(12, 14, 23, .8));
  transition: border-color .2s, background .2s;
}
.slot-card:hover { border-color: var(--line-strong); }
.slot-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 11px; background: radial-gradient(90% 90% at 50% 20%, rgba(124, 92, 255, .18), rgba(255, 255, 255, .025)); border: 1px solid var(--line); color: var(--muted); overflow: hidden; }
.slot-icon .wpn { width: 34px; height: auto; fill: currentColor; }
.slot-photo { width: 100%; height: 100%; object-fit: contain; padding: 2px; filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .55)); }
.slot-photo + .wpn { display: none; }
.slot-main { flex: 1; min-width: 0; }
.slot-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.slot-value { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-main select { width: 100%; margin-top: 5px; padding: 7px 30px 7px 9px; font-size: 12px; }

/* ---------- quests ---------- */
.quests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.quest-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 26, 42, .78), rgba(12, 14, 23, .86));
  transition: border-color .2s, transform .2s;
}
.quest-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ring { --p: 0; --size: 68px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-2) calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--panel-solid); }
.ring b { position: relative; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ring.done { background: conic-gradient(var(--accent-3) 100%, var(--accent-3) 0); }
.quest-main { flex: 1; min-width: 0; }
.quest-top { display: flex; align-items: center; gap: 8px; }
.quest-title { font-weight: 800; font-size: 14.5px; }
.quest-type { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.quest-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.quest-reward { color: var(--gold); font-weight: 800; white-space: nowrap; }
.quest-done { color: var(--accent-3); font-weight: 800; }

/* ---------- leaderboard ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin: 24px 0 26px; }
.podium-card { text-align: center; padding: 18px 12px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 26, 42, .8), rgba(12, 14, 23, .86)); }
.podium-card.first { padding-top: 24px; padding-bottom: 24px; border-color: rgba(255, 200, 87, .35); background: linear-gradient(180deg, rgba(255, 200, 87, .12), rgba(12, 14, 23, .9)); box-shadow: 0 20px 50px -30px rgba(255, 200, 87, .6); }
.podium-medal { font-size: 22px; font-weight: 900; color: var(--gold); }
.podium-name { font-weight: 800; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-points { color: var(--gold); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.podium-sid { font-size: 10px; color: var(--dim); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.board-table th, .board-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.board-table th { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; background: rgba(255, 255, 255, .025); }
.board-table tr:last-child td { border-bottom: 0; }
.board-table tbody tr { transition: background .15s; }
.board-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.board-table .rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 52px; }
.board-table .sid { color: var(--dim); font-family: var(--mono); font-size: 11.5px; }
.board-table .pts { text-align: right; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.board-table .me { background: rgba(124, 92, 255, .08); }

/* ---------- admin ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.panel { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(22, 26, 42, .72), rgba(12, 14, 23, .82)); }
.panel h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.panel .hint { font-size: 12px; color: var(--dim); margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.field input:focus, .field select:focus { outline: none; border-color: rgba(124, 92, 255, .6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row span { font-size: 13px; font-weight: 600; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid var(--line); transition: .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s var(--ease); }
.switch input:checked + i { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.econ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 8, .72); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #161a29, #0b0d15);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  transform: translateY(14px) scale(.98); transition: transform .3s var(--ease);
}
.modal.open .modal-card { transform: none; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(5, 6, 10, .55); }
.modal-hero .owned-ribbon { top: 14px; right: 58px; }
.modal-hero { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: radial-gradient(110% 100% at 50% 20%, color-mix(in srgb, var(--r, #7c5cff) 38%, transparent), transparent 62%), linear-gradient(160deg, #1b2033, #0b0d16); }
.modal-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, transparent 60%, rgba(11, 13, 21, .65)); }
.modal-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 18px 22px 10px; object-fit: contain; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .62)) drop-shadow(0 0 24px color-mix(in srgb, var(--r, #7c5cff) 42%, transparent)); }
.modal-photo + .wpn { display: none; }
.modal-watermark { position: absolute; right: 12px; bottom: 4px; z-index: 3; font-size: clamp(46px, 9vw, 92px); font-weight: 900; letter-spacing: -.05em; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .11); pointer-events: none; user-select: none; }
.modal-hero .wpn { width: 62%; fill: rgba(238, 241, 248, .95); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .6)); z-index: 1; }
.modal-body { padding: 22px; }
.modal-title { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.modal-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.modal-stat { padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.modal-stat span { display: block; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.modal-stat b { font-size: 13.5px; font-weight: 700; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 360px;
  padding: 12px 15px; border-radius: 12px;
  background: rgba(16, 19, 31, .96); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  font-size: 13px; font-weight: 600;
  animation: toastIn .25s var(--ease) both;
}
.toast.out { animation: toastOut .2s var(--ease) both; }
.toast .icon { width: 18px; height: 18px; }
.toast.success { border-color: rgba(52, 211, 153, .35); } .toast.success .icon { color: var(--success); }
.toast.error { border-color: rgba(255, 92, 122, .4); } .toast.error .icon { color: var(--danger); }
.toast.info .icon { color: var(--accent-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- footer ---------- */
.site-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 34px 0 42px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.site-footer b { color: var(--text); letter-spacing: .08em; }
.site-footer .footer-dot { opacity: .5; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .server-card { max-width: 520px; transform: none; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { width: calc(100% - 28px); }
  .user-meta { display: none; }
  .user-chip { padding: 4px; }
  .brand-badge { display: none; }
  .hero h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero-stats { gap: 22px; }
  .podium { grid-template-columns: 1fr; align-items: stretch; }
  .podium-card.first { order: -1; }
}
@media (max-width: 640px) {
  .header-inner { height: 64px; gap: 10px; }
  .brand-text { font-size: 17px; }
  .tabs-shell { top: 64px; }
  .tab { padding: 14px 11px; font-size: 12.5px; }
  .tab span { display: none; }
  .tab .icon { width: 20px; height: 20px; }
  .tab-count { display: none; }
  .balance { padding: 7px 10px; }
  .balance b { font-size: 14px; }
  .btn-connect span { display: none; }
  .btn-connect { padding: 10px; }
  .hero { padding-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .drops { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -14px; padding: 2px 14px 8px; scrollbar-width: none; }
  .drops::-webkit-scrollbar { display: none; }
  .drop-card { flex: 0 0 82%; scroll-snap-align: start; min-height: 148px; }
  .drops-note { display: none; }
  .hero-stats { justify-content: space-between; gap: 12px; }
  .grid, .skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .skin-name { font-size: 15px; }
  .skin-body { padding: 11px 12px 12px; }
  .skin-desc { display: none; }
  .filters { gap: 8px; }
  .searchbox { max-width: none; flex-basis: 100%; }
  .result-count { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
}
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .header-right { gap: 6px; }
  .balance { padding: 7px 8px; }
  .hero h1 { font-size: 34px; }
  .hero-stats dd { font-size: 21px; }
  .hero-stats dt { font-size: 10px; }
  .tab { padding: 13px 9px; }
}
@media (max-width: 370px) {
  .brand-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}




/* server network */
.servers-strip { padding: 18px 0 6px; }
.servers-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.servers-head h2 { margin: 4px 0 0; font-size: 20px; }
.servers-note { color: var(--muted); font-size: 12px; text-align: right; }
.servers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.server-tile { position: relative; display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); color: var(--text); cursor: pointer; transition: border-color .18s, transform .18s, background .18s; }
.server-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); background: linear-gradient(160deg, rgba(124,92,255,.14), rgba(34,211,238,.05)); }
.server-tile.is-online { border-color: rgba(163,230,53,.22); }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-mode { font-size: 10px; letter-spacing: .12em; font-weight: 800; color: var(--accent-2); }
.st-state { font-size: 9px; letter-spacing: .1em; font-weight: 800; color: var(--muted); }
.server-tile.is-online .st-state { color: var(--accent-3); }
.server-tile b { font-size: 14px; line-height: 1.25; }
.st-map, .st-ip { color: var(--muted); font-size: 11px; }
.st-ip { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; opacity: .8; }
.st-play { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--accent-2); }
.st-play .icon { width: 13px; height: 13px; }
@media (max-width: 900px) { .servers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .servers-note { display: none; } }
@media (max-width: 560px) { .servers-grid { grid-template-columns: 1fr; } }

/* server card actions */
.server-tile { cursor: default; }
.st-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.st-play, .st-copy { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.st-play { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--accent-2); }
.st-copy { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.st-copy:hover { color: var(--text); }
.st-play .icon, .st-copy .icon { width: 13px; height: 13px; }

/* equipped state */
.btn.btn-equipped,
.btn.btn-equipped:disabled {
  opacity: 1;
  color: #06110b;
  background: linear-gradient(135deg, #34d399, #a3e635);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(163, 230, 53, .28);
}
.skin-card.is-equipped { border-color: rgba(163, 230, 53, .42); box-shadow: 0 0 0 1px rgba(163, 230, 53, .14), 0 18px 40px rgba(0, 0, 0, .28); }
.skin-card.is-equipped .owned-ribbon { color: #06110b; background: linear-gradient(135deg, #34d399, #a3e635); border-color: transparent; }

/* vanilla knife silhouette */
.skin-art .wpn path,
.skin-art .wpn rect,
.modal-hero .wpn path,
.modal-hero .wpn rect,
.slot-icon .wpn path,
.slot-icon .wpn rect {
  fill: #c9ced8;
}
.skin-card.is-owned .skin-art .wpn { opacity: .82; }

/* ============================ ADMIN CENTER ============================ */
.adm-wrap{display:flex;gap:22px;align-items:flex-start;margin-top:18px}
.adm-side{display:flex;flex-direction:column;gap:4px;min-width:190px;padding:14px;border-radius:16px;
  background:rgba(23,26,38,.72);border:1px solid rgba(255,255,255,.07);position:sticky;top:90px}
.adm-side a{padding:10px 14px;border-radius:10px;color:#aab2cf;text-decoration:none;font-weight:600;font-size:14px;transition:.15s}
.adm-side a:hover{background:rgba(123,92,255,.12);color:#e7e9f7}
.adm-side a.on{background:linear-gradient(90deg,rgba(123,92,255,.28),rgba(123,92,255,.10));color:#fff;
  box-shadow:inset 0 0 0 1px rgba(123,92,255,.35)}
.adm-side .adm-out{margin-top:10px;color:#7b5cff}
.adm-main{flex:1;min-width:0}
.adm-h{font-size:26px;font-weight:800;letter-spacing:.3px;margin:6px 0 4px}
.adm-h2{font-size:17px;font-weight:700;margin:26px 0 10px;color:#dfe3f5}
.adm-cards .card b{font-size:24px}
.adm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:14px 0}
.adm-grid .card{padding:16px}
.adm-grid h3{font-size:14px;margin-bottom:10px;color:#c8cfe6}
.adm-filter{gap:10px;flex-wrap:wrap}
.adm-num{width:90px}
.btn-danger{background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff;border:0;cursor:pointer}
.btn-sm{padding:6px 12px;font-size:12px}
.tbl-wrap{overflow-x:auto;border-radius:14px;border:1px solid rgba(255,255,255,.07)}
.tbl-wrap .tbl{margin:0;min-width:560px}
input,select,textarea{background:#141824;border:1px solid rgba(255,255,255,.09);color:#e7e9f7;
  border-radius:10px;padding:10px 12px;font-size:14px;outline:none;transition:border-color .15s}
input:focus,select:focus{border-color:#7b5cff}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0}
.card.pp.ok{border-color:rgba(74,222,128,.4)}.card.pp.err{border-color:rgba(248,113,113,.4)}
@media(max-width:860px){
 .adm-wrap{flex-direction:column}
 .adm-side{position:static;flex-direction:row;flex-wrap:wrap;min-width:0}
 .adm-side a{padding:8px 10px;font-size:13px}
 .tbl-wrap .tbl{min-width:640px}
}
