  [x-cloak] { display: none !important; }

  /* ── Animations ─────────────────────────────────────────────────── */
  @keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes card-snap-in {
    0%   { transform: scale(0.9) translateY(-8px); opacity: 0; }
    60%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes slide-in-left {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
  }
  @keyframes tick-in {
    0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
  }
  @keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  }
  @keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  }
  @keyframes pulse-amber {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
  }
  @keyframes counter-step {
    0%   { transform: translateY(6px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }
  @keyframes progress-fill {
    from { width: 0%; }
    to   { width: var(--target-w); }
  }
  @keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
  }
  @keyframes scanline {
    0%   { top: -4px; }
    100% { top: 100%; }
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
  }
  @keyframes type-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes wash-drain {
    from { width: 100%; }
    to   { width: 0%; }
  }

  .fade-in-up  { animation: fade-in-up 0.45s ease-out both; }
  .fade-in     { animation: fade-in 0.3s ease-out both; }
  .slide-left  { animation: slide-in-left 0.35s ease-out both; }

  /* ── Identity component cards ───────────────────────────────────── */
  .id-comp-card {
    background: #111827;
    border: 2px solid #1f2937;
    border-radius: 0.875rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    user-select: none;
  }
  .id-comp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
  }
  .id-comp-card:hover:not(.assembled) {
    border-color: #6b7280;
    background: rgba(59,130,246,0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  }
  .id-comp-card.assembled {
    border-color: #22c55e;
    background: rgba(34,197,94,0.08);
    cursor: default;
    animation: card-snap-in 0.4s ease-out both;
  }
  .id-comp-card.assembled::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(34,197,94,0.3);
    pointer-events: none;
  }

  /* ── Identity assembly card (center preview) ────────────────────── */
  .id-assembly-card {
    background: linear-gradient(135deg, #0d1625 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 1.25rem;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
  }
  .id-assembly-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  }
  .id-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
  }
  .id-field:last-child { border-bottom: none; }
  .id-field-label { color: #9ca3af; min-width: 72px; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .id-field-value { color: #e5e7eb; font-family: 'Courier New', monospace; }
  .id-field-value.pending { color: #6b7280; }

  /* ── Liveness UI ────────────────────────────────────────────────── */
  .liveness-ui {
    background: #0a0f1e;
    border: 1px solid #1f2937;
    border-radius: 0.875rem;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    max-width: 380px;
    margin: 0 auto;
  }
  .liveness-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2840 100%);
    padding: 0.875rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #1f2937;
  }
  .camera-feed {
    background: #050810;
    padding: 1.5rem 1rem;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .camera-scanline {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
    animation: scanline 2s linear infinite;
  }
  .liveness-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.75rem;
    transition: background 0.2s;
  }
  .liveness-step:last-child { border-bottom: none; }
  .liveness-step-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
    transition: all 0.3s;
  }

  /* ── Bypass method cards ────────────────────────────────────────── */
  .bypass-card {
    background: #111827;
    border: 2px solid #1f2937;
    border-radius: 0.875rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }
  .bypass-card:hover {
    border-color: #6b7280;
    background: #131e30;
    transform: translateX(2px);
  }
  .bypass-card.selected-bypass {
    border-color: #22c55e;
    background: rgba(34,197,94,0.06);
  }
  .bypass-card.bypass-best {
    border-color: #16a34a;
  }
  .bypass-best-badge {
    position: absolute;
    top: -1px; right: 10px;
    background: #22c55e;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 0.55rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 2px 7px;
    border-radius: 0 0 5px 5px;
    text-transform: uppercase;
  }

  /* ── Counter animation ──────────────────────────────────────────── */
  .counter-num {
    display: inline-block;
    animation: counter-step 0.15s ease-out both;
    font-variant-numeric: tabular-nums;
  }

  /* ── Progress bar ───────────────────────────────────────────────── */
  .account-progress-bar {
    height: 8px;
    background: #1f2937;
    border-radius: 4px;
    overflow: hidden;
  }
  .account-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
    border-radius: 4px;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
  }

  /* ── Wash cycle ─────────────────────────────────────────────────── */
  .money-flow-bar {
    height: 6px;
    background: #1f2937;
    border-radius: 3px;
    overflow: hidden;
  }
  .money-flow-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(239,68,68,0.4);
    transition: width 0.1s linear;
  }

  /* ── Defender annotations ───────────────────────────────────────── */
  .defender-annotation {
    border-left: 3px solid #22c55e;
    background: rgba(34,197,94,0.05);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    animation: slide-in-left 0.35s ease-out both;
  }
  .defender-annotation.ann-red {
    border-left-color: #ef4444;
    background: rgba(239,68,68,0.05);
  }

  /* ── Check items ────────────────────────────────────────────────── */
  .check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .check-item:last-child { border-bottom: none; }

  /* ── Phase indicator dots ───────────────────────────────────────── */
  .phase-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .phase-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ── Score score badge ──────────────────────────────────────────── */
  .score-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
  }

  /* ── Shimmer ────────────────────────────────────────────────────── */
  .shimmer {
    background: linear-gradient(90deg,#4b5563 0%,#9ca3af 40%,#4b5563 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 1.8s linear infinite;
  }

  /* Terminal blink cursor */
  .cursor-blink::after {
    content: '█';
    animation: blink 1s step-end infinite;
    color: #22c55e;
    font-size: 0.75em;
    margin-left: 1px;
  }

  @media (max-width: 640px) {
    .id-field-label { min-width: 58px; }
    .liveness-ui { font-size: 0.7rem; }
  }
