/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.3);
}
.btn-primary:hover {
  background: var(--primary-mid);
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border-light); }
.btn-success {
  background: linear-gradient(145deg, #059669, #047857);
  color: #fff;
  box-shadow: 0 2px 8px var(--verified-glow);
}
.btn-success:hover {
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--white);
  color: var(--compromised);
  border: 2px solid var(--compromised-border);
}
.btn-danger:hover { background: var(--compromised-bg); }
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

/* ─── Form fields ─── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.25s ease;
  background: var(--white);
}
.field input:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 4px var(--primary-ring);
}
.field input.otp-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 10px;
  text-align: center;
  text-transform: uppercase;
  padding: 14px 16px;
  background: var(--surface);
}

/* ─── Alerts ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert-error {
  background: var(--compromised-bg);
  border: 1px solid var(--compromised-border);
  color: var(--compromised);
}
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert-info {
  background: var(--primary-dim);
  border: 1px solid var(--primary-ring);
  color: var(--primary);
}

/* ─── Status badges ─── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pending { background: #f3f4f6; color: #6b7280; }
.status-pending::before { background: #9ca3af; }
.status-notified { background: #fef3c7; color: #92400e; }
.status-notified::before { background: #d97706; }
.status-delivered { background: #ecfdf5; color: #065f46; }
.status-delivered::before { background: #059669; }
.status-refused { background: #fef2f2; color: #991b1b; }
.status-refused::before { background: #dc2626; }
.status-negligence { background: #fff7ed; color: #9a3412; }
.status-negligence::before { background: #ea580c; }
.status-notification_failed { background: #fef2f2; color: #991b1b; }
.status-notification_failed::before { background: #991b1b; }

/* Status pill variant (portal) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* ─── Info boxes ─── */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.info-box .info-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.info-box .info-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

/* ─── Security badge ─── */
.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 28px;
  letter-spacing: 0.2px;
}
.security-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink-muted);
  fill: none;
  stroke-width: 2;
}

/* ─── Hash display ─── */
.hash-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-secondary);
  word-break: break-all;
  line-height: 1.6;
  background: var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}
.hash-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-muted);
  margin-bottom: 3px;
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.hash-value { color: var(--ink); }
.hash-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  word-break: break-all;
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ─── Header / Logo brand ─── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.logo-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.logo-brand-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.logo-brand-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--primary-dim);
  border-radius: 20px;
}
.logo-brand-badge svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.logo-brand-badge span {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

/* ─── Prospect logo area ─── */
.prospect-logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}
.prospect-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}
.prospect-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* ─── Footer ─── */
.portal-footer, .footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
}

/* ─── Attachments ─── */
.attachment-list { list-style: none; }
.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background 0.15s;
}
.attachment-item:hover { background: var(--surface-hover); }
.attachment-item .att-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.attachment-item .att-size { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.attachment-item a {
  font-size: 13px;
  color: var(--primary-mid);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.attachment-item a:hover { background: var(--primary-dim); }

/* ─── Message content ─── */
.message-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 20px 0;
  line-height: 1.75;
  font-size: 15px;
  color: var(--ink);
}

/* ─── Responsive ─── */
@media (max-width: 560px) {
  .header { padding: 14px 16px; }
  .logo-brand img { height: 32px; }
  .logo-brand-divider { display: none; }
  .prospect-divider { display: none; }
  .prospect-logo { height: 24px; }
  .btn-group { gap: 8px; }
  .info-box { padding: 10px 14px; }
  .info-box .info-value { font-size: 13px; }
  .field input { padding: 10px 14px; font-size: 14px; }
  .field input.otp-input { font-size: 22px; letter-spacing: 8px; }
  .attachment-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .attachment-item a { padding: 4px 0; }
  .hash-block { font-size: 10px; padding: 8px 12px; }
  .message-content { padding: 16px; font-size: 14px; }
}
