/* ── Hero ─────────────────────────────────────────────────── */
.overview-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #1e293b;
  margin-bottom: 24px;
}
.overview-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.overview-hero .hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.overview-hero .hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}
.overview-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

/* ── Status badge ─────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  width: fit-content;
}

.register-cta-card {
  margin: -6px 0 18px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.register-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.register-cta-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -.02em;
}
.register-cta-subtitle {
  font-size: 13px;
  color: #334155;
}
.register-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}
.register-cta-btn:hover {
  background: #1d4ed8;
}

/* ── Stats grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card .stat-icon { font-size: 20px; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 22px; font-weight: 800; color: #1e293b; letter-spacing: -.02em; }
.stat-card .stat-label { font-size: 12px; color: #64748b; font-weight: 500; }

/* ── Info card ────────────────────────────────────────────── */
.info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.info-card h3 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .info-icon { font-size: 15px; width: 20px; flex-shrink: 0; }
.info-row .info-label { color: #64748b; width: 130px; flex-shrink: 0; font-size: 13px; }
.info-row .info-value { color: #1e293b; font-weight: 500; }

/* ── Admins ───────────────────────────────────────────────── */
.admin-stack { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-chip {
  display: flex; align-items: center; gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  font-size: 13px;
  color: #334155;
}
.admin-chip img,
.admin-chip .chip-init {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.admin-chip .chip-init {
  background: #94a3b8;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Two-column grid ──────────────────────────────────────── */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── Registration card ────────────────────────────────────── */
.reg-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background: #f8fafc;
  color: #334155;
  box-sizing: border-box;
  font-family: inherit;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.action-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.action-btn.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.action-btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

#qrcode { display: inline-block; line-height: 0; }
#qrcode canvas,
#qrcode img {
  border-radius: 8px;
  width: 140px !important;
  height: 140px !important;
  max-width: none;
  display: block;
}

/* ── Quick links ──────────────────────────────────────────── */
.quick-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
}
.quick-links::-webkit-scrollbar { display: none; }
.quick-links-top {
  margin-top: -10px;
}
.quick-link {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.quick-link:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37,99,235,.08);
  transform: translateY(-1px);
}
.quick-link .ql-icon {
  font-size: 14px;
  opacity: .8;
}

.admin-status-card {
  margin: -2px 0 18px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}
.admin-status-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.admin-status-body-phase {
  grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr) auto;
}
.admin-status-phase-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.admin-status-phase-panel span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-status-phase-panel strong {
  color: #1d4ed8;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.admin-status-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.admin-status-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #64748b;
}
.admin-status-main strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}
.admin-status-main small {
  color: #64748b;
  font-size: 13px;
}
.admin-status-winner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-status-winner img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: 0 0 24px;
}
.admin-status-winner strong {
  font-size: 15px;
}
.admin-status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.admin-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.admin-status-btn:hover {
  background: #dbeafe;
}
.admin-status-btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}
.admin-status-btn-primary:hover {
  background: #1d4ed8;
}
.admin-status-btn-muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}
.admin-status-btn:disabled {
  opacity: .65;
  cursor: wait;
}
.admin-status-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.admin-status-note.is-success {
  color: #15803d;
}
.admin-status-note.is-error {
  color: #dc2626;
}

/* ── Copy notice ──────────────────────────────────────────── */
.copy-notice {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .details-grid { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .quick-links  { gap: 8px; margin-right: -2px; }
  .quick-link   { padding: 8px 13px; font-size: 12px; }
  .overview-hero { height: 180px; }
  .info-row .info-label { width: 90px; }
  .register-cta-card {
    flex-direction: column;
    align-items: stretch;
  }
  .register-cta-btn {
    width: 100%;
  }
  .admin-status-body {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }
  .admin-status-phase-panel {
    padding: 9px 10px;
  }
  .admin-status-actions,
  .admin-status-btn {
    width: 100%;
  }
  .admin-status-actions {
    justify-content: stretch;
  }
}
