#alert-banner {
  position: relative;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  animation: alertSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.alert-item:hover {
  transform: translateX(4px);
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.alert-level-blue {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(79, 195, 247, 0.03));
  border-left: 3px solid #4fc3f7;
  color: #b3e5fc;
}

.alert-level-yellow {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.08), rgba(255, 183, 77, 0.03));
  border-left: 3px solid #ffb74d;
  color: #ffe0b2;
}

.alert-level-orange {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.04));
  border-left: 3px solid #ff9800;
  color: #ffcc80;
}

.alert-level-red {
  background: linear-gradient(135deg, rgba(239, 83, 80, 0.1), rgba(239, 83, 80, 0.04));
  border-left: 3px solid #ef5350;
  color: #ffcdd2;
}

.alert-icon {
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-type {
  font-weight: 700;
  font-size: 13px;
}

.alert-desc {
  color: var(--color-text-dim);
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.alert-time {
  font-size: 10px;
  color: var(--color-text-dim);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.alert-top-banner {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 12px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  animation: bannerSlideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.alert-top-red {
  background: linear-gradient(90deg, rgba(183, 28, 28, 0.92), rgba(229, 57, 53, 0.92));
  color: white;
  box-shadow: 0 4px 20px rgba(239, 83, 80, 0.3);
}

.alert-top-orange {
  background: linear-gradient(90deg, rgba(230, 81, 0, 0.92), rgba(255, 152, 0, 0.92));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.alert-top-yellow {
  background: linear-gradient(90deg, rgba(245, 127, 23, 0.92), rgba(255, 183, 77, 0.92));
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(255, 183, 77, 0.3);
}

.alert-top-blue {
  background: linear-gradient(90deg, rgba(2, 119, 189, 0.92), rgba(79, 195, 247, 0.92));
  color: white;
  box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
}

.alert-toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 150;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.5s cubic-bezier(0.4, 0, 0.2, 1), toastOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) 4.5s forwards;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  letter-spacing: 0.3px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(100px) scale(0.9); }
}

.toast-red { background: rgba(211, 47, 47, 0.92); }
.toast-orange { background: rgba(230, 81, 0, 0.92); }
.toast-yellow { background: rgba(245, 127, 23, 0.92); color: #1a1a1a; }
.toast-blue { background: rgba(2, 119, 189, 0.92); }

.alert-empty {
  text-align: center;
  padding: 20px;
  color: var(--color-text-dim);
  font-size: 13px;
}

.alert-empty-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}

.alert-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.alert-issued {
  font-size: 10px;
  color: var(--color-text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.alert-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: alertDetailIn 0.3s ease;
}

@keyframes alertDetailIn {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 500px; }
}

.alert-full-desc {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 8px;
}

.alert-criteria {
  font-size: 11px;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin-bottom: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.alert-criteria strong {
  color: var(--color-warning);
}

.alert-instruction {
  font-size: 11px;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin-bottom: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.alert-instruction strong {
  color: var(--color-success);
}

.alert-expire {
  font-size: 10px;
  color: var(--color-text-dim);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.alert-expand-hint {
  font-size: 10px;
  color: var(--color-primary);
  margin-top: 4px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.alert-item:hover .alert-expand-hint {
  opacity: 1;
}
