/* =========================================================
   Modals, Alerts & Drawers
   ========================================================= */
.alert-banner {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.alert-banner-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-banner-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.alert-banner-info {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #38bdf8;
}

.alert-banner-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* High Visibility Subscription Alert Box */
.subscription-alert-box {
  padding: 1.15rem 1.4rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(12, 21, 39, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(245, 158, 11, 0.12);
  position: relative;
  overflow: hidden;
}

.subscription-alert-left-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.subscription-alert-box.urgent {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.15) 0%, rgba(12, 21, 39, 0.98) 100%);
  border-color: rgba(244, 63, 94, 0.65);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(244, 63, 94, 0.18);
}
.subscription-alert-box.urgent .subscription-alert-left-bar {
  background: linear-gradient(180deg, #f43f5e, #fda4af);
}

.subscription-alert-box.expired {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.22) 0%, rgba(12, 21, 39, 0.98) 100%);
  border-color: #f43f5e;
  box-shadow: 0 8px 35px rgba(244, 63, 94, 0.28);
}
.subscription-alert-box.expired .subscription-alert-left-bar {
  background: #e11d48;
}

.subscription-alert-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.subscription-alert-desc {
  color: #cbd5e1;
  font-size: 0.825rem;
  line-height: 1.45;
  margin: 0;
}

.subscription-alert-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.subscription-alert-box.urgent .subscription-alert-icon,
.subscription-alert-box.expired .subscription-alert-icon {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.5);
  animation: pulse-alert 2s infinite ease-in-out;
}

.subscription-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b1120 !important;
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.subscription-alert-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #000000 !important;
}

.subscription-alert-box.urgent .subscription-alert-btn,
.subscription-alert-box.expired .subscription-alert-btn {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4);
}
.subscription-alert-box.urgent .subscription-alert-btn:hover,
.subscription-alert-box.expired .subscription-alert-btn:hover {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.55);
}

@keyframes pulse-alert {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

.is-hidden {
  display: none !important;
}
