/* ── CERT INPUT SECTION ── */
.cert-input-chamber {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(
    135deg,
    var(--nintendo-red) 0%,
    var(--gcn-purple-glow) 35%,
    var(--snes-select-yellow) 70%,
    var(--nintendo-secondary) 100%
  );
  background-size: 200% 200%;
  box-shadow:
    0 0 0 1px rgba(252, 224, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .cert-input-chamber {
    animation: certChamberGlow 14s ease-in-out infinite alternate;
  }
}

@keyframes certChamberGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-input-chamber {
    background: linear-gradient(135deg, var(--nintendo-red), var(--nintendo-secondary));
  }
}

.cert-chamber-corners {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 1;
}
.cert-chamber-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(252, 224, 0, 0.55);
  border-style: solid;
}
.cert-chamber-corner.tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-radius: 2px 0 0 0;
}
.cert-chamber-corner.tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
  border-radius: 0 2px 0 0;
}
.cert-chamber-corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 2px;
}
.cert-chamber-corner.br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 2px 0;
}

.cert-input-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cert-input-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--snes-select-yellow);
  box-shadow: 0 2px 0 var(--nintendo-primary);
}
.cert-input-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}
.cert-input-brand-mark {
  position: relative;
  flex-shrink: 0;
}
.cert-input-brand-mark img {
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cert-input-icon {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--coin-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.55rem;
  color: var(--coin-gold);
  text-shadow: 0 0 8px rgba(245, 197, 24, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.cert-input-brand-copy {
  min-width: 0;
  flex: 1;
  max-width: 420px;
}
.cert-input-badge {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nintendo-red);
  margin-bottom: 0.35rem;
}
.cert-input-title { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.25; }
.cert-input-sub {
  color: var(--text-secondary); font-size: 0.86rem; max-width: 460px;
  margin: 0 auto 1.4rem; line-height: 1.6;
}
.cert-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
  max-width: 400px; margin: 0 auto 1.4rem; text-align: left;
}
.cert-field label {
  display: block; font-family: var(--font-sans); font-size: 0.48rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem;
}
.cert-field input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.84rem; outline: none; transition: border-color 0.2s;
}
.cert-field input:focus { border-color: var(--nintendo-red); }
.cert-field input:focus-visible {
  outline: 4px solid var(--nintendo-focus);
  outline-offset: 4px;
}
.cert-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--nintendo-red); color: #fff; border: none;
  padding: 0.65rem 1.6rem; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.58rem;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.cert-btn:hover { background: var(--nintendo-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(230,0,18,0.25); }
.cert-btn:active { transform: translateY(0); }
.cert-btn:focus-visible {
  outline: 4px solid var(--nintendo-focus);
  outline-offset: 4px;
}
#cert-status {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

#cert-status.cert-status--warn {
  color: var(--coin-gold);
}

#cert-status.cert-status--err {
  color: var(--nintendo-red);
}

#cert-status.cert-status--ok {
  color: var(--pipe-green);
}

/* ══════════════════════════════════════════
