/* ==========================================================================
   Purchase & Activity Live Notifications (pn-toast) Styles
   Adaptive Light (Default) / Dark Mode Design
   ========================================================================== */

#pn-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 32px);
}

[dir="rtl"] #pn-container {
  right: auto;
  left: 24px;
}

.pn-toast {
  pointer-events: auto;
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

[dir="rtl"] .pn-toast {
  transform: translateX(-120%);
}

.pn-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.pn-toast.hide {
  transform: translateY(20px);
  opacity: 0;
}

/* Toast Variants */
.pn-toast.points {
  border-left: 4px solid var(--primary-color);
}
[dir="rtl"] .pn-toast.points {
  border-left: 1px solid var(--card-border);
  border-right: 4px solid var(--primary-color);
}

.pn-toast.vip {
  border-left: 4px solid var(--accent-gold);
}
[dir="rtl"] .pn-toast.vip {
  border-left: 1px solid var(--card-border);
  border-right: 4px solid var(--accent-gold);
}

.pn-toast.link {
  border-left: 4px solid var(--success-color);
}
[dir="rtl"] .pn-toast.link {
  border-left: 1px solid var(--card-border);
  border-right: 4px solid var(--success-color);
}

.pn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pn-icon.vip {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.pn-icon.link {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

.pn-body {
  flex: 1;
  min-width: 0;
}

.pn-title {
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}

.pn-title span {
  color: var(--primary-color);
}

.pn-title.vip span {
  color: var(--accent-gold);
}

.pn-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.pn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-color);
  display: inline-block;
}

.pn-verified {
  color: var(--success-color);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

.pn-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pn-close:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.pn-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  width: 100%;
  transform-origin: left;
  animation: pnProgress linear forwards;
}

[dir="rtl"] .pn-progress {
  left: auto;
  right: 0;
  transform-origin: right;
}

.pn-toast.vip .pn-progress {
  background: var(--gradient-gold);
}

@keyframes pnProgress {
  from { width: 100%; }
  to { width: 0%; }
}
