/* New app announcement on the classic optimizer (optimizer/sections/new-app-modal.php). Scoped. */

#dd-new-app-modal {
  z-index: 1085;
}

#dd-new-app-modal .modal-dialog {
  max-width: 860px;
  width: calc(100% - 1.5rem);
  margin: 1.25rem auto;
}

#dd-new-app-modal .dd-na-content {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(34, 211, 238, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 90% 10%, rgba(167, 139, 250, 0.16) 0%, transparent 40%),
    linear-gradient(160deg, #060b18 0%, #0b1224 48%, #10182f 100%);
  color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

#dd-new-app-modal .dd-na-grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

#dd-new-app-modal .dd-na-header,
#dd-new-app-modal .dd-na-body,
#dd-new-app-modal .dd-na-footer {
  position: relative;
  z-index: 1;
}

#dd-new-app-modal .dd-na-header {
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  padding: 1rem 1.25rem 0.85rem;
  background: linear-gradient(90deg, rgba(14, 26, 51, 0.92) 0%, rgba(30, 27, 75, 0.75) 55%, rgba(14, 42, 74, 0.9) 100%);
}

#dd-new-app-modal .dd-na-kicker {
  margin: 0 0 6px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#dd-new-app-modal .dd-na-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

#dd-new-app-modal .dd-na-close {
  color: #f8fafc !important;
  opacity: 0.9;
  text-shadow: none;
  font-size: 1.55rem;
}

#dd-new-app-modal .dd-na-close:hover {
  color: #22d3ee !important;
  opacity: 1;
}

#dd-new-app-modal .dd-na-body {
  padding: 1.1rem 1.25rem 0.5rem;
}

#dd-new-app-modal .dd-na-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  margin-bottom: 1rem;
  background: #020617;
}

#dd-new-app-modal .dd-na-hero img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

#dd-new-app-modal .dd-na-hero-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(6, 11, 24, 0.92), transparent);
}

#dd-new-app-modal .dd-na-headline {
  margin: 0 0 0.5rem;
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 800;
}

#dd-new-app-modal .dd-na-lead {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

#dd-new-app-modal .dd-na-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0.75rem;
}

#dd-new-app-modal .dd-na-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(8, 14, 28, 0.72);
  border: 1px solid rgba(51, 65, 85, 0.7);
}

#dd-new-app-modal .dd-na-ico {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #22d3ee;
  font-size: 12px;
}

#dd-new-app-modal .dd-na-card strong {
  display: block;
  color: #f8fafc;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

#dd-new-app-modal .dd-na-card span {
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
}

#dd-new-app-modal .dd-na-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(8, 14, 28, 0.92);
  padding: 0.95rem 1.25rem 1.1rem;
}

#dd-new-app-modal .dd-na-note {
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
}

#dd-new-app-modal .dd-na-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#dd-new-app-modal .dd-na-btn-secondary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 16px;
}

#dd-new-app-modal .dd-na-btn-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
}

#dd-new-app-modal .dd-na-btn-primary {
  background: linear-gradient(90deg, #22d3ee 0%, #a78bfa 100%);
  border: none;
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: 9px 18px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}

#dd-new-app-modal .dd-na-btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

#dd-new-app-modal .dd-na-btn-primary i {
  margin-right: 6px;
}

@media (max-width: 767.98px) {
  #dd-new-app-modal .dd-na-title {
    font-size: 1.25rem;
  }

  #dd-new-app-modal .dd-na-cards {
    grid-template-columns: 1fr;
  }

  #dd-new-app-modal .dd-na-hero img {
    height: 170px;
  }

  #dd-new-app-modal .dd-na-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #dd-new-app-modal .dd-na-actions .btn {
    flex: 1 1 auto;
  }
}
