/* =============================================
   Download Toast Notification
   ============================================= */
.kira-download-toast-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 370px;
  width: 100%;
}

.kira-download-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.2),
    0 0 80px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #1e293b;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(-120%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kira-download-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: linear-gradient(180deg, #06b6d4, #8b5cf6, #ec4899);
  border-radius: 3px 0 0 3px;
}

.kira-download-toast::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%,
      rgba(99, 102, 241, 0.06) 0%,
      transparent 60%);
  pointer-events: none;
}

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

.kira-download-toast--hide {
  transform: translateX(-120%);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.55, 0, 1, 0.45),
    opacity 0.35s ease;
}

.kira-download-toast:hover {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(31, 38, 135, 0.25),
    0 0 60px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
  color: #0f172a;
}

/* Icon */
.kira-download-toast__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: #fff;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.kira-download-toast__icon svg {
  animation: kira-toast-bounce 2s ease-in-out infinite;
}

@keyframes kira-toast-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Body */
.kira-download-toast__body {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.kira-download-toast__user {
  font-weight: 700;
  font-size: 13px;
  color: #312e81;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kira-download-toast__text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

.kira-download-toast__text strong {
  color: #6366f1;
  font-weight: 600;
}

.kira-download-toast__time {
  font-size: 11px;
  color: #8b5cf6;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.kira-download-toast__time::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  border-radius: 50%;
  animation: kira-dot-pulse 2s ease-in-out infinite;
}

@keyframes kira-dot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

/* Close button */
.kira-download-toast__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(100, 116, 139, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  padding: 0;
  z-index: 2;
}

.kira-download-toast:hover .kira-download-toast__close {
  opacity: 1;
}

.kira-download-toast__close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Mobile */
@media (max-width: 480px) {
  .kira-download-toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: calc(100% - 20px);
  }

  .kira-download-toast {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .kira-download-toast__icon {
    width: 36px;
    height: 36px;
  }

  .kira-download-toast__user {
    font-size: 12px;
  }

  .kira-download-toast__text {
    font-size: 12px;
  }
}