.cert-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(20, 20, 40, 0.06);
}

.cert-card h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--fg, #1c2b4a);
}

.cert-card p.lead {
  color: var(--muted, #667);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cert-step { display: none; }
.cert-step.is-active { display: block; }

.cert-field {
  margin-bottom: 1.1rem;
}

.cert-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #374151;
}

.cert-field input[type="email"],
.cert-field input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.cert-field input.otp-input {
  letter-spacing: 0.5em;
  font-family: var(--font-mono, monospace);
  font-size: 1.3rem;
  text-align: center;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary, #1e1b4b);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cert-btn:hover { opacity: 0.92; }
.cert-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.cert-btn-link {
  background: none;
  border: none;
  color: var(--primary-mid, #33417a);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.4rem 0;
}

.cert-status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.cert-status.is-error { color: #b91c1c; }
.cert-status.is-success { color: #166534; }
.cert-status.is-info { color: #6b7280; }

.cert-bypass-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #92400e;
}

.cert-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cert-list-header h1 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.5rem;
  color: var(--fg, #1c2b4a);
}

.cert-list-header .cert-email {
  color: var(--muted, #667);
  font-size: 0.9rem;
}

.cert-logout-btn {
  font-size: 0.85rem;
  color: var(--muted, #667);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.cert-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 12px rgba(20, 20, 40, 0.05);
}

.cert-item .track-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  margin-bottom: 0.6rem;
}

.cert-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--fg, #1c2b4a);
}

.cert-item .cert-proto {
  font-size: 0.88rem;
  color: var(--muted, #667);
  margin-bottom: 1rem;
}

.cert-item a.cert-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: var(--primary, #1e1b4b);
  color: #fff;
  text-decoration: none;
}

.cert-item a.cert-download:hover { opacity: 0.92; }

.cert-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted, #667);
}
