/* ===== COMMON.CSS — Shared styles ===== */

:root {
  --bg-dark: #0a0a1a;
  --bg-card: #141428;
  --accent: #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --gold: #ffd700;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --success: #28d47c;
  --danger: #ff4466;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Offline overlay */
.offline-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 26, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offline-content {
  text-align: center;
}

/* Fade transitions */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

.fade-out {
  animation: fadeOut 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Toast / feedback */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease-out;
}

.toast-msg.success { border-left: 4px solid var(--success); }
.toast-msg.error   { border-left: 4px solid var(--danger); }
