:root {
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --indigo: #4f46e5;
  --indigo-hover: #4338ca;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --page-bg: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: #1f2937;
    --card-border: #374151;
    --text: #f9fafb;
    --muted: #9ca3af;
    --page-bg: #030712;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 28rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  padding: 2rem;
  animation: cardIn 0.55s ease-out both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand img {
  height: 5.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.region-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.region-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  transition: background 0.15s ease;
}

.region-row:last-child { border-bottom: none; }

.region-row:not(.disabled):hover {
  background: rgba(79, 70, 229, 0.08);
}

.region-row.selected {
  background: rgba(79, 70, 229, 0.12);
}

.region-row.disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.region-label { font-size: 0.95rem; font-weight: 500; }

.badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  white-space: nowrap;
}

.badge.current {
  background: rgba(79, 70, 229, 0.2);
  color: var(--indigo);
}

.badge.soon {
  background: #f3f4f6;
  color: #9ca3af;
}

@media (prefers-color-scheme: dark) {
  .badge { background: #374151; color: #d1d5db; }
  .badge.soon { background: #374151; color: #9ca3af; }
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--indigo-hover); }

.btn-secondary {
  background: var(--blue);
  color: #fff;
}
.btn-secondary:hover:not(:disabled) { background: var(--blue-hover); }

.footer-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
