/* ─── CSS Variables ─── */
:root {
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --surface: #1e1e2a;
  --surface2: #252535;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f8;
  --text2: #9090aa;
  --text3: #5a5a70;
  --accent: #ff3c6e;
  --accent2: #ff7a3d;
  --pink: #ff3c6e;
  --glow: rgba(255, 60, 110, 0.3);
  --icon-filter: invert(1);
}

[data-theme="light"] {
  --bg: #f5f5fa;
  --bg2: #ebebf2;
  --bg3: #e0e0ea;
  --surface: #ffffff;
  --surface2: #f0f0f8;
  --border: rgba(0, 0, 0, 0.08);
  --text: #0a0a14;
  --text2: #5a5a70;
  --text3: #9090aa;
  --accent: #e8003a;
  --accent2: #f06020;
  --pink: #e8003a;
  --glow: rgba(232, 0, 58, 0.2);
  --icon-filter: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}

/* ─── Noise Texture Overlay ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ─── Layout ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] header {
  background: rgba(245, 245, 250, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ─── Logo ─── */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text2);
}

.logo-main {
  font-family: "Space Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-game {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text3);
  text-transform: uppercase;
  font-family: "DM Sans", sans-serif;
}

/* ─── Header Right: Bike + KM + Theme Toggle ─── */
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.km-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ─── Animated Bike SVG ─── */
.bike-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bike-svg {
  width: 72px;
  height: 72px;
  animation: bikeBounce 2s ease-in-out infinite;
}

@keyframes bikeBounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.km-value {
  font-family: "Space Mono", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.km-label {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Theme Toggle ─── */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface2);
  border-color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle img,
.theme-toggle svg {
  width: 20px;
  height: 20px;
  filter: var(--icon-filter);
  transition: filter var(--transition);
}

/* ─── Admin Badge ─── */
.admin-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  display: none;
}

.admin-badge.visible {
  display: block;
}

.login-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-btn:hover {
  border-color: #9146ff;
  color: #9146ff;
}

.login-btn .twitch-icon {
  width: 16px;
  height: 16px;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: all 0.2s;
  display: none;
}
.logout-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.logout-btn.visible {
  display: block;
}

/* ─── Main Content ─── */
main {
  padding: 60px 0 100px;
}

/* ─── Section Titles ─── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: "Space Mono", monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
}

/* ─── Price List / Info Section ─── */
.info-section {
  margin-bottom: 80px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.price-equation {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.price-pill {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 40px;
  white-space: nowrap;
}

.price-eq-sign {
  font-family: "Space Mono", monospace;
  font-size: 24px;
  color: var(--text3);
}

.price-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.price-result-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Wheel items grid */
.wheel-items-title {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 16px;
}

.wheel-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.wheel-item-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.wheel-item-chip .chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Wheel Section ─── */
.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.wheel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--text);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 4px 12px var(--glow));
  transition: border-top-color var(--transition);
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--surface2),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px var(--glow);
  transition: box-shadow var(--transition);
  cursor: pointer;
}

#wheelCanvas:hover {
  box-shadow:
    0 0 0 4px var(--surface2),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 100px var(--glow);
}

/* Hover idle spin */
#wheelCanvas.idle-hover {
  animation: idleSpin 8s linear infinite;
}

@keyframes idleSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wheel-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 36px;
  text-align: center;
  min-width: 280px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wheel-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 60, 110, 0.05),
    rgba(255, 122, 61, 0.05)
  );
}

.wheel-result-text {
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  position: relative;
}

.wheel-result-text.animate {
  animation: resultPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes resultPop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ─── Spin Button ─── */
.spin-btn {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px var(--glow);
  display: none; /* Admin only by default */
}

.spin-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.spin-btn:hover::before {
  opacity: 1;
}
.spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}
.spin-btn:active {
  transform: translateY(0);
}
.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.spin-btn.visible {
  display: block;
}

/* ─── Admin Panel ─── */
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 60px;
  display: none;
}

.admin-panel.visible {
  display: block;
}

.admin-panel-title {
  font-family: "Space Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-title::before {
  content: "⚙";
  font-size: 20px;
}

.add-item-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text3);
}

.add-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-items-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.admin-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}

.admin-item .remove-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.admin-item .remove-btn:hover {
  color: var(--accent);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .section-title {
    font-size: 24px;
  }
  .price-equation {
    gap: 12px;
  }
  #wheelCanvas {
    width: 280px !important;
    height: 280px !important;
  }
  .km-value {
    font-size: 22px;
  }
}
/* ─── Result Popup ─── */
#resultPopup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#resultPopup.popup-visible {
  opacity: 1;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.popup-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 56px;
  text-align: center;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

#resultPopup.popup-visible .popup-card {
  transform: scale(1);
}

.popup-color-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.popup-emoji {
  font-size: 52px;
  margin-bottom: 12px;
  animation: emojiPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes emojiPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.popup-winner {
  font-family: "Space Mono", monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.popup-close {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 36px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.popup-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Mode Switcher ─── */
.mode-switcher {
  display: none;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.mode-switcher.visible {
  display: flex;
}

.mode-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mode-btn.mode-active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}

/* ─── Case Opening ─── */
.case-section {
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.case-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
}

/* Center marker line */
.case-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--accent);
  z-index: 10;
  box-shadow: 0 0 12px var(--glow);
  border-radius: 2px;
}

/* Triangle top */
.case-marker::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent);
}

/* Triangle bottom */
.case-marker::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid var(--accent);
}

.case-container {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.case-track {
  display: flex;
  gap: 10px;
  padding: 0 calc(50% - 65px);
  will-change: transform;
  transition: none;
}

.case-tile {
  flex-shrink: 0;
  width: 130px;
  height: 140px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  transition: border-color 0.2s;
}

.case-tile-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.case-tile-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.case-tile-selected {
  border-width: 3px;
  box-shadow: 0 0 24px var(--glow);
  transform: scale(1.05);
  background: var(--surface2);
}

/* ─── Cookie Banner ─── */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 0 0 28px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cookieBanner.show {
  transform: translateY(0);
  pointer-events: all;
}

.cookie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 680px;
  width: calc(100% - 40px);
  box-shadow:
    0 -4px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cookie-btn-accept:hover {
  opacity: 0.85;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cookie-btn-decline:hover {
  border-color: var(--text2);
  color: var(--text);
}

@media (max-width: 560px) {
  .cookie-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn-accept,
  .cookie-btn-decline {
    flex: 1;
    text-align: center;
  }
}

/* ─── Datenschutz Page ─── */
.ds-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}

.ds-hero-label {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ds-hero-title {
  font-family: "Space Mono", monospace;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.ds-hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ds-hero-sub {
  font-size: 15px;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.6;
}

.ds-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

/* Sidebar */
.ds-sidebar {
  position: sticky;
  top: 90px;
}

.ds-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}

.ds-sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-sidebar-nav li a {
  display: block;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.ds-sidebar-nav li a:hover {
  color: var(--text);
  background: var(--surface);
  border-left-color: var(--accent);
}

/* Content */
.ds-content {
  min-width: 0;
}

.ds-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.ds-section:last-child {
  border-bottom: none;
}

.ds-section-num {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.ds-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.ds-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.ds-section p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.ds-section a {
  color: var(--accent);
  text-decoration: none;
}

.ds-section a:hover {
  text-decoration: underline;
}

.ds-section ul {
  list-style: none;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-section ul li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.ds-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.ds-inline-code {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  background: var(--bg3);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.ds-address {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin: 12px 0;
}

.ds-address strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.ds-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ds-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text2);
}

.ds-stand {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .ds-layout {
    grid-template-columns: 1fr;
  }
  .ds-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  .ds-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
