/* Dealzkart — notification permission onboarding & gate screens */
.dd-notify-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  animation: ddNotifyFadeIn 0.35s ease;
}

.dd-notify-shell.is-visible {
  display: flex;
}

.dd-notify-shell--onboard {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 41, 59, 0.72) 100%);
}

@keyframes ddNotifyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dd-notify-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
  border-radius: 24px;
  padding: 28px 22px 24px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  text-align: center;
  animation: ddNotifyCardUp 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ddNotifyCardUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dd-notify-anim {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
}

.dd-notify-anim__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(234, 88, 12, 0.25);
  animation: ddNotifyRing 2.4s ease-out infinite;
}

.dd-notify-anim__ring:nth-child(2) {
  animation-delay: 0.8s;
}

@keyframes ddNotifyRing {
  0% {
    transform: scale(0.72);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.dd-notify-anim__bell {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  filter: drop-shadow(0 8px 16px rgba(234, 88, 12, 0.35));
  animation: ddNotifyBell 1.2s ease-in-out infinite;
}

@keyframes ddNotifyBell {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.dd-notify-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ea580c;
}

.dd-notify-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dd-notify-msg {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #475569;
}

.dd-notify-benefits {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}

.dd-notify-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #334155;
  background: rgba(255, 247, 237, 0.85);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

.dd-notify-benefits li span:first-child {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.dd-notify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dd-notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dd-notify-btn:active {
  transform: scale(0.98);
}

.dd-notify-btn.is-busy,
.dd-notify-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.dd-notify-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 48%, #fb923c 100%);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.38);
}

.dd-notify-btn--ghost {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-weight: 700;
}

.dd-notify-btn--danger {
  color: #64748b;
  background: transparent;
  font-weight: 600;
  min-height: 40px;
}

.dd-notify-settings-hint {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #92400e;
  text-align: left;
}

body.dd-notify-gate-active .bottom-nav a[data-page="spin"],
body.dd-notify-gate-active .bottom-nav a[data-page="account"] {
  opacity: 0.55;
}
