.custom-alert {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(32, 24, 4, 0.8);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.alert-content {
	background-color: #fff7e1;
	border: 3px solid #e0c381;
	padding: 30px 40px;
	border-radius: 16px;
	text-align: center;
	max-width: 400px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
	font-family: 'Poppins', sans-serif;
}

.alert-content p {
	color: #3a270e;
	font-size: 1.1rem;
	margin-bottom: 20px;
}

.alert-content button {
	background-color: #ffd700;
	color: #000;
	font-weight: bold;
	border: none;
	padding: 10px 20px;
	border-radius: 50px;
	cursor: pointer;
	font-family: 'Press Start 2P', monospace;
	font-size: 0.7rem;
}


#bitquest-alarm.success {
  background-color: var(--theme-border, #00ffc8);
  color: #000;
  border: 1px solid var(--theme-border, #00ffc8);
}

#bitquest-alarm.error {
  background-color: var(--theme-warning, #ff3c3c);
  color: #fff;
  border: 1px solid var(--theme-warning, #ff3c3c);
}

#bitquest-alarm.warning {
  background-color: #ffa600;
  color: #000;
  border: 1px solid #ffa600;
}

#bitquest-alarm.info {
  background-color: #1e90ff;
  color: #fff;
  border: 1px solid #1e90ff;
}

.bitquest-alarm {
  padding: 16px 24px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 0 18px var(--theme-primary-shadow);
  animation: slideDownFade 0.3s ease forwards;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bitquest-alarm.success { background: #00ffc8; color: #000; border: 1px solid #00ffc8; }
.bitquest-alarm.error   { background: #ff3c3c; color: #fff; border: 1px solid #ff3c3c; }
.bitquest-alarm.warning { background: #ffa600; color: #000; border: 1px solid #ffa600; }
.bitquest-alarm.info    { background: #1e90ff; color: #fff; border: 1px solid #1e90ff; }

.bitquest-dismiss-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
}


/* === BitQuest Modern Alert === */
.bq-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.65);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bqFadeIn 0.4s;
}

.bq-alert {
  position: relative;
  background: rgba(18, 24, 40, 0.98);
  border: 2px solid var(--theme-primary, #00ffc8);
  border-radius: 18px;
  padding: 36px 32px 28px 32px;
  min-width: 280px;
  max-width: 95vw;
  text-align: center;
  overflow: hidden;
  animation: bqPopIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}

.bq-alert .bq-alert-glow {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 0%, var(--theme-primary, #00ffc8) 0%, transparent 70%);
  opacity: 0.18;
  filter: blur(8px);
  animation: bqGlowMove 3s linear infinite alternate;
}

.bq-alert-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: var(--theme-primary, #00ffc8);
  text-shadow: 0 0 12px var(--theme-primary), 0 0 24px var(--theme-paragraph);
  animation: bqPulse 1.8s infinite;
}

.bq-alert-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-primary, #00ffc8);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.bq-alert-message {
  font-size: 1.08rem;
  color: var(--theme-paragraph, #9fffea);
  margin-bottom: 24px;
  line-height: 1.6;
}

.bq-alert-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.bq-alert-btn {
  background: transparent;
  border: 2px solid var(--theme-primary, #00ffc8);
  color: var(--theme-primary, #00ffc8);
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px #00ffc822;
}

.bq-alert-btn:hover {
  background: var(--theme-primary, #00ffc8);
  color: #181c24;
  box-shadow: 0 0 16px #00ffc8;
}

.bq-alert-btn.bq-cancel {
  border-color: var(--theme-warning, #ff6e6e);
  color: var(--theme-warning, #ff6e6e);
}

.bq-alert-btn.bq-cancel:hover {
  background: var(--theme-warning, #ff6e6e);
  color: #181c24;
  box-shadow: 0 0 16px var(--theme-warning, #ff6e6e);
}

/* Animations */
@keyframes bqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bqPopIn {
  0% { opacity: 0; transform: scale(0.7);}
  80% { opacity: 1; transform: scale(1.05);}
  100% { opacity: 1; transform: scale(1);}
}
@keyframes bqPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
@keyframes bqGlowMove {
  0% { background-position: 50% 0%; }
  100% { background-position: 50% 100%; }
}