/* D1 Marketing Popup v1.0.0 */
:root {
  --pop-bg:      #0d0d28;
  --pop-bg2:     #181840;
  --pop-red:     #e6282a;
  --pop-blue:    #0043f3;
  --pop-white:   #ffffff;
  --pop-muted:   rgba(255,255,255,.65);
  --pop-input:   rgba(255,255,255,.08);
  --pop-input-b: rgba(255,255,255,.15);
}

/* Overlay */
.d1pop-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(7,7,26,.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.d1pop-overlay.open {
  opacity: 1; visibility: visible;
}

/* Modal */
.d1pop-modal {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 840px;
  background: var(--pop-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(20px) scale(.97);
  transition: transform .35s ease;
}
.d1pop-overlay.open .d1pop-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.d1pop-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.1); border: none;
  color: var(--pop-white); width: 32px; height: 32px;
  border-radius: 50%; font-size: 18px; line-height: 1;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.d1pop-close:hover { background: rgba(255,255,255,.2); }

/* Left panel */
.d1pop-left {
  background: linear-gradient(145deg, #12123a 0%, #0d0d28 60%, rgba(230,40,42,.08) 100%);
  padding: 48px 36px;
  position: relative; overflow: hidden;
}
.d1pop-left::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,40,42,.25) 0%, transparent 70%);
  pointer-events: none;
}
.d1pop-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,40,42,.15);
  border: 1px solid rgba(230,40,42,.35);
  color: #ff8080; padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 24px;
}
.d1pop-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pop-red);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.d1pop-headline {
  font-family: 'Manrope', sans-serif;
  font-size: 38px; font-weight: 900;
  letter-spacing: -.03em; line-height: .9;
  color: var(--pop-white); margin-bottom: 20px;
  text-transform: uppercase;
}
.d1pop-headline em {
  color: var(--pop-red); font-style: normal;
}

.d1pop-sub {
  font-size: 14px; color: var(--pop-muted);
  line-height: 1.7; margin-bottom: 32px; max-width: 280px;
}

.d1pop-proof {
  display: flex; flex-direction: column; gap: 12px;
}
.d1pop-proof-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--pop-muted);
}
.d1pop-proof-num {
  font-family: 'Manrope', sans-serif;
  font-size: 20px; font-weight: 900; color: var(--pop-white);
  min-width: 60px;
}

/* Right panel - form */
.d1pop-right {
  background: var(--pop-bg2);
  padding: 48px 36px;
}
.d1pop-form-label {
  font-size: 11px; font-weight: 700;
  color: var(--pop-muted);
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 16px;
}

/* Inputs */
.d1pop-input {
  width: 100%;
  background: var(--pop-input);
  border: 1px solid var(--pop-input-b);
  border-radius: 8px;
  color: var(--pop-white);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  padding: 14px 16px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
}
.d1pop-input:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--pop-red);
}
.d1pop-input::placeholder { color: rgba(255,255,255,.35); }
select.d1pop-input { cursor: pointer; }
select.d1pop-input option { background: #1a1a40; color: #fff; }

/* CTA button */
.d1pop-cta {
  width: 100%;
  background: var(--pop-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px; font-weight: 900;
  letter-spacing: .04em;
  padding: 16px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  margin-top: 4px;
}
.d1pop-cta:hover {
  background: #c81f21;
  box-shadow: 0 8px 32px rgba(230,40,42,.4);
}
.d1pop-privacy {
  font-size: 11px; color: var(--pop-muted);
  text-align: center; margin-top: 12px;
}

/* Responsive */
@media (max-width: 680px) {
  .d1pop-modal { grid-template-columns: 1fr; }
  .d1pop-left { padding: 36px 24px 20px; }
  .d1pop-left::before { display: none; }
  .d1pop-proof { display: none; }
  .d1pop-headline { font-size: 30px; }
  .d1pop-right { padding: 20px 24px 36px; }
}
