/* ============================================================================
   JARVIS OS — Web Design System
   Catppuccin Mocha palette · jo- namespace
   Adapted from Obsidian vault CSS for standalone HTML
   ========================================================================= */

/* ─── 0. CSS Variables ─── */
:root {
  --jo-bg:       #1e1e2e;
  --jo-mantle:   #181825;
  --jo-crust:    #11111b;
  --jo-surface:  #313244;
  --jo-overlay:  #45475a;
  --jo-surface2: #585b70;
  --jo-text:     #cdd6f4;
  --jo-subtext:  #a6adc8;
  --jo-muted:    #6c7086;
  --jo-green:    #a6e3a1;
  --jo-blue:     #89b4fa;
  --jo-yellow:   #f9e2af;
  --jo-red:      #f38ba8;
  --jo-pink:     #f5c2e7;
  --jo-purple:   #cba6f7;
  --jo-teal:     #94e2d5;
  --jo-peach:    #fab387;
  --jo-lavender: #b4befe;
  --jo-mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', 'Consolas', monospace;
  --jo-radius:   8px;
  --jo-transition: 0.2s ease;
}

/* ─── 1. Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--jo-bg);
  color: var(--jo-text);
  font-family: var(--jo-mono);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jo-blue); text-decoration: none; transition: color var(--jo-transition); }
a:hover { color: var(--jo-teal); text-shadow: 0 0 6px rgba(148, 226, 213, 0.3); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--jo-mantle); }
::-webkit-scrollbar-thumb { background: var(--jo-overlay); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--jo-surface2); }

/* ─── 2. Page Layout ─── */
.jo-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  animation: jo-fade-in 0.3s ease;
}

.jo-page-header {
  width: 100%;
  background: var(--jo-mantle);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 16px 24px;
  margin-bottom: 20px;
  animation: jo-fade-in 0.4s ease;
}

.jo-terminal-line {
  font-size: 0.95em;
  color: var(--jo-green);
  line-height: 1.6;
}

.jo-terminal-line a { color: var(--jo-subtext); }
.jo-terminal-line a:hover { color: var(--jo-blue); }

.jo-page-title {
  font-size: 1.6em;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.12em;
  color: var(--jo-text);
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(137, 180, 250, 0.3);
  animation: jo-fade-in 0.5s ease;
}

/* ─── 3. Stat Row ─── */
.jo-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: jo-fade-in 0.5s ease both;
}

.jo-stat {
  flex: 1;
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 16px;
  text-align: center;
  transition: all var(--jo-transition);
  cursor: default;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.jo-stat:hover {
  border-color: var(--jo-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(137, 180, 250, 0.1);
}

.jo-stat-value {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--jo-text);
  line-height: 1.2;
}

.jo-stat-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jo-subtext);
  margin-top: 4px;
}

/* ─── 4. Sections ─── */
.jo-section {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  animation: jo-slide-up 0.4s ease both;
}

.jo-section-header {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jo-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--jo-overlay);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jo-section-header .jo-admin-btn {
  font-size: 1.2em;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--jo-transition);
}

body.admin-mode .jo-section-header .jo-admin-btn {
  opacity: 1;
}

/* ─── 5. Tables ─── */
.jo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}

.jo-table th {
  text-align: left;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jo-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--jo-overlay);
}

.jo-table td {
  padding: 10px 12px;
  color: var(--jo-text);
  border-bottom: 1px solid rgba(69, 71, 90, 0.3);
  transition: background var(--jo-transition);
}

.jo-table tr:hover td {
  background: rgba(69, 71, 90, 0.3);
}

/* ─── 6. Badges ─── */
.jo-badge {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.4;
  vertical-align: middle;
}

.jo-badge-green    { color: var(--jo-green);    background: rgba(166, 227, 161, 0.12); border: 1px solid rgba(166, 227, 161, 0.3); }
.jo-badge-yellow   { color: var(--jo-yellow);   background: rgba(249, 226, 175, 0.12); border: 1px solid rgba(249, 226, 175, 0.3); }
.jo-badge-blue     { color: var(--jo-blue);     background: rgba(137, 180, 250, 0.12); border: 1px solid rgba(137, 180, 250, 0.3); }
.jo-badge-red      { color: var(--jo-red);      background: rgba(243, 139, 168, 0.12); border: 1px solid rgba(243, 139, 168, 0.3); }
.jo-badge-purple   { color: var(--jo-purple);   background: rgba(203, 166, 247, 0.12); border: 1px solid rgba(203, 166, 247, 0.3); }
.jo-badge-teal     { color: var(--jo-teal);     background: rgba(148, 226, 213, 0.12); border: 1px solid rgba(148, 226, 213, 0.3); }
.jo-badge-peach    { color: var(--jo-peach);     background: rgba(250, 179, 135, 0.12); border: 1px solid rgba(250, 179, 135, 0.3); }
.jo-badge-muted    { color: var(--jo-muted);    background: rgba(108, 112, 134, 0.12); border: 1px solid rgba(108, 112, 134, 0.3); }

/* ─── 7. Progress Bars ─── */
.jo-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--jo-overlay);
  border-radius: 3px;
  overflow: hidden;
  flex-grow: 1;
}

.jo-progress-bar.jo-progress-lg {
  height: 10px;
  border-radius: 5px;
  margin-top: 8px;
}

.jo-progress-fill {
  height: 100%;
  background: var(--jo-blue);
  border-radius: inherit;
  transition: width 0.8s ease;
  box-shadow: 0 0 6px rgba(137, 180, 250, 0.3);
}

.jo-progress-red    { background: var(--jo-red);    box-shadow: 0 0 6px rgba(243, 139, 168, 0.3); }
.jo-progress-yellow { background: var(--jo-yellow); box-shadow: 0 0 6px rgba(249, 226, 175, 0.3); }
.jo-progress-green  { background: var(--jo-green);  box-shadow: 0 0 6px rgba(166, 227, 161, 0.3); }

.jo-target-label {
  font-size: 1.1em;
  color: var(--jo-text);
  margin-bottom: 4px;
}

.jo-pct-muted {
  color: var(--jo-muted);
  font-size: 0.85em;
}

/* ─── 8. Tile Grid ─── */
.jo-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.jo-tile {
  display: block;
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 20px 16px;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit !important;
  transition: all var(--jo-transition);
  animation: jo-fade-in 0.4s ease both;
}

.jo-tile:nth-child(1) { animation-delay: 0.05s; }
.jo-tile:nth-child(2) { animation-delay: 0.1s; }
.jo-tile:nth-child(3) { animation-delay: 0.15s; }
.jo-tile:nth-child(4) { animation-delay: 0.2s; }
.jo-tile:nth-child(5) { animation-delay: 0.25s; }
.jo-tile:nth-child(6) { animation-delay: 0.3s; }

.jo-tile:hover {
  border-color: var(--jo-blue);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(137, 180, 250, 0.15), 0 0 8px rgba(137, 180, 250, 0.08);
}

.jo-tile-icon {
  font-size: 2em;
  margin-bottom: 8px;
}

.jo-tile-label {
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jo-subtext);
}

.jo-tile-muted {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ─── 9. Project Rows ─── */
.jo-project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jo-project-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--jo-transition);
  font-size: 0.85em;
}

.jo-project-row:hover { background: rgba(69, 71, 90, 0.3); }

.jo-project-name {
  color: var(--jo-text);
  min-width: 140px;
  flex-shrink: 0;
}

.jo-pct {
  color: var(--jo-subtext);
  font-size: 0.9em;
  min-width: 36px;
  text-align: right;
}

/* ─── 10. Quest Cards ─── */
.jo-quest-card {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-left: 3px solid var(--jo-blue);
  border-radius: 0 var(--jo-radius) var(--jo-radius) 0;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all var(--jo-transition);
  animation: jo-slide-up 0.3s ease both;
}

.jo-quest-card:hover {
  border-left-color: var(--jo-teal);
  background: rgba(49, 50, 68, 0.8);
  transform: translateX(4px);
  box-shadow: -3px 0 12px rgba(137, 180, 250, 0.08);
}

.jo-quest-card.jo-quest-backlog {
  border-left-color: var(--jo-muted);
  opacity: 0.8;
}

.jo-quest-card.jo-quest-backlog:hover {
  border-left-color: var(--jo-yellow);
  opacity: 1;
}

.jo-quest-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.jo-quest-title {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--jo-text);
}

.jo-quest-desc {
  font-size: 0.82em;
  color: var(--jo-subtext);
  margin-bottom: 6px;
  line-height: 1.4;
}

.jo-quest-meta {
  display: flex;
  gap: 16px;
  font-size: 0.72em;
  color: var(--jo-muted);
}

.jo-quest-actions {
  display: none;
  margin-left: auto;
}

body.admin-mode .jo-quest-actions {
  display: flex;
  gap: 6px;
}

.jo-quest-complete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88em;
  border-bottom: 1px solid rgba(69, 71, 90, 0.2);
}

.jo-quest-done-name { color: var(--jo-subtext); }
.jo-quest-date { margin-left: auto; font-size: 0.8em; color: var(--jo-muted); }

/* ─── 11. Blockers ─── */
.jo-blocker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jo-blocker-item {
  border-left: 3px solid var(--jo-yellow);
  background: rgba(249, 226, 175, 0.04);
  padding: 10px 14px;
  border-radius: 0 var(--jo-radius) var(--jo-radius) 0;
  font-size: 0.85em;
  color: var(--jo-text);
  transition: background var(--jo-transition);
}

.jo-blocker-item:hover { background: rgba(249, 226, 175, 0.08); }

/* ─── 12. Trading Grid ─── */
.jo-trading-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jo-trading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(69, 71, 90, 0.4);
  font-size: 0.85em;
}

.jo-trading-label { color: var(--jo-subtext); }
.jo-trading-value { color: var(--jo-text); }

/* ─── 13. Two Column ─── */
.jo-two-col {
  display: flex;
  gap: 16px;
}

.jo-two-col > * {
  flex: 1;
  min-width: 0;
}

/* ─── 14. Kanban Board ─── */
.jo-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.jo-kanban-col {
  flex: 1;
  min-width: 220px;
  background: var(--jo-mantle);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 12px;
}

.jo-kanban-col-title {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jo-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--jo-overlay);
}

.jo-kanban-card {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-left: 3px solid var(--jo-blue);
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: all var(--jo-transition);
  font-size: 0.85em;
}

.jo-kanban-card:hover {
  border-left-color: var(--jo-teal);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(137, 180, 250, 0.1);
}

.jo-kanban-card.dragging {
  opacity: 0.5;
  border-color: var(--jo-blue);
}

.jo-kanban-card-title {
  font-weight: 600;
  color: var(--jo-text);
  margin-bottom: 4px;
}

.jo-kanban-card-meta {
  font-size: 0.8em;
  color: var(--jo-muted);
}

.jo-kanban-add {
  display: none;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px dashed var(--jo-overlay);
  border-radius: 6px;
  color: var(--jo-muted);
  cursor: pointer;
  font-family: var(--jo-mono);
  font-size: 0.8em;
  text-align: center;
  transition: all var(--jo-transition);
}

body.admin-mode .jo-kanban-add { display: block; }
.jo-kanban-add:hover { border-color: var(--jo-blue); color: var(--jo-blue); }

/* ─── 15. Bottom Nav ─── */
.jo-nav {
  width: 100%;
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 14px 8px;
  margin-top: 40px;
  animation: jo-slide-up 0.4s ease 0.3s both;
}

.jo-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--jo-muted) !important;
  text-decoration: none !important;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all var(--jo-transition);
  padding: 4px 12px;
  border-radius: 6px;
}

.jo-nav-item:hover {
  color: var(--jo-blue) !important;
  background: rgba(137, 180, 250, 0.08);
  text-shadow: 0 0 8px rgba(137, 180, 250, 0.3);
}

.jo-nav-item.active {
  color: var(--jo-blue) !important;
  background: rgba(137, 180, 250, 0.1);
  border-bottom: 2px solid var(--jo-blue);
}

/* ─── 16. Buttons & Forms ─── */
.jo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--jo-mono);
  font-size: 0.8em;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--jo-overlay);
  background: var(--jo-surface);
  color: var(--jo-text);
  cursor: pointer;
  transition: all var(--jo-transition);
}

.jo-btn:hover {
  border-color: var(--jo-blue);
  background: rgba(137, 180, 250, 0.08);
}

.jo-btn-green  { border-color: rgba(166, 227, 161, 0.4); color: var(--jo-green); }
.jo-btn-green:hover { background: rgba(166, 227, 161, 0.12); border-color: var(--jo-green); }
.jo-btn-red    { border-color: rgba(243, 139, 168, 0.4); color: var(--jo-red); }
.jo-btn-red:hover { background: rgba(243, 139, 168, 0.12); border-color: var(--jo-red); }
.jo-btn-blue   { border-color: rgba(137, 180, 250, 0.4); color: var(--jo-blue); }
.jo-btn-blue:hover { background: rgba(137, 180, 250, 0.12); border-color: var(--jo-blue); }

.jo-input {
  font-family: var(--jo-mono);
  font-size: 0.85em;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--jo-overlay);
  background: var(--jo-mantle);
  color: var(--jo-text);
  outline: none;
  transition: border-color var(--jo-transition);
  width: 100%;
}

.jo-input:focus { border-color: var(--jo-blue); }

.jo-input::placeholder { color: var(--jo-muted); }

select.jo-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7086' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* ─── 17. Admin Mode ─── */
.jo-admin-bar {
  display: none;
  background: rgba(243, 139, 168, 0.08);
  border: 1px solid rgba(243, 139, 168, 0.3);
  border-radius: var(--jo-radius);
  padding: 8px 16px;
  margin-bottom: 16px;
  font-size: 0.8em;
  color: var(--jo-red);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: jo-fade-in 0.3s ease;
}

body.admin-mode .jo-admin-bar { display: block; }

/* Admin Panel specific */
.jo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.jo-service-card {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 16px;
  transition: all var(--jo-transition);
}

.jo-service-card:hover {
  border-color: var(--jo-blue);
}

.jo-service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.jo-service-name {
  font-weight: 700;
  font-size: 0.95em;
}

.jo-service-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.jo-log-viewer {
  background: var(--jo-crust);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 14px;
  font-size: 0.8em;
  color: var(--jo-green);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}

.jo-system-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.jo-info-card {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 14px;
  text-align: center;
}

.jo-info-value {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--jo-text);
}

.jo-info-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jo-subtext);
  margin-top: 2px;
}

/* ─── 18. Modal ─── */
.jo-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 17, 27, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.jo-modal-overlay.open { display: flex; }

.jo-modal {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-radius: var(--jo-radius);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  animation: jo-slide-up 0.3s ease;
}

.jo-modal-title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--jo-text);
}

.jo-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.jo-form-group {
  margin-bottom: 12px;
}

.jo-form-label {
  display: block;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jo-subtext);
  margin-bottom: 4px;
}

/* ─── 19. Toast Notifications ─── */
.jo-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jo-toast {
  background: var(--jo-surface);
  border: 1px solid var(--jo-overlay);
  border-left: 3px solid var(--jo-green);
  border-radius: var(--jo-radius);
  padding: 10px 16px;
  font-size: 0.85em;
  color: var(--jo-text);
  animation: jo-slide-up 0.3s ease;
  max-width: 350px;
}

.jo-toast.error { border-left-color: var(--jo-red); }
.jo-toast.warning { border-left-color: var(--jo-yellow); }

/* ─── 20. Loading ─── */
.jo-loading {
  text-align: center;
  padding: 40px;
  color: var(--jo-muted);
  animation: jo-fade-in 0.3s ease;
}

.jo-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--jo-overlay);
  border-top-color: var(--jo-blue);
  border-radius: 50%;
  animation: jo-spin 0.6s linear infinite;
}

/* ─── 21. Animations ─── */
@keyframes jo-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes jo-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes jo-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(137, 180, 250, 0.2), 0 0 20px rgba(137, 180, 250, 0.05); }
  50%      { box-shadow: 0 0 16px rgba(137, 180, 250, 0.4), 0 0 40px rgba(137, 180, 250, 0.1); }
}

@keyframes jo-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ─── 22. Boot Screen ─── */
.jo-boot-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--jo-crust);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.jo-boot-overlay.jo-boot-done {
  opacity: 0;
  pointer-events: none;
}

.jo-boot-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
  animation: jo-scanline-drift 8s linear infinite;
}

.jo-boot-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes jo-scanline-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

.jo-boot-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.jo-boot-logo {
  font-size: 0.65em;
  line-height: 1.15;
  color: var(--jo-blue);
  white-space: pre;
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(137, 180, 250, 0.4), 0 0 30px rgba(137, 180, 250, 0.1);
  animation: jo-boot-flicker 0.1s ease 2;
}

@keyframes jo-boot-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.jo-boot-terminal {
  text-align: left;
  font-size: 0.8em;
  color: var(--jo-green);
  margin-bottom: 20px;
  min-height: 120px;
}

.jo-boot-line {
  opacity: 0;
  animation: jo-boot-type 0.15s ease forwards;
  line-height: 1.7;
}

.jo-boot-line.ok { color: var(--jo-green); }
.jo-boot-line.warn { color: var(--jo-yellow); }
.jo-boot-line.info { color: var(--jo-subtext); }
.jo-boot-line.fail { color: var(--jo-red); }

@keyframes jo-boot-type {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.jo-boot-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--jo-overlay);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.jo-boot-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--jo-blue);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(137, 180, 250, 0.4);
}

.jo-boot-status {
  font-size: 0.72em;
  color: var(--jo-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── 23. Responsive ─── */
@media (max-width: 768px) {
  .jo-stat-row { flex-wrap: wrap; }
  .jo-stat { flex: 1 1 45%; }
  .jo-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .jo-two-col { flex-direction: column; }
  .jo-kanban { flex-direction: column; }
  .jo-kanban-col { min-width: unset; }
  .jo-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .jo-tile-grid { grid-template-columns: 1fr; }
  .jo-stat { flex: 1 1 100%; }
  .jo-page { padding: 12px; }
}
