/* =========================================================
   Glücksrad Pro – style.css
   Systemprompt Standard: Cyberpunk Dark/Light | Glassmorphism | iOS Feel
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

  /* Hintergründe */
  --bg-core: #07070a;
  --bg-surface: rgba(18, 16, 26, 0.72);
  --bg-surface-elevated: rgba(28, 24, 42, 0.82);
  --bg-surface-hover: rgba(40, 34, 60, 0.88);
  --bg-panel: rgba(255, 255, 255, 0.04);
  --bg-panel-hover: rgba(255, 255, 255, 0.08);

  /* Borders & Glassmorphism */
  --border: rgba(255, 255, 255, 0.10);
  --border-bright: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(168, 85, 247, 0.5);
  --glass-blur: blur(24px) saturate(170%);

  /* Neon Akzente */
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-cyan: #00e5ff;
  --neon-blue: #3b82f6;
  --neon-green: #30d158;
  --neon-orange: #ff9f0a;
  --neon-red: #ef4444;
  --neon-glow: rgba(236, 72, 153, 0.35);

  /* Texte */
  --text-primary: #ffffff;
  --text-secondary: rgba(240, 240, 255, 0.72);
  --text-muted: rgba(240, 240, 255, 0.45);

  /* Schatten & Radien */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(236, 72, 153, 0.25);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

/* Dynamischer Hellmodus */
@media (prefers-color-scheme: light) {
  :root {
    --bg-core: #f5f6fa;
    --bg-surface: rgba(255, 255, 255, 0.78);
    --bg-surface-elevated: rgba(255, 255, 255, 0.92);
    --bg-surface-hover: rgba(255, 255, 255, 0.98);
    --bg-panel: rgba(255, 255, 255, 0.75);
    --bg-panel-hover: rgba(255, 255, 255, 0.92);

    --border: rgba(0, 0, 0, 0.08);
    --border-bright: rgba(0, 0, 0, 0.16);
    --border-glow: rgba(139, 92, 246, 0.35);
    --glass-blur: blur(24px) saturate(150%);

    --neon-purple: #8b5cf6;
    --neon-pink: #db2777;
    --neon-cyan: #0284c7;
    --neon-blue: #2563eb;
    --neon-green: #16a34a;
    --neon-orange: #ea580c;
    --neon-red: #dc2626;
    --neon-glow: rgba(219, 39, 119, 0.2);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 32px rgba(219, 39, 119, 0.18);
  }
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  color-scheme: dark light;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg-core);
  color: var(--text-primary);
  min-height: 100dvh;
  width: 100dvw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ── Ambient Background (Glowing Blobs & Dot Grid) ─────── */
.glow-bg {
  position: fixed;
  inset: 0;
  background-color: var(--bg-core);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
}
@media (prefers-color-scheme: light) {
  .blob {
    mix-blend-mode: multiply;
    opacity: 0.14;
  }
}

.blob-purple {
  background-color: var(--neon-purple);
  top: -10%;
  left: -5%;
  animation: move-purple 16s infinite alternate ease-in-out;
}
.blob-pink {
  background-color: var(--neon-pink);
  bottom: -10%;
  right: -5%;
  animation: move-pink 14s infinite alternate ease-in-out;
}
.blob-cyan {
  background-color: var(--neon-cyan);
  top: 40%;
  left: 25%;
  animation: move-cyan 18s infinite alternate ease-in-out;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 191, 255, 0.15) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 85%);
}
@media (prefers-color-scheme: light) {
  .dot-grid {
    background-image: radial-gradient(rgba(100, 116, 139, 0.18) 0.7px, transparent 0.7px);
  }
}

@keyframes move-purple {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(100px, 70px, 0) scale(1.18); }
  100% { transform: translate3d(-50px, 120px, 0) scale(0.92); }
}
@keyframes move-pink {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  50% { transform: translate3d(-120px, -70px, 0) scale(1.22); }
  100% { transform: translate3d(70px, 50px, 0) scale(1.08); }
}
@keyframes move-cyan {
  0% { transform: translate3d(0, 0, 0) scale(1.1); }
  50% { transform: translate3d(-70px, 90px, 0) scale(0.88); }
  100% { transform: translate3d(80px, -80px, 0) scale(1.15); }
}

/* ── Dynamic Island ────────────────────────────────────── */
.dynamic-island-container {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10001;
  pointer-events: none;
}

.dynamic-island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 5, 20, 0.92);
  border: 1px solid var(--border-glow);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-80px) scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: auto;
  max-width: 90vw;
}
@media (prefers-color-scheme: light) {
  .dynamic-island {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(219, 39, 119, 0.2);
  }
}
.dynamic-island.expanded {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.island-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.island-text {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Header ────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.app-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
  transition: transform var(--transition-smooth);
}
.header-brand:hover .app-logo {
  transform: scale(1.08);
}

.app-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #ff6eb4 50%, #00f5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
@media (prefers-color-scheme: light) {
  .app-title {
    background: linear-gradient(90deg, #0f172a 0%, #db2777 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hdr-btn:hover {
  background: var(--bg-panel-hover);
  color: var(--text-primary);
  border-color: var(--border-glow);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
  transform: translateY(-1px);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition-smooth);
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.hamburger-btn:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-glow);
}

/* ── Swipe Edge Indikator ──────────────────────────────── */
.swipe-edge {
  display: none;
  position: fixed;
  top: 40%;
  right: 0;
  width: 4px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--neon-pink), transparent);
  border-radius: 4px 0 0 4px;
  opacity: 0.6;
  z-index: 150;
  pointer-events: none;
}

/* ── Slide-Out Drawer & Backdrop ───────────────────────── */
.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: var(--bg-surface-elevated);
  border-left: 1px solid var(--border-bright);
  z-index: 401;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.settings-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.panel-close {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.panel-close:hover {
  background: var(--neon-pink);
  color: #ffffff;
  border-color: var(--neon-pink);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Haupt-Layout ──────────────────────────────────────── */
.main-wrapper {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  width: 100%;
}

.wheel-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl, 28px);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 650px;
  transition: max-width 0.4s ease;
}

.wheel-left-side, .wheel-right-side {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-box {
  position: relative;
  width: 420px;
  height: 420px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.15);
  cursor: pointer;
}

/* Pointer oben */
.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 35px solid #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.85));
  z-index: 10;
  pointer-events: none;
}

/* Drehen Button - Großzügige Klick- & Touch-Fläche */
.btn-spin {
  background: rgba(168, 85, 247, 0.08);
  border: 1.5px solid rgba(168, 85, 247, 0.6);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 18px 64px;
  min-height: 58px;
  min-width: 240px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: breathingGlow 2.5s infinite ease-in-out;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.btn-spin:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
  transform: translateY(-2px) scale(1.02);
}
.btn-spin:active {
  transform: translateY(0) scale(0.97);
}
.btn-spin.stopping {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  animation: breathingGlowStop 1.2s infinite ease-in-out;
}
.btn-spin.stopping:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--neon-red);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
}

@keyframes breathingGlow {
  0% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); border-color: rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); border-color: rgba(168, 85, 247, 1); }
  100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); border-color: rgba(168, 85, 247, 0.5); }
}

@keyframes breathingGlowStop {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.9); border-color: rgba(239, 68, 68, 1); }
  100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); }
}

.winner-display {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.5px;
  min-height: 32px;
  text-align: center;
}

/* ── Verlauf & Statistik Container ─────────────────────── */
.history-container {
  margin-top: 25px;
  width: 100%;
  max-width: 340px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.history-list {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.history-item-name {
  font-weight: 600;
}

.history-item-time {
  font-size: 10px;
  color: var(--text-muted);
}

.chart-view {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 4px 4px 4px;
  overflow-x: auto;
  overflow-y: hidden;
}

.chart-col-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}

.chart-col {
  width: 20px;
  background: var(--col-color);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 12px var(--col-color);
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 2px;
}

.chart-col-count {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-primary);
}

.chart-col-label {
  font-size: 9px;
  color: var(--text-muted);
  width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* ── Optionen & Einstellungen im Drawer ────────────────── */
.extra-settings-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.options-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-row {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  transition: var(--transition-smooth);
}
.option-row:hover {
  border-color: var(--border-bright);
}

.row-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="text"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: var(--transition-smooth);
}
input[type="text"]:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.percent-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 72px;
  flex-shrink: 0;
}

.opt-percent-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 20px 8px 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  width: 100%;
  outline: none;
  text-align: right;
  -moz-appearance: textfield;
}
.opt-percent-input::-webkit-outer-spin-button,
.opt-percent-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.opt-percent-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.percent-symbol {
  position: absolute;
  right: 6px;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--active-color, var(--neon-purple));
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 0 10px var(--active-color, var(--neon-purple));
}

.btn-delete {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition-smooth);
}
.btn-delete:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--neon-red);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-add {
  background: transparent;
  border: 1px solid rgba(48, 209, 88, 0.4);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}
.btn-add:hover {
  background: rgba(48, 209, 88, 0.12);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(48, 209, 88, 0.4);
}

.btn-equalize, .btn-export-history, .btn-reset-history {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-equalize:hover, .btn-export-history:hover {
  border-color: var(--neon-blue);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.btn-reset-history:hover {
  border-color: var(--neon-red);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ── Export Modal ──────────────────────────────────────── */
.export-modal {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.export-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-bright);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-xl, 28px);
  padding: 28px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.export-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.export-options {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.export-type-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.export-type-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.export-preview-container {
  width: 100%;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.export-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.export-buttons {
  display: flex;
  gap: 12px;
}

.btn-export-save {
  flex: 1;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-export-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--neon-glow);
}

.btn-export-close {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-export-close:hover {
  background: var(--bg-panel-hover);
}

/* ── Responsive Ansichten ──────────────────────────────── */
@media (min-width: 992px) {
  .wheel-panel {
    max-width: 1100px;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    padding: 40px;
  }
  .wheel-left-side {
    flex: 1.2;
    justify-content: center;
    min-height: 480px;
  }
  .wheel-right-side {
    flex: 0.8;
    max-width: 380px;
    justify-content: center;
  }
  .wheel-box {
    width: 380px;
    height: 380px;
    margin-bottom: 25px;
  }
  .history-container {
    margin-top: 0;
    height: 100%;
    justify-content: space-between;
    max-height: 480px;
  }
  .history-list {
    max-height: 260px;
  }
}

@media (max-width: 600px) {
  .app-header {
    padding: 0 16px;
  }
  .desktop-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .swipe-edge {
    display: block;
  }
  .main-wrapper {
    padding: 12px 10px;
  }
  .wheel-panel {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }
  .wheel-box {
    width: 280px;
    height: 280px;
    margin-bottom: 20px;
  }
  .wheel-pointer {
    top: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 26px solid #ffffff;
  }
  .btn-spin {
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    min-height: 56px;
    font-size: 17px;
    letter-spacing: 2px;
  }
}

@media (max-width: 360px) {
  .wheel-box {
    width: 240px;
    height: 240px;
  }
}
