/* ============================================================
   Kernel of Truth — Stylesheet
   Corn-themed cryptographic provenance platform
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --corn-gold:      #E8B84B;
  --corn-dark:      #C49A2A;
  --corn-light:     #F5D272;
  --husk-green:     #4A7C3F;
  --husk-dark:      #2D5016;
  --husk-light:     #6B9B60;
  --cream:          #FDF8EE;
  --text-dark:      #1C1C2E;
  --text-medium:    #4A4A6A;
  --text-muted:     #888899;
  --bg:             #FAFAF5;
  --bg-alt:         #F3F0E6;
  --border:         #E0DBD0;
  --border-dark:    #C8C4B8;
  --white:          #FFFFFF;
  --danger:         #DC3545;
  --danger-light:   #FFF0F0;
  --success:        #2D8B4E;
  --success-light:  #EAF7EE;
  --warning:        #C49A2A;
  --warning-light:  #FFF9E6;
  --info:           #1E6FA8;
  --info-light:     #EAF4FF;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --header-h:       64px;
  --font-mono:      'Fira Mono', 'Cascadia Code', 'Menlo', 'Consolas', monospace;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--husk-green);
  text-decoration: none;
}
a:hover { text-decoration: underline; color: var(--husk-dark); }

img { display: block; max-width: 100%; height: auto; }

code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}

ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-narrow  { max-width: 480px; }
.page-wide    { max-width: 1100px; }

.site-main {
  flex: 1;
  padding-bottom: 60px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--corn-gold);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-medium);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text-dark); background: var(--bg-alt); }
.nav-link.active { color: var(--husk-green); font-weight: 700; }

/* User menu */
.nav-user-menu { position: relative; }
.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: border-color 0.15s;
}
.nav-user-trigger:hover { border-color: var(--corn-gold); }
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-avatar-initials {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--corn-gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}
.nav-user-menu.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.1s;
}
.nav-dropdown a:hover { background: var(--bg-alt); }
.nav-dropdown a.danger { color: var(--danger); }
.nav-dropdown a.danger:hover { background: var(--danger-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s;
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

/* ── Flash messages ─────────────────────────────────────────── */
.flash {
  padding: 12px 0;
  font-weight: 500;
  font-size: 0.9rem;
}
.flash-success { background: var(--success-light); color: var(--success); border-bottom: 1px solid #b3dfbe; }
.flash-error   { background: var(--danger-light);  color: var(--danger);  border-bottom: 1px solid #f5c6cb; }
.flash-warning { background: var(--warning-light); color: var(--warning); border-bottom: 1px solid #ffc107; }
.flash-info    { background: var(--info-light);    color: var(--info);    border-bottom: 1px solid #b3d4f5; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--corn-gold);
  color: var(--text-dark);
  border-color: var(--corn-gold);
}
.btn-primary:hover { background: var(--corn-dark); border-color: var(--corn-dark); color: var(--white); }

.btn-secondary {
  background: var(--husk-green);
  color: var(--white);
  border-color: var(--husk-green);
}
.btn-secondary:hover { background: var(--husk-dark); border-color: var(--husk-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-medium);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--border-dark); color: var(--text-dark); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover { background: #b02a37; border-color: #b02a37; }

.btn-lg   { padding: 14px 28px; font-size: 1rem; }
.btn-sm   { padding: 7px 14px; font-size: 0.82rem; }
.btn-xs   { padding: 4px 10px; font-size: 0.78rem; }
.btn-full { width: 100%; }

.link-btn {
  background: none;
  border: none;
  color: var(--husk-green);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}
.link-btn:hover { color: var(--husk-dark); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.card h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-dark); }
.card h3 { font-size: 1rem; margin: 20px 0 8px; color: var(--text-dark); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--text-muted); }
.required { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--corn-gold);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.2);
}
textarea { resize: vertical; min-height: 80px; }

.mono-text { font-family: var(--font-mono); font-size: 0.85rem; }

.input-with-toggle {
  position: relative;
}
.input-with-toggle input { padding-right: 44px; }
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  opacity: 0.6;
}
.toggle-password:hover { opacity: 1; }

.input-prefix-wrapper { position: relative; }
.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}
.input-prefix + input { padding-left: 28px; }

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.danger-text { color: var(--danger) !important; }
.section-subheading { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 12px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-label input { width: auto; }

/* Password strength */
.password-strength {
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 600;
}
.strength-1 { color: #DC3545; }
.strength-2 { color: #F67C5F; }
.strength-3 { color: #E8B84B; }
.strength-4 { color: #4A7C3F; }
.strength-5 { color: #2D5016; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-error   { background: var(--danger-light);  color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: var(--success-light); color: #155724; border: 1px solid #c3e6cb; }
.alert-warning { background: var(--warning-light); color: #856404; border: 1px solid #ffc107; }
[data-theme="dark"] .alert-error   { background: rgba(180,40,40,0.15);  color: #f08080; border-color: #7a2020; }
[data-theme="dark"] .alert-warning { background: rgba(180,120,0,0.15);  color: #f0c060; border-color: #7a5000; }
.error-list    { list-style: disc; padding-left: 20px; }
.error-list li { margin-bottom: 4px; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-green  { background: var(--success-light); color: var(--success); }
.badge-yellow { background: var(--warning-light); color: var(--warning); }
.badge-gold   { background: var(--corn-light);    color: var(--husk-dark); }
.badge-red    { background: var(--danger-light);  color: var(--danger); }
.badge-blue   { background: var(--info-light);    color: var(--info); }

/* ── Hero section ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--husk-dark) 0%, var(--husk-green) 100%);
  color: var(--white);
  padding: 80px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-content { flex: 1; }
.hero-graphic { flex-shrink: 0; opacity: 0.9; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--corn-light);
}
.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Sections ─────────────────────────────────────────────────── */
.section       { padding: 64px 0; }
.section-alt   { background: var(--bg-alt); }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--corn-gold);
  color: var(--text-dark);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 36px; margin: 12px 0 14px; }
.step-card h3 { font-size: 1rem; margin-bottom: 8px; }
.step-card p  { font-size: 0.9rem; color: var(--text-medium); }

/* Disclaimer box */
.disclaimer-box {
  display: flex;
  gap: 20px;
  background: var(--warning-light);
  border: 1px solid #f0d070;
  border-radius: var(--radius-md);
  padding: 24px;
  align-items: flex-start;
}
.disclaimer-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.disclaimer-box h3 { margin-bottom: 8px; }
.disclaimer-box p  { font-size: 0.9rem; color: var(--text-medium); }

/* CTA section */
.cta-section { background: linear-gradient(135deg, var(--corn-dark), var(--corn-gold)); text-align: center; }
.cta-section h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.cta-section p  { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1.1rem; }

/* Recent claims list */
.claims-list { display: flex; flex-direction: column; gap: 12px; }
.claim-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.claim-row-info { flex: 1; min-width: 0; }
.claim-title {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.claim-title:hover { color: var(--husk-green); }
.claim-meta { font-size: 0.8rem; color: var(--text-muted); }

/* Content type badges */
.claim-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.type-text     { background: #E8F4FD; color: #1A6FA8; }
.type-document { background: #FFF3E0; color: #E65100; }
.type-image    { background: #F3E5F5; color: #7B1FA2; }
.type-other    { background: var(--bg-alt); color: var(--text-medium); }

/* ── Auth pages ──────────────────────────────────────────────── */
.page-narrow.container { padding-top: 48px; padding-bottom: 48px; }
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 16px; }
.auth-logo img { margin: 0 auto; }
.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.auth-form     { margin-bottom: 20px; }
.auth-footer   { text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--husk-green); font-weight: 600; }

/* ── Claim page ──────────────────────────────────────────────── */
.page-header { padding: 32px 0 24px; }
.page-header-flex { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.claim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.15s, background 0.15s;
}
.tab-btn:hover { color: var(--text-dark); background: var(--bg-alt); }
.tab-btn.active { color: var(--husk-green); border-bottom-color: var(--husk-green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* File drop zone */
.file-drop-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--corn-gold);
  background: var(--warning-light);
}
.file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.file-drop-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.file-hint { font-size: 0.78rem !important; }
.file-info { margin-top: 10px; padding: 10px 14px; background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 0.85rem; }
.file-info.error { background: var(--danger-light); color: var(--danger); }

.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--corn-gold); transition: width 0.2s; }

/* Hash result */
.hash-result {
  margin-top: 20px;
  background: var(--husk-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.hash-result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hash-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.hash-display {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--corn-light);
  background: rgba(0,0,0,0.3);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.hash-hint { font-size: 0.78rem; opacity: 0.7; margin-bottom: 10px; }

/* Hash input indicator */
.hash-input-wrapper { position: relative; }
.hash-check-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}
.indicator-checking { color: var(--text-muted); }
.indicator-available { color: var(--success); }
.indicator-taken { color: var(--danger); }

.hash-options { margin-bottom: 12px; }

/* Manual key */
.manual-key {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 8px 0;
}
.manual-key code { flex: 1; word-break: break-all; font-size: 0.82rem; }

/* Claim notice */
.claim-notice {
  background: var(--warning-light);
  border: 1px solid #f0d070;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #7a5200;
  margin-bottom: 16px;
}

/* ── Verification page ───────────────────────────────────────── */
.verify-certificate {
  background: var(--white);
  border: 2px solid var(--corn-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 32px auto 24px;
  max-width: 900px;
}
.cert-header {
  background: linear-gradient(135deg, var(--husk-dark), var(--husk-green));
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cert-logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.cert-logo img { filter: brightness(1.2); }
.cert-logo strong { font-size: 1rem; display: block; color: var(--corn-light); }
.cert-logo span { font-size: 0.75rem; opacity: 0.7; }
.cert-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.cert-status-valid { background: rgba(45, 139, 78, 0.3); color: #90EAB0; border: 1px solid rgba(45,139,78,0.5); }
.cert-status-icon  { font-size: 16px; }

.cert-body { padding: 28px; }
.cert-title-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cert-title { flex-basis: 100%; }
.ai-disclosure-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; font-family: system-ui, sans-serif;
  border-radius: 100px; padding: 3px 10px; border: 1px solid;
  white-space: nowrap;
}
.ai-disclosure-human            { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.ai-disclosure-ai_assisted      { background: #e3f2fd; color: #0d47a1; border-color: #90caf9; }
.ai-disclosure-ai_generated     { background: #fce4ec; color: #880e4f; border-color: #f48fb1; }
.ai-disclosure-human_curated_ai { background: #fff8e1; color: #e65100; border-color: #ffcc80; }
[data-theme="dark"] .ai-disclosure-human            { background: rgba(27,94,32,0.25);   color: #a5d6a7; border-color: rgba(165,214,167,0.4); }
[data-theme="dark"] .ai-disclosure-ai_assisted      { background: rgba(13,71,161,0.25);  color: #90caf9; border-color: rgba(144,202,249,0.4); }
[data-theme="dark"] .ai-disclosure-ai_generated     { background: rgba(136,14,79,0.25);  color: #f48fb1; border-color: rgba(244,143,177,0.4); }
[data-theme="dark"] .ai-disclosure-human_curated_ai { background: rgba(230,81,0,0.2);    color: #ffcc80; border-color: rgba(255,204,128,0.4); }

.cert-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}
.cert-description { color: var(--text-medium); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; }

.cert-details { display: flex; flex-direction: column; gap: 0; }
.cert-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cert-detail-row:last-child { border-bottom: none; }
.cert-detail-row dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.cert-detail-row dd { font-size: 0.95rem; }

.claimer-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cert-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cert-avatar-initials {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--corn-gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.social-link { text-decoration: none; opacity: 0.7; }
.social-link:hover { opacity: 1; }

.hash-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  background: none;
  padding: 0;
  color: var(--text-dark);
}
.hash-display-wrapper { display: flex; align-items: flex-start; gap: 10px; }
.verify-url-link { font-size: 0.9rem; color: var(--husk-green); word-break: break-all; }

.cert-footer {
  background: var(--bg-alt);
  padding: 16px 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* Share card */
.share-card { max-width: 900px; margin: 0 auto 24px; }
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.share-btn:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.share-btn .share-icon { font-style: normal; font-weight: 900; }
.share-twitter  { background: #000; color: #fff; }
.share-mastodon { background: #563ACC; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-reddit   { background: #FF4500; color: #fff; }

.share-formats { display: flex; flex-direction: column; gap: 12px; }
.share-format-row label { font-size: 0.8rem; margin-bottom: 4px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-medium); }
.copy-row .btn { flex-shrink: 0; }

/* Self-verify card */
.verify-self-card { max-width: 900px; margin: 0 auto 40px; }
.verify-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}
.verify-match   { background: var(--success-light); color: var(--success); border: 1px solid #b3dfbe; }
.verify-nomatch { background: var(--danger-light);  color: var(--danger);  border: 1px solid #f5c6cb; }
.verify-loading { background: var(--info-light);    color: var(--info);    border: 1px solid #b3d4f5; }
.verify-error   { background: var(--danger-light);  color: var(--danger);  border: 1px solid #f5c6cb; }
.hidden { display: none !important; }

/* ── Dashboard ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.data-table th {
  background: var(--bg-alt);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}
.data-table tr:hover td { background: var(--bg); }
.row-inactive td { opacity: 0.5; }
.table-title-link { font-weight: 600; color: var(--text-dark); }
.table-title-link:hover { color: var(--husk-green); }
.table-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.hash-partial { font-size: 0.78rem; color: var(--text-muted); }
.actions-cell { white-space: nowrap; }
.actions-cell .btn + .btn { margin-left: 4px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 24px 0;
}
.page-indicator { font-size: 0.875rem; color: var(--text-muted); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p  { color: var(--text-muted); margin-bottom: 24px; }

/* ── Profile page ────────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.profile-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 12px;
}
.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--corn-gold);
}
.profile-avatar-placeholder-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--corn-gold);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--corn-dark);
}
.profile-tabs { display: flex; flex-direction: column; gap: 4px; }
.profile-tab {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.profile-tab:hover  { background: var(--bg-alt); color: var(--text-dark); }
.profile-tab.active { background: var(--corn-light); color: var(--husk-dark); font-weight: 700; }

.avatar-preview-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--corn-gold);
  margin-bottom: 16px;
}
.avatar-preview-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--corn-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; color: var(--white);
  margin-bottom: 16px;
}
.current-avatar-preview { text-align: center; }

/* MFA status */
.mfa-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.mfa-enabled { background: var(--success-light); color: var(--success); }
.mfa-disabled { background: var(--warning-light); color: var(--warning); }
.mfa-verify-form { margin-top: 16px; }
.danger-text { color: var(--danger); font-size: 0.9rem; }

/* ── Admin panel ─────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.admin-tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}
.admin-tab:hover { color: var(--text-dark); text-decoration: none; }
.admin-tab.active { color: var(--husk-green); border-bottom-color: var(--husk-green); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--husk-green);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-box h2 { margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 28px;
  margin-top: auto;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  margin-bottom: 24px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand strong { display: block; color: var(--white); margin-bottom: 4px; }
.footer-brand p { opacity: 0.7; font-size: 0.85rem; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-nav a:hover { color: var(--corn-gold); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
}
.footer-copy { font-size: 0.78rem; opacity: 0.4; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .claim-layout    { grid-template-columns: 1fr; }
  .cert-detail-row { grid-template-columns: 120px 1fr; }
}

@media (max-width: 768px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-graphic { display: none; }
  .hero-actions { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-tabs { flex-direction: row; flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav  { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 12px; }

  .cert-detail-row { grid-template-columns: 1fr; gap: 4px; }
  .cert-detail-row dt { font-size: 0.72rem; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  body.nav-open .site-nav { display: flex; }

  .nav-user-menu { order: -1; }
  .nav-dropdown  { position: static; box-shadow: none; border: 1px solid var(--border); }
  .nav-user-menu.open .nav-dropdown { display: block; }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
  .share-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .page-header-flex { flex-direction: column; align-items: stretch; }
  .admin-tabs { overflow-x: auto; }
}

/* ── Print styles ────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .share-card, .verify-self-card, .btn { display: none !important; }
  .verify-certificate { box-shadow: none; border: 1px solid #999; }
  body { background: white; }
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE
   Applied via [data-theme="dark"] on <html>
   ══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --bg:             #0D0D1A;
  --bg-alt:         #141424;
  --white:          #1A1A2E;
  --text-dark:      #EAEAF5;
  --text-medium:    #9A9AB5;
  --text-muted:     #5C5C78;
  --border:         #262640;
  --border-dark:    #38385A;
  --danger-light:   #2A0A10;
  --success-light:  #071A0E;
  --warning-light:  #1E1500;
  --info-light:     #071428;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.6);
  /* Keep corn/husk colors — they look great on dark */
}

/* Body background */
[data-theme="dark"] body { background: var(--bg); }

/* Header */
[data-theme="dark"] .site-header {
  background: #11112A;
  border-bottom-color: var(--corn-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
[data-theme="dark"] .logo-name { color: var(--corn-light); }
[data-theme="dark"] .nav-link  { color: var(--text-medium); }
[data-theme="dark"] .nav-link:hover { color: var(--text-dark); background: var(--bg-alt); }
[data-theme="dark"] .nav-user-trigger { border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .nav-dropdown {
  background: #1E1E38;
  border-color: var(--border);
}
[data-theme="dark"] .nav-dropdown a { color: var(--text-dark); }
[data-theme="dark"] .nav-dropdown a:hover { background: var(--bg-alt); }
[data-theme="dark"] .hamburger,
[data-theme="dark"] .hamburger::before,
[data-theme="dark"] .hamburger::after { background: var(--text-dark); }
[data-theme="dark"] body.nav-open .site-nav {
  background: #11112A;
  border-bottom-color: var(--border);
}

/* Cards */
[data-theme="dark"] .card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .auth-card { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .step-card { background: var(--white); border-color: var(--border); }

/* Forms */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="file"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0E0E22;
  border-color: var(--border);
  color: var(--text-dark);
  color-scheme: dark;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--corn-gold);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.15);
}
[data-theme="dark"] code { background: #1E1E38; color: var(--corn-light); }
[data-theme="dark"] label { color: var(--text-dark); }

/* Tables */
[data-theme="dark"] .data-table { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .data-table th { background: var(--bg-alt); color: var(--text-muted); }
[data-theme="dark"] .data-table td { border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .data-table tr:hover td { background: #1A1A2E; }

/* Claim row (index page) */
[data-theme="dark"] .claim-row { background: var(--white); border-color: var(--border); }

/* Profile sidebar */
[data-theme="dark"] .profile-avatar-section { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .profile-tab:hover { background: var(--bg-alt); }
[data-theme="dark"] .profile-tab.active { background: rgba(232,184,75,0.15); color: var(--corn-light); }

/* Verification certificate */
[data-theme="dark"] .verify-certificate { border-color: var(--corn-dark); background: var(--white); }
[data-theme="dark"] .cert-footer { background: var(--bg-alt); border-top-color: var(--border); }
[data-theme="dark"] .cert-detail-row { border-bottom-color: var(--border); }

/* Flash */
[data-theme="dark"] .flash-success { background: #071A0E; color: #6EE89A; border-color: #1A4A2A; }
[data-theme="dark"] .flash-error   { background: #2A0A10; color: #F08090; border-color: #4A1020; }
[data-theme="dark"] .flash-warning { background: #1E1500; color: #E8B84B; border-color: #3A2900; }

/* Hash result panel */
[data-theme="dark"] .hash-result { background: #0A0A1E; }

/* Section alt */
[data-theme="dark"] .section-alt { background: var(--bg-alt); }

/* Disclaimer box */
[data-theme="dark"] .disclaimer-box { background: #1E1500; border-color: #3A2900; }

/* Stat cards */
[data-theme="dark"] .stat-card { background: var(--white); border-color: var(--border); }

/* Modal */
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.75); }
[data-theme="dark"] .modal-box     { background: #1A1A2E; border: 1px solid var(--border); }

/* Footer (already dark, but tweak for better contrast) */
[data-theme="dark"] .site-footer { background: #07071A; }

/* Share buttons stay the same */

/* Content type badges in dark mode — keep readable */
[data-theme="dark"] .type-text     { background: #0A1E2E; color: #7AC0F0; }
[data-theme="dark"] .type-document { background: #1E0E00; color: #F0A060; }
[data-theme="dark"] .type-image    { background: #1A0A24; color: #C080E0; }
[data-theme="dark"] .type-other    { background: var(--bg-alt); color: var(--text-medium); }

/* Admin tabs */
[data-theme="dark"] .admin-tab     { color: var(--text-muted); }
[data-theme="dark"] .admin-tab:hover { color: var(--text-dark); }
[data-theme="dark"] .admin-tab.active { color: var(--corn-gold); border-bottom-color: var(--corn-gold); }

/* MFA status */
[data-theme="dark"] .mfa-enabled { background: #071A0E; color: #6EE89A; }
[data-theme="dark"] .mfa-disabled { background: #1E1500; color: #E8B84B; }

/* File drop zone */
[data-theme="dark"] .file-drop-zone { border-color: var(--border-dark); background: transparent; }
[data-theme="dark"] .file-drop-zone:hover,
[data-theme="dark"] .file-drop-zone.drag-over { border-color: var(--corn-gold); background: #1E1500; }
[data-theme="dark"] .file-info { background: var(--bg-alt); color: var(--text-medium); }

/* Claim notice */
[data-theme="dark"] .claim-notice { background: #1E1500; border-color: #3A2900; color: #C8A040; }

/* Manual key */
[data-theme="dark"] .manual-key { background: var(--bg-alt); }

/* ── Theme toggle button ──────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-medium);
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--corn-gold); background: var(--bg-alt); }

/* Show only the relevant icon */
:root .theme-icon-dark  { display: none; }
:root .theme-icon-light { display: inline; }
[data-theme="dark"] .theme-icon-dark  { display: inline; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* ── Passkey button ───────────────────────────────────────────── */
.btn-passkey {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
  gap: 8px;
}
.btn-passkey:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-1px); }
[data-theme="dark"] .btn-passkey { background: #E8E8F5; color: #0D0D1A; border-color: #E8E8F5; }
[data-theme="dark"] .btn-passkey:hover { background: #fff; border-color: #fff; }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Passkey list (profile page) ─────────────────────────────── */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-header-row h2 { margin-bottom: 0; }

.passkey-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.passkey-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
}
[data-theme="dark"] .passkey-row { background: var(--bg-alt); }
.passkey-row:hover { border-color: var(--corn-gold); }
.passkey-icon { font-size: 24px; flex-shrink: 0; }
.passkey-info { flex: 1; min-width: 0; }
.passkey-name { display: block; font-weight: 600; font-size: 0.95rem; }
.passkey-meta { font-size: 0.78rem; color: var(--text-muted); }
.passkey-actions { display: flex; gap: 6px; flex-shrink: 0; }
.empty-passkeys { text-align: center; padding: 24px; color: var(--text-muted); }

/* ── Forgot password link in login form ──────────────────────── */
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.label-row label { margin-bottom: 0; }
.forgot-link {
  font-size: 0.82rem;
  color: var(--corn-gold);
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* ── Email verification banner (profile security tab) ────────── */
.verification-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--corn-gold) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--corn-gold) 40%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.verification-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.verification-content { flex: 1; }
.verification-content p { margin: 4px 0 12px; font-size: 0.9rem; color: var(--text-muted); }

/* ── Badge colors ────────────────────────────────────────────── */
.badge-green {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}
.badge-warning {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa0;
}
[data-theme="dark"] .badge-green  { background: #1a3a26; color: #6fcf97; border-color: #2a5a3a; }
[data-theme="dark"] .badge-warning { background: #3a2f00; color: #f2c94c; border-color: #5a4a00; }
[data-theme="dark"] .verification-banner {
  background: color-mix(in srgb, var(--corn-gold) 8%, var(--bg-alt));
}

.alert-success a { color: #0a3622; }
[data-theme="dark"] .alert-success { background: #1a3a26; color: #6fcf97; border-color: #2a5a3a; }

/* ── Public user profile page ────────────────────────────────── */
.user-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) {
  .user-profile-layout { grid-template-columns: 1fr; }
}

.user-profile-sidebar { position: sticky; top: 80px; }
.user-profile-card {
  text-align: center;
  padding: 28px 20px;
}
.user-avatar-lg {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--corn-gold);
  display: block;
  margin: 0 auto 12px;
}
.user-avatar-placeholder-lg {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--corn-gold);
  color: #1a1000;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.user-profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.user-profile-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 14px 0;
}
.user-stat { display: flex; flex-direction: column; font-size: 0.85rem; }
.user-stat strong { font-size: 1.2rem; color: var(--corn-gold); }
.user-bio { font-size: 0.88rem; color: var(--text-muted); margin: 12px 0 0; text-align: left; }
.user-social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  align-items: flex-start;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.social-pill:hover { border-color: var(--corn-gold); background: color-mix(in srgb, var(--corn-gold) 8%, var(--bg)); }

/* Claims grid */
.claims-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.claim-card-link { text-decoration: none; color: inherit; }
.claim-grid-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, transform 0.15s;
  height: 100%;
}
[data-theme="dark"] .claim-grid-card { background: var(--bg-alt); }
.claim-card-link:hover .claim-grid-card {
  border-color: var(--corn-gold);
  transform: translateY(-2px);
}
.claim-grid-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.claim-grid-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.claim-grid-date { font-size: 0.75rem; color: var(--text-muted); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.pagination-info { font-size: 0.85rem; color: var(--text-muted); }

/* ── QR code + embed card (verify page) ──────────────────────── */
.qr-embed-card { margin-top: 20px; }
.qr-embed-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
#qr-code-box { border: 4px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
#qr-code-box img, #qr-code-box canvas { display: block; }
.qr-url-hint { font-size: 0.7rem; color: var(--text-muted); max-width: 160px; text-align: center; word-break: break-all; margin: 0; }
.embed-section { flex: 1; min-width: 260px; }
.badge-preview {
  margin: 6px 0 18px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
}

/* ── Claimer name link on verify page ────────────────────────── */
.claimer-name-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--corn-gold);
  transition: color 0.15s;
}
.claimer-name-link:hover { color: var(--corn-gold); }

/* ── Login history (profile page) ───────────────────────────── */
.login-history-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 16px;
}
.login-event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.login-event-row:last-child { border-bottom: none; }
.login-event-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; line-height: 1.4; }
.login-event-info { flex: 1; min-width: 0; }
.login-event-method { font-size: 0.9rem; display: block; }
.login-event-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.login-event-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Dashboard filter bar ───────────────────────────────────── */
.dashboard-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.filter-search-wrap { flex: 1; min-width: 180px; }
.filter-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9rem;
}
.filter-type-select {
  padding: 8px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9rem;
}

/* ── Nav search bar ─────────────────────────────────────────── */
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 240px;
}
.nav-search-input {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 0.875rem;
  outline: none;
  min-width: 0;
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-btn {
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-muted);
}
.nav-search-btn:hover { color: var(--text-dark); }
[data-theme="dark"] .nav-search-form { background: var(--bg-alt); }

/* ── Search page ────────────────────────────────────────────── */
.search-page-form { margin-bottom: 28px; }
.search-page-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-page-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--white);
  color: var(--text-dark);
}
.search-page-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-mode-tabs { display: flex; gap: 4px; }
.search-mode-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-medium);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.search-mode-tab.active,
.search-mode-tab:hover {
  background: var(--corn-gold);
  color: var(--text-dark);
  border-color: var(--corn-dark);
}
.search-result-count { margin-bottom: 16px; }
.search-empty-prompt { text-align: center; padding: 60px 0; }
.claim-grid-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}
.claim-grid-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}
.search-users-list { display: flex; flex-direction: column; gap: 8px; }
.search-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.search-user-card:hover { box-shadow: var(--shadow-md); border-color: var(--corn-gold); }
.search-user-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.search-user-avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--corn-gold);
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
.search-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.search-user-info span { font-size: 0.85rem; color: var(--text-muted); }
.search-user-claims {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Bulk action bar ────────────────────────────────────────── */
.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--info-light);
  border: 1px solid var(--info);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bulk-selected-count { font-size: 0.875rem; font-weight: 600; color: var(--info); }
.bulk-op-select {
  padding: 6px 10px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--white);
  color: var(--text-dark);
}
.col-check { width: 36px; text-align: center; }

/* ── Website verification widget ────────────────────────────── */
.verify-token-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.verify-token-block code { font-size: 0.8rem; word-break: break-all; }
.verify-website-status { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.verify-website-status.verified { color: var(--success); }

/* ── Dark mode adjustments for new components ───────────────── */
[data-theme="dark"] .filter-search-input,
[data-theme="dark"] .filter-type-select,
[data-theme="dark"] .search-page-input,
[data-theme="dark"] .bulk-op-select {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-dark);
}
[data-theme="dark"] .search-user-card { background: var(--bg-alt); }
[data-theme="dark"] .bulk-action-bar  { background: rgba(30,111,168,0.15); }
[data-theme="dark"] .verify-token-block { background: var(--bg-alt); }

/* ── API Keys tab ───────────────────────────────────────────── */
.api-key-reveal {
  margin-bottom: 20px;
}
.api-key-reveal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex-wrap: wrap;
}
.api-key-reveal-row code { font-size: 0.8rem; word-break: break-all; flex: 1; }
.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.api-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.api-key-row:last-child { border-bottom: none; }
.api-key-row.key-revoked { opacity: 0.55; }
.api-key-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.api-key-prefix { font-size: 0.8rem; color: var(--text-muted); }
.api-key-status { flex-shrink: 0; }

/* ── Webhooks tab ───────────────────────────────────────────── */
.webhooks-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}
.webhook-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.webhook-row:last-child { border-bottom: none; }
.webhook-row.webhook-inactive { opacity: 0.6; }
.webhook-info { flex: 1; min-width: 0; }
.webhook-url {
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.webhook-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.webhook-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Dark mode for API/webhook panels ───────────────────────── */
[data-theme="dark"] .api-key-reveal-row { background: var(--bg-alt); }

/* ── Stats page ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--corn-dark);
  line-height: 1;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 6px; }
.stat-sub   { font-size: 0.78rem; color: var(--husk-green); margin-top: 4px; font-weight: 600; }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .stats-row { grid-template-columns: 1fr; } }

.stats-type-card h2,
.stats-top-card h2 { margin-bottom: 16px; font-size: 1.1rem; }

.type-bar-list { display: flex; flex-direction: column; gap: 14px; }
.type-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  align-items: center;
  gap: 10px;
}
.type-bar-label { font-size: 0.875rem; font-weight: 500; }
.type-bar-track {
  background: var(--bg-alt);
  border-radius: 100px;
  height: 10px;
  overflow: hidden;
}
.type-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--corn-gold);
  transition: width 0.4s ease;
  min-width: 2px;
}
.type-bar-fill.type-text     { background: var(--husk-green); }
.type-bar-fill.type-document { background: var(--corn-gold); }
.type-bar-fill.type-image    { background: #7B5EA7; }
.type-bar-fill.type-other    { background: var(--text-muted); }
.type-bar-count { font-size: 0.8rem; text-align: right; }

.top-claimers-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.top-claimer-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.claimer-rank {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--corn-dark);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.claimer-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.claimer-avatar-initials-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--corn-gold);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.claimer-link { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claimer-count { font-size: 0.8rem; flex-shrink: 0; }

.recent-activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.activity-row:last-child { border-bottom: none; }
.activity-info { flex: 1; min-width: 0; }
.activity-title { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-meta  { font-size: 0.78rem; color: var(--text-muted); }

/* ── Verification count badge (verify page) ─────────────────── */
.verify-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 10px;
}

/* ── Private notes (dashboard) ──────────────────────────────── */
.note-toggle-btn { position: relative; }
.note-toggle-btn.active { background: var(--warning-light); border-color: var(--corn-gold); color: var(--corn-dark); }

.notes-panel-row > td { padding: 0 !important; }
.notes-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 4px 0 12px;
  padding: 16px 20px;
}
.notes-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.notes-panel-header .text-muted { flex: 1; font-size: 0.82rem; }

.notes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.note-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.note-text { font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.danger-text { color: var(--danger) !important; }

.note-add-form { display: flex; gap: 8px; flex-wrap: wrap; }
.note-textarea {
  flex: 1;
  min-width: 200px;
  resize: vertical;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
}
.note-textarea:focus { outline: none; border-color: var(--corn-gold); box-shadow: 0 0 0 3px rgba(232,184,75,0.2); }

/* ── Appearance / theme-preference tab ──────────────────────── */
.theme-pref-form .theme-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.theme-option:hover { border-color: var(--corn-gold); }
.theme-option.selected,
.theme-option:has(input:checked) {
  border-color: var(--corn-gold);
  background: var(--warning-light);
}
.theme-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.theme-option-icon  { font-size: 2rem; }
.theme-option-label { font-size: 0.9rem; font-weight: 600; }

/* ── Dark mode for new components ───────────────────────────── */
[data-theme="dark"] .stat-card { background: var(--bg-alt); }
[data-theme="dark"] .note-item { background: #1e1e1e; }
[data-theme="dark"] .note-textarea { background: #1e1e1e; color: var(--text-dark); }
[data-theme="dark"] .notes-panel  { background: #141414; }
[data-theme="dark"] .type-bar-track { background: #2a2a2a; }
[data-theme="dark"] .theme-option { border-color: var(--border); }
[data-theme="dark"] .theme-option.selected,
[data-theme="dark"] .theme-option:has(input:checked) { background: rgba(232,184,75,0.1); }

/* ── Certificate download button (verify.php) ───────────────── */
.cert-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 16px;
}

/* ── Collections (collections.php) ─────────────────────────── */
.collections-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .collections-layout { grid-template-columns: 1fr; }
}

.collections-list { display: flex; flex-direction: column; gap: 1px; }
.collection-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.collection-row:last-child { border-bottom: none; }
.collection-row-info { flex: 1; min-width: 0; }
.collection-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.collection-row-desc {
  font-size: 0.85rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.collections-edit-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .collections-edit-layout { grid-template-columns: 1fr; }
}

.collections-claims-list { display: flex; flex-direction: column; gap: 1px; }
.coll-claim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.coll-claim-row:last-child { border-bottom: none; }
.coll-claim-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.coll-claim-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.coll-claim-title:hover { color: var(--corn-dark); }

.add-claim-picker { max-height: 260px; overflow-y: auto; }
.add-claim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.add-claim-row:last-child { border-bottom: none; }
.add-claim-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Public collection view (collection.php) ────────────────── */
.collection-pub-header { display: flex; align-items: flex-start; gap: 16px; }
.breadcrumb-nav { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; margin-bottom: 6px; }
.breadcrumb-nav a { color: var(--corn-dark); text-decoration: none; font-weight: 600; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); }

/* ── badge-gray ─────────────────────────────────────────────── */
.badge-gray {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Dark mode for new components ───────────────────────────── */
[data-theme="dark"] .collection-row { border-color: var(--border); }
[data-theme="dark"] .coll-claim-row { border-color: var(--border); }
[data-theme="dark"] .add-claim-row  { border-color: var(--border); }
[data-theme="dark"] .coll-claim-title { color: var(--text-dark); }

/* ── Use cases section (index.php) ──────────────────────────── */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.use-case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.use-case-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.use-case-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.use-case-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* ── About page ─────────────────────────────────────────────── */
.about-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}
.about-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-step-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-step div {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.55;
}
.about-step strong {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.about-ol {
  list-style: decimal;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}
.about-ol li { margin-bottom: 8px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"]::after { content: '\2212'; }
.faq-a {
  padding: 0 18px 16px;
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.6;
}
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── API Docs page ───────────────────────────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 8px;
}
.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.docs-nav a:hover {
  background: var(--bg-alt);
  color: var(--text-dark);
  text-decoration: none;
}
.docs-content section { margin-bottom: 0; }
.code-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-dark);
  margin-top: 12px;
  line-height: 1.5;
}
.endpoint-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.endpoint-block:last-child { margin-bottom: 0; }
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.endpoint-head code {
  font-size: 0.875rem;
  background: none;
  padding: 0;
}
.method-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.method-get   { background: var(--info-light);    color: var(--info); }
.method-post  { background: var(--success-light); color: var(--success); }
.method-event { background: var(--warning-light); color: var(--warning); }
.endpoint-block p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 760px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .use-case-grid { grid-template-columns: 1fr; }
}

/* Dark mode for new components */
[data-theme="dark"] .use-case-card { background: var(--white); border-color: var(--border); }
[data-theme="dark"] .faq-item { border-color: var(--border); }
[data-theme="dark"] .faq-q { color: var(--text-dark); }
[data-theme="dark"] .code-block { background: var(--bg-alt); border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .endpoint-block { border-color: var(--border); }

/* ── Prose content (privacy, terms) ──────────────────────────── */
.prose-content {
  max-width: 680px;
  line-height: 1.75;
}
.prose-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text-dark);
}
.prose-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.25rem;
  color: var(--text-dark);
}
.prose-content p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}
.prose-content ul, .prose-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-medium);
}
.prose-content li { margin-bottom: 0.25rem; }
.prose-content strong { color: var(--text-dark); }
.prose-content a { color: var(--primary); }

/* ── Hash lookup page ─────────────────────────────────────────── */
.lookup-card { padding: 1.5rem; }

.lookup-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.lookup-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color 0.15s;
}
.lookup-tab:hover { color: var(--text-dark); }
.lookup-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.lookup-tab-panel { margin-bottom: 1rem; }

.lookup-form { display: flex; flex-direction: column; gap: 1rem; }

.input-mono { font-family: var(--font-mono, monospace); font-size: 0.875rem; }
.btn-full { width: 100%; }

.hash-display-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.hash-display-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-medium);
  white-space: nowrap;
}
.hash-display-value {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-dark);
  word-break: break-all;
}

/* Lookup result boxes */
.lookup-result { margin-top: 1.5rem; }

.result-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--white);
}
.result-icon { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }
.result-box strong { display: block; font-size: 1rem; margin-bottom: 0.35rem; }
.result-box p { color: var(--text-medium); margin: 0 0 0.75rem; font-size: 0.9rem; }

.result-found { border-color: #4A7C3F; background: #f0f8ee; }
.result-not-found { border-color: var(--border); }
.result-invalid { border-color: var(--warning); background: var(--warning-light); }

.result-body { flex: 1; }
.result-claim-info { margin: 0.75rem 0; }
.result-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.4rem 0 0.25rem;
  color: var(--text-dark);
}
.result-meta { font-size: 0.875rem; color: var(--text-medium); margin-bottom: 1rem; }

/* ── Homepage inline hash demo ───────────────────────────────── */
.section-demo { background: var(--cream); }
.section-subtitle {
  text-align: center;
  margin: -16px auto 28px;
  max-width: 560px;
  font-size: 0.95rem;
}
.demo-card { max-width: 640px; margin: 0 auto; }
.demo-textarea {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 100px;
}
.demo-hash-row { margin-top: 12px; align-items: center; }
.demo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
[data-theme="dark"] .section-demo { background: var(--bg-alt); }

/* ── URL lookup result extras ─────────────────────────────────── */
.url-lookup-fetched,
.url-lookup-hash {
  font-size: 0.82rem;
  color: var(--text-medium);
  margin: 4px 0;
  word-break: break-all;
}
.hash-sm {
  font-size: 0.75rem;
  word-break: break-all;
}

/* ── Footer legal row ─────────────────────────────────────────── */
.footer-legal {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-medium);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--text-dark); }

/* ── User profile badges ──────────────────────────────────────── */
.user-profile-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.badge-verified {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
}

/* Dark mode */
[data-theme="dark"] .result-found { background: rgba(74,124,63,0.12); border-color: #4A7C3F; }
[data-theme="dark"] .result-invalid { background: rgba(var(--warning-rgb, 200,120,0),0.1); }
[data-theme="dark"] .lookup-tab.active { color: var(--primary); }
[data-theme="dark"] .badge-verified { background: rgba(74,124,63,0.2); border-color: #4A7C3F; color: #81c784; }

@media (max-width: 560px) {
  .result-box { flex-direction: column; gap: 0.5rem; }
  .lookup-tabs { flex-wrap: wrap; }
}
[data-theme="dark"] .docs-nav { background: var(--white); border-color: var(--border); }

/* ── OpenTimestamps section (verify page) ─────────────────────── */
.ots-card { margin-top: 20px; }
.ots-description { color: var(--text-medium); margin-bottom: 16px; font-size: 0.9rem; }
.ots-status-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--info-light);
  border: 1px solid #b8d8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ots-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.2; }
.ots-status-row strong { display: block; margin-bottom: 4px; }
.ots-status-row p { font-size: 0.875rem; color: var(--text-medium); margin: 0; }
.ots-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ots-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
[data-theme="dark"] .ots-status-row { background: rgba(30,111,168,0.12); border-color: rgba(30,111,168,0.3); }

/* ── Bulk claim page ──────────────────────────────────────────── */
.bulk-format-card { margin-bottom: 20px; }
.bulk-columns-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0;
  font-size: 0.875rem;
}
.bulk-col-row {
  display: grid;
  grid-template-columns: 130px 80px 1fr;
  gap: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.bulk-col-row:last-child { border-bottom: none; }
.bulk-col-header { background: var(--bg-alt); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); }
.bulk-example { margin-top: 12px; }
.bulk-example summary { cursor: pointer; font-size: 0.875rem; color: var(--husk-green); }
.bulk-example-code { font-size: 0.78rem; margin-top: 8px; white-space: pre-wrap; word-break: break-all; }
.bulk-textarea {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  resize: vertical;
  min-height: 160px;
}
.bulk-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 16px 0;
}
.bulk-divider::before, .bulk-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.bulk-preview-heading { font-size: 1rem; margin-bottom: 10px; }
.bulk-preview-table-wrap { overflow-x: auto; }
.bulk-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.bulk-preview-table th,
.bulk-preview-table td {
  padding: 6px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.bulk-preview-table th { background: var(--bg-alt); font-weight: 600; }
.bulk-preview-table tr.preview-invalid td { background: var(--danger-light); }
.bulk-summary-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bulk-stat {
  flex: 1;
  min-width: 120px;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.bulk-stat-num { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.bulk-stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.bulk-stat-success { background: var(--success-light); border-color: #a5d6a7; }
.bulk-stat-success .bulk-stat-num { color: var(--success); }
.bulk-stat-dup { background: var(--warning-light); border-color: #ffe082; }
.bulk-stat-dup .bulk-stat-num { color: var(--warning); }
.bulk-stat-invalid { background: var(--danger-light); border-color: #ef9a9a; }
.bulk-stat-invalid .bulk-stat-num { color: var(--danger); }
.bulk-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.bulk-results-table th,
.bulk-results-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.bulk-results-table th { background: var(--bg-alt); font-weight: 600; }
.bulk-result-success { background: var(--success-light); }
.bulk-result-duplicate { background: var(--warning-light); }
.bulk-result-invalid { background: var(--danger-light); }
.bulk-badge { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.bulk-note { font-size: 0.78rem; color: var(--text-medium); }
.bulk-done-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
[data-theme="dark"] .bulk-stat-success { background: rgba(45,139,78,0.12); border-color: rgba(45,139,78,0.3); }
[data-theme="dark"] .bulk-stat-dup { background: rgba(196,154,42,0.12); border-color: rgba(196,154,42,0.3); }
[data-theme="dark"] .bulk-stat-invalid { background: rgba(220,53,69,0.12); border-color: rgba(220,53,69,0.3); }
[data-theme="dark"] .bulk-result-success { background: rgba(45,139,78,0.08); }
[data-theme="dark"] .bulk-result-duplicate { background: rgba(196,154,42,0.08); }
[data-theme="dark"] .bulk-result-invalid { background: rgba(220,53,69,0.08); }

/* ═══════════════════════════════════════════════════════════
   DISCLAIM — content claims
   ═══════════════════════════════════════════════════════════ */
.cert-status-disclaimed {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid #ffe082;
}
.cert-disclaimer-note {
  background: var(--warning-light);
  border-left: 4px solid var(--warning);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.disclaim-owner-card h2 { margin-bottom: 8px; }
.disclaim-details { margin-top: 12px; }
.disclaim-summary {
  cursor: pointer;
  color: var(--danger);
  font-size: 0.9rem;
  user-select: none;
}
.disclaim-form { margin-top: 12px; }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.btn-danger:hover { background: #b02a37; }

[data-theme="dark"] .cert-status-disclaimed { background: rgba(196,154,42,0.15); border-color: rgba(196,154,42,0.3); }
[data-theme="dark"] .cert-disclaimer-note { background: rgba(196,154,42,0.1); border-color: var(--warning); }

/* ═══════════════════════════════════════════════════════════
   IDENTITY CLAIMS
   ═══════════════════════════════════════════════════════════ */
.identity-list { display: flex; flex-direction: column; gap: 16px; }

.identity-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.identity-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.identity-type-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
}
.identity-status-badge {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.identity-status-verified  { background: var(--success-light); color: var(--success); }
.identity-status-pending   { background: var(--warning-light); color: var(--warning); }
.identity-status-disclaimed{ background: var(--bg-alt); color: var(--text-muted); }
.identity-value {
  font-size: 1rem;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 4px;
}
.identity-meta { font-size: 0.82rem; margin: 0; }
.identity-verify-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.identity-hint { font-size: 0.85rem; margin: 6px 0; }
.identity-token-block {
  font-size: 0.78rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  white-space: pre;
  margin: 8px 0;
}
.identity-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.identity-disclaim-wrap { margin-top: 16px; }
.identity-disclaim-toggle {
  cursor: pointer;
  font-size: 0.82rem;
  user-select: none;
}
.identity-disclaim-form { margin-top: 10px; }
.identity-help-card { margin-top: 20px; }
.identity-help-list { display: grid; gap: 10px; }
.identity-help-list dt { font-weight: 600; font-size: 0.9rem; }
.identity-help-list dd { margin: 0 0 0 1.2em; font-size: 0.85rem; color: var(--text-medium); }

/* identity page tab_nav reuse */
.tab-nav { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab-link {
  padding: 8px 18px;
  border-radius: 6px 6px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  transition: background 0.15s, color 0.15s;
}
.tab-link:hover { background: var(--bg-alt); color: var(--text); }
.tab-link.active {
  background: var(--white);
  color: var(--gold);
  border-color: var(--border);
  border-bottom-color: var(--white);
  margin-bottom: -2px;
  font-weight: 700;
}

/* challenge page */
.challenge-existing-card { background: var(--warning-light); border-color: #ffe082; margin-bottom: 20px; }
.challenge-warning {
  background: var(--danger-light);
  border: 1px solid #ef9a9a;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.form-input-static {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

/* user profile: verified identities */
.user-verified-identities { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.user-identities-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 10px; }
.user-identity-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.identity-verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  background: var(--success-light);
  color: var(--success);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.challenge-link {
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}
.challenge-link:hover { color: var(--danger); }

/* per-platform accent colours used in pending-verification hints */
.platform-note-facebook { color: #1877f2; font-size: 0.85rem; }
.platform-note-reddit   { color: #ff4500; font-size: 0.85rem; }
.platform-note-linkedin { color: #0077b5; font-size: 0.85rem; }

[data-theme="dark"] .identity-card { background: var(--white); }
[data-theme="dark"] .identity-token-block { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .challenge-existing-card { background: rgba(196,154,42,0.1); border-color: rgba(196,154,42,0.3); }
[data-theme="dark"] .challenge-warning { background: rgba(220,53,69,0.1); border-color: rgba(220,53,69,0.3); }
[data-theme="dark"] .identity-verified-badge { background: rgba(45,139,78,0.15); }

/* ═══════════════════════════════════════════════════════════
   ACTIVITY FEED
   ═══════════════════════════════════════════════════════════ */
.activity-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-alt); }
.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.activity-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.activity-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}
.activity-link {
  font-size: 0.78rem;
  color: var(--husk-green);
  text-decoration: none;
}
.activity-link:hover { text-decoration: underline; }
.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 2px;
}
[data-theme="dark"] .activity-icon { background: rgba(255,255,255,0.06); }

@media (max-width: 480px) {
  .activity-item {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    padding: 10px 12px;
  }
  .activity-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  .activity-time {
    grid-column: 2;
    padding-top: 0;
  }
  .cert-title-row {
    gap: 6px;
  }
  .ai-disclosure-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
  }
}
