:root {
    --bg: #0e0f13;
    --panel: #16181f;
    --panel2: #1d2029;
    --line: #2a2e3a;
    --text: #e9e9ee;
    --muted: #8b8f9c;
    --red: #ff3b3b;
    --red2: #ff8a8a;
    --ok: #4cd964;

    --t-grey: #b0c3d9;
    --t-lightblue: #8cc6ff;
    --t-blue: #6a7dff;
    --t-purple: #c166ff;
    --t-pink: #f03cff;
    --t-red: #eb4b4b;
    --t-gold: #ffd700;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: radial-gradient(1200px 500px at 70% -10%, rgba(255, 59, 59, .12), transparent), var(--bg);
    color: var(--text);
    font: 15px/1.5 "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--red2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2 { margin: 0 0 .6rem; font-weight: 800; letter-spacing: .02em; }
h2 { font-size: 1.15rem; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.accent { color: var(--red); }
.ok { color: var(--ok); }

/* ---------- Header ---------- */
.top {
    display: flex; align-items: center; gap: 2rem; padding: .9rem 2rem;
    background: rgba(14, 15, 19, .9); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-size: 1.15rem; }
.brand .sub { color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .2em; }
.bars { display: inline-block; width: 14px; height: 22px; background: linear-gradient(90deg, var(--red) 0 35%, transparent 35% 60%, var(--red) 60%); transform: skewX(-12deg); }
.top nav { display: flex; gap: .3rem; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--muted); padding: .45rem .8rem; border-radius: 6px; font-weight: 600; text-transform: uppercase; font-size: .85rem; }
.top nav a.active, .top nav a:hover { color: #fff; background: var(--panel2); box-shadow: inset 0 -2px var(--red); }
.user { display: flex; align-items: center; gap: .6rem; }
.user img { width: 32px; height: 32px; border-radius: 6px; }

main { max-width: 1250px; margin: 2rem auto; padding: 0 1.2rem; display: grid; gap: 1.2rem; }
.bottom { display: flex; gap: 1.5rem; justify-content: center; padding: 2rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Cards, buttons, forms ---------- */
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.compact select, .row.compact input { padding: .35rem .5rem; font-size: .85rem; }
.row.compact input { width: 110px; }

.btn {
    display: inline-block; border: 0; cursor: pointer; background: var(--red); color: #fff; font-weight: 700;
    padding: .6rem 1.1rem; border-radius: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem;
}
.btn:hover { background: #ff5555; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--red); }
.btn.small { padding: .4rem .75rem; font-size: .75rem; }
.btn.steam { background: #1b2838; border: 1px solid #66c0f4; }

input, select {
    background: #0f1116; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; font: inherit;
}
input:focus, select:focus { outline: none; border-color: var(--red); }

.flash { padding: .9rem 1.2rem; border-radius: 10px; background: rgba(76, 217, 100, .12); border: 1px solid rgba(76, 217, 100, .4); }
.flash.error { background: rgba(255, 59, 59, .12); border-color: rgba(255, 59, 59, .5); }

.tag { display: inline-block; font-size: .7rem; font-weight: 800; padding: .1rem .45rem; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); text-transform: uppercase; margin-left: .3rem; }
.tag.staff { color: var(--red2); border-color: rgba(255, 59, 59, .5); }
.tag.vip { color: var(--t-gold); border-color: rgba(255, 215, 0, .4); }
.tag.ban { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- Premier badge (like in CS2) ---------- */
.premier {
    --c: var(--t-grey);
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px;
    background: color-mix(in srgb, var(--c) 16%, #111); border-radius: 3px; transform: skewX(-12deg);
    font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums;
}
.premier > * { transform: skewX(12deg); }
.premier .bars { width: 10px; height: 18px; background: linear-gradient(90deg, var(--c) 0 35%, transparent 35% 60%, var(--c) 60%); transform: none; }
.premier.xl { font-size: 2.4rem; padding: 6px 18px 6px 12px; gap: 12px; }
.premier.xl .bars { width: 22px; height: 40px; }
.tier-grey { --c: var(--t-grey); }
.tier-lightblue { --c: var(--t-lightblue); }
.tier-blue { --c: var(--t-blue); }
.tier-purple { --c: var(--t-purple); }
.tier-pink { --c: var(--t-pink); }
.tier-red { --c: var(--t-red); }
.tier-gold { --c: var(--t-gold); }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1fr 280px; gap: 1.2rem; align-items: center; padding: 1rem 0; }
.hero h1 { font-size: 2.6rem; }
.status { text-align: center; }
.label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.big { font-size: 2.2rem; font-weight: 800; }
.search input { width: 260px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: .5rem; border-bottom: 1px solid var(--line); }
.table td { padding: .55rem .5rem; border-bottom: 1px solid rgba(42, 46, 58, .6); vertical-align: middle; }
.table tr:hover td { background: rgba(255, 255, 255, .02); }
.table .pos { color: var(--muted); font-weight: 800; width: 40px; }
.table tr:nth-child(1) .pos { color: var(--t-gold); }
.table tr:nth-child(2) .pos { color: #c0c0c0; }
.table tr:nth-child(3) .pos { color: #cd7f32; }
.faded td { opacity: .45; }
.player { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 600; }
.player img { width: 28px; height: 28px; border-radius: 5px; }
.team { font-weight: 800; font-size: .8rem; }
.team-t { color: #ead18a; }
.team-ct { color: #8cc6ff; }
.team-spec { color: var(--muted); }

/* ---------- Profile ---------- */
.profile { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.who { display: flex; gap: 1.2rem; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: 12px; border: 2px solid var(--line); }
.rating-card { text-align: center; padding: 1rem 2rem; border-radius: 12px; background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { text-align: center; }
.ban-box { border-color: rgba(255, 59, 59, .5); }

/* ---------- Skins ---------- */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs a { padding: .6rem 1.1rem; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.tabs a.active { color: #fff; border-color: var(--red); box-shadow: inset 0 -3px var(--red); }
.skins-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.weapons { padding: .6rem; display: grid; gap: .25rem; max-height: 75vh; overflow: auto; position: sticky; top: 80px; }
.weapons a { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: 8px; color: var(--text); font-weight: 600; }
.weapons a img { width: 64px; height: 36px; object-fit: contain; }
.weapons a.active, .weapons a:hover { background: var(--panel2); box-shadow: inset 3px 0 var(--red); }
.weapons .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.item {
    display: grid; gap: .45rem; justify-items: center; text-align: center; padding: .9rem; border-radius: 10px;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .05), transparent 70%), #12141a; border: 1px solid var(--line);
    transition: transform .12s, border-color .12s;
}
.item:hover { transform: translateY(-3px); border-color: rgba(255, 59, 59, .6); }
.item img { width: 100%; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.item .name { font-weight: 700; min-height: 2.6em; display: flex; align-items: center; }
.item select { width: 100%; }
.item .btn { width: 100%; }
.item.equipped { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }

pre { white-space: pre-wrap; color: var(--muted); }

/* ---------- Dropdowns (Admin, account): open on click ---------- */
.dropdown { position: relative; }
.dropdown summary {
    list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; gap: .5rem;
    color: var(--muted); padding: .45rem .8rem; border-radius: 6px; font-weight: 600; text-transform: uppercase; font-size: .85rem;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary:hover, .dropdown summary.active, .dropdown[open] summary { color: #fff; background: var(--panel2); box-shadow: inset 0 -2px var(--red); }
.dropdown .menu {
    position: absolute; top: calc(100% + .4rem); left: 0; z-index: 30; min-width: 220px; padding: .4rem; display: grid;
    background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.dropdown .menu.right { left: auto; right: 0; }
.dropdown:not([open]) .menu { display: none; }
.dropdown .menu a { padding: .5rem .7rem; border-radius: 6px; color: var(--text); text-transform: none; font-weight: 600; font-size: .9rem; box-shadow: none; }
.dropdown .menu a:hover, .dropdown .menu a.active { background: rgba(255, 59, 59, .12); color: #fff; }
.menu-section { padding: .55rem .7rem .2rem; color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.menu-section:first-child { padding-top: .2rem; }
.account-menu summary { text-transform: none; color: var(--text); }
.account-menu summary img { width: 28px; height: 28px; border-radius: 6px; }

/* ---------- Stats ---------- */
a.stat { color: var(--text); }
a.stat:hover { border-color: var(--red); }
.small-big { font-size: 1.3rem; padding-top: .5rem; }
.tiers { display: grid; gap: .6rem; }
.tier-row { display: grid; grid-template-columns: 220px 1fr 60px; gap: 1rem; align-items: center; }
.tier-name { color: var(--c); font-weight: 700; }
.tier-bar { height: 14px; background: #0f1116; border-radius: 3px; overflow: hidden; transform: skewX(-12deg); }
.tier-bar i { display: block; height: 100%; background: var(--c); }
.tier-count { text-align: right; font-weight: 800; }
.progress { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; margin: .5rem 0 .2rem; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--c); }

/* ---------- Manage forms on the profile ---------- */
.manage { display: grid; gap: .5rem; align-content: start; padding: 1rem; background: #12141a; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- Log tags ---------- */
.tag.log-ban, .tag.log-kick, .tag.log-slay { color: #fff; background: var(--red); border-color: var(--red); }
.tag.log-mute, .tag.log-gag { color: #ffb74d; border-color: rgba(255, 183, 77, .5); }
.tag.log-unban, .tag.log-unmute, .tag.log-ungag { color: var(--ok); border-color: rgba(76, 217, 100, .5); }
.tag.log-vip, .tag.log-addadmin { color: var(--t-gold); border-color: rgba(255, 215, 0, .5); }

/* ---------- Portal ---------- */
.portal-hero h1 { font-size: 3rem; }
.small-hero { padding: 0; }
.small-hero h1 { font-size: 2rem; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); margin-right: .3rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.tile {
    display: grid; gap: .3rem; padding: 1.3rem; border-radius: 12px; color: var(--text);
    background: linear-gradient(160deg, rgba(255, 59, 59, .10), transparent 60%), var(--panel);
    border: 1px solid var(--line); transition: transform .12s, border-color .12s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--red); color: #fff; }
.tile .icon { font-size: 1.8rem; }
.tile b { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Tiles with pictures ---------- */
.tile-img {
    position: relative; overflow: hidden; min-height: 150px; align-content: end;
    background: radial-gradient(260px 160px at 85% 30%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), var(--panel);
}
.tile-img img {
    position: absolute; right: -12px; top: 8px; width: 62%; max-height: 120px; object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); transition: transform .2s; z-index: 0;
}
.tile-img:hover img { transform: scale(1.08) rotate(-3deg); }
.tile-img:hover { border-color: var(--c); }
.tile-img b, .tile-img span { position: relative; z-index: 1; }
.tile-img b { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }

.reward-card { position: relative; overflow: hidden; border-top: 3px solid var(--c); }
.reward-card h2, .reward-card form, .reward-card p { position: relative; z-index: 1; }
.reward-art { position: absolute; right: -20px; top: -10px; width: 170px; max-height: 130px; object-fit: contain; opacity: .35; pointer-events: none; }

/* ---------- Store banners (big card per grade) ---------- */
.store-banners { display: grid; gap: 1.4rem; }
.vip-banner {
    position: relative; display: grid; grid-template-columns: 260px 1fr 220px; gap: 1.5rem; align-items: center; min-height: 200px;
    padding: 1.6rem 1.8rem; border-radius: 18px; overflow: hidden; color: #fff;
    background:
        radial-gradient(400px 260px at 95% 50%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
        linear-gradient(110deg, color-mix(in srgb, var(--c) 35%, #14151b), color-mix(in srgb, var(--c) 12%, #101116) 60%);
    border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 10px 0 color-mix(in srgb, var(--c) 35%, #0b0c10);
}
.vip-left { display: grid; gap: .7rem; position: relative; z-index: 1; }
.vip-title { display: flex; align-items: center; gap: .7rem; }
.vip-title h2 { margin: 0; font-size: 1.9rem; text-transform: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.vip-icon { width: 64px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.vip-price { font-weight: 600; color: #e8e8e8; }
.vip-price b { color: #fff; font-size: 1.15rem; }
.vip-left .buy { display: grid; gap: .5rem; }
.vip-left select { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .2); }
.buy-btn { background: #111 !important; color: #fff !important; padding: .8rem 1.2rem; border-radius: 10px; text-align: center; }
.buy-btn:hover { background: #000 !important; box-shadow: 0 0 0 2px var(--c); }
.vip-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; position: relative; z-index: 1; }
.vip-perks li { display: flex; align-items: center; gap: .6rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.perk-ico { width: 34px; height: 26px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.perk-ico.star { display: grid; place-items: center; color: var(--c); font-size: 1.2rem; }
.tag-mini { display: grid; place-items: center; width: auto; min-width: 34px; padding: 0 .3rem; font-size: .6rem; font-weight: 900; color: #111; background: var(--c); border-radius: 4px; height: 18px; }
.premier-mini { display: grid; place-items: center; }
.premier-mini i { width: 14px; height: 20px; background: linear-gradient(90deg, var(--c) 0 35%, transparent 35% 60%, var(--c) 60%); transform: skewX(-12deg); }
.vip-agent {
    position: absolute; right: 10px; bottom: -10px; height: 115%; max-height: 260px; object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .7)); transform: rotate(4deg); pointer-events: none;
}
@media (max-width: 900px) {
    .vip-banner { grid-template-columns: 1fr; }
    .vip-perks { grid-template-columns: 1fr; }
    .vip-agent { opacity: .25; height: 100%; }
}

/* ---------- Store ---------- */
.store { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.vip-card {
    display: grid; gap: 1rem; align-content: start; padding: 1.4rem; border-radius: 14px;
    background: linear-gradient(170deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 55%), var(--panel);
    border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line));
}
.vip-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.vip-head h2 { margin: 0; color: var(--c); font-size: 1.4rem; }
.vip-head .bars { background: linear-gradient(90deg, var(--c) 0 35%, transparent 35% 60%, var(--c) 60%); }
.vip-tag { margin-left: auto; color: var(--c); font-weight: 800; font-size: .8rem; }
.vip-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.vip-card li::marker { color: var(--c); }
.vip-card .buy { display: grid; gap: .5rem; }
.vip-card .btn { background: var(--c); color: #111; }

/* ---------- Unban appeals ---------- */
.appeal-form { display: grid; gap: .7rem; }
.appeal-form label { display: grid; gap: .3rem; color: var(--muted); font-weight: 600; }
textarea { background: #0f1116; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font: inherit; resize: vertical; }
textarea:focus { outline: none; border-color: var(--red); }
.appeal { border-left: 3px solid var(--line); padding-left: 1rem; margin-bottom: .8rem; }
.appeal.status-pending { border-left-color: #ffb74d; }
.appeal.status-accepted { border-left-color: var(--ok); }
.appeal.status-denied { border-left-color: var(--red); }
.response { background: #12141a; border-radius: 8px; padding: .7rem .9rem; color: var(--text); }

/* ---------- Home v2 ---------- */
.brand { white-space: nowrap; flex-shrink: 0; }
.announce {
    display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-radius: 12px; font-weight: 700;
    background: linear-gradient(90deg, rgba(255, 59, 59, .25), rgba(255, 59, 59, .05)); border: 1px solid rgba(255, 59, 59, .5);
}
.portal-hero {
    position: relative; padding: 2.5rem 2rem; border-radius: 18px; overflow: hidden;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(255, 59, 59, .28), transparent 70%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 26px),
        linear-gradient(160deg, #1a1c24, #101116);
    border: 1px solid var(--line);
}
.portal-hero h1 { font-size: 3.4rem; letter-spacing: .03em; margin: .2rem 0 .4rem; text-shadow: 0 0 30px rgba(255, 59, 59, .35); }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .25em; font-size: .75rem; }
.lead { font-size: 1.1rem; max-width: 560px; }
.big-btn { padding: .85rem 1.5rem; font-size: .95rem; }
.server-card { background: rgba(10, 11, 15, .6); backdrop-filter: blur(4px); }
.huge { font-size: 3rem; font-weight: 900; line-height: 1.1; }
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: .5rem 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red2)); }
.ip { margin-top: .6rem; font-family: ui-monospace, monospace; background: #0f1116; border: 1px dashed var(--line); border-radius: 6px; padding: .3rem .5rem; user-select: all; }

.podium { display: grid; gap: .35rem; }
.podium-row { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; border-radius: 8px; color: var(--text); background: rgba(255, 255, 255, .02); }
.podium-row:hover { background: rgba(255, 59, 59, .08); color: #fff; }
.podium-row .pname { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-weight: 900; background: var(--panel2); }
.place.p1 { background: #ffd700; color: #111; }
.place.p2 { background: #c0c0c0; color: #111; }
.place.p3 { background: #cd7f32; color: #111; }

.people-groups { display: grid; gap: 1.1rem; }
.group-title { display: flex; align-items: center; gap: .5rem; color: var(--c); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.group-title .bars { width: 10px; height: 16px; background: linear-gradient(90deg, var(--c) 0 35%, transparent 35% 60%, var(--c) 60%); }
.people { display: flex; flex-wrap: wrap; gap: .6rem; }
.person {
    display: flex; align-items: center; gap: .55rem; padding: .4rem .8rem .4rem .4rem; border-radius: 999px; color: var(--text); font-weight: 600;
    background: color-mix(in srgb, var(--c) 10%, #12141a); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.person:hover { color: #fff; border-color: var(--c); }
.person img, .person .initial { width: 30px; height: 30px; border-radius: 50%; }
.person .initial { display: grid; place-items: center; background: var(--c); color: #111; font-weight: 900; }
.person .dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.person .dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.donors-card { background: linear-gradient(170deg, rgba(255, 215, 0, .07), transparent 50%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.store-note { text-align: center; color: var(--red2); font-weight: 600; }

/* ---------- Economy: credits, cases, inventory ---------- */
.gold { color: #ffd700; }
.center { justify-content: center; }
.coins { color: #ffd700; font-weight: 800; padding: .35rem .7rem; border-radius: 999px; background: rgba(255, 215, 0, .1); border: 1px solid rgba(255, 215, 0, .35); white-space: nowrap; }
.economy-hero { background: radial-gradient(500px 200px at 100% 0%, rgba(255, 215, 0, .08), transparent 70%); border-radius: 14px; }
.wallet { text-align: center; }

.item.rarity { border-bottom: 3px solid var(--c); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), #12141a; }
.item.rarity:hover { border-color: var(--c); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.case-card {
    display: grid; justify-items: center; gap: .4rem; padding: 1rem; text-align: center; border-radius: 12px; color: var(--text);
    background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, .08), transparent 70%), var(--panel); border: 1px solid var(--line);
    transition: transform .12s, border-color .12s;
}
.case-card:hover { transform: translateY(-4px) rotate(-.5deg); border-color: #ffd700; color: #fff; }
.case-card img { width: 100%; height: 130px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.price { color: #ffd700; font-weight: 800; }
.big-price { font-size: 1.3rem; }

.case-open { display: grid; gap: 1.2rem; overflow: hidden; }
.case-top { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.case-img { width: 180px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.odds { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .6rem; font-size: .85rem; }
.odds span { color: var(--c); display: inline-flex; align-items: center; gap: .35rem; }
.odds i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

.reel-wrap { position: relative; overflow: hidden; height: 170px; border-radius: 12px; background: #0b0c10; border: 1px solid var(--line); }
.reel-wrap::before, .reel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.reel-wrap::before { left: 0; background: linear-gradient(90deg, #0b0c10, transparent); }
.reel-wrap::after { right: 0; background: linear-gradient(-90deg, #0b0c10, transparent); }
.reel-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #ffd700; box-shadow: 0 0 14px #ffd700; z-index: 3; }
.reel { display: flex; gap: 8px; padding: 10px; will-change: transform; }
.reel:empty::before { content: 'Apasă „Deschide cutia”'; color: var(--muted); margin: auto; padding-top: 55px; }
.reel-item {
    flex: 0 0 160px; height: 150px; display: grid; justify-items: center; align-content: center; gap: .3rem; padding: .5rem; border-radius: 8px; text-align: center;
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #15171e; border-bottom: 4px solid var(--c);
}
.reel-item img { width: 130px; height: 90px; object-fit: contain; }
.reel-item span { font-size: .72rem; color: #ddd; line-height: 1.2; }

.win-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.win-modal[hidden] { display: none; }
.win-card {
    width: min(440px, 92vw); display: grid; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; border-radius: 16px;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), var(--panel);
    border: 2px solid var(--c); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 45%, transparent); animation: pop .35s ease-out;
}
.win-card img { width: 300px; max-width: 100%; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .6)); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.knife-mystery { font-size: 4rem; color: #ffd700; height: 110px; display: grid; place-items: center; text-shadow: 0 0 20px #ffd700; }
.inventory-grid .item form { width: 100%; }

/* ---------- Gradient ranks + discounts ---------- */
.people-group[style*="--c2"] .group-title { background: linear-gradient(90deg, var(--c), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.people-group[style*="--c2"] .group-title .bars { background: linear-gradient(90deg, var(--c) 0 35%, transparent 35% 60%, var(--c2) 60%); -webkit-background-clip: border-box; background-clip: border-box; }
.tag.grad { color: #fff; border: 0; background: linear-gradient(90deg, var(--c), var(--c2)); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.sale-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; padding: .45rem 1rem; background: linear-gradient(90deg, #8b0000, #ff3b3b, #8b0000); font-weight: 800; font-size: .85rem; }
.sale-strip a { color: #fff; }
.sale-badge { display: inline-block; margin-left: .3rem; padding: 0 .35rem; border-radius: 4px; background: var(--red); color: #fff; font-size: .7rem; }
.vip-sale { position: absolute; top: 12px; right: 14px; z-index: 2; padding: .25rem .7rem; border-radius: 999px; background: #ff3b3b; color: #fff; font-weight: 900; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.coupon-box { align-items: center; padding: .8rem 1rem; }
.coupon-box input[name="coupon"] { width: 160px; text-transform: uppercase; }
.error-text { color: var(--red2); }
.discount-list td form { display: inline; }

/* ---------- Presence: in game / on panel ---------- */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #555; }
.dot.on, .person .dot.on { background: #4cd964; box-shadow: 0 0 8px #4cd964; }
.dot.web, .person .dot.web { background: #3a8dff; box-shadow: 0 0 8px #3a8dff; }
.presence { display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.presence.game { color: #4cd964; background: rgba(76, 217, 100, .12); }
.presence.web { color: #8cc6ff; background: rgba(58, 141, 255, .14); }
.presence.off { color: var(--muted); background: rgba(255, 255, 255, .05); }
.online-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.online-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.online-list a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem .3rem .4rem; border-radius: 999px; background: #15161c; border: 1px solid var(--line); color: #fff; font-size: .85rem; }
.online-list a:hover { border-color: var(--red); }
.online-list img { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px #3a8dff; }
@media (max-width: 700px) { .online-cols { grid-template-columns: 1fr; } }

/* ---------- Discord link result ---------- */
.link-result { max-width: 560px; margin: 2rem auto; display: grid; justify-items: center; gap: .6rem; text-align: center; padding: 2rem; }
.link-result h1 { margin: 0; }
.link-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-size: 1.8rem; font-weight: 900; color: #fff; }
.ok-card .link-icon { background: #4cd964; box-shadow: 0 0 24px rgba(76, 217, 100, .4); }
.bad-card .link-icon { background: var(--red); box-shadow: 0 0 24px rgba(255, 59, 59, .4); }

/* ---------- Staff chat ---------- */
.sc-layout { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; align-items: start; }
.sc-chat { display: grid; gap: .6rem; }
.sc-messages { height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; padding: .6rem; border-radius: 10px; background: #0d0e12; border: 1px solid var(--line); }
.sc-msg { padding: .35rem .55rem; border-radius: 6px; line-height: 1.4; word-break: break-word; }
.sc-msg:hover { background: rgba(255, 255, 255, .03); }
.sc-msg.mine { background: rgba(255, 59, 59, .07); }
.sc-time { color: var(--muted); font-size: .72rem; margin-right: .4rem; }
.sc-src { display: inline-block; margin-right: .35rem; padding: 0 .3rem; border-radius: 3px; font-size: .6rem; font-weight: 900; vertical-align: 1px; }
.sc-src.game { background: rgba(255, 152, 0, .2); color: #ffb74d; }
.sc-src.web { background: rgba(58, 141, 255, .2); color: #8cc6ff; }
.sc-rank { color: var(--red2); font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.sc-text { color: #f1e9c6; }
.sc-info { margin: auto; }
.sc-form { display: flex; gap: .5rem; }
.sc-form input[name="message"] { flex: 1; }
.sc-online h3 { margin-top: 0; }
.sc-person { display: flex; align-items: center; gap: .4rem; padding: .25rem 0; }
@media (max-width: 800px) { .sc-layout { grid-template-columns: 1fr; } .sc-messages { height: 60vh; } }

/* ---------- Market: category tiles + weapon chips ---------- */
.mk-cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: .7rem; margin: 1rem 0 .9rem; }
.mk-cat {
    position: relative; display: grid; justify-items: center; gap: .1rem; padding: .7rem .5rem .75rem; border-radius: 12px; overflow: hidden; text-align: center;
    color: var(--muted); background: linear-gradient(180deg, #1a1c23, #121318); border: 1px solid var(--line);
    transition: transform .15s, border-color .15s, color .15s, box-shadow .15s;
}
.mk-cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.mk-cat:hover { transform: translateY(-3px); color: #fff; border-color: rgba(255, 59, 59, .45); }
.mk-cat.active { color: #fff; border-color: var(--red); box-shadow: 0 8px 22px rgba(255, 59, 59, .18); background: radial-gradient(120px 80px at 50% 35%, rgba(255, 59, 59, .22), transparent 75%), linear-gradient(180deg, #1f1416, #131317); }
.mk-cat.active::after, .mk-cat:hover::after { transform: scaleX(1); }
.mk-cat-img { display: grid; place-items: center; height: 58px; width: 100%; }
.mk-cat-img img { max-width: 92%; max-height: 58px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); transition: transform .2s; }
.mk-cat:hover .mk-cat-img img, .mk-cat.active .mk-cat-img img { transform: scale(1.08); }
.mk-cat b { font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }
.mk-cat small { font-size: .68rem; color: var(--muted); }
.mk-cat .sale-badge { position: absolute; top: 6px; right: 6px; margin: 0; }
.mk-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.mk-chip {
    display: flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .45rem; border-radius: 999px;
    color: var(--muted); font-weight: 800; font-size: .8rem; text-transform: uppercase; background: #15161c; border: 1px solid var(--line);
}
.mk-chip img { width: 54px; height: 26px; object-fit: contain; }
.mk-chip:hover { color: #fff; border-color: rgba(255, 59, 59, .45); }
.mk-chip.active { color: #fff; background: linear-gradient(90deg, rgba(255, 59, 59, .28), rgba(255, 59, 59, .08)); border-color: var(--red); }
@media (max-width: 1000px) { .mk-cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .mk-cats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Inventory (CS2 style) ---------- */
.inv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 1rem 0; }
.inv-head h1 { margin: .1rem 0; }
.inv-wallet { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: 12px; background: #15161c; border: 1px solid var(--line); }
.inv-wallet b { font-size: 1.4rem; }
.inv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding: .5rem; margin-bottom: .8rem; border-radius: 10px; background: #111217; border: 1px solid var(--line); }
.inv-types { display: flex; flex-wrap: wrap; gap: .3rem; }
.inv-types button { padding: .45rem .9rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: .8rem; text-transform: uppercase; cursor: pointer; }
.inv-types button span { margin-left: .25rem; opacity: .6; font-size: .7rem; }
.inv-types button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.inv-types button.active { color: #fff; background: rgba(255, 59, 59, .18); box-shadow: inset 0 -2px var(--red); }
.inv-tools { display: flex; gap: .4rem; }
.inv-tools input { width: 210px; }
.inv-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; align-items: start; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; padding: 8px; border-radius: 10px; background: #0d0e12; border: 1px solid var(--line); min-height: 300px; align-content: start; }
.inv-tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; cursor: pointer;
    border: 0; border-radius: 3px; color: #fff; font: inherit; text-align: left;
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 16%, #3a3d46), #23252c 70%);
    box-shadow: inset 0 -4px var(--c);
    transition: transform .12s, filter .12s, box-shadow .12s;
}
.inv-tile:hover { transform: scale(1.04); filter: brightness(1.15); z-index: 1; }
.inv-tile.picked { box-shadow: inset 0 -4px var(--c), 0 0 0 2px #fff; }
.inv-tile[hidden] { display: none; }
.inv-img { position: absolute; inset: 8% 6% 30%; width: 88%; height: 62%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); }
.inv-name { position: relative; display: block; padding: .3rem .45rem .5rem; font-size: .72rem; font-weight: 700; line-height: 1.15; background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-name small { display: block; font-size: .62rem; font-weight: 600; color: #c9ccd4; overflow: hidden; text-overflow: ellipsis; }
.inv-on { position: absolute; top: 4px; right: 5px; z-index: 1; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #4cd964; color: #0b0c10; font-size: .65rem; font-weight: 900; }
.inv-stickers { position: absolute; top: 3px; left: 3px; z-index: 1; display: flex; gap: 1px; }
.inv-stickers img { width: 18px; height: 14px; object-fit: contain; }
.inv-charm { position: absolute; right: 6px; bottom: 34%; width: 26px; height: 26px; object-fit: contain; }
.inv-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; text-align: center; }
.inv-inspect { position: sticky; top: 1rem; display: grid; gap: .7rem; padding: 1rem; border-radius: 12px; background: linear-gradient(180deg, #17181e, #101116); border: 1px solid var(--line); }
.inv-pick { padding: 3rem 1rem; text-align: center; }
.inv-big { display: grid; place-items: center; height: 200px; border-radius: 10px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #0d0e12; }
.inv-big img { max-width: 92%; max-height: 180px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .7)); animation: inv-pop .25s ease-out; }
@keyframes inv-pop { from { transform: scale(.9); opacity: .3; } to { transform: none; opacity: 1; } }
.inv-title small { display: block; color: var(--muted); font-weight: 700; }
.inv-title b { font-size: 1.3rem; color: #fff; }
.inv-rarity { justify-self: start; padding: .2rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--c) 45%, #15161c); border-left: 3px solid var(--c); }
.inv-float { position: relative; display: flex; justify-content: space-between; padding-bottom: .7rem; font-size: .8rem; }
.inv-float span { color: var(--muted); }
.inv-float::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #4cd964 0 7%, #8bc34a 7% 15%, #ffc107 15% 38%, #ff9800 38% 45%, #f44336 45%); }
.inv-float i { position: absolute; bottom: -3px; width: 2px; height: 11px; background: #fff; box-shadow: 0 0 4px #000; }
.inv-applied { display: flex; flex-wrap: wrap; gap: .4rem; padding: .4rem; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.inv-applied img { width: 44px; height: 34px; object-fit: contain; }
.inv-value { display: flex; justify-content: space-between; align-items: center; padding: .55rem .7rem; border-radius: 8px; background: rgba(255, 215, 0, .06); }
.inv-value span { color: var(--muted); }
.inv-actions { display: grid; gap: .45rem; }
.inv-actions .btn, .inv-actions form { width: 100%; }
.inv-actions .btn { justify-content: center; text-align: center; }
.btn.danger:hover { border-color: var(--red); color: #fff; }
@media (max-width: 900px) {
    .inv-layout { grid-template-columns: 1fr; }
    .inv-inspect { position: static; order: -1; }
    .inv-head { flex-direction: column; align-items: flex-start; }
    .inv-tools input { width: 100%; }
}

/* ---------- Market: cases and keys (CS2 style cards) ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.mk-card {
    --c: #ffd700;
    position: relative; display: flex; flex-direction: column; gap: .55rem; padding: .9rem .9rem 1rem; border-radius: 12px;
    background:
        radial-gradient(160px 120px at 50% 32%, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%),
        linear-gradient(180deg, #1b1d24, #121318);
    border: 1px solid rgba(255, 255, 255, .06); border-bottom: 3px solid var(--c);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.mk-card.key { --c: #e8b84a; }
.mk-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 12px 26px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.mk-top { display: flex; align-items: center; gap: .4rem; min-height: 22px; }
.mk-type { font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--c); padding: .15rem .45rem; border-radius: 4px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.mk-have { margin-left: auto; font-size: .7rem; font-weight: 800; color: #4cd964; background: rgba(76, 217, 100, .12); padding: .15rem .45rem; border-radius: 4px; }
.mk-top .sale-badge { margin-left: 0; }
.mk-img { display: grid; place-items: center; height: 140px; }
.mk-img img { max-width: 100%; max-height: 140px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .65)); transition: transform .2s; }
.mk-card.key .mk-img img { max-height: 90px; transform: rotate(-18deg); }
.mk-card:hover .mk-img img { transform: scale(1.06); }
.mk-card.key:hover .mk-img img { transform: rotate(-10deg) scale(1.08); }
.mk-name { font-weight: 800; font-size: 1.02rem; text-align: center; color: #fff; min-height: 2.5em; display: grid; place-items: center; line-height: 1.2; }
.mk-with { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 32px; padding: .3rem .5rem; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: .78rem; color: var(--muted); text-align: left; }
.mk-with img { width: 34px; height: 26px; object-fit: contain; flex: none; }
.mk-buy { display: grid; grid-template-columns: auto 1fr; gap: .45rem; align-items: stretch; margin-top: auto; }
.stepper { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0d0e12; }
.stepper button { width: 28px; border: 0; background: transparent; color: #fff; font-size: 1rem; font-weight: 900; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, .08); }
.stepper input { width: 34px; padding: 0; border: 0; background: transparent; color: #fff; text-align: center; font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mk-btn { width: 100%; justify-content: center; font-weight: 900; }
.mk-link { font-size: .75rem; text-align: center; color: var(--muted); }
.mk-link:hover { color: #fff; }

/* ---------- Market, item page, case + key ---------- */
.market-tabs { margin-bottom: .2rem; }
.sub-tabs a { padding: .4rem .8rem; font-size: .75rem; }
.qty { width: 56px; padding: .35rem .4rem; }
.key-line { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.key-line img { width: 42px; height: 30px; object-fit: contain; }
.pager { margin-top: .5rem; }
.case-parts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .8rem; }
.case-part { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.case-part img { width: 64px; height: 44px; object-fit: contain; }
.item-page { display: grid; grid-template-columns: minmax(260px, 1fr) 1.2fr; gap: 2rem; align-items: center; border-top: 3px solid var(--c); }
.item-big { display: grid; place-items: center; min-height: 260px; border-radius: 14px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), #0f1116; }
.item-big img { max-width: 100%; max-height: 260px; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .7)); }
.item-info { display: grid; gap: .7rem; }
.item-info h1 { margin: 0; }
.market-form input { width: 140px; }
.sticker-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.sticker-slot { display: grid; justify-items: center; gap: .4rem; padding: .9rem; text-align: center; border-radius: 10px; border: 1px dashed var(--line); background: #12141a; }
.sticker-slot.full { border-style: solid; border-color: #8847ff; }
.sticker-slot img { width: 90px; height: 70px; object-fit: contain; }
.sticker-slot select { width: 100%; }
.charm-img { width: 70px; height: 70px; object-fit: contain; }
@media (max-width: 800px) { .item-page { grid-template-columns: 1fr; } }

/* ---------- Settings ---------- */
.settings { display: grid; gap: 1.2rem; }
.section-title { margin: .5rem 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.form-grid label, label.full { display: grid; gap: .3rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
input[type="color"] { padding: 0; height: 40px; width: 100%; cursor: pointer; }
.tier-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.2rem; }
.tier-edit { border-top: 3px solid var(--c); }
.tier-edit h3 { margin: 0; color: var(--c); text-transform: uppercase; }
.tier-edit.new { opacity: .75; border-style: dashed; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .8rem; }
.check { display: inline-flex; align-items: center; gap: .35rem; color: var(--text); font-size: .9rem; cursor: pointer; }

@media (max-width: 800px) {
    .portal-hero { padding: 1.5rem; }
    .portal-hero h1 { font-size: 2.3rem; }
    .tier-editor { grid-template-columns: 1fr; }
    .tier-row { grid-template-columns: 1fr 60px; }
    .tier-row .tier-bar { grid-column: 1 / -1; grid-row: 2; }
    .dropdown .menu.right { right: auto; left: 0; }
}

@media (max-width: 800px) {
    .top { flex-wrap: wrap; gap: .8rem; padding: .8rem; }
    .hero, .skins-layout { grid-template-columns: 1fr; }
    .weapons { position: static; max-height: 260px; }
    .table { font-size: .85rem; }
    .search input { width: 100%; }
}
