/* =====================================================
   irdj.fr — Stylesheet
   Charte : dark + gradients violet/rose (invité) / orange (DJ) / neutre (admin)
   Mobile-first
   ===================================================== */

:root {
  --bg-0: #060312;
  --bg-1: #0a0612;
  --bg-2: #150b22;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-strong: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --text: #f7f5fb;
  --muted: #a8a3bf;
  --muted-2: #6b6781;

  --grad-pink: linear-gradient(135deg, #7c3aed 0%, #ec4899 60%, #f97316 100%);
  --grad-purple: linear-gradient(135deg, #7c3aed, #ec4899);
  --grad-orange: linear-gradient(135deg, #f97316, #ef4444);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #3b82f6);
  --grad-green: linear-gradient(135deg, #10b981, #059669);

  --shadow-soft: 0 8px 30px rgba(124, 58, 237, 0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 15% 10%, rgba(124,58,237,0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 80%, rgba(236,72,153,0.18), transparent 60%),
    radial-gradient(ellipse 500px 300px at 50% 110%, rgba(249,115,22,0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  pointer-events: none;
  z-index: -1;
}
body.variant-dj::before {
  background:
    radial-gradient(ellipse 700px 500px at 20% 10%, rgba(249,115,22,0.25), transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 90%, rgba(239,68,68,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-0), #1a0d05);
}
body.variant-admin::before {
  background:
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(15,23,42,0.6), transparent 60%),
    linear-gradient(180deg, var(--bg-0), #0a0a14);
}

a { color: #c084fc; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .85; }

img { max-width: 100%; height: auto; display: block; }

/* ----------- HEADER / FOOTER ----------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; font-size: 1.3em; letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-purple);
  box-shadow: var(--shadow-soft);
  font-size: 1.1em;
}
.brand-name { background: var(--grad-pink); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.variant-dj .brand-name { background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 16px; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); }

.site-main { padding: 24px 20px 64px; max-width: 1100px; margin: 0 auto; }
.site-footer {
  text-align: center; padding: 20px; color: var(--muted-2);
  font-size: 0.85em; border-top: 1px solid var(--border);
}

/* ----------- BUTTONS ----------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95em; cursor: pointer;
  border: 1px solid transparent;
  background: transparent; color: var(--text);
  transition: transform .15s, box-shadow .2s, opacity .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad-purple); color: white; box-shadow: var(--shadow-soft); }
.btn-secondary { background: rgba(255,255,255,0.06); border-color: var(--border); }
.btn-orange { background: var(--grad-orange); color: white; box-shadow: 0 6px 24px rgba(249,115,22,0.25); }
.btn-boost { background: var(--grad-orange); color: white; }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-danger { background: rgba(239,68,68,0.15); color: #fda4af; border-color: rgba(239,68,68,0.3); }
.btn-block { width: 100%; }
.btn-mini { padding: 6px 12px; font-size: 0.82em; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); }

/* ----------- HERO (home) ----------- */
.hero { padding: 60px 16px; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.85em; color: #d8b4fe;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.5em, 8vw, 5em);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 24px;
}
.grad-1 { background: var(--grad-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-2 { background: var(--grad-orange); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); margin-bottom: 32px; font-size: 1.1em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------- FEATURES ----------- */
.features { padding: 40px 0; }
.section-title { text-align: center; font-size: 1.8em; margin-bottom: 30px; }
.features-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 24px; border-radius: var(--radius); transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 14px;
  font-size: 1.4em;
}
.feature-card h3 { font-size: 1.1em; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92em; }

.cta { text-align: center; padding: 40px 16px; }
.cta h2 { margin-bottom: 10px; }
.event-name { font-size: 1.2em; color: #f9a8d4; margin-bottom: 6px; }
.muted { color: var(--muted); }
.muted.small { font-size: 0.85em; }

/* ----------- AUTH CARDS ----------- */
.auth-card {
  max-width: 420px; margin: 32px auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}
.auth-card h1 {
  font-size: 1.8em; text-align: center; margin-bottom: 4px; letter-spacing: -0.01em;
}
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 18px;
  font-size: 1.6em;
}
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: block; }
.auth-card label > span { font-size: 0.85em; color: var(--muted); margin-bottom: 6px; display: block; }
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="date"],
.auth-card input[type="search"],
.auth-card textarea,
.auth-card select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 1em;
  transition: border-color .2s, background .2s;
}
.auth-card input:focus, .auth-card textarea:focus, .auth-card select:focus {
  outline: none; border-color: #c084fc; background: rgba(0,0,0,0.4);
}
.auth-hint { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.9em; }
.price-tag {
  text-align: center; font-size: 2em; font-weight: 800; margin: 16px 0;
  background: var(--grad-purple);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------- FLASH ----------- */
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  border-left: 4px solid;
}
.flash-success { background: rgba(16,185,129,0.1); border-color: #10b981; color: #6ee7b7; }
.flash-error   { background: rgba(239,68,68,0.1); border-color: #ef4444; color: #fda4af; }
.flash-warn    { background: rgba(245,158,11,0.1); border-color: #f59e0b; color: #fcd34d; }

/* ----------- GUEST HOME ----------- */
.guest-hero { padding: 20px 0 16px; }
.event-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  font-size: 0.85em; margin-bottom: 16px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 0 0 rgba(236,72,153,0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(236,72,153,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(236,72,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); }
}
.venue { color: var(--muted); }
.guest-hero h1 { font-size: 1.6em; margin-bottom: 4px; }

/* ----------- SEARCH ----------- */
.search-section { margin: 24px 0; }
.search-box {
  position: relative;
  background: var(--bg-card-strong); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 4px 4px 16px;
  display: flex; align-items: center;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: #c084fc; box-shadow: var(--shadow-soft); }
.search-icon { color: var(--muted); font-size: 1.1em; }
.search-box input {
  flex: 1; background: transparent; border: 0; padding: 12px 14px;
  color: var(--text); font-size: 1em; outline: none;
}
.search-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border); border-top-color: #c084fc;
  border-radius: 50%; animation: spin 0.8s linear infinite;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.search-results { margin-top: 16px; display: grid; gap: 10px; }

.song-card {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: background .15s;
}
.song-card:hover { background: var(--bg-card-strong); }
.song-cover img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.cover-placeholder {
  width: 56px; height: 56px; border-radius: 8px;
  background: var(--grad-purple); display: grid; place-items: center;
}
.song-title { font-weight: 600; }
.song-artist { color: var(--muted); font-size: 0.85em; }
.song-source { font-size: 0.75em; color: var(--muted-2); }
.song-pick { padding: 8px 14px; font-size: 0.85em; }

/* ----------- QUEUE ----------- */
.queue-section { margin-top: 32px; }
.queue-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.participants-badge {
  font-size: 0.85em; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
}
.queue-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.queue-empty {
  text-align: center; padding: 32px 16px;
  color: var(--muted); background: var(--bg-card); border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.queue-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: background .15s;
}
.queue-item.boosted {
  border-color: rgba(249,115,22,0.5);
  background: linear-gradient(90deg, rgba(249,115,22,0.08), rgba(255,255,255,0.04));
  box-shadow: 0 4px 20px rgba(249,115,22,0.12);
}
.queue-item.accepted { border-color: rgba(16,185,129,0.5); }
.qi-cover { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.qi-cover-fallback { background: var(--grad-purple); display: grid; place-items: center; font-size: 1.4em; }
.qi-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.qi-artist { color: var(--muted); font-size: 0.85em; }
.qi-dedication { font-style: italic; color: #d8b4fe; font-size: 0.85em; margin-top: 4px; }
.qi-meta { display: flex; gap: 8px; align-items: center; font-size: 0.78em; margin-top: 4px; flex-wrap: wrap; }
.status {
  padding: 2px 8px; border-radius: 6px; font-size: 0.75em; font-weight: 600;
}
.status.pending  { background: rgba(245,158,11,0.15); color: #fcd34d; }
.status.accepted { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.boost-badge {
  background: var(--grad-orange);
  color: white; padding: 2px 8px; border-radius: 6px;
  font-size: 0.7em; font-weight: 700; letter-spacing: 0.04em;
}
.mine-badge {
  background: rgba(124,58,237,0.25); color: #d8b4fe;
  padding: 1px 6px; border-radius: 4px; font-size: 0.75em; font-weight: 600;
}

.vote-btn {
  display: grid; grid-template-rows: auto auto; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px;
  padding: 8px 12px; cursor: pointer;
  transition: all .15s;
  min-width: 52px;
}
.vote-btn:hover:not(:disabled) { background: rgba(124,58,237,0.2); border-color: #c084fc; }
.vote-btn.voted { background: var(--grad-purple); border-color: transparent; color: white; }
.vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vote-btn span:first-child { font-size: 0.85em; }
.votes-count { font-weight: 700; font-size: 0.95em; }

/* ----------- MODAL ----------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  max-width: 480px; width: 100%;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp .2s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.6em; cursor: pointer; line-height: 1;
}
.modal-cover {
  width: 120px; height: 120px; margin: 0 auto 16px;
  border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--grad-purple); font-size: 2em;
}
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-title { text-align: center; font-size: 1.2em; margin-bottom: 4px; }
.modal-artist { text-align: center; color: var(--muted); margin-bottom: 16px; }
.modal-dedication {
  width: 100%; padding: 12px; min-height: 70px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit; resize: vertical;
  margin-bottom: 16px;
}
.modal-dedication:focus { outline: none; border-color: #c084fc; }
.modal-actions { display: grid; gap: 10px; }

/* Boost tiers dans le modal */
.boost-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.boost-headline {
  font-size: 1em; font-weight: 700; text-align: center; margin-bottom: 4px;
  background: var(--grad-orange);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }
.boost-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 14px 0 10px;
}
.boost-tier {
  display: grid; place-items: center; gap: 4px;
  padding: 14px 8px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: pointer; transition: all .15s;
  color: var(--text);
}
.boost-tier:hover:not(:disabled) {
  background: rgba(249,115,22,0.15);
  border-color: rgba(249,115,22,0.5);
  transform: translateY(-2px);
}
.boost-tier:disabled { opacity: 0.5; cursor: wait; }
.boost-tier.featured {
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(239,68,68,0.12));
  border-color: rgba(249,115,22,0.4);
}
.boost-tier.loading { background: var(--grad-orange); color: white; }
.bt-icon { font-size: 1.1em; }
.bt-price { font-weight: 800; font-size: 1.1em; }
.bt-label { font-size: 0.72em; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.boost-tier.featured .bt-label,
.boost-tier.loading .bt-label { color: rgba(255,255,255,0.85); }

/* ----------- TIP SECTION ----------- */
.tip-section {
  text-align: center; margin: 32px 0; padding: 28px 24px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.08));
  border-radius: var(--radius); border: 1px solid rgba(124,58,237,0.25);
}
.tip-icon { font-size: 2.2em; margin-bottom: 8px; }
.tip-section h3 { font-size: 1.2em; margin-bottom: 4px; }
.tip-section p { margin-bottom: 14px; }
.tip-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.tip-presets label {
  cursor: pointer;
}
.tip-presets input { display: none; }
.tip-presets label span {
  display: block; padding: 12px; text-align: center; font-weight: 700;
  background: rgba(255,255,255,0.04); border: 2px solid var(--border);
  border-radius: var(--radius-sm); transition: all .15s;
}
.tip-presets input:checked + span { background: var(--grad-purple); border-color: transparent; color: white; }

/* ----------- TOASTS ----------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 4px solid #c084fc;
  padding: 12px 18px; border-radius: var(--radius-sm);
  z-index: 200; box-shadow: var(--shadow-card);
  animation: toastIn .2s ease-out;
}
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warn { border-left-color: #f59e0b; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); transition: all .4s; }
@keyframes toastIn { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ============================================
   DJ CONSOLE
   ============================================ */
.dj-console-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.dj-console-head h1 { font-size: 1.6em; }
.filters { display: flex; gap: 8px; }
.tab {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--muted); padding: 8px 14px; border-radius: 999px;
  font-size: 0.88em; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tab.active {
  background: var(--grad-orange); color: white; border-color: transparent;
}
.dj-queue { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dj-empty { text-align: center; padding: 32px; color: var(--muted); }
.dj-item {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.dj-item.boosted {
  border-color: rgba(249,115,22,0.6);
  background: linear-gradient(90deg, rgba(249,115,22,0.12), rgba(255,255,255,0.04));
}
.dj-item.s-accepted { border-color: rgba(16,185,129,0.4); }
.dj-item.s-refused, .dj-item.s-played { opacity: 0.6; }
.dj-cover { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.dj-cover-fallback { background: var(--grad-purple); display: grid; place-items: center; font-size: 1.5em; }
.dj-title { font-weight: 700; font-size: 1.05em; display: flex; align-items: center; gap: 8px; }
.dj-artist { color: var(--muted); font-size: 0.9em; margin-top: 2px; }
.dj-dedication { font-style: italic; color: #fdba74; font-size: 0.9em; margin-top: 4px; }
.dj-meta { display: flex; gap: 12px; align-items: center; font-size: 0.8em; margin-top: 6px; flex-wrap: wrap; }
.votes { color: #c084fc; font-weight: 700; }
.boost-pill {
  background: var(--grad-orange); color: white;
  font-size: 0.7em; padding: 2px 8px; border-radius: 6px; font-weight: 700;
}
.ext-link { font-size: 0.8em; color: #c084fc; margin-left: 8px; }
.dj-actions { display: flex; flex-direction: column; gap: 6px; }
.action {
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 0; cursor: pointer; font-weight: 600; font-size: 0.85em;
  transition: transform .1s, opacity .15s;
}
.action:hover { transform: translateY(-1px); }
.action.accept { background: var(--grad-green); color: white; }
.action.refuse { background: rgba(239,68,68,0.15); color: #fda4af; border: 1px solid rgba(239,68,68,0.3); }
.action.played { background: var(--grad-cyan); color: white; }
.action.ghost  { background: rgba(255,255,255,0.06); color: var(--muted); }
.pending-action { opacity: 0.5; pointer-events: none; }

/* ============================================
   ADMIN
   ============================================ */
.dash-head { padding: 8px 0 24px; }
.dash-head h1 { font-size: 1.7em; margin-bottom: 4px; }
.dash-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid .card-large { grid-column: 1 / -1; }
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h2 { font-size: 1.15em; margin-bottom: 14px; }

.active-event { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) {
  .active-event { grid-template-columns: 1fr 260px; }
}
.event-name-big { font-size: 1.3em; font-weight: 700; }
.event-url { margin: 14px 0; word-break: break-all; font-size: 0.9em; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.qr-block { text-align: center; padding: 16px; background: white; border-radius: var(--radius); }
.qr-block #qr-canvas { width: 100%; height: auto; max-width: 220px; }
.qr-label { color: #0a0612; font-weight: 600; margin: 8px 0; }
.qr-block .btn { color: white; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { text-align: center; padding: 14px 8px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }
.stat-num { font-size: 1.5em; font-weight: 800; }
.stat-lbl { color: var(--muted); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.05em; }

.simple-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.simple-list li { padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.status-dot.on { background: #10b981; box-shadow: 0 0 8px #10b981; }
.status-dot.off { background: #475569; }

.form-grid {
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-actions { grid-column: 1 / -1; }
}
.form-grid label { display: block; }
.form-grid label > span { display: block; font-size: 0.85em; color: var(--muted); margin-bottom: 6px; }
.form-grid label.check {
  display: flex; gap: 10px; align-items: center; padding: 8px 0;
}
.form-grid input[type="text"],
.form-grid input[type="date"],
.form-grid input[type="email"],
.form-grid input[type="password"],
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95em;
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.92em;
}
.data-table th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 600; }
.data-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions-cell details summary { list-style: none; }
.actions-cell details summary::-webkit-details-marker { display: none; }
.reset-form { display: flex; gap: 6px; margin-top: 6px; }
.reset-form input { padding: 6px 8px; flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.78em; font-weight: 600; }
.badge-on { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-off { background: rgba(107,114,128,0.15); color: #cbd5e1; }

/* ----------- RESPONSIVE TWEAKS ----------- */
@media (max-width: 520px) {
  .site-header { padding: 14px 18px; }
  .site-nav { gap: 10px; font-size: 0.85em; }
  .hero { padding: 32px 8px; }
  .hero-title { font-size: 2.5em; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { width: 100%; overflow-x: auto; }
  .dj-item { grid-template-columns: 48px 1fr; }
  .dj-item .dj-actions { grid-column: 1 / -1; flex-direction: row; }
  .dj-cover { width: 48px; height: 48px; }
}
