:root {
  --bg: #0a0e17;
  --card: rgba(18, 24, 38, 0.85);
  --border: rgba(99, 179, 237, 0.2);
  --text: #e8edf5;
  --muted: #8b9bb4;
  --accent: #63b3ed;
  --accent-dim: #2b6cb0;
  --success: #68d391;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(43, 108, 176, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 179, 237, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 1.25rem 0 0.75rem;
}

.card h2:first-child {
  margin-top: 0;
}

dl {
  display: grid;
  gap: 0.5rem;
}

dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

dl div:last-child {
  border-bottom: none;
}

dt {
  color: var(--muted);
  font-weight: 500;
}

dd {
  word-break: break-word;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

#loading {
  text-align: center;
  padding: 2.5rem;
  color: var(--muted);
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.phone-form {
  margin-top: 0.5rem;
}

.phone-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.phone-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.phone-row input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
}

.phone-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.phone-row button {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.phone-row button:hover {
  filter: brightness(1.1);
}

.hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hint.saved {
  color: var(--success);
}

footer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.redirect-page .redirect-box {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

.redirect-page .spinner {
  margin: 0 auto 1rem;
}

@media (max-width: 480px) {
  dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
