/* ClearProof - Modern Design System */

:root {
  color-scheme: light;
  
  /* Brand Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  
  --cyan-50: #ecfeff;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  
  /* Gradients */
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #7c3aed 100%);
  --brand-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 60%, #6d28d9 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(37, 99, 235, 0.07) 0%, rgba(79, 70, 229, 0.05) 50%, rgba(6, 182, 212, 0.06) 100%);
  --hero-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 40%, #eff6ff 100%);
  --accent-cyan-glow: 0 0 25px rgba(6, 182, 212, 0.25);
  
  /* Neutral Palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  
  /* Functional Semantic Colors */
  --ink: var(--slate-900);
  --muted: var(--slate-600);
  --line: var(--slate-200);
  --surface: #ffffff;
  --surface-subtle: var(--slate-50);
  --surface-elevated: #ffffff;
  
  /* Status Colors */
  --valid-bg: #ecfdf5;
  --valid-border: #a7f3d0;
  --valid-text: #065f46;
  --valid-dot: #10b981;
  --valid-glow: 0 0 16px rgba(16, 185, 129, 0.28);
  
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --danger-dot: #ef4444;
  --danger-glow: 0 0 16px rgba(239, 68, 68, 0.28);
  
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --warning-dot: #f59e0b;
  
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info-text: #1e40af;
  
  /* Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 10px -1px rgba(15, 23, 42, 0.06), 0 2px 5px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.07), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 32px -6px rgba(15, 23, 42, 0.09), 0 8px 14px -3px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 24px -2px rgba(37, 99, 235, 0.25);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 10% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 40%),
    radial-gradient(at 90% 0%, rgba(6, 182, 212, 0.07) 0px, transparent 40%),
    radial-gradient(at 50% 100%, rgba(224, 231, 255, 0.2) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.65 var(--font-sans);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  left: 20px;
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Header & Glass Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Identity */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--slate-900);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.brand-text {
  display: inline-flex;
  align-items: center;
}

.brand-text span {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Navigation Bar */
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

/* Navbar Buttons with Rich Hover & Color Styling */
.nav-btn, nav > a, nav .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover, nav > a:hover {
  color: var(--primary-700);
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.28);
}

.nav-btn:active, nav > a:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

/* Active Highlighted Button */
.nav-btn.nav-btn-active, nav > a.nav-active {
  background: var(--brand-gradient);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  font-weight: 750;
}

.nav-btn.nav-btn-active:hover, nav > a.nav-active:hover {
  background: var(--brand-gradient-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* Primary Feature Pill (e.g. Issuer Dashboard) */
.nav-btn-primary {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
  font-weight: 700;
}

.nav-btn-primary:hover {
  background: #4f46e5;
  border-color: #4338ca;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* Admin Management Pills */
.nav-btn-admin {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.nav-btn-admin:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* Sign Out Danger Pill */
.nav-btn-signout, nav form button.secondary {
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: var(--radius-full);
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn-signout:hover, nav form button.secondary:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

/* Subtle Divider in Nav */
.nav-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--slate-200);
  margin: 0 4px;
}

/* Language Switcher Pill Container */
.nav-lang-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.nav-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.nav-lang-pill:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-lang-pill select {
  width: auto;
  min-width: 54px;
  min-height: 30px;
  padding: 2px 6px;
  font-size: 0.82rem;
  border: none;
  background: transparent;
  color: var(--slate-700);
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.nav-lang-pill button {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  box-shadow: none;
}

.nav-lang-pill button:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  transform: translateY(-1px);
}

/* Text links */
.text-link {
  color: var(--primary-600);
  font-weight: 650;
  padding: 2px 4px;
}

.text-link:hover {
  color: var(--primary-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Main Layout Container */
main {
  max-width: 1220px;
  width: 100%;
  margin: 36px auto 72px;
  padding: 0 28px;
  flex: 1 0 auto;
}

.narrow {
  max-width: 640px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid rgba(219, 234, 254, 0.7);
  border-radius: var(--radius-xl);
  background: var(--hero-gradient);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: 5%;
  bottom: -90px;
  border: 1px dashed rgba(37, 99, 235, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  margin: 0.4rem 0 1.1rem;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--slate-900);
}

.hero h1 span.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 680px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--slate-600);
  margin-bottom: 26px;
}

/* Eyebrows and Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-700);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 0 8px var(--primary-600);
  display: inline-block;
}

/* Headings */
h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--slate-900);
  margin: 0.3rem 0 1rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--slate-900);
  margin: 0 0 0.7rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-800);
}

p {
  color: var(--slate-600);
  margin: 0 0 1rem;
}

/* Cards & Containers */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.2vw, 34px);
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Form Controls */
label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-700);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 16px 0 6px;
  letter-spacing: -0.01em;
}

label span.req {
  color: var(--danger-text);
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--slate-900);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:hover, select:hover, textarea:hover {
  border-color: var(--slate-400);
}

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

input::placeholder, textarea::placeholder {
  color: var(--slate-400);
}

input[type="checkbox"], input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary-600);
  vertical-align: middle;
  cursor: pointer;
}

input[type="file"] {
  padding: 8px 12px;
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--indigo-50);
  color: var(--indigo-700);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--indigo-100);
  color: var(--indigo-900);
}

/* Reference Numbers & Codes */
.reference, code, .code-pill {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.reference {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-800);
  font-size: 1.18rem;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

code {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 0.88em;
  color: var(--slate-800);
}

/* Buttons */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  background: var(--brand-gradient);
  color: white;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.16s ease, 
              background 0.16s ease,
              border-color 0.16s ease;
}

button:hover, .button:hover {
  transform: translateY(-2px);
  background: var(--brand-gradient-hover);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
  color: white;
}

button:active, .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

button:disabled, .button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button.secondary, button.secondary {
  border: 1px solid var(--slate-300);
  background: #ffffff;
  color: var(--slate-700);
  box-shadow: var(--shadow-xs);
}

.button.secondary:hover, button.secondary:hover {
  border-color: var(--slate-400);
  background: var(--slate-50);
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.button.danger, button.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.button.danger:hover, button.danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

/* Flash Messages */
.flash {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 14px 0 20px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid var(--valid-border);
  background: var(--valid-bg);
  color: var(--valid-text);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.flash.error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.flash::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--valid-dot);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.flash.error::before {
  content: "✕";
  background: var(--danger-dot);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status.valid {
  border-color: var(--valid-border);
  background: var(--valid-bg);
  color: var(--valid-text);
}

.status.valid::before {
  background: var(--valid-dot);
  box-shadow: var(--valid-glow);
}

.status.revoked, .status.invalid {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.status.revoked::before, .status.invalid::before {
  background: var(--danger-dot);
  box-shadow: var(--danger-glow);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--slate-200);
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:hover {
  background-color: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Definition Lists / Key-Values */
dl {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) 2fr;
  gap: 14px 22px;
  padding: 12px 0;
  border-top: 1px solid var(--slate-100);
  margin-top: 16px;
}

dt {
  color: var(--slate-500);
  font-weight: 600;
  font-size: 0.9rem;
}

dd {
  margin: 0;
  font-weight: 650;
  color: var(--slate-900);
  overflow-wrap: anywhere;
}

/* Text links */
.text-link {
  color: var(--primary-600);
  font-weight: 650;
  padding: 2px 4px;
}

.text-link:hover {
  color: var(--primary-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Utilities */
.small { font-size: 0.86rem; }
.muted { color: var(--slate-500); }

.pagination {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

/* Certificate & Verification Presentation Cards */
.cert-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--brand-gradient);
}

.cert-status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  border: 1px solid;
}

.cert-status-banner.valid {
  background: var(--valid-bg);
  border-color: var(--valid-border);
  color: var(--valid-text);
}

.cert-status-banner.revoked, .cert-status-banner.invalid {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.cert-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: white;
}

.cert-status-banner.valid .cert-status-icon {
  background: var(--valid-dot);
  box-shadow: var(--valid-glow);
}

.cert-status-banner.revoked .cert-status-icon,
.cert-status-banner.invalid .cert-status-icon {
  background: var(--danger-dot);
  box-shadow: var(--danger-glow);
}

.cert-status-info h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: inherit;
}

.cert-status-info p {
  margin: 0;
  color: inherit;
  opacity: 0.9;
  font-size: 0.92rem;
}

/* Feature Cards on Homepage */
.feature-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: #ffffff;
  transition: all 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-2px);
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
}

.feature-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--primary-600);
  font-size: 1.25rem;
  margin-bottom: 14px;
  border: 1px solid var(--indigo-100);
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--slate-200);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  backdrop-filter: blur(8px);
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--primary-600);
  flex-shrink: 0;
}

/* Copy button */
.btn-copy {
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-600);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: auto;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.16s ease;
}

.btn-copy:hover {
  background: var(--slate-100);
  color: var(--slate-900);
  transform: none;
  box-shadow: none;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.8);
  color: var(--slate-500);
  font-size: 0.88rem;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-shield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* Dashboard Metrics & Specific Styles */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--primary-600);
  flex-shrink: 0;
  border: 1px solid var(--indigo-100);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12);
}

.metric-icon svg {
  width: 22px;
  height: 22px;
}

.metric-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* Filter Card Toolbar */
.filter-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

/* Table Enhancements */
.recipient-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recipient-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-weight: 750;
  font-size: 0.82rem;
  border: 1px solid var(--indigo-100);
  flex-shrink: 0;
}

.btn-action-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  min-height: 32px;
  font-size: 0.83rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-view:hover {
  background: var(--brand-gradient);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .nav {
    padding: 14px 20px;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }
  
  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
  }
  
  main {
    margin: 24px auto 48px;
    padding: 0 16px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  
  dd {
    margin-bottom: 12px;
  }
  
  .hero {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  
  .card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  
  .pagination {
    flex-direction: column;
    align-items: flex-start;
  }
  
  th, td {
    padding: 10px 12px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Print Stylesheet */
@media print {
  header, footer, .no-print, nav, .actions, form {
    display: none !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .card, .cert-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    padding: 20px !important;
    break-inside: avoid;
  }
  
  .reference {
    border: 1px solid #000 !important;
    background: none !important;
    color: #000 !important;
  }
}
