:root {
  --bg: #0b1220;
  --card-bg: #101a2c;
  --text: #e8edf7;
  --text-sub: #9aa7bd;
  --blue: #2f6fed;
  --blue-dark: #1e4fb8;
  --red: #e5484d;
  --red-bg: rgba(229, 72, 77, 0.12);
  --amber: #f2b13d;
  --amber-bg: rgba(242, 177, 61, 0.12);
  --border: #223252;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.brand-logo {
  width: 48px; height: 48px;
  display: block;
  border-radius: 50%;
}
.brand-name { font-weight: 600; font-size: 15px; color: var(--text-sub); }

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.state[hidden] { display: none; }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.icon-info { background: rgba(47, 111, 237, 0.15); color: var(--blue); }
.icon-caution { background: var(--amber-bg); color: var(--amber); }
.icon-blocked { background: var(--red-bg); color: var(--red); }

.lead { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.sub { font-size: 13.5px; color: var(--text-sub); margin: 0 0 20px; line-height: 1.5; }

.destination {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  text-align: left;
}
.destination-label { display: block; font-size: 11px; color: var(--text-sub); margin-bottom: 2px; }
.destination-host { display: block; font-size: 14px; font-weight: 600; word-break: break-all; }
.destination-reason { display: block; font-size: 12px; color: var(--red); margin-top: 4px; }
.destination-caution { border-color: rgba(242, 177, 61, 0.4); }
.destination-blocked { border-color: rgba(229, 72, 77, 0.4); background: var(--red-bg); }

.btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.btn:last-child { margin-bottom: 0; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-caution { background: var(--amber); color: #201400; }
.btn-danger { background: var(--red); color: #fff; }

.footer-brand { margin-top: 24px; font-size: 12px; color: var(--text-sub); }
