/* One-time Telegram bot entry promo + maintenance overlay */
.welcome-modal-overlay,
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(4px);
}

.welcome-modal-overlay[hidden],
.maintenance-overlay[hidden] {
  display: none !important;
}

.welcome-modal-card {
  width: 100%;
  max-width: 400px;
  max-height: min(88vh, 560px);
  overflow-y: auto;
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #f1f5f9;
  text-align: center;
}

html[data-theme='light'] .welcome-modal-card {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
  color: #0f172a;
}

.welcome-modal-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.welcome-modal-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.welcome-modal-testing {
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  white-space: pre-wrap;
}

html[data-theme='light'] .welcome-modal-testing {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.welcome-modal-body {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
  text-align: left;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

html[data-theme='light'] .welcome-modal-body {
  color: #475569;
}

.welcome-modal-cta {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e94560, #c73a52);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.welcome-modal-cta:hover {
  filter: brightness(1.08);
}

.maintenance-overlay {
  z-index: 11000;
}

.maintenance-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface, #1e293b);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  color: #f1f5f9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.maintenance-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: #f59e0b;
}

.maintenance-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
  white-space: pre-wrap;
}

body.maintenance-active #the-whole-content {
  pointer-events: none;
  user-select: none;
  opacity: 0.35;
  filter: grayscale(0.4);
}

body.maintenance-active .ethiomark-bottom-navbar,
body.maintenance-active .top-chrome-bar {
  pointer-events: none;
}
