:root {
  --blue: #1A3C6E;
  --white: #FFFFFF;
  --orange: #FF6B2C;
  --text: #1F2937;
  --muted: #6B7280;
  --bg: #F4F6FA;
  --red: #C62828;
  --green: #2E7D32;
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue);
  color: var(--white);
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
}

.logo { font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.secure { font-size: 13px; opacity: .85; }

.card {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 24px auto;
  padding: 0 16px;
}

.state {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26, 60, 110, .08);
}

.state h1 { font-size: 20px; margin: 16px 0 8px; color: var(--blue); }
.state p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }

.spinner {
  width: 44px; height: 44px; margin: 0 auto;
  border: 4px solid #E3E8F0;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--white);
}
.icon-error { background: var(--red); }
.icon-pending { background: var(--orange); }
.icon-ok { background: var(--green); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-orange { background: #FFF0E8; color: var(--orange); }

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
