:root {
  /* Layout scale */
  --container: 1360px;
  --bg: #0b1220;
  --card: #111a2e;
  --text: #e7eefc;
  --muted: #a9b6d6;
  --accent: #2d6cff;
  --accent2: #f0b429;
  --danger: #ff5b6e;
  --line: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 20px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Motion & interaction */
  --ease-premium: cubic-bezier(.2,.8,.2,1);
  --dur-fast: 120ms;
  --dur-med: 200ms;
  --dur-slow: 320ms;
  --shadow-float: 0 18px 40px rgba(0,0,0,.14);
  --shadow-float-soft: 0 12px 28px rgba(0,0,0,.10);
  --ring-gold: 0 0 0 3px rgba(212,175,55,.35);
  --ring-blue: 0 0 0 3px rgba(40,140,255,.28);

  /* Font */
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(45,108,255,.25), transparent 55%),
              radial-gradient(1000px 700px at 80% 30%, rgba(240,180,41,.18), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.error {
  color: var(--danger);
  font-weight: 600;
}

/* Topbar */
.topbar {
  position: relative;
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), rgba(240,180,41,.95));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0b1220;
}

.title {
  font-weight: 700;
  font-size: 1.2rem;
}

.subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Subbar */
.subbar {
  width: 100%;
  padding: 8px 0 10px;
}

.subbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.subbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.02);
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-links a {
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: background 0.2s;
}

.quick-links a:hover {
  background: rgba(148,163,184,.12);
  color: var(--text);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 22px auto;
  padding: 0 16px;
}

/* Cards */
.card {
  background: rgba(17,26,46,.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--dur-med) var(--ease-premium),
              box-shadow var(--dur-med) var(--ease-premium);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

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

.stat.card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.2;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 8px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.grid-2 > * {
  min-width: 0;
}

/* Panels (sous-composants) */
.panel {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.18);
  height: 100%;
  transition: transform var(--dur-med) var(--ease-premium),
              box-shadow var(--dur-med) var(--ease-premium);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float-soft);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.head-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, rgba(45,108,255,.95), rgba(45,108,255,.75));
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(45,108,255,.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: transform var(--dur-fast) var(--ease-premium),
              box-shadow var(--dur-fast) var(--ease-premium),
              background var(--dur-fast) var(--ease-premium);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(45,108,255,.2);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-secondary {
  background: rgba(148,163,184,.10);
  border: 1px solid rgba(148,163,184,.22);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(148,163,184,.14);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
}

/* Nouveaux boutons pour la recherche */
.btn-primary {
  background: linear-gradient(135deg, rgba(45,108,255,.95), rgba(45,108,255,.75));
  border: none;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

input:focus, select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(240,180,41,.25);
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

label input, label select {
  margin-top: 6px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Badges (utilisés par JS) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
}

.badge-ok {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.25);
  color: #a7f3d0;
}

.badge-warn {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.25);
  color: #fde68a;
}

.badge-bad {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.25);
  color: #fecaca;
}

.badge-neutral {
  background: rgba(148,163,184,.15);
  border-color: rgba(148,163,184,.25);
  color: #cbd5e1;
}

.badge-muted {
  background: rgba(148,163,184,.18);
  border: 1px solid rgba(148,163,184,.28);
  color: #cbd5e1;
}

.badge-danger {
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.28);
  color: #fecaca;
}

.badge-success {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.25);
  color: #a7f3d0;
}

/* Health dots */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}

.dot-muted {
  background: rgba(148,163,184,.6);
}

.dot-ok {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
}

.dot-warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.25);
}

.dot-bad {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.25);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.health-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 16px;
  background: rgba(2,6,23,.18);
}

/* Compliance */
.compliance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  grid-auto-rows: 1fr; /* toutes les cellules de la ligne prennent la même hauteur */
}

.comp-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.16);
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre le contenu verticalement */
  align-items: flex-start; /* aligne le texte à gauche */
  gap: 6px;
  height: 100%; /* occupe toute la hauteur de la cellule */
}

.comp-label {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.comp-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

/* Activity chart (bars) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 16px;
  background: rgba(2,6,23,.2);
  margin-top: 10px;
}

.bar {
  flex: 1;
  min-width: 14px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(96,165,250,.85);
  position: relative;
  transition: height 0.3s ease;
}

.bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20px;
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}

.bar b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -18px;
  font-size: 0.7rem;
  color: #e2e8f0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  margin-top: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.table th, .table td {
  padding: 12px 14px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.table th {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.8);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr:hover {
  background: rgba(212,175,55,.08);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 0 0;
}

.input, .select {
  padding: 8px 14px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: rgba(2,6,23,.25);
  color: var(--text);
  font-size: 0.85rem;
}

.select {
  min-width: 180px;
}

.spacer {
  flex: 1;
}

/* Status badges in tables (utilisé par JS) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-done {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.25);
  color: #bbf7d0;
}

.status-skipped {
  background: rgba(148,163,184,.14);
  border-color: rgba(148,163,184,.25);
  color: #e2e8f0;
}

.status-failed {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.25);
  color: #fecaca;
}

.status-running {
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.25);
  color: #bfdbfe;
}

.pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0% { opacity: .6; }
  50% { opacity: 1; }
  100% { opacity: .6; }
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: rgba(17,26,46,.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-float);
  z-index: 1001;
  padding: 24px;
  min-width: 600px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-body {
  overflow-y: auto;
  max-height: 70vh;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  color: white;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-info {
  background: rgba(59,130,246,0.92);
}

.toast-success {
  background: rgba(16,185,129,0.92);
}

.toast-warning {
  background: rgba(245,158,11,0.92);
  color: #111827;
}

.toast-error {
  background: rgba(239,68,68,0.92);
}

/* Lot details (blockchain proof) */
#lot-details {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,0.05); /* plus transparent */
  line-height: 1.5;
}

.card-sub {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.kv {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.12);
}

.kv .muted {
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.kv-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 20px;
}

/* Footer */
.footer {
  padding: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Loading spinner for search */
#lot-search.is-loading button[type="submit"] {
  opacity: 0.85;
  pointer-events: none;
  position: relative;
}

#lot-search.is-loading button[type="submit"]::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1000px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .modal-card {
    min-width: 90vw;
  }
}

@media (max-width: 720px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .kv-grid, .kv-grid-3 {
    grid-template-columns: 1fr;
  }
  .filters .select {
    min-width: 100%;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* Light theme */
html[data-theme="light"] {
  --bg: #f7fbff;
  --text: #0b1220;
  --muted: #475569;
  --line: rgba(15,23,42,.14);
  --accent: #2d6cff;
  --accent-soft: rgba(45,108,255,.16);
  --accent2: #f0b429;
  --gold-soft: rgba(240,180,41,.22);
  --card: rgba(255,255,255,.64);
  --shadow: 0 18px 50px rgba(2,6,23,.10);
  --shadow-float: 0 18px 40px rgba(2,6,23,.12);
}

html[data-theme="light"] body {
  background: radial-gradient(1200px 780px at 14% 12%, rgba(34,211,238,.24), transparent 58%),
              radial-gradient(1100px 720px at 84% 18%, rgba(59,130,246,.18), transparent 60%),
              radial-gradient(900px 620px at 70% 92%, rgba(240,180,41,.18), transparent 62%),
              linear-gradient(180deg, #fbfdff 0%, #f0f8ff 52%, #f7fbff 100%);
  color: var(--text);
}

html[data-theme="light"] .topbar {
  background: linear-gradient(135deg, rgba(232,246,255,.72) 0%, rgba(255,255,255,.5) 62%, rgba(236,250,255,.6) 100%);
  border-bottom: 1px solid rgba(15,23,42,.10);
}

html[data-theme="light"] .card {
  background: rgba(255,255,255,.7);
  border-color: rgba(15,23,42,.12);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .panel {
  background: rgba(255,255,255,.5);
}

html[data-theme="light"] input,
html[data-theme="light"] select {
  background: rgba(255,255,255,.7);
  color: var(--text);
  border-color: rgba(15,23,42,.14);
}

/* Correction contraste boutons en thème clair */
html[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.02); /* très léger fond grisé */
  color: #111827; /* noir plus franc */
  border-color: rgba(15,23,42,.2);
}

html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}

html[data-theme="light"] .badge-muted {
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.14);
  color: #334155;
}

html[data-theme="light"] .badge-danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.22);
  color: #7f1d1d;
}

html[data-theme="light"] .table th {
  background: rgba(255,255,255,.7);
}

html[data-theme="light"] .table tbody tr:hover {
  background: rgba(240,180,41,.1);
}

/* === Améliorations Recherche Lot === */

/* Réorganisation du formulaire de recherche */
#lot-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Grille de détails du lot */
.lot-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.lot-detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.lot-detail-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lot-detail-value {
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-word;
}

.lot-detail-value.mono {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.lot-id-header {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.lot-id-header strong {
  color: var(--text);
  font-size: 1.2rem;
}

/* Grille des preuves (3 cartes) */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.proof-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proof-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proof-value {
  font-family: var(--mono);
  font-size: 0.9rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.proof-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
}

.proof-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton icône (copie) */
.btn-icon {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--accent2);
}

/* Timeline verticale */
.timeline-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  padding-bottom: 16px;
  border-left: 2px solid var(--accent2);
  padding-left: 20px;
}

.timeline-item:last-child {
  border-left: none;
}

.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent2);
  border: 2px solid var(--card);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.timeline-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0;
}

.timeline-hash {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}