:root {
  color-scheme: dark;
  --bg: #0d0c18;
  --surface: #17152b;
  --surface-2: #211e38;
  --surface-3: #2a2745;
  --text: #f7f5ff;
  --muted: #aaa5c0;
  --accent: #7c6cff;
  --accent-2: #37d9c5;
  --warning: #ffca63;
  --danger: #ff7e8b;
  --success: #73e6a6;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 108, 255, 0.19), transparent 32rem),
    radial-gradient(circle at 100% 15%, rgba(55, 217, 197, 0.08), transparent 25rem),
    var(--bg);
  color: var(--text);
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(124, 108, 255, 0.55);
  outline-offset: 3px;
}

button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { width: min(1180px, 100%); margin: 0 auto; padding-bottom: 94px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 34px);
  background: rgba(13, 12, 24, 0.84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: 0.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 0.72rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), #4b3cca);
  box-shadow: 0 10px 24px rgba(124, 108, 255, 0.34);
  font-size: 1.25rem;
}

main { padding: 24px clamp(16px, 3vw, 34px) 36px; }
.view { animation: view-in 180ms ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(124, 108, 255, 0.19), rgba(55, 217, 197, 0.06)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel h1, .page-heading h1 {
  margin: 7px 0 10px;
  max-width: 830px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-panel p, .page-heading p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 760px; }
.eyebrow { color: var(--accent-2); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.status-line { grid-column: 1 / -1; font-size: 0.82rem; }
.status-line.error { color: var(--danger); }
.status-line.success { color: var(--success); }
.manual-location {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  max-width: 620px;
  padding-top: 4px;
}
.manual-location label { color: #d9d5e8; font-size: .86rem; font-weight: 750; }
.manual-location small { color: var(--muted); font-size: .75rem; }
.manual-location-row { display: flex; gap: 9px; }
.manual-location-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: var(--text);
}
.manual-location-row input::placeholder { color: #817c96; }

.primary-button, .ghost-button, .icon-button, .filter-chip, .card-action {
  border: 1px solid transparent;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.primary-button:hover, .ghost-button:hover, .icon-button:hover, .filter-chip:hover, .card-action:hover { transform: translateY(-1px); }
.primary-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  background: var(--accent);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(124, 108, 255, 0.25);
}
.ghost-button, .icon-button {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}
.icon-button { width: 42px; padding: 0; }

.search-section { margin: 24px 0 8px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: #817c96; }
.filter-row { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  white-space: nowrap;
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}
.filter-chip.active { border-color: rgba(124, 108, 255, 0.6); background: rgba(124, 108, 255, 0.17); color: var(--text); }

.map-card { margin-top: 24px; padding: 14px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
#map { height: 370px; border-radius: 18px; background: var(--surface-2); z-index: 1; }
.map-fallback {
  min-height: 370px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.map-fallback strong { color: var(--text); font-size: 1.05rem; }

.map-heading { margin: 4px 4px 14px; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #211e38; color: #fff; }
.leaflet-control-attribution { background: rgba(255,255,255,.88) !important; color: #222; }
.map-popup strong { display: block; margin-bottom: 4px; }
.map-popup small { color: #c6c1d8; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 34px 0 14px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(1.35rem, 4vw, 1.85rem); letter-spacing: -0.025em; }
.count-badge { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-weight: 800; }

.card-list { display: grid; gap: 13px; }
.store-card, .offer-card, .saved-empty {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(23, 21, 43, 0.92);
  box-shadow: 0 11px 28px rgba(0,0,0,.16);
}
.store-card { grid-template-columns: auto 1fr auto; align-items: start; }
.store-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(124,108,255,.26), rgba(55,217,197,.12));
  font-size: 1.4rem;
}
.store-main h3, .offer-card h3 { margin: 0; font-size: 1.07rem; }
.store-meta, .offer-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 7px; color: var(--muted); font-size: .83rem; }
.store-description, .offer-description { margin: 10px 0 0; color: #d2cee2; font-size: .9rem; line-height: 1.55; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.badge { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.055); color: #cbc6dc; font-size: .72rem; font-weight: 700; }
.badge.offer { background: rgba(255,202,99,.14); color: var(--warning); }
.badge.verified { background: rgba(115,230,166,.12); color: var(--success); }
.badge.demo { background: rgba(255,126,139,.12); color: var(--danger); }
.card-actions { display: flex; flex-direction: column; gap: 8px; }
.card-action { min-width: 42px; min-height: 42px; padding: 0 12px; border-color: var(--border); border-radius: 13px; background: rgba(255,255,255,.035); }
.card-action.saved { background: rgba(124,108,255,.18); border-color: rgba(124,108,255,.38); }

.page-heading { padding: 18px 0 8px; }
.page-heading h1 { font-size: clamp(2rem, 7vw, 3.8rem); }
.offer-card { grid-template-columns: 1fr auto; }
.offer-price { font-size: 1.45rem; font-weight: 900; white-space: nowrap; color: var(--warning); }
.source-link { color: var(--accent-2); text-underline-offset: 3px; }

.timeline { position: relative; display: grid; gap: 18px; margin-top: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: var(--border); }
.release-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 15px; }
.release-date { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); font-weight: 900; line-height: 1; text-align: center; }
.release-date small { font-size: .65rem; margin-top: -9px; }
.release-card { padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.release-card h3 { margin: 0; }
.release-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.bottom-nav {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(680px, calc(100% - 24px));
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: rgba(23, 21, 43, 0.94);
  box-shadow: 0 16px 44px rgba(0,0,0,.38);
  backdrop-filter: blur(20px);
}
.nav-item { display: grid; justify-items: center; gap: 3px; min-height: 54px; padding: 7px 6px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); font-size: .72rem; }
.nav-item span { font-size: 1.18rem; }
.nav-item.active { background: rgba(124,108,255,.18); color: var(--text); }

.detail-dialog { width: min(570px, calc(100% - 24px)); max-height: 85vh; padding: 24px; border: 1px solid var(--border); border-radius: 25px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.detail-dialog::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--surface-3); font-size: 1.4rem; }
.dialog-title { margin: 8px 44px 5px 0; font-size: 1.55rem; }
.dialog-grid { display: grid; gap: 12px; margin-top: 20px; }
.dialog-row { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.04); }
.dialog-row small { display: block; color: var(--muted); margin-bottom: 4px; }

.toast { position: fixed; z-index: 2000; left: 50%; bottom: 94px; transform: translate(-50%, 18px); padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: #2b2748; opacity: 0; pointer-events: none; transition: 180ms ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.saved-empty { color: var(--muted); text-align: center; padding: 40px 20px; }

@media (max-width: 720px) {
  main { padding-top: 16px; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-panel .primary-button { width: 100%; }
  .status-line { grid-column: auto; }
  .manual-location { grid-column: auto; }
  .manual-location-row { flex-direction: column; }
  .manual-location-row .ghost-button { width: 100%; }
  #map { height: 315px; }
  .store-card { grid-template-columns: auto 1fr; }
  .card-actions { grid-column: 1 / -1; flex-direction: row; }
  .card-actions .card-action { flex: 1; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-price { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.radius-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
}
.radius-control label { color: #d9d5e8; font-weight: 750; }
.radius-control select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.notice-text {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,202,99,.2);
  border-radius: 12px;
  background: rgba(255,202,99,.08);
  color: #ffe0a1;
  font-size: .82rem;
  line-height: 1.45;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.external-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 750;
  font-size: .84rem;
}
.external-link:hover { transform: translateY(-1px); }
.primary-link {
  border-color: rgba(124,108,255,.45);
  background: rgba(124,108,255,.18);
  color: var(--text);
}

/* TCG Finder v5: lokale Kartenkomponente ohne externes JavaScript-CDN */
.radar-map { position: relative; overflow: hidden; }
.radar-map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  cursor: grab;
  background: #1b1a35;
  touch-action: none;
  outline: none;
  isolation: isolate;
}
.radar-map-viewport:focus-visible { box-shadow: inset 0 0 0 3px rgba(124, 108, 255, 0.85); }
.radar-map-viewport.dragging { cursor: grabbing; }
.radar-map-grid,
.radar-map-tiles,
.radar-map-markers {
  position: absolute;
  inset: 0;
}
.radar-map-grid {
  z-index: 0;
  background-color: #1c1b39;
  background-image:
    linear-gradient(rgba(124, 108, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 108, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(56, 229, 201, 0.08), transparent 55%);
  background-size: 48px 48px, 48px 48px, auto;
}
.radar-map-tiles { z-index: 1; pointer-events: none; }
.radar-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.radar-map-markers { z-index: 3; pointer-events: none; }
.radar-map-marker {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.38));
}
.radar-map-marker[hidden] { display: none; }
.radar-map-pin {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 3px solid #fff;
  border-radius: 19px 19px 19px 5px;
  background: linear-gradient(145deg, #7161ff, #4d3bd0);
  color: #fff;
  font-size: 17px;
  transform: rotate(-45deg);
  transition: transform 140ms ease, filter 140ms ease;
}
.radar-map-marker .radar-map-pin { line-height: 1; }
.radar-map-pin-icon { display: block; transform: rotate(45deg); }
.radar-map-marker:hover .radar-map-pin,
.radar-map-marker:focus-visible .radar-map-pin { transform: rotate(-45deg) scale(1.12); filter: brightness(1.13); }
.radar-map-marker:focus-visible { outline: none; }
.user-location-marker .radar-map-pin {
  min-width: 25px;
  width: 25px;
  height: 25px;
  padding: 0;
  border-radius: 50%;
  background: #38e5c9;
  color: #101022;
  font-size: 11px;
  transform: none;
  box-shadow: 0 0 0 8px rgba(56, 229, 201, 0.2);
}
.user-location-marker .radar-map-pin-icon { transform: none; }
.user-location-marker:hover .radar-map-pin,
.user-location-marker:focus-visible .radar-map-pin { transform: scale(1.12); }
.radar-map-controls {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.radar-map-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  background: rgba(20, 19, 44, 0.94);
  color: #fff;
  font: 700 23px/1 system-ui, sans-serif;
  cursor: pointer;
}
.radar-map-controls button:last-child { border-bottom: 0; }
.radar-map-controls button:hover { background: #342b76; }
.radar-map-attribution {
  position: absolute;
  z-index: 5;
  right: 7px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(10, 10, 25, 0.78);
  font-size: 10px;
}
.radar-map-attribution a { color: #ddd9ff; }
.radar-map-notice {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 16px;
  max-width: min(540px, calc(100% - 130px));
  transform: translateX(-50%);
  padding: 10px 13px;
  border: 1px solid rgba(255, 205, 91, 0.45);
  border-radius: 12px;
  background: rgba(38, 31, 42, 0.94);
  color: #ffe39a;
  font-size: 0.84rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.radar-map-notice.hidden { display: none; }

/* TCG Finder v6: Angebots-, Release- und Detailansichten */
.detail-dialog {
  overflow: auto;
  width: min(720px, calc(100% - 24px));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat-card {
  display: grid;
  gap: 5px;
  min-height: 102px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.stat-card strong { font-size: 1.45rem; line-height: 1; }
.stat-card span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.data-notice {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(55, 217, 197, .2);
  border-radius: 15px;
  background: rgba(55, 217, 197, .07);
  color: #c9c5dc;
  font-size: .84rem;
  line-height: 1.55;
}
.data-notice strong { color: var(--accent-2); }

.offer-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.offer-content { min-width: 0; }
.offer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-width: 155px;
}
.price-stack { display: grid; justify-items: end; gap: 2px; }
.old-price { color: #8f899f; text-decoration: line-through; font-size: .84rem; }
.price-stack small { color: var(--success); font-size: .72rem; font-weight: 750; }
.offer-actions { display: flex; gap: 8px; }
.availability-note {
  margin: 12px 0 0;
  padding-left: 11px;
  border-left: 2px solid rgba(255, 202, 99, .5);
  color: #aaa4bc;
  font-size: .79rem;
  line-height: 1.5;
}
.badge.saving { background: rgba(115,230,166,.12); color: var(--success); }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  background: rgba(255,255,255,.06);
  color: var(--muted);
}
.status-pill.active, .status-pill.upcoming { background: rgba(55,217,197,.12); color: var(--accent-2); }
.status-pill.checked, .status-pill.new { background: rgba(115,230,166,.12); color: var(--success); }
.status-pill.today { background: rgba(255,202,99,.16); color: var(--warning); }
.status-pill.open-date { background: rgba(124,108,255,.16); color: #c9c3ff; }
.status-pill.expired, .status-pill.past { background: rgba(255,126,139,.1); color: #ffadb6; }
.compact-card { padding: 14px; }
.compact-card .offer-description { margin-top: 7px; }
.compact-card .offer-side { min-width: 135px; }

.release-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.mini-save {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  font-size: 1.08rem;
}
.mini-save.saved { background: rgba(124,108,255,.18); border-color: rgba(124,108,255,.38); }
.product-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.product-preview span {
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #cbc7d9;
  font-size: .72rem;
}
.inline-details {
  margin-top: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.compact-release { margin-bottom: 0; }
.compact-release .release-card { padding: 15px; }

.saved-groups { display: grid; gap: 24px; }
.saved-section { min-width: 0; }
.saved-heading { margin-top: 10px; }
.saved-heading h2 { margin: 0; }

.dialog-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
  padding-right: 34px;
}
.dialog-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(124,108,255,.26), rgba(55,217,197,.12));
  font-size: 1.55rem;
}
.dialog-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0;
}
.dialog-price-line strong { font-size: 2rem; color: var(--warning); }
.dialog-price-line span { color: #8f899f; text-decoration: line-through; }
.dialog-price-line em {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(115,230,166,.12);
  color: var(--success);
  font-style: normal;
  font-weight: 900;
}
.warning-row { border: 1px solid rgba(255,202,99,.15); background: rgba(255,202,99,.06); }
.dialog-subsection { margin-top: 24px; }
.compact-heading { margin: 0 0 12px; }
.compact-heading h3 { margin: 0; }
.dialog-offer-list { display: grid; gap: 10px; }
.small-empty { padding: 20px; }
.button-link { font: inherit; cursor: pointer; }
.legal-note {
  margin: 18px 0 0;
  color: #8f899f;
  font-size: .74rem;
  line-height: 1.5;
}
.release-dialog-date {
  display: inline-flex;
  margin: 5px 0 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(124,108,255,.14);
  color: #ddd9ff;
  font-weight: 800;
}
.product-list-row ul { margin: 8px 0 0 18px; padding: 0; }
.product-list-row li { margin: 5px 0; color: #d7d3e2; }

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .offer-card { grid-template-columns: 1fr; }
  .offer-side {
    min-width: 0;
    width: 100%;
    flex-direction: row;
    align-items: flex-end;
  }
  .price-stack { justify-items: start; }
  .offer-actions { margin-left: auto; }
  .compact-card .offer-side { min-width: 0; }
  .dialog-hero { grid-template-columns: 1fr; }
  .dialog-icon { width: 48px; height: 48px; }
}

@media (max-width: 440px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 88px; padding: 14px; }
  .offer-side { align-items: stretch; flex-direction: column; }
  .offer-actions { width: 100%; margin-left: 0; }
  .offer-actions .card-action { flex: 1; }
}

/* Adminbereich v7 */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
  width: min(680px, calc(100% - 24px));
}

.bottom-nav.admin-visible {
  grid-template-columns: repeat(5, 1fr);
  width: min(780px, calc(100% - 24px));
}

.admin-page-heading { padding-bottom: 4px; }
.admin-warning,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(23, 21, 43, 0.92);
  box-shadow: 0 11px 28px rgba(0,0,0,.16);
}
.admin-warning {
  margin: 16px 0;
  padding: 14px 16px;
  border-color: rgba(255, 202, 99, .24);
  background: rgba(255, 202, 99, .07);
  color: #e4d7b6;
  line-height: 1.5;
}
.admin-warning strong { color: var(--warning); }
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.file-button {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.danger-button,
.danger-action {
  border-color: rgba(255, 126, 139, .28) !important;
  color: #ffabb3;
}
.danger-button:hover,
.danger-action:hover { background: rgba(255, 126, 139, .1); }

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.admin-panel { padding: clamp(16px, 3vw, 24px); }
.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.admin-panel-heading h2 { margin: 4px 0 0; font-size: 1.4rem; }
.admin-form,
.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-fields { grid-column: 1 / -1; }
.field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}
.field > span {
  color: #ddd9e9;
  font-size: .81rem;
  font-weight: 760;
}
.field small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(124, 108, 255, .7);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, .13);
}
.field input[readonly] { opacity: .7; cursor: not-allowed; }
.full-field { grid-column: 1 / -1; }
.checkbox-field {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.checkbox-field input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.checkbox-field span { line-height: 1.35; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.form-status { min-height: 21px; margin: 0; color: var(--muted); font-size: .82rem; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }
.admin-search-box { margin-bottom: 14px; }
.admin-entry-list {
  display: grid;
  gap: 10px;
  max-height: 840px;
  overflow: auto;
  padding-right: 3px;
}
.admin-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.admin-entry-card h3 { margin: 3px 0 5px; font-size: .98rem; }
.admin-entry-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.admin-entry-card code {
  display: inline-block;
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: #8f89ad;
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-entry-type {
  color: var(--accent-2);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-entry-actions { display: grid; gap: 7px; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-entry-list { max-height: none; }
}

@media (max-width: 620px) {
  .bottom-nav { width: calc(100% - 12px); bottom: max(6px, env(safe-area-inset-bottom)); padding: 5px; }
  .nav-item { min-height: 49px; font-size: .62rem; padding-inline: 2px; }
  .nav-item span { font-size: 1rem; }
  .admin-form,
  .admin-fields { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .admin-toolbar > * { flex: 1 1 145px; }
  .admin-entry-card { grid-template-columns: 1fr; }
  .admin-entry-actions { grid-template-columns: 1fr 1fr; }
  .admin-form-actions > * { flex: 1 1 150px; }
}

/* v9: Supabase-Backend, Konto und Rollen */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.backend-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: .78rem;
  font-weight: 800;
}

.backend-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px currentColor;
}

.backend-status.online { color: var(--success); }
.backend-status.online::before { background: var(--success); }
.backend-status.syncing { color: var(--accent-2); }
.backend-status.syncing::before { background: var(--accent-2); animation: statusPulse 1s infinite alternate; }
.backend-status.error { color: var(--danger); }
.backend-status.error::before { background: var(--danger); }

@keyframes statusPulse {
  from { opacity: .35; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.12); }
}

.backend-setup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(121, 98, 255, .09), rgba(44, 220, 202, .04));
}

.backend-setup-card h2 { margin: 3px 0 7px; font-size: 1.18rem; }
.backend-setup-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.backend-setup-card code { color: var(--accent-2); }

.auth-dialog { width: min(520px, calc(100% - 24px)); }
.auth-dialog-content h2 { margin: 5px 0 8px; font-size: 2rem; }
.auth-dialog-content > p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.auth-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.auth-actions > * { flex: 1 1 150px; }
.account-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  margin: 8px 0 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}
.account-card strong { font-size: 1.15rem; }
.account-card span:not(.role-badge) { color: var(--muted); }
.role-badge {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(44, 220, 202, .12);
  color: var(--success);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-locked {
  opacity: .55;
  pointer-events: none;
  filter: grayscale(.25);
}

@media (max-width: 720px) {
  .topbar { align-items: flex-start; gap: 12px; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .backend-setup-card { align-items: flex-start; flex-direction: column; }
}

/* TCG Finder v10: language selector and international layout */
.language-picker {
  display: inline-flex;
  align-items: center;
}
.language-picker select {
  min-height: 40px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.language-picker option {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 760px) {
  .language-picker { order: -1; }
  .language-picker select { min-width: 64px; }
}

/* v11: Germany-wide OpenStreetMap discovery */
.discovery-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.discovery-control .ghost-button { flex: 0 0 auto; }
.discovery-status {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.discovery-status.success { color: var(--success); }
.discovery-status.error { color: var(--danger); }
.badge.map-data {
  background: rgba(88, 196, 255, .13);
  color: #8ed9ff;
}
@media (max-width: 680px) {
  .discovery-control { align-items: stretch; flex-direction: column; }
  .discovery-control .ghost-button { width: 100%; }
}
