/* ════════════════════════════════════════════════════════════
   WELCOME NOTICE MODAL
   huanha.shop  |  welcome-notice.css
════════════════════════════════════════════════════════════ */

/* ── Overlay ──────────────────────────────────────────── */
.wn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,10,18,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.wn-overlay.wn-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal box ────────────────────────────────────────── */
.wn-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, #1a1d2e 0%, #13151f 60%, #1a1b2e 100%);
  border: 1px solid rgba(108,92,231,.35);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 32px 80px rgba(0,0,0,.7),
    0 0 60px rgba(108,92,231,.18),
    inset 0 1px 0 rgba(255,255,255,.07);
  padding: 28px 24px 24px;
  transform: scale(.92) translateY(16px);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .28s ease;
  opacity: 0;
}
.wn-overlay.wn-open .wn-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── Close (X) button ────────────────────────────────── */
.wn-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(240,242,248,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .8rem;
  transition: background .15s, color .15s;
  line-height: 1;
}
.wn-close:hover { background: rgba(255,59,48,.2); color: #ff6b6b; border-color: rgba(255,59,48,.3); }

/* ── Header ──────────────────────────────────────────── */
.wn-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

/* Icon bubble with shake */
.wn-icon-wrap {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 20px;
  background: linear-gradient(135deg, #5a4fcf 0%, #6c5ce7 50%, #a29bfe 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 14px;
  box-shadow:
    0 0 0 0 rgba(108,92,231,.0),
    0 8px 24px rgba(108,92,231,.45);
  animation: wnShake 4s ease-in-out infinite, wnGlow 4s ease-in-out infinite;
}
/* Notification dot */
.wn-icon-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #13151f;
  animation: wnDotPulse 1.5s ease-in-out infinite;
}
@keyframes wnShake {
  0%, 60%, 100% { transform: rotate(0deg); }
  62%           { transform: rotate(-12deg); }
  64%           { transform: rotate(10deg); }
  66%           { transform: rotate(-8deg); }
  68%           { transform: rotate(7deg); }
  70%           { transform: rotate(-4deg); }
  72%           { transform: rotate(3deg); }
  74%           { transform: rotate(0deg); }
}
@keyframes wnGlow {
  0%,100% { box-shadow: 0 8px 24px rgba(108,92,231,.4); }
  70%      { box-shadow: 0 8px 32px rgba(108,92,231,.75), 0 0 40px rgba(162,155,254,.3); }
}
@keyframes wnDotPulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: .7; }
}

.wn-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f0f2f8;
  margin: 0 0 4px;
  letter-spacing: .01em;
}
.wn-subtitle {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(240,242,248,.38);
}

/* ── Items list ──────────────────────────────────────── */
.wn-body {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.wn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}
.wn-item:last-child { border-bottom: none; }
.wn-item:hover { background: rgba(108,92,231,.08); }

/* Item icon bubble */
.wn-item-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  color: rgba(240,242,248,.6);
}
.wn-item-text {
  flex: 1;
  font-size: .84rem;
  color: rgba(240,242,248,.78);
  line-height: 1.45;
}
.wn-item-text strong { color: #f0f2f8; font-weight: 700; }
.wn-item-link {
  color: #6c8fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

/* ── Footer buttons ──────────────────────────────────── */
.wn-footer {
  display: flex;
  gap: 10px;
  align-items: center;
}
.wn-btn-remind {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(240,242,248,.55);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
}
.wn-btn-remind:hover {
  background: rgba(255,255,255,.09);
  color: rgba(240,242,248,.8);
  border-color: rgba(255,255,255,.2);
}
.wn-btn-ok {
  flex: 1.4;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #5a4fcf, #6c5ce7 60%, #a29bfe);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 4px 18px rgba(108,92,231,.45);
  transition: opacity .15s, box-shadow .15s;
  letter-spacing: .02em;
}
.wn-btn-ok:hover {
  opacity: .9;
  box-shadow: 0 6px 24px rgba(108,92,231,.65);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 460px) {
  .wn-modal { padding: 22px 16px 18px; border-radius: 18px; }
  .wn-icon-wrap { width: 56px; height: 56px; font-size: 1.3rem; border-radius: 16px; }
  .wn-footer { flex-direction: column; }
  .wn-btn-remind, .wn-btn-ok { flex: none; width: 100%; }
}
