.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-subtitle {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.auth-supported-by {
  text-align: center;
  margin-top: var(--space-sm);
}

.auth-supported-heading {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

/* ── Clients / Servers two-column layout ── */
.auth-logo-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.logo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
}

.logo-column-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.logo-column-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.logo-divider {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
  margin: 0 var(--space-lg);
  min-height: 60px;
}

.auth-logo-grid .logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
  text-decoration: none;
  width: 72px;
}

.auth-logo-grid .logo-link:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.auth-logo-grid .logo-img {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.logo-name {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
  width: 100%;
  line-height: 1.2;
}

/* ── QR code ── */
#qrCode {
  text-align: center;
  margin: var(--space-xl) 0;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

#qrCode img {
  max-width: 100%;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px var(--glow-subtle);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#qrCode img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px var(--glow-medium);
}

.qr-tap-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: var(--space-sm);
}

.uri-display {
  background: var(--bg-primary);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  word-break: break-all;
  font-size: 0.75rem;
  margin-top: var(--space-md);
  border: 1px solid var(--border-subtle);
}

.uri-label {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uri-value {
  color: var(--accent-primary);
  font-family: var(--font-data);
}

/* ── Status banner ── */
.status {
  text-align: center;
  margin: var(--space-md) 0;
  font-size: 1rem;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
}

.status.pending {
  color: var(--accent-warning);
  animation: pulse 1.5s ease-in-out infinite;
}

.status.success {
  color: var(--accent-success);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--border-default);
}

.status.error {
  color: var(--accent-error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--accent-error);
}

/* ── Success result card ── */
.result {
  margin-top: var(--space-md);
  padding: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

/* Profile row: avatar + name/code side by side */
.result-profile {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.result-avatar-wrap {
  flex-shrink: 0;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  display: none;
  object-fit: cover;
  box-shadow: 0 0 16px var(--glow-subtle);
}

.avatar.show {
  display: block;
}

/* Placeholder shown until real avatar loads */
.avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.result-identity {
  flex: 1;
  min-width: 0;
}

.result-nym-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-nym-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* Payment code box */
.result-code-wrap {
  margin-bottom: var(--space-lg);
}

.result-code-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.result-code-value {
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
  background: var(--bg-elevated);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  line-height: 1.6;
}

/* Countdown row */
.result-countdown {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-countdown span {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ── Instructions ── */
.instructions {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.instructions h3 {
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
  font-size: 1rem;
}

.instructions ol {
  margin-left: 1.5rem;
  line-height: 1.8;
}

.instructions li {
  margin: var(--space-sm) 0;
  color: var(--text-muted);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Mobile: stack Clients/Servers columns, keep logos horizontal */
@media (max-width: 600px) {
  .auth-logo-grid {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .logo-divider {
    display: none;
  }

  .logo-column {
    width: 100%;
  }

  .logo-column-icons {
    flex-wrap: nowrap;
    justify-content: center;
  }
}
