/* ============================================================
   Airdrop face — styles (vue publique interactive)
   Préfixe : .zh-airdrop-* et .zh-adf-*  (scopé sous .zh-airdrop-root)
   Porté depuis zic_admin/static/css/admin-drop-fan.css avec adaptations
   pour la landing publique (selector, états CTA, auth gate, modales).
   ============================================================ */

.zh-airdrop-root[hidden] {
  display: none !important;
}

.zh-airdrop-root {
  --zh-ad-primary: #8d22ff;
  --zh-ad-primary-dk: #6d28d9;
  --zh-ad-text: #1f1340;
  --zh-ad-text-soft: #6b7280;
  --zh-ad-text-mute: rgba(31, 19, 64, 0.55);
  --zh-ad-border: rgba(31, 19, 64, 0.08);
  --zh-ad-border-soft: rgba(109, 40, 217, 0.06);
  --zh-ad-bg: #ffffff;
  --zh-ad-bg-soft: #f0ebff;
  --zh-ad-bg-1: #f6f3ff;
  --zh-ad-orange: #f97316;
  --zh-ad-green: #16a34a;
  --zh-ad-red: #dc2626;
  --zh-ad-muted: #94a3b8;
  --zh-ad-radius-sm: 11px;
  --zh-ad-radius-md: 14px;
  --zh-ad-radius-lg: 24px;
  --zh-ad-shadow: 0 20px 50px rgba(109, 40, 217, 0.10);

  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 4px 4px 12px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--zh-ad-text);
  box-sizing: border-box;
}

.zh-airdrop-root *,
.zh-airdrop-root *::before,
.zh-airdrop-root *::after {
  box-sizing: inherit;
}

.zh-pp-card.zh-pp-card--airdrop-active {
  padding-bottom: 24px;
}

/* ─── Selector bar (dropdown choix du drop) ───────────────────────── */

.zh-airdrop-selector-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.zh-airdrop-selector-head {
  flex: 1 1 220px;
  min-width: 0;
}

.zh-airdrop-title {
  margin: 0 0 4px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--zh-ad-text);
}

.zh-airdrop-count {
  margin: 0;
  font-size: 13px;
  color: var(--zh-ad-text-soft);
}

.zh-airdrop-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
  flex: 0 1 320px;
}

.zh-airdrop-selector-label {
  font: 700 11px/1 "DM Sans", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--zh-ad-text-mute);
}

/* Avatar circulaire (sélection courante + options du panel). */
.zh-airdrop-selector-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #8d22ff 0%, #6d28d9 60%, #1f1840 100%);
  box-shadow: 0 1px 3px rgba(31, 19, 64, 0.15);
}

.zh-airdrop-selector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zh-airdrop-selector-thumb--sm {
  width: 30px;
  height: 30px;
}

/* ─── Combo dropdown custom (bouton + panel d'options) ─── */

.zh-airdrop-combo {
  position: relative;
}

.zh-airdrop-combo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--zh-ad-bg);
  border: 1px solid var(--zh-ad-border);
  border-radius: var(--zh-ad-radius-md);
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(31, 19, 64, 0.05);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--zh-ad-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zh-airdrop-combo-btn:hover {
  border-color: rgba(109, 40, 217, 0.3);
}

.zh-airdrop-combo-btn:focus-visible,
.zh-airdrop-combo[data-open="true"] .zh-airdrop-combo-btn {
  outline: none;
  border-color: rgba(109, 40, 217, 0.4);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.zh-airdrop-combo-name {
  flex: 1;
  min-width: 0;
  font: 600 14px/1.2 "DM Sans", sans-serif;
  color: var(--zh-ad-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zh-airdrop-combo-chevron {
  flex-shrink: 0;
  color: var(--zh-ad-text-mute);
  transition: transform 0.18s ease;
}

.zh-airdrop-combo[data-open="true"] .zh-airdrop-combo-chevron {
  transform: rotate(180deg);
}

.zh-airdrop-combo-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--zh-ad-border);
  border-radius: var(--zh-ad-radius-md);
  box-shadow: 0 20px 40px rgba(31, 19, 64, 0.18);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: rgba(141, 34, 255, 0.35) transparent;
}

.zh-airdrop-combo-panel[hidden] {
  display: none;
}

.zh-airdrop-combo-panel::-webkit-scrollbar {
  width: 8px;
}

.zh-airdrop-combo-panel::-webkit-scrollbar-thumb {
  background: rgba(141, 34, 255, 0.35);
  border-radius: 999px;
}

.zh-airdrop-combo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.zh-airdrop-combo-option:hover,
.zh-airdrop-combo-option:focus-visible,
.zh-airdrop-combo-option.is-highlighted {
  background: var(--zh-ad-bg-1);
  outline: none;
}

.zh-airdrop-combo-option.is-selected {
  background: rgba(141, 34, 255, 0.08);
}

.zh-airdrop-combo-option-name {
  flex: 1;
  min-width: 0;
  font: 600 13.5px/1.3 "DM Sans", sans-serif;
  color: var(--zh-ad-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zh-airdrop-combo-option-check {
  flex-shrink: 0;
  color: var(--zh-ad-primary-dk);
}

/* ─── Detail container (Hero + Grid) ──────────────────────────────── */

.zh-airdrop-detail {
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.08);
  border-radius: var(--zh-ad-radius-lg);
  overflow: hidden;
  box-shadow: var(--zh-ad-shadow);
}

.zh-airdrop-detail[aria-busy="true"] {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.zh-adf-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 36px 44px;
  background: linear-gradient(150deg, #1A0A3D 0%, #6D28D9 60%, #A78BF5 100%);
}

.zh-adf-hero-vinyl {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-adf-hero-vinyl-inner {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-adf-hero-vinyl-center {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.zh-adf-hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    ellipse at 30% 70%,
    rgba(249, 115, 22, 0.4),
    transparent 60%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.zh-adf-hero-content {
  position: relative;
  color: #fff;
  max-width: 600px;
  z-index: 1;
}

.zh-adf-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font: 700 11px/1 "DM Sans", sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.zh-adf-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zh-ad-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}

.zh-adf-hero-pill--paused .zh-adf-hero-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25);
}

.zh-adf-hero-pill--ended .zh-adf-hero-dot {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.zh-adf-hero-title {
  font: 800 clamp(28px, 4.5vw, 48px)/1 "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -1.2px;
  margin: 0 0 10px;
}

.zh-adf-hero-sub {
  font: 400 16px/1.45 "DM Sans", sans-serif;
  opacity: 0.85;
  margin: 0;
  max-width: 560px;
}

/* ─── Grid 2 cols ─────────────────────────────────────────────────── */

.zh-adf-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.zh-adf-col {
  padding: 30px 32px 36px;
}

.zh-adf-col--left {
  border-right: 1px solid var(--zh-ad-border-soft);
}

.zh-adf-col--right {
  background: var(--zh-ad-bg-soft);
}

/* ─── Auth gate (utilisateur non connecté) ───────────────────────── */

.zh-adf-auth-gate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--zh-ad-primary), var(--zh-ad-primary-dk));
  color: #fff;
  border-radius: var(--zh-ad-radius-md);
  flex-wrap: wrap;
}

.zh-adf-auth-gate-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zh-adf-auth-gate-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.zh-adf-auth-gate-body {
  flex: 1;
  min-width: 0;
}

.zh-adf-auth-gate-title {
  font: 700 14px/1.2 "Space Grotesk", "DM Sans", sans-serif;
  margin: 0 0 2px;
}

.zh-adf-auth-gate-sub {
  font: 400 12.5px/1.4 "DM Sans", sans-serif;
  opacity: 0.85;
  margin: 0;
}

.zh-adf-auth-gate-actions {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.zh-adf-auth-btn {
  padding: 9px 16px;
  border-radius: 9px;
  font: 700 13px/1 "DM Sans", sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.zh-adf-auth-btn--login {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.zh-adf-auth-btn--login:hover {
  background: rgba(255, 255, 255, 0.25);
}

.zh-adf-auth-btn--signup {
  background: #fff;
  color: var(--zh-ad-text);
}

.zh-adf-auth-btn--signup:hover {
  transform: translateY(-1px);
}

/* ─── Bandeau drop pausé / terminé ────────────────────────────────── */

.zh-adf-drop-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  font: 600 13px/1.4 "DM Sans", sans-serif;
}

.zh-adf-drop-banner--paused {
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.zh-adf-drop-banner--ended {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ─── Missions ────────────────────────────────────────────────────── */

.zh-adf-missions-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.zh-adf-h2 {
  font: 800 20px/1.1 "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.4px;
  margin: 0;
}

.zh-adf-h2-sm {
  font: 800 16px/1.1 "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.3px;
  margin: 0;
}

.zh-adf-missions-progress {
  font: 500 12.5px/1 "DM Sans", sans-serif;
  color: var(--zh-ad-text-mute);
  white-space: nowrap;
}

.zh-adf-missions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zh-adf-mission {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.13);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zh-adf-mission:hover {
  border-color: rgba(109, 40, 217, 0.3);
}

.zh-adf-mission-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--zh-ad-primary), var(--zh-ad-primary-dk));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 15px "Space Grotesk", "DM Sans", sans-serif;
  text-transform: uppercase;
}

/* Couleurs par plateforme */
.zh-adf-mission-badge[data-platform="youtube"] { background: linear-gradient(135deg, #ff4d4d, #cc0000); }
.zh-adf-mission-badge[data-platform="x"] { background: linear-gradient(135deg, #1f1340, #000); }
.zh-adf-mission-badge[data-platform="bluesky"] { background: linear-gradient(135deg, #1d9bf0, #0a78c8); }
.zh-adf-mission-badge[data-platform="instagram"] { background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4); }
.zh-adf-mission-badge[data-platform="facebook"] { background: linear-gradient(135deg, #1877f2, #0a4ec7); }
.zh-adf-mission-badge[data-platform="tiktok"] { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.zh-adf-mission-badge[data-platform="linkedin"] { background: linear-gradient(135deg, #0a66c2, #004182); }

.zh-adf-mission-body {
  flex: 1;
  min-width: 0;
}

.zh-adf-mission-title {
  font: 600 14px/1.35 "DM Sans", sans-serif;
  color: var(--zh-ad-text);
  margin-bottom: 3px;
  word-break: break-word;
}

.zh-adf-mission-points {
  font: 700 12px/1 "Space Grotesk", "DM Sans", sans-serif;
  color: var(--zh-ad-primary-dk);
}

.zh-adf-mission-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 9px;
  font: 700 12px/1 "DM Sans", sans-serif;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--zh-ad-text);
  color: #fff;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.zh-adf-mission-cta:hover:not(:disabled) {
  transform: translateY(-1px);
}

.zh-adf-mission-cta:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.zh-adf-mission-cta--done {
  background: linear-gradient(135deg, var(--zh-ad-primary), var(--zh-ad-primary-dk));
}

.zh-adf-mission-cta--verifying,
.zh-adf-mission-cta--opening {
  background: rgba(31, 19, 64, 0.6);
  cursor: progress;
}

.zh-adf-mission-cta--verified {
  background: var(--zh-ad-green);
  cursor: default;
}

.zh-adf-mission-cta--pending {
  background: var(--zh-ad-orange);
  cursor: progress;
}

.zh-adf-mission-cta--rejected {
  background: var(--zh-ad-red);
}

.zh-adf-mission-cta--duplicate {
  background: var(--zh-ad-muted);
  cursor: default;
}

.zh-adf-mission-cta--needs-connect {
  background: var(--zh-ad-orange);
  color: #fff;
}

.zh-adf-mission-cta--locked {
  background: var(--zh-ad-bg);
  color: var(--zh-ad-text-mute);
  border: 1px solid var(--zh-ad-border);
  cursor: not-allowed;
}

/* Mini-spinner inline pour les états verifying/pending */
.zh-adf-mission-cta--verifying::before,
.zh-adf-mission-cta--pending::before,
.zh-adf-mission-cta--opening::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: zh-adf-spin 0.7s linear infinite;
}

@keyframes zh-adf-spin {
  to {
    transform: rotate(360deg);
  }
}

.zh-adf-mission--locked {
  opacity: 0.6;
  background: var(--zh-ad-bg-1);
  filter: grayscale(0.25);
}

.zh-adf-mission--locked .zh-adf-mission-badge {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.zh-adf-mission--locked .zh-adf-mission-title {
  color: var(--zh-ad-text-mute);
}

.zh-adf-missions-empty {
  padding: 24px;
  text-align: center;
  background: var(--zh-ad-bg-1);
  border-radius: var(--zh-ad-radius-md);
  color: var(--zh-ad-text-mute);
  font-size: 13.5px;
}

/* ─── Bandeau éligibilité ─────────────────────────────────────────── */

.zh-adf-eligibility-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  font: 600 13px/1.4 "DM Sans", sans-serif;
}

.zh-adf-eligibility-banner--ok {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.zh-adf-eligibility-banner--blocked {
  background: rgba(249, 115, 22, 0.10);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.zh-adf-eligibility-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.zh-adf-eligibility-text {
  flex: 1;
}

/* ─── XP progress ─────────────────────────────────────────────────── */

.zh-adf-xpprog {
  margin-bottom: 22px;
}

.zh-adf-xpprog-head {
  margin-bottom: 10px;
}

.zh-adf-xpprog-card {
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(109, 40, 217, 0.10);
}

.zh-adf-xpprog-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font: 600 11.5px/1.2 "DM Sans", sans-serif;
  color: var(--zh-ad-text-mute);
}

.zh-adf-xpprog-bar {
  height: 10px;
  background: rgba(109, 40, 217, 0.10);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.zh-adf-xpprog-fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  transition: width 0.4s ease;
}

.zh-adf-xpprog-fill--ok {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.zh-adf-xpprog-fill--blocked {
  background: linear-gradient(90deg, var(--zh-ad-orange), #ea580c);
}

.zh-adf-xpprog-tip {
  margin: 0;
  font: 600 12px/1.45 "DM Sans", sans-serif;
  color: var(--zh-ad-text);
}

.zh-adf-no-gate {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.20);
  color: #15803d;
  border-radius: 12px;
  font: 600 13px/1.4 "DM Sans", sans-serif;
  text-align: center;
}

/* ─── Share button ────────────────────────────────────────────────── */

.zh-adf-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: var(--zh-ad-text);
  color: #fff;
  border-radius: 12px;
  font: 700 14px/1 "Space Grotesk", "DM Sans", sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.zh-adf-share:hover {
  background: #2d2058;
}

.zh-adf-share svg {
  width: 16px;
  height: 16px;
}

/* ─── État vide (aucun drop publié) ──────────────────────────────── */

.zh-airdrop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 56px 24px 48px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

/* Composition « art » : disque dégradé + étoiles flottantes animées. */
.zh-airdrop-empty-art {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.zh-airdrop-empty-disc {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zh-ad-primary) 0%, var(--zh-ad-primary-dk) 60%, #1f1340 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 18px 40px rgba(109, 40, 217, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 1;
  animation: zh-ad-empty-float 4.5s ease-in-out infinite;
}

.zh-airdrop-empty-disc::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 34, 255, 0.20), transparent 70%);
  z-index: -1;
}

@keyframes zh-ad-empty-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.zh-airdrop-empty-spark {
  position: absolute;
  color: var(--zh-ad-primary);
  font-size: 16px;
  line-height: 1;
  opacity: 0.65;
  animation: zh-ad-empty-twinkle 2.8s ease-in-out infinite;
  pointer-events: none;
}

.zh-airdrop-empty-spark--1 { top: 8px; left: 18px; animation-delay: 0s; font-size: 14px; }
.zh-airdrop-empty-spark--2 { top: 22px; right: 12px; animation-delay: 0.6s; font-size: 18px; color: var(--zh-ad-orange); }
.zh-airdrop-empty-spark--3 { bottom: 18px; left: 6px; animation-delay: 1.2s; font-size: 12px; }
.zh-airdrop-empty-spark--4 { bottom: 12px; right: 20px; animation-delay: 1.8s; font-size: 20px; color: #fbbf24; }

@keyframes zh-ad-empty-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 0.9;  transform: scale(1.1);  }
}

/* Pill « Coming soon » au-dessus du titre. */
.zh-airdrop-empty-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  background: rgba(141, 34, 255, 0.10);
  border: 1px solid rgba(141, 34, 255, 0.22);
  border-radius: 999px;
  font: 700 11px/1 "DM Sans", sans-serif;
  color: var(--zh-ad-primary-dk);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.zh-airdrop-empty-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zh-ad-primary);
  box-shadow: 0 0 0 4px rgba(141, 34, 255, 0.18);
  animation: zh-ad-empty-pulse 1.8s ease-in-out infinite;
}

@keyframes zh-ad-empty-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(141, 34, 255, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(141, 34, 255, 0.05); }
}

.zh-airdrop-empty-title {
  margin: 4px 0 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--zh-ad-text);
  line-height: 1.2;
}

.zh-airdrop-empty-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--zh-ad-text-soft);
  max-width: 340px;
}

.zh-airdrop-empty-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(141, 34, 255, 0.08), rgba(141, 34, 255, 0.03));
  border: 1px dashed rgba(141, 34, 255, 0.28);
  border-radius: 12px;
  font: 600 12.5px/1.4 "DM Sans", sans-serif;
  color: var(--zh-ad-primary-dk);
  max-width: 360px;
}

.zh-airdrop-empty-hint svg {
  flex-shrink: 0;
  color: var(--zh-ad-orange);
}

/* Responsive : composition plus compacte sur mobile. */
@media (max-width: 480px) {
  .zh-airdrop-empty {
    padding: 40px 16px 32px;
    gap: 10px;
  }
  .zh-airdrop-empty-art {
    width: 130px;
    height: 130px;
  }
  .zh-airdrop-empty-disc {
    width: 96px;
    height: 96px;
  }
  .zh-airdrop-empty-disc svg {
    width: 50px;
    height: 50px;
  }
  .zh-airdrop-empty-title {
    font-size: 19px;
  }
  .zh-airdrop-empty-text {
    font-size: 13.5px;
  }
}

/* ─── Modale Link Account ─────────────────────────────────────────── */

.zh-adf-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(31, 19, 64, 0.45), rgba(11, 4, 25, 0.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  animation: zh-adf-fade-in 0.18s ease;
}

@keyframes zh-adf-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.zh-adf-modal {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 30px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow:
    0 36px 80px rgba(11, 4, 25, 0.45),
    0 0 0 1px rgba(168, 85, 247, 0.08);
  animation: zh-adf-pop-in 0.28s cubic-bezier(.34, 1.56, .64, 1);
  overflow: hidden;
  text-align: center;
}

@keyframes zh-adf-pop-in {
  from { transform: scale(0.9) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* Variante "link" — popup d'invitation à connecter un réseau. */
.zh-adf-modal--link {
  --zh-adf-brand: #6D28D9;
}

/* Bouton de fermeture (X) en haut à droite. */
.zh-adf-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 4, 25, 0.05);
  border: none;
  color: rgba(11, 4, 25, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
}

.zh-adf-modal-close:hover {
  background: rgba(11, 4, 25, 0.1);
  color: rgba(11, 4, 25, 0.85);
}

/* Hero — disque coloré avec logo plateforme + glow. */
.zh-adf-modal-hero {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 4px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-adf-modal-hero-glow {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--zh-adf-brand) 0%, transparent 65%);
  opacity: 0.35;
  filter: blur(14px);
  animation: zh-adf-pulse 2.4s ease-in-out infinite;
}

@keyframes zh-adf-pulse {
  0%, 100% { transform: scale(1); opacity: 0.32; }
  50%      { transform: scale(1.08); opacity: 0.45; }
}

.zh-adf-modal-hero-badge {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--zh-adf-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--zh-adf-brand) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: rotate(-3deg);
}

.zh-adf-modal-hero-badge svg {
  width: 34px;
  height: 34px;
}

.zh-adf-modal-hero-badge span {
  font: 800 30px/1 "Space Grotesk", sans-serif;
}

.zh-adf-modal-title {
  margin: 0 0 8px;
  font: 800 21px/1.25 "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.3px;
  color: var(--zh-ad-text, #1F1340);
}

.zh-adf-modal-body {
  margin: 0 0 16px;
  font: 400 14px/1.55 "DM Sans", sans-serif;
  color: var(--zh-ad-text-soft, rgba(31, 19, 64, 0.68));
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* Note de réassurance — petit pill avec cadenas. */
.zh-adf-modal-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 22px;
  background: color-mix(in srgb, var(--zh-adf-brand) 8%, transparent);
  color: color-mix(in srgb, var(--zh-adf-brand) 75%, #1F1340);
  border-radius: 99px;
  font: 600 11.5px/1.3 "DM Sans", sans-serif;
}

.zh-adf-modal-secure svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.zh-adf-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: stretch;
  flex-wrap: wrap;
}

.zh-adf-modal-btn {
  flex: 1;
  min-width: 130px;
  padding: 13px 18px;
  border-radius: 12px;
  font: 700 13.5px/1 "DM Sans", sans-serif;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.zh-adf-modal-btn--ghost {
  background: rgba(11, 4, 25, 0.05);
  color: rgba(31, 19, 64, 0.75);
  flex: 0 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.zh-adf-modal-btn--ghost:hover {
  background: rgba(11, 4, 25, 0.09);
  color: rgba(31, 19, 64, 0.95);
}

/* Bouton principal — prend la couleur de la plateforme. */
.zh-adf-modal-btn--brand {
  background: var(--zh-adf-brand);
  color: #fff;
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--zh-adf-brand) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex: 1;
}

.zh-adf-modal-btn--brand:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--zh-adf-brand) 52%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.zh-adf-modal-btn--brand:active {
  transform: translateY(0);
}

.zh-adf-modal-btn--brand:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--zh-adf-brand) 65%, white);
  outline-offset: 2px;
}

.zh-adf-modal-btn-logo {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.zh-adf-modal-btn-logo svg {
  width: 100%;
  height: 100%;
}

.zh-adf-modal-btn-arrow {
  opacity: 0.85;
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.zh-adf-modal-btn--brand:hover .zh-adf-modal-btn-arrow {
  transform: translateX(2px);
}

/* Fallback pour navigateurs sans color-mix() : couleurs solides. */
@supports not (color: color-mix(in srgb, red, blue)) {
  .zh-adf-modal-secure {
    background: rgba(168, 85, 247, 0.08);
    color: rgba(31, 19, 64, 0.7);
  }
  .zh-adf-modal-btn--brand {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

/* Formulaire Bluesky inline dans la modale --link (text-align centered hérité,
   on remet à gauche les champs). */
.zh-adf-bsky-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 18px;
}

.zh-adf-bsky-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zh-adf-bsky-field label {
  font: 700 11px/1.2 "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(31, 19, 64, 0.65);
}

.zh-adf-bsky-field input {
  padding: 11px 14px;
  border: 1.5px solid rgba(11, 4, 25, 0.10);
  border-radius: 12px;
  font: 500 14px/1.3 "DM Sans", sans-serif;
  color: #1F1340;
  background: rgba(11, 4, 25, 0.02);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.zh-adf-bsky-field input::placeholder {
  color: rgba(31, 19, 64, 0.35);
}

.zh-adf-bsky-field input:focus {
  border-color: var(--zh-adf-brand, #6D28D9);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--zh-adf-brand, #6D28D9) 18%, transparent);
}

.zh-adf-bsky-error {
  font: 600 12.5px/1.4 "DM Sans", sans-serif;
  color: #C81E3A;
  margin: 2px 0 0;
  text-align: left;
}

/* Fallback focus pour navigateurs sans color-mix(). */
@supports not (color: color-mix(in srgb, red, blue)) {
  .zh-adf-bsky-field input:focus {
    box-shadow: 0 0 0 3px rgba(17, 133, 254, 0.18);
  }
}

/* ─── Toasts ──────────────────────────────────────────────────────── */

.zh-adf-toasts {
  position: fixed;
  /* Le footer public (.zh-pf) est fixé en bas sur tous les viewports avec
     z-index 70 et environ 88px de haut (barre + safe-area). On remonte les
     toasts au-dessus pour qu'ils ne soient pas masqués. */
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Au-dessus du wheel-modal du footer (z-index 200) et de toute popup. */
  z-index: 9999;
  pointer-events: none;
}

.zh-adf-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--zh-ad-text);
  border: 1px solid var(--zh-ad-border);
  box-shadow: 0 12px 30px rgba(31, 19, 64, 0.18);
  font: 600 13px/1.4 "DM Sans", sans-serif;
  min-width: 220px;
  max-width: 380px;
  pointer-events: auto;
  animation: zh-adf-toast-in 0.25s ease;
}

@keyframes zh-adf-toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.zh-adf-toast--success {
  border-left: 4px solid var(--zh-ad-green);
}

.zh-adf-toast--error {
  border-left: 4px solid var(--zh-ad-red);
}

.zh-adf-toast--info {
  border-left: 4px solid var(--zh-ad-primary);
}

.zh-adf-toast-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .zh-adf-grid { grid-template-columns: 1fr; }
  .zh-adf-col--left {
    border-right: none;
    border-bottom: 1px solid var(--zh-ad-border-soft);
  }
  .zh-adf-hero {
    height: 260px;
    padding: 28px 28px;
  }
  .zh-adf-hero-title { letter-spacing: -1px; }
  .zh-adf-hero-vinyl {
    width: 220px;
    height: 220px;
    top: -55px;
    right: -55px;
  }
  .zh-adf-hero-vinyl-inner { width: 140px; height: 140px; }
  .zh-adf-hero-vinyl-center { width: 48px; height: 48px; }
}

@media (max-width: 767px) {
  .zh-airdrop-root { padding: 4px 4px 12px; gap: 14px; }
  .zh-airdrop-selector-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .zh-airdrop-selector-head { flex: 0 0 auto; }
  .zh-airdrop-selector {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    gap: 4px;
  }
  .zh-airdrop-detail { border-radius: 18px; }
  .zh-adf-col { padding: 22px 18px 26px; }
  .zh-adf-hero {
    height: 220px;
    padding: 22px 18px;
  }
  .zh-adf-hero-title { font-size: clamp(24px, 7vw, 32px); }
  .zh-adf-hero-sub { font-size: 14px; }
  .zh-adf-auth-gate {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 18px 14px;
  }
  .zh-adf-auth-gate-actions {
    width: 100%;
    justify-content: center;
  }
  .zh-adf-auth-btn {
    flex: 1;
    text-align: center;
  }
  .zh-adf-mission {
    padding: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .zh-adf-mission-badge { width: 36px; height: 36px; font-size: 13px; }
  .zh-adf-mission-title { font-size: 13px; }
  .zh-adf-mission-body {
    flex: 1 1 calc(100% - 50px);
    min-width: 0;
  }
  .zh-adf-mission-cta {
    padding: 8px 12px;
    font-size: 11.5px;
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 4px;
  }
  .zh-adf-xpprog-labels { flex-wrap: wrap; }
  .zh-adf-eligibility-banner { flex-wrap: wrap; padding: 10px 12px; }
  .zh-adf-eligibility-text { font-size: 12.5px; flex: 1 1 calc(100% - 28px); }
  .zh-adf-toasts {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
  .zh-adf-toast {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .zh-adf-hero-title {
    font-size: clamp(20px, 8vw, 26px);
    letter-spacing: -0.5px;
  }
  .zh-adf-hero-pill { font-size: 10px; letter-spacing: 1px; }
  .zh-adf-h2 { font-size: 18px; }
  .zh-airdrop-title { font-size: 18px; }
}
