:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2f3b4d;
  --text: #e7ecf3;
  --muted: #8b98a8;
  --accent: #1d9bf0;
  --accent-hover: #1a8cd8;
  --success: #00ba7c;
  --warning: #ffad1f;
  --danger: #f4212e;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  line-height: 1.5;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d9bf0, #7856ff);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 32px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.ios-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ios-steps li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ios-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.status.visible {
  display: block;
}

.status.info {
  background: rgba(29, 155, 240, 0.15);
  color: #8ecdf8;
}

.status.success {
  background: rgba(0, 186, 124, 0.15);
  color: #5ee4b5;
}

.status.warning {
  background: rgba(255, 173, 31, 0.15);
  color: #ffd27a;
}

.status.error {
  background: rgba(244, 33, 46, 0.15);
  color: #ff8a93;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
}

.badge.on {
  background: rgba(0, 186, 124, 0.2);
  color: var(--success);
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 24px;
}

@media (min-width: 481px) {
  .app {
    padding-top: 40px;
  }
}
