:root {
  /* Farb-Token */
  --bg: #0a0a10;
  --bg-elevated: #111118;
  --bg-card: #15151f;
  --bg-card-hover: #1b1b28;
  --border: #24242f;
  --border-bright: #35354a;
  --purple: #8b5cf6;
  --purple-dark: #8400ff;
  --purple-dim: #6d4fc7;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --text: #f2f1f7;
  --text-muted: #8f8ba3;
  --text-faint: #5a5768;
  --success: #4ade80;
  --danger: #f87171;

  /* Typografie */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(132, 0, 255, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* dezentes Blueprint/Terminal-Grid als Textur */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--purple); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 100px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-dim); }
* { scrollbar-color: var(--border-bright) var(--bg); scrollbar-width: thin; }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, var(--purple) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar .brand::before {
  content: '> ';
  color: var(--purple);
  -webkit-text-fill-color: var(--purple);
}

.topbar .user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .user::before {
  content: '';
}

.topbar img.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--purple);
}

.icon-inline {
  width: 15px;
  height: 15px;
  vertical-align: -2.5px;
  margin-right: 6px;
}

/* ---------- Layout ---------- */

.container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}

.container h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.container > p {
  color: var(--text-muted);
  margin-top: 0;
}

.page-header {
  margin-bottom: 30px;
}
.page-header h1 { margin-bottom: 4px; }
.page-header p { color: var(--text-muted); margin: 0; font-size: 14.5px; }
.page-header span { color: var(--purple); }

/* ---------- Login-Seite ---------- */

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding: 24px;
}

.login-wrap h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 10%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-wrap::before {
  content: 'NEXOV://READY';
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--purple-dim);
  border: 1px solid var(--border-bright);
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--bg-card);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-shadow: 0 0 0 rgba(139, 92, 246, 0);
}
.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px -6px var(--purple-glow);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn.secondary:hover {
  border-color: var(--purple);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
}
.btn.ghost:hover {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(135deg, var(--danger) 0%, #d64545 100%);
}

.btn.small {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 7px;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tabs button {
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: color .12s ease, border-color .12s ease;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  color: var(--text);
  border-bottom-color: var(--purple);
}

.section { display: none; }
.section.active { display: block; animation: fadeIn .25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Karten ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.card-grid .card {
  animation: cardIn .35s ease backwards;
}
.card-grid .card:nth-child(1) { animation-delay: .02s; }
.card-grid .card:nth-child(2) { animation-delay: .06s; }
.card-grid .card:nth-child(3) { animation-delay: .10s; }
.card-grid .card:nth-child(4) { animation-delay: .14s; }
.card-grid .card:nth-child(5) { animation-delay: .18s; }
.card-grid .card:nth-child(n+6) { animation-delay: .2s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--text-faint);
  border: 1px dashed var(--border-bright);
  border-radius: 12px;
}
.empty-state .glyph {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--purple-dim);
  opacity: .55;
  margin-bottom: 12px;
}
.empty-state .msg {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.empty-state .sub {
  font-size: 12.5px;
  margin-top: 4px;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--purple-glow), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.5);
}
.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card p { color: var(--text-muted); font-size: 13.5px; margin: 4px 0; line-height: 1.55; }

/* ---------- Tabellen ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
th {
  color: var(--purple-dim);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--bg-elevated);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card-hover); }

/* ---------- Formulare ---------- */

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
input, select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
}
textarea { width: 100%; min-height: 64px; resize: vertical; }
input[type="checkbox"] { accent-color: var(--purple); width: 16px; height: 16px; }

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.badge.active { background: rgba(74, 222, 128, 0.12); color: var(--success); border: 1px solid rgba(74, 222, 128, 0.25); }
.badge.upcoming { background: rgba(139, 92, 246, 0.14); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); }

/* ---------- Modals ---------- */

.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-bg.active { display: flex; animation: fadeIn .15s ease; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  padding: 26px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.6);
}
.modal h2 {
  margin: 0 0 18px;
  font-size: 19px;
  color: var(--text);
}
.modal .form-row { flex-direction: column; }

/* ---------- Script-Karten (Shop) ---------- */

.script-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.script-card .thumb {
  position: relative;
  height: 130px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.28), transparent 60%),
    linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.script-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.script-card .thumb .glyph {
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--purple-dim);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.price-tag.paid {
  background: rgba(139, 92, 246, 0.22);
  color: #d8c8ff;
  border: 1px solid rgba(139, 92, 246, 0.45);
}
.price-tag.free {
  background: rgba(74, 222, 128, 0.18);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.script-card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.script-card .body p {
  min-height: 38px;
}
.script-card .card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}
.script-card .support-link {
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  transition: color .12s ease;
}
.script-card .support-link:hover { color: var(--purple); }

/* ---------- Warenkorb ---------- */

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }

.cart-row .icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(132, 0, 255, 0.12));
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple);
}

.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-row .info .price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.cart-row .remove-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all .12s ease;
  flex-shrink: 0;
}
.cart-row .remove-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}

.cart-empty {
  text-align: center;
  padding: 36px 10px 24px;
  color: var(--text-faint);
}
.cart-empty .glyph {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--purple-dim);
  opacity: 0.5;
  margin-bottom: 10px;
  display: block;
}
.cart-empty .sub {
  font-size: 12.5px;
  margin-top: 4px;
  color: var(--text-faint);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-bright);
}
.cart-summary .label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-summary .amount {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.cart-summary .amount .cur {
  font-size: 14px;
  color: var(--purple);
  margin-left: 2px;
}

.paypal-wrap { margin-top: 16px; }
.paypal-caption {
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

/* ---------- Admin-Layout ---------- */

.admin-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 65px);
}

.admin-sidebar {
  width: 232px;
  flex-shrink: 0;
  padding: 28px 16px;
  position: sticky;
  top: 65px;
  border-right: 1px solid var(--border);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.admin-nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: .8;
}
.admin-nav-item:hover { background: var(--bg-card); color: var(--text); }
.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(132,0,255,0.08));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(139,92,246,0.3);
}
.admin-nav-item.active svg { opacity: 1; color: var(--purple); }

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px 64px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-header h2 {
  font-size: 21px;
  margin: 0;
  color: var(--text);
}

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.panel-box .form-row:last-child { margin-bottom: 0; }

/* ---------- Stat-Kacheln ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--purple-glow);
  filter: blur(30px);
  opacity: .5;
}
.stat-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--text);
}
.stat-card .value .unit {
  font-size: 15px;
  color: var(--purple);
  margin-left: 3px;
}

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .admin-nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .admin-nav-item { width: auto; white-space: nowrap; }
  .admin-main { padding: 24px 20px 48px; }
}

/* ---------- Produkt-Detailansicht ---------- */

.detail-modal-box {
  width: 700px;
  max-width: 92vw;
  padding: 0;
  overflow: hidden;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.detail-visual {
  background:
    radial-gradient(circle at 30% 25%, rgba(139, 92, 246, 0.3), transparent 65%),
    linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-visual .glyph {
  font-family: var(--font-mono);
  font-size: 42px;
  color: var(--purple-dim);
  opacity: .6;
}

.detail-info {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.detail-info h2 {
  font-size: 22px;
  color: var(--text);
}
.detail-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin: 0 0 22px;
}
.detail-actions {
  display: flex;
  gap: 10px;
}
.detail-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-visual { min-height: 160px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ---------- Shop-Toolbar (Suche) ---------- */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.shop-toolbar .tabs { margin-bottom: 0; border-bottom: none; }
#search-input {
  width: 240px;
  max-width: 100%;
}

/* ---------- Sterne-Bewertung ---------- */

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--purple-dim);
}
.stars.interactive span { cursor: pointer; transition: transform .1s ease; }
.stars.interactive span:hover { transform: scale(1.15); }
.rating-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.rating-summary .stars { font-size: 13px; }
.card .rating-summary { margin: -2px 0 6px; }

/* ---------- Gutschein-Zeile im Warenkorb ---------- */

.coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.coupon-row input { flex: 1; text-transform: uppercase; }
#coupon-status {
  font-size: 12.5px;
  margin-top: 8px;
}
#coupon-status.ok { color: var(--success); }
#coupon-status.error { color: var(--danger); }

/* ---------- Toast-Benachrichtigungen ---------- */

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  box-shadow: 0 12px 32px -10px rgba(0,0,0,0.5);
  font-size: 13.5px;
  color: var(--text);
  animation: toastIn .2s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast .toast-icon { font-size: 15px; flex-shrink: 0; }
.toast.leaving { animation: toastOut .18s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(16px); }
}

/* ---------- Toggle-Switch ---------- */

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  transition: background .15s ease;
}
.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform .15s ease, background .15s ease;
}
.switch input:checked + .switch-slider {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--purple);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
  background: var(--purple);
}

/* ---------- Angebote / Countdown ---------- */

.sale-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 6px;
  flex-wrap: wrap;
}
.sale-old {
  text-decoration: line-through;
  color: var(--text-faint);
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.sale-countdown {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 8px;
  border-radius: 100px;
}
