:root {
  --bg: #0b0f17;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8edf7;
  --muted: rgba(232, 237, 247, 0.7);
  --primary: #3b82f6;
  --danger: #fca5a5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(ellipse at top, #1a1030 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
}

.card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  background: #5b2d8e;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.lead {
  line-height: 1.45;
  margin: 0 0 16px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
}

.store-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.store-section h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
  text-align: center;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  background: #111;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge .label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: start;
}

.store-badge .eyebrow {
  font-size: 9px;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.store-badge .name {
  font-size: 15px;
  font-weight: 700;
}

.muted {
  opacity: 0.7;
  font-size: 13px;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.4;
}

.error {
  color: var(--danger);
}

.note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  display: none;
}

.note.visible {
  display: block;
}

details.debug {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

details.debug summary {
  cursor: pointer;
}

details.debug code {
  display: block;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
  color: rgba(232, 237, 247, 0.75);
  font-size: 11px;
}

.footer-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}

.footer-links a {
  color: #60a5fa;
  margin: 0 8px;
  text-decoration: none;
}
