/* ============================================================================
   Eldoriacraft UserPortal — "Aurora Glass" Theme
   Vibrant dark UI: aurora background, glassmorphism, gradient accents,
   staggered entrance animations & lively micro-interactions.
   Handgepflegt (Design-Overhaul direkt in CSS).
   ============================================================================ */

:root {
    /* Base */
    --bg:            #07070e;
    --bg-2:          #0b0b16;
    --surface:       rgba(22, 23, 40, 0.62);
    --surface-2:     rgba(30, 32, 54, 0.72);
    --surface-solid: #14152400;
    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Text */
    --text:       #f3f4fc;
    --text-muted: #a3a8c4;
    --text-dim:   #71769a;

    /* Vibrant accents */
    --violet:   #8b5cff;
    --violet-2: #b79bff;
    --magenta:  #ff4d9d;
    --cyan:     #2cd4ee;
    --emerald:  #2ee6a6;
    --gold:     #ffcb52;
    --danger:   #ff5d72;
    --warn:     #ffb454;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #8b5cff 0%, #c14bff 45%, #ff4d9d 100%);
    --grad-cool:    linear-gradient(135deg, #2cd4ee 0%, #2ee6a6 100%);
    --grad-gold:    linear-gradient(135deg, #ffe08a 0%, #ffb020 100%);
    --grad-brand:   linear-gradient(120deg, #8b5cff, #2cd4ee, #2ee6a6, #ff4d9d);

    /* Effects */
    --radius:    18px;
    --radius-sm: 12px;
    --radius-xs: 9px;
    --gap:       22px;
    --shadow:    0 18px 50px -18px rgba(0, 0, 0, 0.7);
    --glow-violet: 0 10px 36px -8px rgba(139, 92, 255, 0.6);
    --glow-cool:   0 10px 36px -8px rgba(46, 230, 166, 0.45);

    --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
    --font:         "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", "Consolas", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Aurora background (animated, fixed) */
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    background:
        radial-gradient(42% 38% at 18% 18%, rgba(139, 92, 255, 0.40), transparent 60%),
        radial-gradient(40% 36% at 85% 12%, rgba(255, 77, 157, 0.30), transparent 60%),
        radial-gradient(45% 45% at 78% 82%, rgba(44, 212, 238, 0.26), transparent 62%),
        radial-gradient(50% 50% at 25% 90%, rgba(46, 230, 166, 0.22), transparent 62%);
    filter: blur(20px) saturate(135%);
    animation: aurora 26s ease-in-out infinite alternate;
}
/* Grain / vignette overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
        radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes aurora {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%  { transform: translate3d(2%, -2%, 0) rotate(4deg); }
    100% { transform: translate3d(-2%, 2%, 0) rotate(-3deg); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes brandShift { to { background-position: 200% center; } }
@keyframes hlPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 203, 82, 0.5), 0 0 26px -6px rgba(255, 203, 82, 0.55); }
    50%      { box-shadow: 0 0 0 1px rgba(255, 203, 82, 0.85), 0 0 40px -4px rgba(255, 203, 82, 0.8); }
}

a { color: var(--violet-2); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
.muted { color: var(--text-muted); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; }

/* ── Brand ─────────────────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.brand__logo {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff;
    background: var(--grad-primary);
    box-shadow: var(--glow-violet);
    position: relative;
}
.brand__logo::after {
    content: ""; position: absolute; inset: 0; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.brand__name {
    font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
    background: var(--grad-brand); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: brandShift 6s linear infinite alternate;
}

/* ── Cards (glass) ─────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}
.card--accent {
    border-color: transparent;
    background:
        linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
        var(--grad-primary) border-box;
    box-shadow: var(--glow-violet);
}
.card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 16px;
}
.card__head h2 { font-size: 17px; font-weight: 700; }
.card__actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.card__link { font-size: 13px; color: var(--text-muted); font-family: var(--font); }
.card__link:hover { color: var(--text); }

/* ── Auth pages ────────────────────────────────────────────────────────────── */
.auth { min-height: 100%; display: grid; place-items: center; padding: 44px 18px; }
.auth__card {
    width: 100%; max-width: 430px;
    animation: popIn .6s cubic-bezier(.22, .61, .36, 1) both;
}
.auth__title { font-size: 30px; margin: 18px 0 6px; }
.auth__subtitle { color: var(--text-muted); margin-bottom: 26px; font-size: 14.5px; }
.auth__foot { margin-top: 22px; font-size: 14px; color: var(--text-muted); text-align: center; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.field input, .field textarea, .field select,
.filter-bar input, .filter-bar select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(8, 8, 16, 0.6);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus,
.filter-bar input:focus, .filter-bar select:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(8, 8, 16, 0.85);
    box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.18);
}
.field__error { color: var(--danger); font-size: 12.5px; min-height: 15px; font-weight: 500; }
.field__error:empty { min-height: 0; }
.field__help { font-size: 12px; }
.req { color: var(--magenta); }

.form__alert {
    font-size: 13.5px; padding: 11px 14px; border-radius: var(--radius-sm);
    background: rgba(255, 93, 114, 0.12);
    border: 1px solid rgba(255, 93, 114, 0.4);
    color: #ffb3bd;
}
.form__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 4px; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, filter .18s, border-color .18s, background .18s, color .18s;
}
.btn--block { width: 100%; }
.btn--primary {
    color: #fff; background: var(--grad-primary); background-size: 160% 160%;
    box-shadow: var(--glow-violet);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08) saturate(1.1); box-shadow: 0 16px 44px -10px rgba(193, 75, 255, 0.7); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--secondary {
    background: var(--surface-2); color: var(--text);
    border-color: var(--border-strong); backdrop-filter: blur(8px);
}
.btn--secondary:hover { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.15); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); }
.btn--danger-outline { background: transparent; color: #ff9aa6; border-color: rgba(255, 93, 114, 0.5); }
.btn--danger-outline:hover { background: rgba(255, 93, 114, 0.14); border-color: var(--danger); color: #fff; transform: translateY(-1px); }
.btn:disabled, .btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-loading [data-label]::after { content: " …"; }

/* ── Code box (verify) ─────────────────────────────────────────────────────── */
.code-box {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(8, 8, 16, 0.7); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
    padding: 14px 16px; margin: 14px 0;
}
.code-box code { font-family: var(--font-mono); font-size: 18px; color: var(--emerald); letter-spacing: 2px; }
.verify-success h2 { font-size: 19px; margin-bottom: 8px; }
.verify-success p { color: var(--text-muted); font-size: 14px; }

/* ── Badges & chips ────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
    border: 1px solid transparent;
}
.badge--ok     { background: rgba(46, 230, 166, 0.15); color: #6ff2c6; border-color: rgba(46, 230, 166, 0.3); }
.badge--warn   { background: rgba(255, 180, 84, 0.15); color: #ffce8f; border-color: rgba(255, 180, 84, 0.3); }
.badge--danger { background: rgba(255, 93, 114, 0.15); color: #ffa3b0; border-color: rgba(255, 93, 114, 0.3); }
.badge--info   { background: rgba(139, 92, 255, 0.18); color: #c9b6ff; border-color: rgba(139, 92, 255, 0.35); }
.badge--muted  { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); border-color: var(--border); }

.chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--text-muted); border: 1px solid var(--border); }
.chip--auction { background: rgba(139, 92, 255, 0.18); color: #c9b6ff; border-color: rgba(139, 92, 255, 0.3); }
.chip--fixed { background: rgba(46, 230, 166, 0.15); color: #6ff2c6; border-color: rgba(46, 230, 166, 0.3); }

.tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; vertical-align: middle; }
.tag--int { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }
.tag--pub { background: rgba(46, 230, 166, 0.16); color: #6ff2c6; }

/* ── App layout ────────────────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }

.sidebar {
    background: linear-gradient(180deg, rgba(16, 17, 32, 0.85), rgba(10, 10, 20, 0.85));
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border);
    padding: 24px 16px; display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: 0; height: 100vh;
}
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; flex: 1; }
.nav__item {
    position: relative; padding: 11px 14px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 14px; font-weight: 600;
    transition: color .15s, background .15s, transform .15s;
}
.nav__item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; transform: translateX(3px); }
.nav__item--active { background: linear-gradient(90deg, rgba(139, 92, 255, 0.22), rgba(139, 92, 255, 0.04)); color: #fff; }
.nav__item--active::before {
    content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
    background: var(--grad-primary); box-shadow: var(--glow-violet);
}
.nav__item--disabled { opacity: .4; pointer-events: none; }
.nav__section { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); padding: 14px 14px 4px; }
.nav__logout { color: var(--text-muted); font-size: 14px; font-weight: 600; padding: 11px 14px; border-radius: var(--radius-sm); }
.nav__logout:hover { color: #fff; background: rgba(255, 93, 114, 0.12); }

.content { padding: 32px 38px; display: flex; flex-direction: column; gap: var(--gap); max-width: 1280px; }

/* Entrance: staggered fade-up */
.content > * { animation: fadeUp .55s cubic-bezier(.22, .61, .36, 1) both; }
.content > *:nth-child(1) { animation-delay: .03s; }
.content > *:nth-child(2) { animation-delay: .09s; }
.content > *:nth-child(3) { animation-delay: .15s; }
.content > *:nth-child(4) { animation-delay: .21s; }
.content > *:nth-child(5) { animation-delay: .27s; }
.content > *:nth-child(6) { animation-delay: .33s; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar h1 { font-size: 26px; }

.user-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 16px 6px 6px; font-size: 14px; font-weight: 600;
    transition: border-color .15s, box-shadow .15s;
}
a.user-chip { color: var(--text); }
a.user-chip:hover { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.15); }
.user-chip img { border-radius: 8px; }
.user-chip__placeholder {
    width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
    background: var(--grad-primary); color: #fff; font-size: 12px; font-weight: 800;
}

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

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 11px 14px; font-size: 14px; }
.kv--wide { grid-template-columns: 160px 1fr; }
.kv dt { color: var(--text-muted); font-weight: 600; }
.kv dd { word-break: break-all; }

.stat { font-size: 32px; font-weight: 800; font-family: var(--font-display); }
.stat--muted { color: var(--text-dim); }

/* ── Profile bits ──────────────────────────────────────────────────────────── */
.profile-mini { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.profile-mini img { border-radius: 12px; }
.profile-mini__ph { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-primary); color: #fff; font-weight: 800; }
.profile-mini strong { font-size: 15px; }

.hint { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.hint__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.18); }

/* ── Activity feed ─────────────────────────────────────────────────────────── */
.feed { list-style: none; display: flex; flex-direction: column; }
.feed__item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--border); transition: padding-left .15s; }
.feed__item:hover { padding-left: 6px; }
.feed__item:last-child { border-bottom: none; }
.feed__icon {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 255, 0.25), rgba(44, 212, 238, 0.18));
    border: 1px solid var(--border); font-size: 16px; flex-shrink: 0;
}
.feed__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.feed__label { font-size: 14px; font-weight: 700; }
.feed__msg { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__time { font-size: 12px; white-space: nowrap; }
.feed__empty { padding: 16px 0; }

.grid--profile { grid-template-columns: 330px 1fr; align-items: start; }
.profile-hero { text-align: center; }
.profile-hero__skin { height: 240px; width: auto; image-rendering: pixelated; margin: 0 auto 16px; display: block; filter: drop-shadow(0 14px 30px rgba(139, 92, 255, 0.4)); }
.profile-hero__placeholder { width: 104px; height: 104px; border-radius: 22px; margin: 8px auto 14px; display: grid; place-items: center; background: var(--grad-primary); color: #fff; font-size: 34px; font-weight: 800; box-shadow: var(--glow-violet); }
.profile-hero h2 { font-size: 22px; margin: 8px 0 12px; }
.roles { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.role-chip { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(139, 92, 255, 0.16); color: #c9b6ff; border: 1px solid rgba(139, 92, 255, 0.28); }

/* ── BVSM ──────────────────────────────────────────────────────────────────── */
.position-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.position-card {
    position: relative; overflow: hidden;
    background: rgba(8, 8, 16, 0.5); border: 1px solid var(--border); border-radius: 15px; padding: 20px;
    display: flex; flex-direction: column; gap: 8px; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.position-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-primary); opacity: .8; }
.position-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: var(--glow-violet); }
.position-card h3 { font-size: 17px; }
.position-card p { flex: 1; font-size: 13px; color: var(--text-muted); }
.position-card .btn { margin-top: 8px; }

.app-list { list-style: none; display: flex; flex-direction: column; }
.app-list__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.app-list__item:last-child { border-bottom: none; }
.app-list__meta { display: block; font-size: 12px; margin-top: 3px; }
.app-list__right { display: flex; align-items: center; gap: 12px; }

.note-box { background: rgba(8, 8, 16, 0.6); border: 1px solid var(--border-strong); border-left: 3px solid var(--violet); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; margin-top: 10px; }
.comments { margin-top: 20px; }
.comments h3 { font-size: 15px; margin-bottom: 12px; }
.comment { background: rgba(8, 8, 16, 0.5); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 11px; }
.comment--applicant { border-left: 3px solid var(--emerald); }
.comment__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

.timeline { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.timeline li { display: flex; gap: 13px; font-size: 13px; }
.timeline__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad-primary); margin-top: 5px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.16); }
.timeline__meta { font-size: 12px; margin-top: 3px; }

/* ── Tables / filter bar ───────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar input, .filter-bar select { width: auto; padding: 10px 12px; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border-strong); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-user img { border-radius: 7px; }

.bvsm-detail { display: grid; grid-template-columns: 1fr 350px; gap: var(--gap); align-items: start; }
.bvsm-main, .bvsm-side { display: flex; flex-direction: column; gap: var(--gap); }
.applicant { display: flex; align-items: center; gap: 14px; }
.applicant img { border-radius: 12px; }
.applicant h2 { font-size: 19px; }
.applicant > .badge { margin-left: auto; }

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.check input { width: auto; accent-color: var(--violet); }

/* ── Quiz ──────────────────────────────────────────────────────────────────── */
.quiz-q { padding: 18px 0; border-bottom: 1px solid var(--border); }
.quiz-q:first-of-type { padding-top: 0; }
.quiz-q__head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.quiz-q__num { width: 26px; height: 26px; border-radius: 8px; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.quiz-q__pts { margin-left: auto; font-size: 12px; }
.opts { display: flex; flex-direction: column; gap: 9px; }
.opt { display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: rgba(8, 8, 16, 0.5); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--violet); background: rgba(139, 92, 255, 0.08); }
.opt input { width: auto; accent-color: var(--violet); }

.quiz-edit-q { background: rgba(8, 8, 16, 0.5); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 13px; }
.quiz-edit-q__head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.quiz-edit-q__head > span:first-child { flex: 1; }
.opt-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 11px; font-size: 14px; }
.opt-list li { display: flex; align-items: center; gap: 9px; }
.opt-list li.opt-chosen { background: rgba(139, 92, 255, 0.12); border-radius: 7px; padding: 3px 7px; }
.opt-correct { color: var(--emerald); font-weight: 800; }
.opt-wrong { color: var(--text-dim); }
.opt-del { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 17px; }
.opt-del:hover { color: var(--danger); }
.opt-add { display: flex; align-items: center; gap: 11px; }
.opt-add input[type="text"] { flex: 1; padding: 9px 11px; background: rgba(8, 8, 16, 0.6); border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); font-size: 13px; }
.quiz-add-q { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.answer-text { background: rgba(8, 8, 16, 0.6); border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; margin-bottom: 11px; font-size: 14px; }
.grade-field { max-width: 240px; }

.result-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; margin: 0 auto 14px; animation: popIn .5s both; }
.result-icon--ok { background: rgba(46, 230, 166, 0.16); color: var(--emerald); box-shadow: 0 0 36px -6px rgba(46, 230, 166, 0.6); }
.result-icon--fail { background: rgba(255, 93, 114, 0.16); color: var(--danger); box-shadow: 0 0 36px -6px rgba(255, 93, 114, 0.5); }
.result-icon--wait { background: rgba(255, 180, 84, 0.16); }

/* ── Wallet ────────────────────────────────────────────────────────────────── */
.wallet { display: flex; flex-direction: column; gap: 10px; }
.wallet__row { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.wallet__row:last-child { border-bottom: none; padding-bottom: 0; }
.wallet__amount { font-size: 24px; font-weight: 800; font-family: var(--font-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wallet__sym { font-size: 14px; -webkit-text-fill-color: var(--text-muted); }

/* ── Marketplace ───────────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.listing-grid > * { animation: fadeUp .5s both; }
.listing-grid > *:nth-child(2) { animation-delay: .04s; }
.listing-grid > *:nth-child(3) { animation-delay: .08s; }
.listing-grid > *:nth-child(4) { animation-delay: .12s; }
.listing-grid > *:nth-child(5) { animation-delay: .16s; }
.listing-grid > *:nth-child(6) { animation-delay: .20s; }
.listing-card {
    position: relative; display: flex; flex-direction: column; gap: 9px;
    background: var(--surface); backdrop-filter: blur(12px);
    border: 1px solid var(--border); border-radius: 16px; padding: 18px;
    color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.listing-card:hover { transform: translateY(-5px); border-color: var(--violet); box-shadow: var(--glow-violet); }
.listing-card--hl { border-color: rgba(255, 203, 82, 0.55); animation: hlPulse 2.6s ease-in-out infinite; }
.listing-card__hl { position: absolute; top: -10px; right: 14px; background: var(--grad-gold); color: #2a1c00; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; box-shadow: 0 6px 16px -4px rgba(255, 176, 32, 0.6); }
.listing-card__top { display: flex; gap: 6px; flex-wrap: wrap; }
.listing-card__main { display: flex; align-items: flex-start; gap: 12px; }
.listing-card__icon { width: 46px; height: 46px; image-rendering: pixelated; flex-shrink: 0; padding: 6px; border-radius: 11px; background: rgba(8, 8, 16, 0.45); border: 1px solid var(--border); }
.listing-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.listing-card h3 { font-size: 16px; line-height: 1.3; }
.listing-card__item { font-size: 13px; }
.listing-card__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; }
.listing-card__foot .muted { font-size: 12px; }
.listing-card__seller { font-size: 12px; }

.price { font-size: 16px; font-weight: 800; color: var(--text); }
.price--lg { font-size: 28px; font-family: var(--font-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.price-box { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.json { display: block; white-space: pre-wrap; font-size: 12px; font-family: var(--font-mono); background: rgba(8, 8, 16, 0.7); border: 1px solid var(--border); border-radius: 9px; padding: 11px; color: var(--text-muted); }

/* Item-Autocomplete */
.item-input { position: relative; display: flex; align-items: center; gap: 8px; }
.item-input input { flex: 1; }
.item-input__preview { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 6px; background: rgba(8,8,16,.5); flex-shrink: 0; }
.ac-dropdown {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 45;
    background: var(--surface-2); backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid var(--border-strong); border-radius: 12px;
    box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; padding: 6px;
    animation: fadeUp .18s ease both;
}
.ac-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: none; background: transparent; color: var(--text); cursor: pointer; border-radius: 9px; text-align: left; font: inherit; }
.ac-item:hover, .ac-item.is-active { background: rgba(139, 92, 255, 0.18); }
.ac-icon { width: 30px; height: 30px; image-rendering: pixelated; flex-shrink: 0; }
.ac-name { font-size: 14px; font-weight: 600; }
.ac-id { margin-left: auto; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

/* Item-Icon (server-gerendert, z. B. Listing-Detail) */
.item-icon { width: 34px; height: 34px; image-rendering: pixelated; vertical-align: middle; }

/* Generische Typ-Platzhalter (Angebote ohne Item-Bild) */
.listing-card__icon--ph { display: grid; place-items: center; font-size: 22px; line-height: 1; }
.item-icon--ph { display: inline-grid; place-items: center; font-size: 19px; border-radius: 9px; }
.ph--property { background: linear-gradient(135deg, rgba(46, 230, 166, 0.30), rgba(44, 212, 238, 0.18)); }
.ph--item     { background: linear-gradient(135deg, rgba(139, 92, 255, 0.32), rgba(255, 77, 157, 0.16)); }
.ph--service  { background: linear-gradient(135deg, rgba(255, 180, 84, 0.30), rgba(255, 203, 82, 0.18)); }
.ph--other    { background: linear-gradient(135deg, rgba(255, 77, 157, 0.30), rgba(139, 92, 255, 0.18)); }

.order-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.order-actions .btn { padding: 8px 13px; font-size: 13px; }

.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 22px; }
.page-link { padding: 8px 13px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; font-weight: 600; }
.page-link:hover { color: #fff; border-color: var(--border-strong); }
.page-link--active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--glow-violet); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-tile { color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; overflow: hidden; position: relative; }
.admin-tile::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-cool); opacity: .85; }
.admin-tile:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow-cool); }
.admin-tile h2 { font-size: 18px; margin-bottom: 6px; }

/* Avatar-Fallback (falls Skin nicht lädt; JS ersetzt src durch SVG) */
.avatar-fallback { display: inline-grid; place-items: center; border-radius: 8px; background: var(--grad-primary); color: #fff; font-weight: 800; width: 32px; height: 32px; }

/* ── Toasts ────────────────────────────────────────────────────────────────── */
.toast-host { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast {
    background: var(--surface-2); backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong); border-left: 3px solid var(--violet);
    border-radius: var(--radius-sm); padding: 13px 17px; font-size: 13.5px; color: var(--text);
    box-shadow: var(--shadow); opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s;
}
.toast--in { opacity: 1; transform: translateX(0); }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 255, 0.35); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 255, 0.55); background-clip: content-box; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid var(--border); }
    .nav { flex-direction: row; flex-wrap: wrap; margin-top: 0; }
    .nav__section { display: none; }
    .nav__item--active::before { display: none; }
    .content { padding: 22px; }
    .grid--profile, .bvsm-detail { grid-template-columns: 1fr; }
    .app-list__item { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
