/* =========================================================
   zBay – eBay-Optik · Hell & Dunkel (Minecraft-Schrift)
   ========================================================= */

/* ---------- Farben: HELL (Standard) ---------- */
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f2f2f2;
  --text: #191919;
  --text-soft: #4a4a4a;
  --muted: #707070;
  --muted-2: #999999;
  --border: #e5e5e5;
  --border-2: #cfcfcf;
  --img-bg: #ffffff;

  --blue: #3665f3;
  --blue-hover: #2b50c8;
  --blue-soft: #e7ecfd;

  --green: #00751f;
  --red: #e53238;
  --red-soft: #fdecec;
  --pickup-text: #8a6d00;

  --accent: #3665f3;
  --star: #f5af02;

  --ship-bg: #f1fbf3;      --ship-br: #b6e0c0;
  --pickup-bg: #fffbe9;    --pickup-br: #f0e0a8;

  --overlay: rgba(0, 0, 0, .55);
  --toast-bg: #191919;     --toast-text: #ffffff;
  --shadow: rgba(0, 0, 0, .07);
  --shadow-lg: rgba(0, 0, 0, .3);

  --radius: 8px;
  color-scheme: light;
}

/* ---------- Farben: DUNKEL ---------- */
:root[data-theme="dark"] {
  --bg: #101216;
  --surface: #1b1e24;
  --surface-2: #22262e;
  --surface-3: #2a2f39;
  --text: #e9edf2;
  --text-soft: #c2c9d2;
  --muted: #9aa3af;
  --muted-2: #767f8b;
  --border: #2c313a;
  --border-2: #3a414d;
  --img-bg: #23272f;

  --blue: #4f7cf5;
  --blue-hover: #6b93ff;
  --blue-soft: #23324f;

  --green: #4cd07d;
  --red: #ff6b6b;
  --red-soft: #3a2222;
  --pickup-text: #ffcf5c;

  --accent: #4f7cf5;
  --star: #ffcb45;

  --ship-bg: #16301f;      --ship-br: #2c5c3c;
  --pickup-bg: #332a12;    --pickup-br: #6b5a20;

  --overlay: rgba(0, 0, 0, .7);
  --toast-bg: #2a2f39;     --toast-text: #ffffff;
  --shadow: rgba(0, 0, 0, .45);
  --shadow-lg: rgba(0, 0, 0, .65);

  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Minecraft", "Minecraftia", ui-monospace, monospace;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: none;
  transition: background .15s ease, color .15s ease;
}
body { display: flex; flex-direction: column; min-height: 100vh; }

h1, h2, h3 { margin: 0 0 6px; line-height: 1.25; font-weight: 400; }
p { margin: 0 0 8px; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { color: var(--blue); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Utility-Bar ---------- */
.utilbar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 12px; }
.utilbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.util-links { display: flex; gap: 16px; }
.linklike { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 12px; padding: 0; }
.linklike:hover { text-decoration: underline; }
#utilGreeting { color: var(--muted); }
#utilGreeting b { color: var(--text); }

/* ---------- Header ---------- */
.ebay-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 16px 16px; }

.logo {
  background: none; border: none; cursor: pointer;
  font-size: 38px; line-height: 1; letter-spacing: -2px;
  display: inline-flex; padding: 0 4px;
}
.logo .l-r { color: var(--red); }
.logo .l-b { color: var(--blue); }
.logo .l-y { color: #f5af02; }
.logo .l-g { color: #86b817; }

.searchbar {
  flex: 1; display: flex; align-items: stretch;
  border: 2px solid var(--text); border-radius: 24px;
  overflow: hidden; background: var(--surface); height: 44px;
}
.searchbar select {
  border: none; background: var(--surface-3); color: var(--text);
  padding: 0 12px; font-size: 13px; width: auto; max-width: 190px;
  border-right: 1px solid var(--border); outline: none; cursor: pointer;
}
.searchbar input {
  flex: 1; border: none; outline: none; padding: 0 16px; font-size: 15px; background: var(--surface); color: var(--text);
}
.btn-search {
  border: none; background: var(--blue); color: #fff; cursor: pointer;
  padding: 0 24px; font-size: 15px;
}
.btn-search:hover { background: var(--blue-hover); }
.searchbar input:focus, .searchbar select:focus { box-shadow: none; border-color: transparent; }
.adv-link { font-size: 12px; white-space: nowrap; }

.mainnav { border-top: 1px solid var(--border); background: var(--surface); }
.mainnav-inner { display: flex; gap: 4px; }
.navlink {
  background: none; border: none; cursor: pointer; color: var(--text);
  padding: 12px 14px; font-size: 14px; border-bottom: 3px solid transparent;
}
.navlink:hover { color: var(--blue); }
.navlink.active { border-bottom-color: var(--blue); color: var(--blue); }

/* ---------- Layout ---------- */
#app { flex: 1; padding: 18px 16px 60px; }
.view { animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.store-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }

.crumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumb-item { color: var(--blue); cursor: pointer; }
.crumb-sep { margin: 0 6px; }

.sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 0; }
.sidebar-title { font-size: 14px; padding: 4px 16px 10px; border-bottom: 1px solid var(--border); margin: 0 0 6px; }
.catlist { list-style: none; margin: 0; padding: 0; }
.catlist li { padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--text); border-left: 3px solid transparent; }
.catlist li:hover { background: var(--blue-soft); color: var(--blue); }
.catlist li.active { border-left-color: var(--blue); background: var(--blue-soft); color: var(--blue); }

/* ---------- Results ---------- */
.results { min-width: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.results-count { font-size: 14px; color: var(--muted); }
.results-count b { color: var(--text); }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sort-wrap select { border: 1px solid var(--border-2); border-radius: 6px; padding: 7px 10px; background: var(--surface); color: var(--text); font-size: 12px; outline: none; }

.result-list { display: flex; flex-direction: column; gap: 10px; }
.result {
  display: grid; grid-template-columns: 180px 1fr 200px; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: box-shadow .12s ease, border-color .12s ease;
}
.result:hover { border-color: var(--border-2); box-shadow: 0 2px 10px var(--shadow); }

.result-img {
  width: 180px; height: 180px; background: var(--img-bg);
  border: 1px solid var(--border); border-radius: 6px;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.result-img img { width: 128px; height: 128px; object-fit: contain; image-rendering: pixelated; }
.result-img.noimg::after { content: "❓"; font-size: 54px; opacity: .4; }
.result-img.noimg img { display: none; }
.tex-fallback { font-size: 56px; }

.result-main { min-width: 0; display: flex; flex-direction: column; }
.result-title { font-size: 18px; color: var(--blue); margin: 0 0 8px; }
.result:hover .result-title { text-decoration: underline; }
.result-cond { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ship-flag { color: var(--green); }
.pickup-flag { color: var(--pickup-text); }
.result-seller { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.result-seller b { color: var(--text); }
.result-desc { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.result-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.result-price { font-size: 26px; color: var(--text); line-height: 1; }
.result-price span { font-size: 14px; color: var(--muted); }
.result-ship { font-size: 12px; color: var(--green); }
.result-coords { font-size: 11px; color: var(--muted); }
.btn-buy { margin-top: 8px; background: var(--blue); color: #fff; border: none; border-radius: 20px; padding: 10px 22px; font-size: 14px; cursor: pointer; }
.btn-buy:hover { background: var(--blue-hover); }
.btn-buy.big { padding: 13px 26px; font-size: 15px; }
.btn-buy.full { width: 100%; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); border-radius: 20px; padding: 10px 22px; font-size: 14px; cursor: pointer; }
.btn-secondary:hover { background: var(--surface-3); }
.btn-danger { background: var(--surface); color: var(--red); border: 1px solid var(--red); border-radius: 20px; padding: 7px 16px; font-size: 12px; cursor: pointer; }
.btn-danger:hover { background: var(--red-soft); }
.row-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Services ---------- */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--muted); font-size: 13px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.service-icon { width: 64px; height: 64px; border: 1px solid var(--border); border-radius: 8px; display: grid; place-items: center; background: var(--img-bg); }
.service-icon img { width: 48px; height: 48px; image-rendering: pixelated; }
.service h3 { font-size: 17px; margin-top: 6px; }
.service p { font-size: 13px; color: var(--text-soft); margin: 0; }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 10px; }

/* ---------- Panels / Formulare ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form { max-width: 780px; display: flex; flex-direction: column; gap: 16px; }
.form h2 { font-size: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.readonly { padding: 10px 12px; border: 1px dashed var(--border-2); border-radius: 6px; font-size: 13px; color: var(--muted); background: var(--surface-2); }
input, select, textarea {
  font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 6px; padding: 10px 12px; outline: none; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
textarea { resize: vertical; }
.radio-row { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.radio input { width: auto; }
.form-actions { display: flex; gap: 10px; }
.form-msg { font-size: 13px; min-height: 16px; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green); }

/* ---------- Item-Picker ---------- */
.item-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px; max-height: 300px; overflow-y: auto; padding: 8px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); margin-top: 8px;
}
.item-opt { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.item-opt:hover { border-color: var(--blue); background: var(--blue-soft); }
.item-opt.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); background: var(--blue-soft); }
.item-opt img { width: 40px; height: 40px; image-rendering: pixelated; }
.item-opt .io-name { font-size: 9px; text-align: center; color: var(--muted); line-height: 1.2; }
.selected-item { display: flex; align-items: center; gap: 12px; margin-top: 10px; border: 1px solid var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 10px 12px; }
.selected-item img { width: 40px; height: 40px; image-rendering: pixelated; }
.selected-item .si-name { font-size: 14px; }
.selected-item .si-cat { font-size: 12px; color: var(--muted); }

/* ---------- Profil ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .btn-secondary { margin-left: auto; }
.avatar { width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 26px; background: var(--blue); color: #fff; border-radius: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab { background: none; border: none; color: var(--muted); cursor: pointer; padding: 10px 14px; font-size: 13px; border-bottom: 3px solid transparent; }
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.row-card .rc-img { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--img-bg); }
.row-card .rc-img img { width: 40px; height: 40px; image-rendering: pixelated; }
.row-card .grow { flex: 1; min-width: 0; }
.row-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 400; }
.row-card .sub { font-size: 12px; color: var(--muted); }
.kv { font-size: 13px; color: var(--muted); margin-top: 6px; }
.kv b { color: var(--text); }
.msg-quote { margin-top: 8px; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--blue); border-radius: 4px; font-size: 13px; white-space: pre-wrap; }

/* ---------- Einstellungen ---------- */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.settings-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.settings-navlink { text-align: left; background: none; border: none; color: var(--text); cursor: pointer; padding: 10px 12px; font-size: 13px; border-radius: 6px; }
.settings-navlink:hover { background: var(--surface-3); }
.settings-navlink.active { background: var(--blue-soft); color: var(--blue); }
.setting-block { padding: 6px 0 2px; }
.setting-label { font-size: 15px; margin-bottom: 2px; }
.setting-desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.theme-options { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-option {
  border: 2px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 130px;
  background: var(--surface); transition: border-color .12s ease;
}
.theme-option:hover { border-color: var(--border-2); }
.theme-option input { display: none; }
.theme-option.selected, .theme-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.theme-option .theme-name { font-size: 13px; }
.theme-preview {
  width: 100%; height: 62px; border-radius: 6px; border: 1px solid var(--border-2);
  overflow: hidden; display: flex; flex-direction: column;
}
.theme-preview .tp-bar { height: 16px; background: #ffffff; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; padding: 0 5px; gap: 3px; }
.theme-preview .tp-dot { width: 5px; height: 5px; border-radius: 50%; }
.theme-preview .tp-body { flex: 1; background: #f7f7f7; padding: 6px; display: flex; gap: 4px; }
.theme-preview .tp-card { flex: 1; background: #ffffff; border: 1px solid #e5e5e5; border-radius: 3px; }
.theme-preview.light .tp-bar { background: #fff; }
.theme-preview.dark { border-color: #444; }
.theme-preview.dark .tp-bar { background: #1b1e24; border-bottom-color: #2c313a; }
.theme-preview.dark .tp-body { background: #101216; }
.theme-preview.dark .tp-card { background: #22262e; border-color: #2c313a; }
.theme-preview.system .tp-bar { background: linear-gradient(90deg, #ffffff 50%, #1b1e24 50%); }
.theme-preview.system .tp-body { background: linear-gradient(90deg, #f7f7f7 50%, #101216 50%); }
.theme-preview.system .tp-card:first-child { background: #fff; border-color: #e5e5e5; }
.theme-preview.system .tp-card:last-child { background: #22262e; border-color: #2c313a; }

/* ---------- Empty ---------- */
.empty { text-align: center; color: var(--muted); font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 16px; }
.empty-big { font-size: 40px; margin-bottom: 8px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; width: min(680px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 12px 40px var(--shadow-lg); }
.modal-close { float: right; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 22px; }
.modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.modal-head .mh-img { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--img-bg); }
.modal-head .mh-img img { width: 56px; height: 56px; image-rendering: pixelated; }
.modal .listing-seller { font-size: 12px; color: var(--muted); }
.modal-section { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.flag { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--border); margin-right: 6px; }
.flag.ship { color: var(--green); border-color: var(--ship-br); background: var(--ship-bg); }
.flag.pickup { color: var(--pickup-text); border-color: var(--pickup-br); background: var(--pickup-bg); }

.calc-box { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-top: 12px; background: var(--surface-2); }
.calc-line { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--muted); }
.calc-line b { color: var(--text); }
.calc-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; font-size: 16px; }
.calc-total b { color: var(--blue); font-size: 20px; }
.dist-badge { display: inline-block; font-size: 12px; color: var(--blue); background: var(--blue-soft); border-radius: 12px; padding: 4px 12px; margin-top: 8px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-text); border: 1px solid var(--border-2); padding: 12px 22px; border-radius: 8px; z-index: 200; font-size: 13px; box-shadow: 0 8px 24px var(--shadow-lg); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 22px 0 40px; font-size: 12px; color: var(--muted); }
.footer b { color: var(--text); }
.footer-note { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .result { grid-template-columns: 130px 1fr; }
  .result-img { width: 130px; height: 130px; }
  .result-img img { width: 92px; height: 92px; }
  .result-buy { grid-column: 1 / -1; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .auth-wrap { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .searchbar { order: 3; width: 100%; flex-basis: 100%; }
  .adv-link { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .logo { font-size: 30px; }
  .result { grid-template-columns: 1fr; }
  .result-img { width: 100%; height: 160px; }
  .result-img img { width: 120px; height: 120px; }
}

/* =========================================================
   NEU: Sterne / Bewertungen
   ========================================================= */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars .star { font-size: 14px; line-height: 1; }
.stars .star.on { color: var(--star); }
.stars .star.off { color: var(--border-2); }

.rate-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: 12px;
  color: var(--star); background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 1px 8px; margin-left: 6px; white-space: nowrap;
}
.rate-badge.empty { color: var(--muted); }
.rate-badge .rate-count { color: var(--muted); font-size: 11px; }

.rate-stars { display: flex; gap: 6px; margin: 8px 0 14px; }
.rate-star { font-size: 34px; line-height: 1; cursor: pointer; color: var(--border-2); transition: color .1s ease, transform .1s ease; }
.rate-star.hover, .rate-star.on { color: var(--star); }
.rate-star:hover { transform: scale(1.12); }

.review { border-top: 1px solid var(--border); padding: 10px 0; }
.review:first-of-type { border-top: none; }
.review-head { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.review-text { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

.btn-secondary.sm { padding: 6px 14px; font-size: 12px; border-radius: 16px; }
.muted { color: var(--muted); font-size: 13px; }

/* =========================================================
   NEU: Verbesserungsvorschläge
   ========================================================= */
.suggestions-block {
  margin-top: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.sug-head h2 { font-size: 20px; }
.sug-head p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.sug-layout { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.sug-form { margin: 0; }
.sug-list { display: flex; flex-direction: column; gap: 10px; }
.suggestion { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.vote-btn {
  flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 6px 0; cursor: pointer; font-size: 12px; color: var(--muted);
}
.vote-btn:hover { border-color: var(--blue); color: var(--blue); }
.vote-btn.voted { border-color: var(--blue); color: #fff; background: var(--blue); }
.sug-body { flex: 1; min-width: 0; }
.sug-text { font-size: 14px; color: var(--text); }
.sug-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.empty.small { padding: 22px 14px; }

.hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

@media (max-width: 900px) {
  .sug-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   NEU: Admin-Panel
   ========================================================= */
.navlink.admin-nav { color: var(--star); }
.navlink.admin-nav.active { color: #fff; }

.admin-head h1 { display: flex; align-items: center; gap: 8px; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.astat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px; text-align: center;
}
.astat-num { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.astat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.admin-tabs { gap: 2px; }
.atab {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 10px 14px; font-size: 13px; border-bottom: 3px solid transparent;
}
.atab:hover { color: var(--text); }
.atab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.admin-panel { margin-top: 4px; }

.admin-actions-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }

.admin-table { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.admin-row .grow { flex: 1; min-width: 0; }
.ar-img { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.ar-img img { width: 40px; height: 40px; object-fit: contain; }
.ar-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ar-sub { font-size: 12px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.ar-actions { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.status-pill {
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 12px;
  border: 1px solid var(--border-2); color: var(--muted); background: var(--surface-2);
}
.status-pill.active { color: var(--green, #2e8b57); border-color: currentColor; }
.status-pill.sold { color: var(--red); border-color: currentColor; }
.status-pill.admin { color: var(--accent); border-color: currentColor; }
.status-pill.ok { color: var(--green, #2e8b57); border-color: currentColor; }
.status-pill.bad { color: var(--red); border-color: currentColor; }

/* ---------- Buchungs-Chat ---------- */
.booking-chat { margin-top: 10px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.booking-chat .chat-list { max-height: 260px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.booking-chat .chat-msg { max-width: 82%; padding: 7px 11px; border-radius: 12px; font-size: 13px; background: var(--surface); border: 1px solid var(--border-2); }
.booking-chat .chat-msg.theirs { align-self: flex-start; border-bottom-left-radius: 3px; }
.booking-chat .chat-msg.mine { align-self: flex-end; border-bottom-right-radius: 3px; background: color-mix(in srgb, var(--blue) 16%, var(--surface)); }
.booking-chat .chat-sender { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.booking-chat .chat-sender .muted { font-weight: 400; }
.booking-chat .chat-text { white-space: pre-wrap; word-break: break-word; }
.booking-chat .chat-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border-2); background: var(--surface); flex-wrap: wrap; }
.booking-chat .chat-text-input { flex: 1 1 200px; min-width: 140px; padding: 8px 10px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; }

.admin-select {
  padding: 6px 10px; border: 1px solid var(--border-2); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 12px;
}

.admin-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.admin-data-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.admin-data-card h3 { font-size: 15px; margin-bottom: 6px; }
.admin-data-card p { margin-bottom: 14px; }
.admin-data-card.danger { border-color: var(--red); }
.admin-data-card.danger h3 { color: var(--red); }

@media (max-width: 640px) {
  .admin-row { flex-wrap: wrap; }
  .ar-actions { width: 100%; justify-content: flex-start; }
}

/* =========================================================
   NEU: Guthabenkonto (Coins-Wallet)
   ========================================================= */
.bal-inline {
  color: var(--star); font-weight: 600; white-space: nowrap;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 1px 8px;
}

.bal-note {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; margin: 8px 0 12px;
  font-size: 13px; color: var(--muted);
}
.bal-note b { color: var(--star); font-size: 14px; }

.dias-pill {
  font-size: 12px; font-weight: 600; color: var(--star);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 1px 8px;
}

.wallet-card {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 20px;
}
.wallet-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.wallet-amount { font-size: 34px; font-weight: 700; color: var(--star); margin: 6px 0 4px; line-height: 1.1; }
.wallet-sub { font-size: 13px; color: var(--muted); }
.wallet-h3 { font-size: 16px; margin-bottom: 10px; }

.tx-row { align-items: center; }
.tx-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.tx-icon.pos { background: rgba(46, 139, 87, .15); color: #2e8b57; }
.tx-icon.neg { background: var(--red-soft, rgba(210,60,60,.15)); color: var(--red); }
.tx-amount { flex: none; font-weight: 700; font-size: 15px; }
.tx-amount.pos { color: #2e8b57; }
.tx-amount.neg { color: var(--red); }

.order-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-danger.sm { padding: 6px 14px; font-size: 12px; border-radius: 16px; }
.btn-buy.sm { padding: 6px 14px; font-size: 12px; border-radius: 16px; margin-top: 0; }
.btn-secondary.full { width: 100%; }

/* =========================================================
   NEU: zBay+ & zBank & Ratenzahlung
   ========================================================= */
.plus-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: #4a2e00; background: linear-gradient(135deg, #ffd34d, #f5af02);
  border-radius: 10px; padding: 1px 8px; white-space: nowrap; vertical-align: middle;
}
.plus-pill.big { font-size: 15px; padding: 4px 14px; border-radius: 14px; }

.plus-card, .zbank-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin: 16px 0;
}
.plus-card.active { border-color: #f5af02; box-shadow: 0 0 0 2px rgba(245, 175, 2, .18); }
.plus-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.plus-price { font-size: 15px; color: var(--text-soft); margin-bottom: 10px; }
.plus-price b { color: var(--star); }
.plus-benefits { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.plus-benefits li { position: relative; padding-left: 24px; font-size: 13px; color: var(--text-soft); }
.plus-benefits li::before { content: "✓"; position: absolute; left: 0; color: #f5af02; font-weight: 700; }

.plus-teaser { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }

.plus-page { max-width: 760px; }
.plus-hero {
  text-align: center; padding: 26px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid #f5af02; border-radius: var(--radius);
}
.plus-price-big { font-size: 44px; font-weight: 700; color: var(--star); line-height: 1; }
.plus-price-big small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plus-cta { margin-top: 16px; }

.zbank-card h3 { font-size: 16px; margin-bottom: 8px; }
.zbank-card .field-row { margin-top: 10px; }
.zbank-key { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.zbank-key summary { cursor: pointer; font-size: 13px; color: var(--blue); }
.zbank-key .field { margin-top: 10px; }

.owner-emergency { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.owner-emergency summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.owner-emergency .field { margin-top: 10px; }

.check-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 14px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; }

.inst-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inst {
  font-size: 11px; border: 1px solid var(--border-2); border-radius: 10px;
  padding: 2px 9px; color: var(--muted); background: var(--surface-2);
}
.inst.paid { color: #2e8b57; border-color: currentColor; }
.inst.missed { color: var(--red); border-color: currentColor; }

.qty-tag {
  position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 700;
  background: var(--blue); color: #fff; border-radius: 10px; padding: 2px 9px;
}
.result-img { position: relative; }
