/* ============================================================================
   QMB ICO Guided UX Stylesheet — v5.5 Unified (Mainnet + Testnet)
   Contains: Wallet Selector, Success Popup, Toast Layout, Mobile Responsiveness
   ============================================================================ */

/* --- Wallet Chooser Modal --- */
#wallet-selector {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.wallet-modal {
  background: #1f2937;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(165, 180, 252, 0.3);
  padding: 28px 32px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease;
}

.wallet-modal h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #e0e7ff;
}

.wallet-modal p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.wallet-buttons button:hover {
  background: #6366f1;
  transform: translateY(-1px);
}

.wallet-buttons img {
  width: 22px;
  height: 22px;
}

/* --- Success Popup Overlay --- */
#success-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.qmb-success {
  background: #111827;
  border-radius: 14px;
  border: 1px solid rgba(165, 180, 252, 0.25);
  padding: 25px 30px;
  color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.qmb-success h3 {
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.qmb-success p {
  margin: 6px 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.qmb-success a {
  color: #60a5fa;
  text-decoration: underline;
}

.qmb-success button {
  margin-top: 16px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qmb-success button:hover {
  background: #6366f1;
}

/* --- Toast messages (intent-msg classes) --- */
#intent-msg {
  text-align: center;
  margin-top: 10px;
  min-height: 24px;
  font-weight: 500;
  transition: color 0.25s ease;
}
#intent-msg.ok { color: #22c55e; }
#intent-msg.err { color: #f43f5e; }
#intent-msg.warn { color: #facc15; }
#intent-msg.muted { color: #a5b4fc; }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Responsive Tweaks --- */
@media (max-width: 480px) {
  .wallet-modal {
    padding: 20px;
    font-size: 0.95rem;
  }
  .wallet-buttons button {
    font-size: 0.9rem;
  }
  .qmb-success {
    padding: 20px;
    font-size: 0.95rem;
  }
  .qmb-success h3 {
    font-size: 1.05rem;
  }
}
