/* ADSBItalia Feeder Alerts CSS */
.btn-alert {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text, #f3f4f6);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: all .2s;
  font-family: inherit;
}
.btn-alert:hover {
  background: rgba(42, 166, 166, 0.15);
  border-color: var(--primary, #2aa6a6);
  color: #fff;
}
.btn-alert.active {
  background: rgba(47, 191, 113, 0.15);
  border-color: #4ade80;
  color: #4ade80;
}

/* Detection Banner */
.feeder-alert-banner {
  background: linear-gradient(90deg, rgba(42, 166, 166, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(42, 166, 166, 0.4);
  border-radius: 16px;
  padding: .9rem 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInAlert .3s ease-out;
}
.feeder-alert-banner-text {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .92rem;
  color: #e5e7eb;
}
.feeder-alert-banner-text strong {
  color: #2dd4bf;
}
.feeder-alert-banner-btn {
  background: var(--primary, #2aa6a6);
  color: #fff;
  border: none;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.feeder-alert-banner-btn:hover {
  background: var(--primary2, #238b8b);
}

/* Modal */
.alert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: fadeInAlert .2s ease-out;
}
.alert-modal-box {
  background: #0f141c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  color: #f3f4f6;
  font-family: inherit;
}
.alert-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .15s;
}
.alert-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.alert-modal-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .6rem;
}
.alert-modal-icon {
  font-size: 1.8rem;
  background: rgba(42, 166, 166, 0.15);
  border: 1px solid rgba(42, 166, 166, 0.3);
  border-radius: 14px;
  padding: .4rem .6rem;
  display: inline-flex;
}
.alert-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0;
}
.alert-modal-subtitle {
  font-size: .88rem;
  color: #9ca3af;
  line-height: 1.45;
  margin-bottom: 1.4rem;
}
.alert-form-group {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.alert-form-group label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: #9ca3af;
}
.alert-form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: .7rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: all .18s;
}
.alert-form-input:focus {
  border-color: #2aa6a6;
  box-shadow: 0 0 0 3px rgba(42, 166, 166, 0.2);
}
.alert-form-input:disabled {
  background: rgba(255, 255, 255, 0.02);
  color: #9ca3af;
  cursor: not-allowed;
}
.alert-form-note {
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 1.4rem;
}
.alert-btn-submit {
  width: 100%;
  background: #2aa6a6;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .8rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(42, 166, 166, 0.3);
}
.alert-btn-submit:hover:not(:disabled) {
  background: #238b8b;
  transform: translateY(-1px);
}
.alert-btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.alert-status-msg {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .88rem;
  display: none;
  line-height: 1.4;
}
.alert-status-msg.success {
  display: block;
  background: rgba(47, 191, 113, 0.15);
  border: 1px solid rgba(47, 191, 113, 0.4);
  color: #4ade80;
}
.alert-status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Toast */
.alert-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #111827;
  border: 1px solid #4ade80;
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: .8rem;
  animation: slideUpToast .3s ease-out;
  font-family: inherit;
}
.alert-toast.unsub {
  border-color: #f59e0b;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideUpToast {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
