/* ════════════════════════════════════════════
   RASPBERRY PI DASHBOARD — style.css
   ════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0c0c0e;
  --bg-card:     #141418;
  --bg-hover:    #1a1a20;
  --bg-modal:    #18181c;
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.15);
  --text:        #e2e0ea;
  --muted:       #6b697a;
  --muted-2:     #9491a4;
  --purple:      #8b7cf8;
  --purple-dim:  rgba(139,124,248,0.12);
  --blue:        #4da8f7;
  --blue-dim:    rgba(77,168,247,0.12);
  --green:       #4ade80;
  --green-dim:   rgba(74,222,128,0.12);
  --amber:       #f59e0b;
  --amber-dim:   rgba(245,158,11,0.12);
  --pink:        #f472b6;
  --pink-dim:    rgba(244,114,182,0.12);
  --cyan:        #22d3ee;
  --cyan-dim:    rgba(34,211,238,0.12);
  --red:         #f87171;
  --red-dim:     rgba(248,113,113,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 800px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,124,248,0.05) 0%, transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* ─── LAYOUT ─── */
.wrapper {
  position: relative; z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: .75rem;
}
.logo {
  font-size: .95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
}
.header-btn {
  background: rgba(139,124,248,.1);
  border: 1px solid rgba(139,124,248,.25);
  color: var(--purple);
  padding: .35rem .85rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.header-btn:hover { background: rgba(139,124,248,.18); border-color: rgba(139,124,248,.4); }
.header-btn svg { width: 14px; height: 14px; }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero { padding: 3.5rem 0 2.5rem; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .8rem;
}
.hero h1 em { font-style: normal; color: var(--purple); }
.hero p { color: var(--muted-2); font-size: .95rem; max-width: 520px; }

/* ════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════ */
.section { margin-bottom: 4.5rem; }
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }

/* ════════════════════════════════════════════
   STATUS BADGE
════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.status-badge.checking  { background: rgba(107,105,122,.12); color: var(--muted);  border: 1px solid rgba(107,105,122,.2); }
.status-badge.online    { background: rgba(74,222,128,.1);   color: var(--green);  border: 1px solid rgba(74,222,128,.2); }
.status-badge.offline   { background: rgba(248,113,113,.1);  color: var(--red);    border: 1px solid rgba(248,113,113,.2); }
.status-badge.internal  { background: rgba(107,105,122,.08); color: var(--muted);  border: 1px solid rgba(107,105,122,.15); }
.status-dot-sm { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-badge.online .status-dot-sm { animation: blink 2s ease-in-out infinite; }

/* ════════════════════════════════════════════
   TOOLTIP
════════════════════════════════════════════ */
.has-tooltip { position: relative; }
.tooltip {
  position: absolute;
  z-index: 999;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e1e26;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: .85rem 1rem;
  width: 270px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s, transform .18s;
}
.has-tooltip:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e1e26;
}
.tooltip-name {
  font-weight: 600; font-size: .82rem;
  margin-bottom: .35rem;
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap;
}
.tooltip-desc { font-size: .78rem; color: var(--muted-2); line-height: 1.5; margin-bottom: .5rem; }
.tooltip-meta { display: flex; flex-direction: column; gap: .2rem; }
.tooltip-row { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-family: 'JetBrains Mono', monospace; }
.tooltip-key { color: var(--muted); min-width: 60px; }
.tooltip-val { color: var(--text); }
.tooltip-edit-hint {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  font-size: .68rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* infra card tooltips aligned left */
.infra-card .tooltip { left: 0; transform: translateX(0) translateY(4px); bottom: calc(100% + 8px); }
.infra-card:hover .tooltip { transform: translateX(0) translateY(0); opacity: 1; }
.infra-card .tooltip::after { left: 20px; transform: none; }

/* ════════════════════════════════════════════
   FEATURED CARDS
════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: visible;
  transition: border-color .2s, transform .15s, background .2s;
  cursor: pointer;
}
.featured-card:hover { border-color: var(--fc-color, var(--purple)); background: var(--bg-hover); transform: translateY(-2px); }
.featured-card .edit-overlay {
  position: absolute;
  top: .6rem; right: .6rem;
  background: rgba(139,124,248,.15);
  border: 1px solid rgba(139,124,248,.25);
  color: var(--purple);
  border-radius: 5px;
  padding: .2rem .45rem;
  font-size: .65rem;
  opacity: 0;
  transition: opacity .15s;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}
.featured-card:hover .edit-overlay { opacity: 1; }
.featured-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--fc-color, var(--purple));
  border-radius: 12px 12px 0 0;
}
.featured-icon { font-size: 1.8rem; margin-bottom: .75rem; display: block; }
.featured-name {
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: .25rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.featured-desc { font-size: .82rem; color: var(--muted-2); margin-bottom: .75rem; line-height: 1.5; }
.featured-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 500;
  color: var(--fc-color, var(--purple));
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
}
.featured-link svg { width: 10px; height: 10px; }

/* ════════════════════════════════════════════
   MIND MAP / CHAIN
════════════════════════════════════════════ */
.mindmap-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  overflow-x: auto;
  position: relative;
}
.mindmap-label {
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.mm-chip {
  background: rgba(139,124,248,.08);
  border: 1px dashed rgba(139,124,248,.25);
  color: var(--purple);
  padding: .2rem .6rem;
  border-radius: 5px;
  font-size: .65rem;
  cursor: pointer;
  transition: background .2s;
}
.mm-chip:hover { background: rgba(139,124,248,.15); }
.mm-svg { display: block; width: 100%; min-width: 700px; }
.mm-node { cursor: pointer; }
.mm-node rect { transition: filter .15s; }
.mm-node:hover rect { filter: brightness(1.4); }
.mm-edit-badge {
  font-size: 9px;
  fill: rgba(255,255,255,.3);
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   INFRA GRID
════════════════════════════════════════════ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.infra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: visible;
  cursor: pointer;
}
.infra-card:hover { border-color: var(--border-2); background: var(--bg-hover); }
.infra-card .edit-btn {
  position: absolute; top: .5rem; right: .5rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .7rem;
  opacity: 0;
  transition: opacity .15s, color .15s;
  font-family: 'JetBrains Mono', monospace;
  padding: .15rem .35rem;
  border-radius: 4px;
}
.infra-card:hover .edit-btn { opacity: 1; }
.infra-card .edit-btn:hover { color: var(--purple); background: var(--purple-dim); }
.infra-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ic-bg, var(--purple-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.infra-name { font-size: .88rem; font-weight: 500; margin-bottom: .1rem; }
.infra-role { font-size: .77rem; color: var(--muted-2); line-height: 1.4; }
.infra-port { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--muted); margin-top: .3rem; }

/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  transform: translateY(12px);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem;
}
.modal-title { font-size: 1.05rem; font-weight: 600; }
.modal-subtitle { font-size: .8rem; color: var(--muted-2); margin-top: .2rem; }
.modal-close {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted-2);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.1); }

/* ─── TABS ─── */
.tab-bar {
  display: flex; gap: .25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .25rem;
  margin-bottom: 1.5rem;
}
.tab {
  flex: 1; padding: .45rem;
  border-radius: 6px; border: none;
  background: none; color: var(--muted);
  font-size: .78rem; font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.tab.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* ─── FORM ─── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .73rem; font-weight: 500;
  color: var(--muted-2);
  margin-bottom: .4rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: .5rem;
}
.form-label span { color: var(--muted); font-weight: 400; }
.drag-hint {
  margin-left: auto;
  font-size: .65rem;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: .1rem .5rem;
  border-radius: 4px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .75rem;
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(139,124,248,.5);
  background: rgba(139,124,248,.04);
}
.form-select { cursor: pointer; }
.form-select option { background: #1e1e26; }
.form-textarea { resize: vertical; min-height: 65px; line-height: 1.5; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: end;
}
@media (max-width: 480px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.emoji-input { font-size: 1.3rem; text-align: center; padding: .4rem; }

/* ─── CHAIN META EDIT ─── */
.chain-meta-edit {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem;
  margin-bottom: 1rem;
}

/* ─── COLOR PICKER INLINE ─── */
.color-picker-inline {
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin-top: .35rem;
}

/* ─── DRAG LIST ─── */
.drag-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 60px;
  padding: .35rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.drag-list.drag-over {
  border-color: rgba(139,124,248,.4);
  background: rgba(139,124,248,.04);
}
.drag-list:empty::after {
  content: 'Aucun service — ajoutez-en ci-dessous';
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
  display: block;
  padding: .75rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── DRAG ITEM ─── */
.drag-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .55rem .7rem;
  cursor: grab;
  transition: border-color .15s, background .15s, opacity .15s, transform .15s;
  user-select: none;
  position: relative;
}
.drag-item:active { cursor: grabbing; }
.drag-item.dragging { opacity: .4; transform: scale(.98); }
.drag-item.drag-placeholder {
  border-style: dashed;
  border-color: rgba(139,124,248,.35);
  background: rgba(139,124,248,.05);
  opacity: .7;
}
.drag-handle {
  color: var(--muted);
  font-size: .9rem;
  cursor: grab;
  flex-shrink: 0;
  line-height: 1;
}
.drag-item-icon { font-size: 1rem; flex-shrink: 0; }
.drag-item-info { flex: 1; min-width: 0; }
.drag-item-name { font-size: .82rem; font-weight: 500; }
.drag-item-url {
  font-size: .68rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drag-item-edit {
  background: none; border: none;
  color: var(--muted);
  cursor: pointer; font-size: .75rem;
  padding: .2rem .35rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
  font-family: 'JetBrains Mono', monospace;
}
.drag-item-edit:hover { color: var(--purple); background: var(--purple-dim); }
.drag-item-del {
  background: none; border: none;
  color: var(--muted);
  cursor: pointer; font-size: .8rem;
  padding: .2rem .35rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.drag-item-del:hover { color: var(--red); background: var(--red-dim); }
.drag-sub-tag {
  font-size: .6rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  padding: .05rem .35rem;
  border-radius: 3px;
}

/* ─── ADD BAR ─── */
.add-to-chain-bar {
  display: flex; gap: .5rem;
  align-items: center;
  margin-top: .5rem;
}
.btn-add-inline {
  background: var(--purple-dim);
  border: 1px solid rgba(139,124,248,.3);
  color: var(--purple);
  padding: .6rem .9rem;
  border-radius: 8px;
  font-size: .8rem; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  font-family: inherit;
}
.btn-add-inline:hover { background: rgba(139,124,248,.2); }
.btn-add-inline.full-width { width: 100%; }

.divider-text {
  text-align: center;
  font-size: .7rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin: .75rem 0;
  display: flex; align-items: center; gap: .75rem;
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.quick-add-box {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .9rem;
}
.quick-add-box .form-row { margin-bottom: .5rem; }

/* ─── ICON PICKER ─── */
.icon-picker { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.icon-opt {
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: border-color .15s, background .15s;
}
.icon-opt:hover, .icon-opt.selected {
  border-color: var(--purple);
  background: var(--purple-dim);
}

/* ─── COLOR PICKER ─── */
.color-picker { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.color-opt {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.color-opt:hover { transform: scale(1.1); }
.color-opt.selected { border-color: rgba(255,255,255,.8); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }

/* ─── MODAL ACTIONS ─── */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.btn-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted-2);
  padding: .55rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}
.btn-cancel:hover { border-color: var(--border-2); color: var(--text); }
.btn-save {
  background: var(--purple-dim);
  border: 1px solid rgba(139,124,248,.35);
  color: var(--purple);
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-size: .82rem; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  display: flex; align-items: center; gap: .4rem;
}
.btn-save:hover { background: rgba(139,124,248,.22); }
.btn-danger {
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,.25);
  color: var(--red);
  padding: .55rem 1rem;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn-danger:hover { background: rgba(248,113,113,.2); }

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: #1a2218;
  border: 1px solid rgba(74,222,128,.25);
  color: var(--green);
  font-size: .8rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  z-index: 2000;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: .5rem;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer p { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--muted); }

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade { opacity: 0; animation: fadeUp .5s ease forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .2s; }
.d4 { animation-delay: .28s; }
.d5 { animation-delay: .36s; }
