/* ==========================================================
   HUGEX – Design
   ========================================================== */
:root {
  --bg: #0a0913;
  --bg-2: #100e1c;
  --panel: #151226;
  --panel-2: #1b1730;
  --panel-3: #231e3d;
  --line: #2b2548;
  --line-2: #3a3260;
  --text: #ecebf5;
  --muted: #9a95b8;
  --faint: #6d6890;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --violet-3: #6d28d9;
  --gold: #f5c542;
  --gold-2: #ffdf7e;
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --green: #34d399;
  --red: #f87171;
  --orange: #fb923c;
  --accent: var(--violet);
  --accent-2: var(--violet-2);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
}
body.theme-cross { --accent: var(--cyan); --accent-2: var(--cyan-2); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--violet); color: #fff; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 28px; padding-bottom: 60px; outline: none; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(34, 211, 238, .08), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(245, 197, 66, .06), transparent 60%);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 19, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { flex: none; display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none !important; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.brand-name span { color: var(--gold); }
.brand.small .brand-name { font-size: 1.1rem; }
.mainnav { display: flex; gap: 4px; }
.mainnav a {
  color: var(--muted); padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: .9rem;
  text-decoration: none; transition: .15s; white-space: nowrap;
}
.mainnav a:hover { color: var(--text); background: var(--panel); }
.mainnav a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.online-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line); font-size: .82rem; color: var(--muted);
}
.online-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.online-pill b { color: var(--text); font-weight: 600; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 1.1rem;
  text-decoration: none !important; transition: .15s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}
.usermenu { position: relative; }
.usermenu-btn {
  display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); padding: 4px 10px 4px 4px; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 600;
}
.usermenu-btn img { width: 32px; height: 32px; border-radius: 50%; }
.usermenu-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  display: none; z-index: 60;
}
.dropdown.open { display: block; animation: pop .14s ease-out; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px;
  color: var(--text); background: none; border: 0; font: inherit; font-size: .92rem; cursor: pointer; text-align: left;
  text-decoration: none !important;
}
.dropdown a:hover, .dropdown button:hover { background: var(--panel-3); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Buttons & Inputs ---------- */
.btn {
  --b: var(--panel-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--b);
  color: var(--text); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer;
  text-decoration: none !important; transition: transform .1s, filter .15s, background .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-3); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; color: #0b0915;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent-2), var(--accent)); border-color: transparent; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #241a00; }
.btn-gold:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: transparent; }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.btn-danger:hover { background: rgba(248, 113, 113, .22); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: .84rem; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--text); }
.hint { font-size: .8rem; color: var(--faint); margin-top: 5px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: .94rem; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 600;
  cursor: pointer; user-select: none; transition: .15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { color: var(--text); background: color-mix(in srgb, var(--accent) 18%, var(--panel)); border-color: var(--accent); }
.chip input { display: none; }

.seg { display: inline-flex; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; gap: 3px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.seg button.active { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Karten / Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-title h3 { margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: .74rem; font-weight: 700;
  background: var(--panel-3); color: var(--muted); letter-spacing: .02em; text-transform: uppercase;
}
.tag.sell { background: rgba(52, 211, 153, .14); color: var(--green); }
.tag.buy { background: rgba(251, 146, 60, .15); color: var(--orange); }
.tag.reserved { background: rgba(245, 197, 66, .15); color: var(--gold); }
.tag.sold { background: rgba(248, 113, 113, .15); color: var(--red); }
.tag.cross { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.tag.admin { background: rgba(245, 197, 66, .16); color: var(--gold); }
.tag.v-golden { background: rgba(245, 197, 66, .16); color: var(--gold-2); }
.tag.v-rainbow { background: linear-gradient(90deg, rgba(248,113,113,.25), rgba(245,197,66,.25), rgba(52,211,153,.25), rgba(34,211,238,.25), rgba(167,139,250,.25)); color: #fff; }
.tag.v-shiny, .tag.v-shiny_golden, .tag.v-shiny_rainbow { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 56px 44px; margin-bottom: 30px;
  background: linear-gradient(135deg, #1a1335 0%, #120f24 55%, #0f1b26 100%); border: 1px solid var(--line-2);
}
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 65%); filter: blur(10px);
}
.hero::after {
  content: ''; position: absolute; width: 380px; height: 380px; right: 180px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, .22), transparent 65%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 760px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, var(--gold-2), var(--gold) 40%, var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.1rem; color: #c9c5e2; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #d7d3ee; margin-bottom: 18px; font-weight: 600; }
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.stat span { color: var(--muted); font-size: .88rem; }

.market-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px; }
.market-card {
  position: relative; overflow: hidden; display: block; padding: 28px; border-radius: 18px; color: var(--text);
  border: 1px solid var(--line-2); text-decoration: none !important; transition: transform .18s, border-color .18s;
}
.market-card:hover { transform: translateY(-3px); }
.market-card.ps99 { background: linear-gradient(145deg, #231848, #140f27); }
.market-card.ps99:hover { border-color: var(--violet); }
.market-card.cross { background: linear-gradient(145deg, #0f2a33, #0e1520); }
.market-card.cross:hover { border-color: var(--cyan); }
.market-card .big-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.market-card p { color: #bdb8d8; margin: 6px 0 16px; }
.market-card .go { font-weight: 700; }
.market-card.ps99 .go { color: var(--violet-2); }
.market-card.cross .go { color: var(--cyan-2); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 16px; }
.section-head h2 { margin: 0; }

/* ---------- Markt ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; }
.market-layout { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; }
.filters { position: sticky; top: 84px; }
.filters .panel { padding: 16px; }
.filters h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 16px 0 8px; font-family: var(--font); }
.filters h4:first-child { margin-top: 0; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0;
  background: none; color: var(--muted); font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
}
.filter-list button:hover { background: var(--panel-2); color: var(--text); }
.filter-list button.active { background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); color: var(--text); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.searchbox { flex: 1; min-width: 220px; position: relative; }
.searchbox input { padding-left: 38px; }
.searchbox::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .7; }
.toolbar select { width: auto; min-width: 170px; }
.result-info { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--panel-3), var(--bg-2)); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .75; }
.card-img .corner { position: absolute; top: 10px; left: 10px; right: 50px; display: flex; gap: 5px; flex-wrap: wrap; }
.card-img .fav { position: absolute; top: 8px; right: 8px; }
.card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 700; font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--gold-2); }
body.theme-cross .card-price { color: var(--cyan-2); }
.card-price small { font-family: var(--font); font-size: .76rem; color: var(--muted); font-weight: 500; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.card-seller { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-seller img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.card-seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rap { font-size: .78rem; color: var(--muted); }
.rap b { color: var(--text); }
.dot-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); flex: none; }

.fav-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 9, 19, .7); color: #fff; font-size: 1rem; backdrop-filter: blur(6px); transition: transform .12s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: #ff5c8a; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager button { min-width: 38px; }
.pager button.active { background: var(--accent); color: #0b0915; border-color: transparent; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }

.warn-banner {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(251, 146, 60, .12), rgba(248, 113, 113, .08)); border: 1px solid rgba(251, 146, 60, .35);
}
.warn-banner .ico { font-size: 1.5rem; }
.warn-banner p { margin: 0; color: #f3d9c4; font-size: .92rem; }
.warn-banner b { color: #ffe3cc; }
.info-banner { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-size: .92rem; }

/* ---------- Angebot-Detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #07060d; }
.gallery-main .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 58px; padding: 0; border-radius: 9px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--panel-2); }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 1.7rem; margin: 10px 0 6px; }
.detail-price { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--gold-2); margin: 6px 0; }
body.theme-cross .detail-price { color: var(--cyan-2); }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.fact { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fact span { display: block; font-size: .76rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fact b { font-size: .95rem; }
.description { white-space: pre-wrap; word-wrap: break-word; color: #d6d3ea; }
.seller-box { display: flex; align-items: center; gap: 12px; }
.seller-box img { width: 52px; height: 52px; border-radius: 50%; }
.seller-box .name { font-weight: 700; font-size: 1.05rem; }
.stars { color: var(--gold); letter-spacing: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

/* ---------- Formular ---------- */
.form-layout { max-width: 860px; margin: 0 auto; }
.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted);
  cursor: pointer; transition: .15s; background: var(--bg-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #fff; cursor: pointer; font-size: .85rem; }
.preview .first { position: absolute; left: 5px; bottom: 5px; }
.autocomplete { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); z-index: 20; max-height: 280px; overflow: auto; }
.ac-list button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.ac-list button:hover, .ac-list button.hl { background: var(--panel-3); }
.ac-list small { color: var(--muted); }

/* ---------- Nachrichten ---------- */
.dm-layout { display: grid; grid-template-columns: 320px 1fr; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 170px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.dm-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bg-2); }
.dm-list-head { padding: 16px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.dm-item { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid rgba(43, 37, 72, .5); color: var(--text); text-decoration: none !important; align-items: center; }
.dm-item:hover { background: var(--panel); }
.dm-item.active { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--accent); }
.avatar-wrap { position: relative; flex: none; }
.avatar-wrap img { width: 42px; height: 42px; border-radius: 50%; }
.avatar-wrap .dot-online { position: absolute; right: 0; bottom: 1px; border: 2px solid var(--bg-2); width: 12px; height: 12px; }
.dm-item .meta { min-width: 0; flex: 1; }
.dm-item .top { display: flex; justify-content: space-between; gap: 6px; }
.dm-item .name { font-weight: 700; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item .time { color: var(--faint); font-size: .75rem; flex: none; }
.dm-item .preview-text { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item .unread { background: var(--accent); color: #0b0915; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; margin-left: 6px; }
.dm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.dm-head .who { flex: 1; min-width: 0; }
.dm-head .who > b { display: block; }
.dm-head .who small { display: block; line-height: 1.5; }
.dm-head .who small { color: var(--muted); }
.dm-back { display: none; }
.dm-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.msg { max-width: 72%; display: flex; flex-direction: column; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 9px 13px; border-radius: 16px; background: var(--panel-3); white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .94rem; }
.msg.me .bubble { background: linear-gradient(135deg, var(--violet), var(--violet-3)); color: #fff; border-bottom-right-radius: 5px; }
body.theme-cross .msg.me .bubble { background: linear-gradient(135deg, #0891b2, #0e7490); }
.msg:not(.me) .bubble { border-bottom-left-radius: 5px; }
.msg .time { font-size: .7rem; color: var(--faint); margin: 3px 4px 6px; }
.msg-system { align-self: center; text-align: center; font-size: .82rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; margin: 8px 0; max-width: 90%; }
.listing-ref { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.25); margin-bottom: 6px; color: inherit; text-decoration: none !important; max-width: 320px; border: 1px solid rgba(255,255,255,.08); }
.listing-ref img, .listing-ref .ph { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--panel-2); display: grid; place-items: center; }
.listing-ref div { min-width: 0; font-size: .82rem; }
.listing-ref b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.offer-card { width: min(360px, 100%); border-radius: 14px; border: 1px solid var(--gold); background: linear-gradient(145deg, rgba(245,197,66,.12), var(--panel-2)); padding: 13px; }
.offer-card .offer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-weight: 700; color: var(--gold-2); }
.offer-card .offer-text { white-space: pre-wrap; word-wrap: break-word; margin: 6px 0 10px; }
.offer-card .actions { margin-top: 8px; }
.offer-status { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.offer-status.pending { background: rgba(245,197,66,.18); color: var(--gold); }
.offer-status.accepted { background: rgba(52,211,153,.18); color: var(--green); }
.offer-status.declined, .offer-status.cancelled { background: rgba(248,113,113,.15); color: var(--red); }
.typing { font-size: .8rem; color: var(--muted); padding: 0 18px 6px; height: 20px; }
.dm-compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--panel); align-items: flex-end; }
.dm-compose textarea { min-height: 44px; max-height: 160px; resize: none; padding: 11px 13px; }
.dm-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Live-Chat ---------- */
.chat-layout { display: grid; grid-template-columns: 1fr 280px; gap: 18px; }
.chat-box { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.chat-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cmsg { display: flex; gap: 11px; padding: 6px 8px; border-radius: 10px; position: relative; }
.cmsg:hover { background: var(--panel-2); }
.cmsg img { width: 36px; height: 36px; border-radius: 50%; flex: none; margin-top: 2px; }
.cmsg .body { min-width: 0; flex: 1; }
.cmsg .who { display: flex; align-items: baseline; gap: 8px; }
.cmsg .who a { color: var(--text); font-weight: 700; font-size: .92rem; }
.cmsg .who time { font-size: .72rem; color: var(--faint); }
.cmsg .text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .94rem; color: #dcd9ee; }
.cmsg.cont { padding-top: 1px; }
.cmsg.cont > a:first-child, .cmsg.cont .who { display: none; }
.cmsg.cont .body { margin-left: 47px; }
.cmsg .tools { position: absolute; right: 8px; top: 4px; display: none; gap: 4px; }
.cmsg:hover .tools { display: flex; }
.cmsg.mention { background: rgba(245, 197, 66, .08); box-shadow: inset 3px 0 0 var(--gold); }
.chat-compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-login { padding: 16px; text-align: center; border-top: 1px solid var(--line); background: var(--bg-2); }
.new-msgs { position: sticky; bottom: 0; align-self: center; }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, #1d1638, var(--panel)); border: 1px solid var(--line-2); margin-bottom: 22px; flex-wrap: wrap; }
.profile-head img.av { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--accent); }
.profile-head .info { flex: 1; min-width: 220px; }
.profile-head h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.profile-stats div b { display: block; font-family: var(--display); font-size: 1.3rem; }
.profile-stats div span { font-size: .8rem; color: var(--muted); }
.review { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review img { width: 36px; height: 36px; border-radius: 50%; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--text); border-color: var(--accent); }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--faint); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
td .user-cell { display: flex; align-items: center; gap: 9px; }
td .user-cell img { width: 28px; height: 28px; border-radius: 50%; }

/* ---------- Modal & Toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 3, 10, .72); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); animation: pop .16s ease-out; }
.modal h3 { margin-bottom: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.lightbox { background: rgba(0,0,0,.92); cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.star-input { display: flex; gap: 6px; font-size: 2rem; }
.star-input button { background: none; border: 0; cursor: pointer; color: var(--line-2); font-size: inherit; padding: 0; transition: transform .1s; }
.star-input button.on { color: var(--gold); }
.star-input button:hover { transform: scale(1.15); }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: slidein .2s ease-out; font-size: .92rem; cursor: default; }
.toast.clickable { cursor: pointer; }
.toast.success { border-color: rgba(52,211,153,.5); }
.toast.error { border-color: rgba(248,113,113,.55); }
.toast img { width: 34px; height: 34px; border-radius: 50%; }
.toast b { display: block; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.spinner { width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.page-loading { display: grid; place-items: center; padding: 100px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); height: 300px; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Sicherheit ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); color: var(--accent-2); margin-bottom: 12px; font-family: var(--display); }
.rules li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer p { font-size: .85rem; margin: 8px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .market-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters .panel { display: none; }
  .filters.open .panel { display: block; }
  .detail { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1021px) { .filter-toggle { display: none !important; } }
@media (max-width: 1180px) {
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 14px; }
  .burger { display: block; }
  .online-pill { display: none; }
  .usermenu-btn span { display: none; }
  .usermenu-btn { padding: 4px; }
}
@media (max-width: 860px) {
  .market-cards { grid-template-columns: 1fr; }
  .hero { padding: 36px 22px; }
  .dm-layout { grid-template-columns: 1fr; height: calc(100vh - 140px); }
  .dm-layout.has-chat .dm-list { display: none; }
  .dm-layout:not(.has-chat) .dm-main { display: none; }
  .dm-back { display: inline-flex; }
  .msg { max-width: 88%; }
}
@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: .88rem; }
  .card-price { font-size: 1rem; }
  .card-meta .views { display: none; }
  .detail-facts { grid-template-columns: 1fr; }
  .topbar-inner { gap: 10px; }
  .btn-newlisting span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Setup-Assistent ---------- */
.setup { max-width: 820px; padding-top: 30px; padding-bottom: 60px; flex: 1; }
.setup-step .step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.setup-step .step-head h3 { margin: 0; }
.setup-step .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-family: var(--display); background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); color: var(--accent-2); flex: none; }
.setup-step ol { padding-left: 20px; margin: 0; }
.setup-step li { margin-bottom: 6px; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-row code, code { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 8px; font-size: .9rem; color: var(--gold-2); word-break: break-all; }
.copy-row code { flex: 1; padding: 10px 12px; font-size: .95rem; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.gate { max-width: 560px; margin: 30px auto; text-align: center; }
.gate .panel { padding: 34px 28px; }
.gate img.logo { width: 72px; height: 72px; margin: 0 auto 14px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: #aab4ff; background: rgba(88, 101, 242, .16); border-radius: 6px; padding: 3px 8px; }

/* ---------- Benachrichtigungen ---------- */
.notif-dd { width: min(360px, calc(100vw - 30px)); max-height: 460px; overflow-y: auto; padding: 0; }
.notif-head { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--line); font-family: var(--display); }
.dropdown a.notif { align-items: flex-start; border-radius: 0; padding: 11px 14px; border-bottom: 1px solid rgba(43,37,72,.6); }
.dropdown a.notif.unread { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.notif .ni { font-size: 1.2rem; flex: none; }
.notif .nt { display: block; font-size: .88rem; line-height: 1.35; }

/* ---------- Forum ---------- */
.forum-cats { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.forum-cat { display: grid; grid-template-columns: 52px 1fr 130px 260px; gap: 14px; align-items: center; padding: 16px 18px; color: var(--text); text-decoration: none !important; border-bottom: 1px solid var(--line); transition: background .15s; }
.forum-cat:last-child { border-bottom: 0; }
.forum-cat:hover { background: var(--panel-2); }
.fc-emoji { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); }
.fc-main { display: flex; flex-direction: column; min-width: 0; }
.fc-main b { font-size: 1.02rem; }
.fc-count { text-align: right; line-height: 1.5; }
.fc-count b { color: var(--text); }
.fc-last { min-width: 0; line-height: 1.45; }
.fc-last-title { display: block; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.thread-list:empty { display: none; }
.thread-row { display: grid; grid-template-columns: 44px 1fr 190px 170px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--panel-2); }
.thread-row .avatar-wrap img { width: 40px; height: 40px; }
.thread-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.thread-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.thread-stats { display: flex; gap: 12px; justify-content: flex-end; }
.thread-last { display: flex; gap: 8px; align-items: center; min-width: 0; line-height: 1.3; }
.thread-last img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.post { display: grid; grid-template-columns: 170px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.post.op { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.post-author { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; background: var(--bg-2); border-right: 1px solid var(--line); text-align: center; }
.post-author img { width: 64px; height: 64px; border-radius: 50%; }
.post-author .name { color: var(--text); font-weight: 700; word-break: break-word; }
.post-body { padding: 14px 18px; min-width: 0; display: flex; flex-direction: column; }
.post-meta { margin-bottom: 8px; }
.post-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.6; color: #dedbf0; flex: 1; }
.post-text .mention { color: var(--gold-2); }
.post-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.post-img { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); width: 180px; height: 135px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-actions .liked { color: #ff6b93; }
.reply-form textarea { min-height: 120px; }
.picker-row { display: flex; align-items: center; gap: 10px; }
.small-previews { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

/* ---------- Mein Konto ---------- */
.account-head { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 18px; background: var(--panel); }
.ah-banner { height: 130px; background: linear-gradient(135deg, #2a1c55, #0f2a33); background-size: cover; background-position: center; }
.ah-info { display: flex; align-items: flex-start; gap: 16px; padding: 0 22px 18px; margin-top: -40px; flex-wrap: wrap; }
.ah-info > div { margin-top: 48px; }
.ah-info > .actions { margin-top: 48px !important; }
.ah-info > img { width: 86px; height: 86px; border-radius: 50%; border: 4px solid var(--panel); background: var(--panel); }
.ah-info h1 { margin: 0 0 2px; font-size: 1.6rem; }
.tab-link { padding: 10px 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.earn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.earn-card { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.earn-card b { font-family: var(--display); font-size: 1.6rem; }
.earn-card.eur b, .earn-card.usd b { color: var(--green); }
.earn-card.robux b { color: #4ade80; }
.earn-card.gems b { color: var(--cyan-2); }
.ec-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.account-grid .panel + .panel { margin-top: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-family: var(--display); font-size: 1.15rem; }
.mini-stats span { font-size: .72rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 20px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--violet-2), var(--violet-3)); }
.bar.zero { background: var(--line); }
.bar-val { font-size: .62rem; color: var(--muted); white-space: nowrap; margin-bottom: 3px; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.bar-lbl { font-size: .7rem; color: var(--faint); margin-top: 5px; }
.seg-sm button { padding: 5px 10px; font-size: .8rem; }
td.plus { color: var(--green); font-weight: 700; }
td.minus { color: var(--orange); font-weight: 700; }
.img-setting { display: flex; gap: 14px; align-items: center; }
.av-prev { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--line-2); }
.banner-prev { width: 140px; height: 50px; border-radius: 8px; flex: none; background: linear-gradient(135deg, #2a1c55, #0f2a33); background-size: cover; background-position: center; border: 1px solid var(--line-2); }
.profile-head.has-banner { position: relative; padding-top: 120px; overflow: hidden; }
.profile-banner { position: absolute; top: 0; left: 0; right: 0; height: 130px; background-size: cover; background-position: center; }
.profile-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21,18,38,.95)); }
.profile-head > *:not(.profile-banner) { position: relative; }

@media (max-width: 1020px) {
  .forum-cat { grid-template-columns: 46px 1fr; }
  .fc-count, .fc-last { display: none; }
  .thread-row { grid-template-columns: 40px 1fr; }
  .thread-stats, .thread-last { display: none; }
  .earn-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .post-author img { width: 36px; height: 36px; }
  .post-img { width: calc(50% - 4px); }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .earn-card b { font-size: 1.25rem; }
}
.panel-title { flex-wrap: wrap; }
.account-grid > *, .earn-grid > * { min-width: 0; }
.seg { max-width: 100%; overflow-x: auto; }
.tabs { scrollbar-width: none; }
@media (max-width: 640px) {
  .ah-banner { height: 90px; }
  .ah-info { margin-top: -34px; }
  .ah-info > div, .ah-info > .actions { margin-top: 8px !important; width: 100%; }
  .ah-info > img { width: 72px; height: 72px; }
  .bars { gap: 3px; }
  .bar-val { display: none; }
}

/* ---------- Middleman, Zahlungen, Haftung ---------- */
.tag.mm { background: rgba(52, 211, 153, .15); color: var(--green); text-decoration: none !important; }
.pay-card, .mm-card { width: min(420px, 100%); border-radius: 14px; padding: 13px; border: 1px solid rgba(52, 211, 153, .5); background: linear-gradient(145deg, rgba(52,211,153,.10), var(--panel-2)); }
.mm-card { border-color: rgba(103, 232, 249, .5); background: linear-gradient(145deg, rgba(34,211,238,.10), var(--panel-2)); }
.pay-card .offer-head { color: var(--green); }
.mm-card .offer-head { color: var(--cyan-2); }
.msg.me .pay-card, .msg.me .mm-card { color: var(--text); }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid var(--line); margin-top: 8px; }
.pay-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-3); font-weight: 800; flex: none; }
.pay-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pay-main code { display: block; word-break: break-all; font-size: .82rem; padding: 4px 7px; }
.pay-act { display: flex; gap: 4px; flex: none; }
.pay-warn { font-size: .8rem; color: #f3d9c4; background: rgba(251,146,60,.10); border: 1px solid rgba(251,146,60,.35); border-radius: 10px; padding: 9px 11px; margin-top: 10px; line-height: 1.45; }
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mm-grid .panel + .panel { margin-top: 0; }
.mm-box .seller-box img { width: 52px; height: 52px; }
.terms-list { padding-left: 20px; margin: 8px 0; }
.terms-list li { margin-bottom: 8px; line-height: 1.5; }
.disclaimer-panel { border-color: rgba(251,146,60,.5); background: linear-gradient(145deg, rgba(251,146,60,.08), var(--panel)); }
.terms-text h3 { margin-top: 18px; }
.terms-text p { color: #d6d3ea; }
#terms-modal .terms-list { font-size: .9rem; }
.modal:has(#terms-modal) { width: min(620px, 100%); }
.offer-amount { font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: var(--gold-2); margin: 6px 0 2px; }
.earn-card.crypto b { color: #fbbf24; }
.lang-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 99px; padding: 6px 11px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lang-btn:hover { border-color: var(--line-2); background: var(--panel-2); }

@media (max-width: 1420px) { .topbar .online-pill { display: none; } .topbar-inner { gap: 14px; } }

/* ---------- Bestellungen ---------- */
.pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; margin-left: 4px; }
.order-steps { display: flex; align-items: flex-start; gap: 0; }
.ostep { display: flex; flex-direction: column; align-items: center; text-align: center; width: 120px; flex: none; }
.oline { flex: 1; height: 3px; background: var(--line-2); margin-top: 17px; border-radius: 3px; }
.odot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--panel-3); color: var(--muted); border: 2px solid var(--line-2); }
.ostep.done .odot { background: var(--green); color: #052e1c; border-color: var(--green); }
.ostep.active .odot { background: color-mix(in srgb, var(--accent) 25%, var(--panel-2)); color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.olabel { font-weight: 700; font-size: .86rem; margin-top: 7px; }
.otime { font-size: .74rem; color: var(--faint); }
.order-steps .oline:has(+ .ostep.done) { background: var(--green); }
.order-steps.is-cancelled .ostep.active .odot { border-color: var(--red); background: rgba(248,113,113,.15); }
.order-steps.is-disputed .ostep.active .odot { border-color: var(--orange); background: rgba(251,146,60,.15); }
.ostatus { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-3); color: var(--muted); }
.ostatus.big { font-size: .9rem; padding: 8px 14px; }
.ostatus.open { background: rgba(167,139,250,.18); color: var(--violet-2); }
.ostatus.paid { background: rgba(34,211,238,.15); color: var(--cyan-2); }
.ostatus.delivered { background: rgba(245,197,66,.16); color: var(--gold); }
.ostatus.completed { background: rgba(52,211,153,.16); color: var(--green); }
.ostatus.cancelled { background: rgba(248,113,113,.15); color: var(--red); }
.ostatus.disputed { background: rgba(251,146,60,.16); color: var(--orange); }
.order-box { border-radius: var(--radius); padding: 20px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); }
.order-box.ok { border-color: rgba(52,211,153,.5); background: linear-gradient(145deg, rgba(52,211,153,.10), var(--panel)); }
.order-box.bad { border-color: rgba(248,113,113,.5); background: linear-gradient(145deg, rgba(248,113,113,.08), var(--panel)); }
.order-box.warn { border-color: rgba(251,146,60,.5); background: linear-gradient(145deg, rgba(251,146,60,.08), var(--panel)); }
.order-box h3 { margin-bottom: 8px; }
.roblox-big { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); font-size: 1.25rem; }
.roblox-big b { font-family: var(--display); color: var(--gold-2); flex: 1; word-break: break-all; }
.order-pay { margin: 10px 0; }
.order-events { display: flex; flex-direction: column; gap: 12px; }
.oev { display: flex; gap: 10px; }
.oev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.order-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.order-row { display: grid; grid-template-columns: 54px 1fr auto 190px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--panel-2); }
.or-img { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; font-size: 1.4rem; }
.or-img img { width: 100%; height: 100%; object-fit: cover; }
.or-main { display: flex; flex-direction: column; min-width: 0; }
.or-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-price { font-family: var(--display); font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.or-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.or-todo { font-size: .76rem; color: var(--orange); font-weight: 700; }
.msg-order { text-decoration: none !important; color: var(--text) !important; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.buy-steps { padding-left: 18px; margin: 4px 0 10px; }
.buy-steps li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .order-row { grid-template-columns: 44px 1fr; }
  .or-img { width: 44px; height: 44px; }
  .or-price, .or-status { grid-column: 2; align-items: flex-start; }
  .order-steps { overflow-x: auto; }
  .ostep { width: 84px; }
  .olabel { font-size: .74rem; }
}
