/* ═══════════════════════════════════════════════════════════════════════════
   CHESS NYC - Modern Toast Notification System
   ═══════════════════════════════════════════════════════════════════════════ */

.cny-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: calc(100% - 32px);
  pointer-events: none;
}

@media (max-width: 576px) {
  .cny-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

.cny-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #3c0e66;
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 4px 12px -2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 160, 23, 0.3);
  font-family: inherit;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cny-toast.cny-toast--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cny-toast.cny-toast--hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

/* Icons & Colors */
.cny-toast-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-top: 1px;
}

/* Toast Variants */
.cny-toast--warning {
  border-left: 4px solid #f59e0b;
}
.cny-toast--warning .cny-toast-icon {
  background: #fef3c7;
  color: #d97706;
}

.cny-toast--success {
  border-left: 4px solid #d4a017;
}
.cny-toast--success .cny-toast-icon {
  background: rgba(212, 160, 23, 0.15);
  color: #d4a017;
}

.cny-toast--danger,
.cny-toast--error {
  border-left: 4px solid #ef4444;
}
.cny-toast--danger .cny-toast-icon,
.cny-toast--error .cny-toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.cny-toast--info {
  border-left: 4px solid #3b82f6;
}
.cny-toast--info .cny-toast-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Content */
.cny-toast-content {
  flex: 1;
  min-width: 0;
}

.cny-toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 2px;
  color: #d4a017;
}

.cny-toast-message {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

/* Close Button */
.cny-toast-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
  margin-left: 4px;
  margin-top: -2px;
}

.cny-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Progress bar */
.cny-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.cny-toast-progress-bar {
  height: 100%;
  width: 100%;
  transition: width linear;
}

.cny-toast--warning .cny-toast-progress-bar { background: #f59e0b; }
.cny-toast--success .cny-toast-progress-bar { background: #d4a017; }
.cny-toast--danger .cny-toast-progress-bar,
.cny-toast--error .cny-toast-progress-bar { background: #ef4444; }
.cny-toast--info .cny-toast-progress-bar { background: #3b82f6; }