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

:root {
  --brand:       #714B67;
  --brand-dark:  #5d3d55;
  --brand-light: #f3eef1;
  --bg:          #f0f2f5;
  --surface:     #ffffff;
  --text:        #1a1a2e;
  --muted:       #6b7280;
  --border:      #e5e7eb;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  font-family: Inter, "Segoe UI", Roboto, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 10px 30px -5px rgba(0,0,0,.10);
  padding: 48px 40px 36px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

/* ── Logo ── */
.logo-wrap {
  margin-bottom: 32px;
}

.logo-wrap img {
  height: 40px;
  max-width: 200px;
  object-fit: contain;
}

/* ── Icon Badge ── */
.icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--brand);
}

.icon-badge svg {
  width: 32px;
  height: 32px;
}

/* ── Error Code ── */
.error-code {
  font-size: 68px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -3px;
}

/* ── Text ── */
.error-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.error-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ── Status Bar ── */
.status-bar {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--amber { background: #f59e0b; animation: pulse-dot 2s ease-in-out infinite; }
.dot--red   { background: #ef4444; }
.dot--gray  { background: #9ca3af; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(.85); }
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  display: block;
  margin-bottom: 3px;
}

.status-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  line-height: 1;
}

.btn + .btn { margin-top: 10px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(113,75,103,.35);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid #ddd3d9;
}

.btn-outline:hover { background: var(--brand-light); border-color: var(--brand); }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Countdown ── */
.countdown {
  font-size: 12.5px;
  color: #aaa;
  margin-top: 14px;
  min-height: 18px;
}

/* ── Divider / Footer ── */
.divider { height: 1px; background: var(--border); margin: 28px 0 20px; }

.footer { font-size: 12.5px; color: #bbb; }

/* ── Responsive ── */
@media (max-width: 480px) {
  .card        { padding: 36px 22px 28px; }
  .error-code  { font-size: 52px; }
  .error-title { font-size: 18px; }
}
