:root {
  --bg: #0f1724;
  --accent: #C384FF;
  --muted: #94a3b8;
  --card: #0b1220;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --glass-2: rgba(255, 255, 255, 0.03);
  font-family: "Rubik", system-ui, Segoe UI, Arial;
}

.demo-wrap {
  max-width: 900px;
  width: 100%;
}

p.lead {
  color: var(--muted);
  margin: 0 0 2rem 0;
}

/* Cookie buddy button */
.cookie-buddy {
  position: fixed;
  right: 100px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  background: linear-gradient(145deg, var(--accent), #E3C5FF);
  border: none;
  padding: 10px 14px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(6px);
}
.cookie-btn .emoji {
  font-size: 20px;
}
.cookie-btn .label {
  font-weight: 600;
  color: #071021;
    font-size: 14px;
}
.cookie-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 360px;
  background: linear-gradient(180deg, var(--card), #071225);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
  z-index: 19;
  transform-origin: bottom right;
  display: none;
}
.cookie-panel.visible {
  display: block;
}
.cookie-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.cookie-panel h3 {
  margin: 0;
  font-size: 18px;
}
.cookie-panel p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.categories {
  display: grid;
  gap: 10px;
}
.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.cat .meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cat .meta strong {
  font-size: 14px;
}
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  background: #1f2b3a;
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
}
.toggle .dot {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fff);
  box-shadow: 0 3px 8px rgba(2, 6, 23, 0.5);
  transition: all 0.22s;
}
.toggle.on {
  background: linear-gradient(90deg, #78ffd6, #69e3ff);
}
.toggle.on .dot {
  left: 23px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.btn.primary {
  background: linear-gradient(90deg, #5eead4, #60a5fa);
  color: #052226;
}
.small {
  font-size: 13px;
  padding: 8px 10px;
}

.cookie-footer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

#confetti {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

@media (max-width: 480px) {
  .cookie-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 72px;
  }
  .cookie-buddy {
    right: 100px;
    bottom: 12px;
  }
}