/* =============================================================
   SHARED — Reset, variables, animations, utility classes
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a  { text-decoration: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse-glow  { 0%,100% { box-shadow: 0 0 0 0 rgba(0,180,216,.4); } 50% { box-shadow: 0 0 0 8px rgba(0,180,216,0); } }
@keyframes slideInUp   { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-14px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn     { from { opacity:0; transform:scale(.93); } to { opacity:1; transform:scale(1); } }
@keyframes checkDraw   { from { stroke-dashoffset:40; } to { stroke-dashoffset:0; } }
@keyframes shimmer     { 0% { background-position:-400px 0; } 100% { background-position:400px 0; } }
@keyframes breathe     { 0%,100% { opacity:.7; } 50% { opacity:1; } }

.spin { animation: spin .85s linear infinite; }

/* ── Shared badge system ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge-verified   { background: rgba(6,214,160,.15);  color: #06d6a0; border: 1px solid rgba(6,214,160,.3); }
.badge-unverified { background: rgba(255,209,102,.12); color: #ffd166; border: 1px solid rgba(255,209,102,.3); }
.badge-pending    { background: rgba(59,130,246,.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.badge-rejected   { background: rgba(239,71,111,.15);  color: #ef476f; border: 1px solid rgba(239,71,111,.3); }
.badge-none       { background: rgba(148,163,184,.1);  color: #94a3b8; border: 1px solid rgba(148,163,184,.2); }

/* ── IDQA badges ────────────────────────────────────────────── */
.idqa-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
}
.idqa-high { background: rgba(6,214,160,.18); color: #06d6a0; border: 1px solid rgba(6,214,160,.35); }
.idqa-mid  { background: rgba(255,209,102,.15); color: #ffd166; border: 1px solid rgba(255,209,102,.35); }
.idqa-low  { background: rgba(239,71,111,.15); color: #ef476f; border: 1px solid rgba(239,71,111,.3); }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .5px;
}

/* ── Utility ────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ── Demo nav bar (shown on all pages for easy demo jumping) ── */
#demo-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 20, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  flex-wrap: wrap;
  justify-content: center;
}
#demo-nav .demo-label {
  color: rgba(255,255,255,.4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
  font-family: 'Inter', sans-serif;
}
#demo-nav a {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  transition: all .15s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
#demo-nav a:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
#demo-nav a.active { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
#demo-nav .nav-sep { color: rgba(255,255,255,.15); font-size: 13px; }
#demo-nav a.hub-link {
  background: rgba(0,180,216,.15);
  border-color: rgba(0,180,216,.4);
  color: #00b4d8;
  font-weight: 700;
  margin-right: 6px;
}
#demo-nav a.hub-link:hover { background: rgba(0,180,216,.25); color: #00caee; }
