:root {
  /* Palette reprise du site djkob.fr */
  --bg: #06060f;
  --bg-2: #0d0b18;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #ece9f7;
  --muted: #9a93b4;
  --violet: #a855f7;
  --purple: #9333ea;
  --pink: #db2777;
  --magenta: #ec4899;
  --cyan: #22d3ee;
  --cyan-light: #67e8f9;
  --accent: #a855f7;
  --accent-2: #db2777;
  --accent-grad: linear-gradient(to right bottom, #9333ea, #db2777);
  --title-grad: linear-gradient(135deg, #ffffff 15%, #a855f7 50%, #22d3ee 85%);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --radius: 18px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at 15% -5%, rgba(147, 51, 234, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 88% 105%, rgba(34, 211, 238, 0.13) 0%, transparent 45%),
    var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding: 22px 16px 60px;
}

.wrap { max-width: 460px; margin: 0 auto; }

/* Bannière (visuel WhatsApp) — bords fondus dans le fond */
.banner {
  display: block; width: 100%; height: auto;
  margin-bottom: 14px;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.wrap-wide { max-width: 760px; margin: 0 auto; }

/* Header */
.brand { text-align: center; margin-bottom: 22px; }
.brand .disc { font-size: 46px; display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand .logo {
  display: block; margin: 10px auto 0;
  width: 220px; max-width: 72%; height: auto;
  filter: drop-shadow(0 6px 24px rgba(168, 85, 247, 0.35));
}
.brand h1 {
  font-family: "Righteous", cursive;
  font-size: 40px; font-weight: 400; letter-spacing: 0.5px; margin-top: 8px;
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.brand .sub {
  color: var(--cyan-light);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 3px;
}
.brand h1.ask-title { font-size: 30px; margin-top: 6px; }

/* Motif égaliseur (repris du site) */
.equalizer {
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  height: 30px; margin-top: 16px;
}
.equalizer span {
  width: 4px; border-radius: 4px;
  background: linear-gradient(to top, var(--magenta), var(--cyan));
  animation: eq 1.1s ease-in-out infinite;
}
.equalizer span:nth-child(1) { animation-delay: -0.9s; }
.equalizer span:nth-child(2) { animation-delay: -0.2s; }
.equalizer span:nth-child(3) { animation-delay: -0.6s; }
.equalizer span:nth-child(4) { animation-delay: -0.1s; }
.equalizer span:nth-child(5) { animation-delay: -0.75s; }
.equalizer span:nth-child(6) { animation-delay: -0.4s; }
.equalizer span:nth-child(7) { animation-delay: -0.15s; }
.equalizer span:nth-child(8) { animation-delay: -0.55s; }
.equalizer span:nth-child(9) { animation-delay: -0.3s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .equalizer span { animation: none; height: 16px; }
  .brand .disc { animation: none; }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

/* Funny disclaimer */
.disclaimer {
  background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(236,72,153,0.14));
  border: 1px solid rgba(236,72,153,0.3);
}
.disclaimer .emoji { font-size: 30px; }
.disclaimer h2 { font-size: 17px; margin: 8px 0 6px; }
.disclaimer p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.disclaimer p + p { margin-top: 8px; }

/* Form */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input, textarea {
  width: 100%;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 62px; }

.btn {
  display: block; width: 100%;
  background: var(--accent-grad);
  color: #fff; border: none; border-radius: 999px;
  padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 18px;
  box-shadow: 0 8px 28px rgba(219, 39, 119, 0.28);
  transition: transform .1s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent; border: 1px solid var(--card-border); color: var(--text);
}
/* CTA devis — bouton plein dégradé (options 3 & 4) */
.cta-grad {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--accent-grad); color: #fff; border: none; border-radius: 999px;
  padding: 16px; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.42);
  transition: transform .1s;
}
.cta-grad:active { transform: scale(0.98); }

/* Option 4 : CTA après l'envoi */
#postSendCta { margin-bottom: 16px; animation: ctaPop .35s ease; }
@keyframes ctaPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Option 3 : encart offre */
.offer-card {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.17), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius); padding: 22px; text-align: center; margin-bottom: 16px;
}
.offer-emoji { font-size: 28px; display: block; margin-bottom: 6px; }
.offer-title { font-family: "Righteous", cursive; font-size: 20px; margin-bottom: 6px; }
.offer-text { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }

/* Counter pill */
.counter { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.counter b { color: var(--text); }

/* Status banners */
.banner { border-radius: 12px; padding: 14px; font-size: 14px; text-align: center; font-weight: 600; margin-bottom: 16px; }
.banner.closed { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.banner.ok { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35); color: #86efac; }
.banner.warn { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35); color: #fcd34d; }

.hidden { display: none !important; }

/* My requests list */
.myreq { margin-top: 4px; }
.myreq-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,0.25); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14px;
}
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.tag.pending { background: rgba(245,158,11,0.2); color: var(--amber); }
.tag.accepted { background: rgba(34,197,94,0.2); color: var(--green); }
.tag.rejected { background: rgba(239,68,68,0.2); color: var(--red); }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }

/* ============ DJ PANEL ============ */
.dj-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dj-header h1 { font-family: "Righteous", cursive; font-size: 26px; font-weight: 400; letter-spacing: 0.5px; }
.notif-btn {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--card-border);
  font-size: 22px; cursor: pointer; transition: background .15s, border-color .15s;
}
.notif-btn.on {
  background: rgba(34, 211, 238, 0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.toggle-row .status-label { font-weight: 700; font-size: 16px; }
.switch { position: relative; width: 62px; height: 34px; flex-shrink: 0; }
.switch input { display: none; }
.slider {
  position: absolute; inset: 0; background: var(--red); border-radius: 999px; transition: .25s; cursor: pointer;
}
.slider::before {
  content: ""; position: absolute; height: 26px; width: 26px; left: 4px; top: 4px;
  background: #fff; border-radius: 50%; transition: .25s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(28px); }

/* Stepper (limite par invité) */
.stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.step-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.35); color: var(--text); font-size: 22px; font-weight: 700;
  cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.step-btn:active { background: var(--accent); }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-value { min-width: 34px; text-align: center; font-size: 24px; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.stat .n { font-size: 22px; font-weight: 800; }
.stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { flex: 1; background: var(--card); border: 1px solid var(--card-border); color: var(--muted);
  padding: 11px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; }
.tab.active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.req-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 15px; margin-bottom: 12px; }
.req-card.accepted { border-color: rgba(34,197,94,0.4); }
.req-card.rejected { border-color: rgba(239,68,68,0.4); opacity: .6; }
.req-song { font-size: 17px; font-weight: 700; }
.req-artist { color: var(--muted); font-size: 14px; }
.req-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.req-msg { font-size: 13px; margin-top: 8px; padding: 8px 10px; background: rgba(0,0,0,0.25); border-radius: 8px; font-style: italic; }
.req-actions { display: flex; gap: 8px; margin-top: 12px; }
.req-actions button { flex: 1; border: none; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-accept { background: rgba(34,197,94,0.2); color: var(--green); }
.btn-accept.on { background: var(--green); color: #fff; }
.btn-reject { background: rgba(239,68,68,0.2); color: var(--red); }
.btn-reject.on { background: var(--red); color: #fff; }

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

/* QR */
.qr-box { text-align: center; }
.qr-box img { width: 100%; max-width: 280px; border-radius: 14px; background: #fff; padding: 10px; }
.qr-url { font-size: 13px; color: var(--muted); margin-top: 10px; word-break: break-all; }

/* Blacklist */
.bl-add { display: flex; gap: 8px; margin-bottom: 14px; }
.bl-add input { flex: 1; }
.bl-add button { width: auto; padding: 0 18px; margin: 0; }
.bl-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.25);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.bl-item button { background: none; border: none; color: var(--red); font-size: 18px; cursor: pointer; }

/* Login gate */
.gate { max-width: 360px; margin: 60px auto; }
