/* -- DARK THEME (default) -- */
:root {
  --void: #05070c;
  --base: #0a0f1a;
  --raised: #0f1525;
  --surface: #151d30;
  --hover: #1a2540;
  --dim: #1a2238;
  --mid: #243050;
  --bright: #2d3d66;
  --t1: #e8ecf4;
  --t2: #8b9cc0;
  --t3: #4d5f85;
  --accent: #00d4aa;
  --accent-2: #818cf8;
  --accent-3: #f472b6;
  --accent-g: rgba(0, 212, 170, 0.1);
  --error: #ef4444;
  --warn: #f6c945;
  --warn-strong: #ffd866;
  --tooltip-bg: linear-gradient(180deg, rgba(13,27,55,0.98), rgba(9,18,38,0.98));
  --tooltip-border: rgba(246, 201, 69, 0.35);
  --tooltip-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(6, 15, 30, 0.55);
  --hero-glow: radial-gradient(circle at 50% 44%, rgba(0, 212, 170, 0.08), transparent 54%);
  --hero-veil: linear-gradient(90deg, var(--void) 0%, color-mix(in srgb, var(--void) 94%, transparent) 16%, color-mix(in srgb, var(--void) 62%, transparent) 34%, color-mix(in srgb, var(--void) 10%, transparent) 58%, transparent 80%);
  --hero-spot: radial-gradient(circle at 72% 46%, rgba(255,255,255,0.032), transparent 26%);
}

/* -- LIGHT THEME -- */
[data-theme="light"] {
  --void: #e8edf1;
  --base: #f7f9fb;
  --raised: #f1f4f7;
  --surface: #e7ecf1;
  --hover: #dde4eb;
  --dim: #cdd6e0;
  --mid: #aab7c4;
  --bright: #8595a8;
  --t1: #1a1f2e;
  --t2: #4a5568;
  --t3: #718096;
  --accent: #00b894;
  --accent-2: #5b61d6;
  --accent-3: #d85da8;
  --accent-g: rgba(0, 184, 148, 0.07);
  --error: #e53e3e;
  --warn: #b7791f;
  --warn-strong: #975a16;
  --tooltip-bg: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,248,250,0.99));
  --tooltip-border: rgba(183, 121, 31, 0.28);
  --tooltip-shadow: 0 12px 28px rgba(26, 31, 46, 0.12), 0 0 0 1px rgba(176, 188, 200, 0.18);
  --hero-glow: radial-gradient(circle at 50% 44%, rgba(0, 184, 148, 0.1), transparent 56%);
  --hero-veil: linear-gradient(90deg, rgba(232, 237, 241, 0.88) 0%, rgba(232, 237, 241, 0.7) 16%, rgba(232, 237, 241, 0.3) 34%, rgba(232, 237, 241, 0.05) 58%, transparent 80%);
  --hero-spot: radial-gradient(circle at 72% 46%, rgba(91, 97, 214, 0.045), transparent 28%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--void);
  color: var(--t1);
  font-family: 'DM Sans', sans-serif;
  height: 100vh;
  overflow: hidden;
}


/* \u00B7\u00B7\u00B7 THEME TOGGLE \u00B7\u00B7\u00B7 */
.theme-toggle {
  position: absolute; top: 18px; right: 22px;
  background: var(--raised); border: 1px solid var(--dim);
  color: var(--t2); font-size: 16px;
  width: 38px; height: 38px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.15s;
  z-index: 10;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-g); }
.vtb-theme {
  background: none; border: 1px solid var(--dim);
  color: var(--t2); font-size: 16px;
  width: 38px; height: 38px; border-radius: 7px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.15s;
}
.vtb-theme:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-g); }

/* ── LOADING SCREEN ── */
.loading-screen {
  align-items: center; justify-content: center;
  flex-direction: column; gap: 25px; background: var(--void); text-align: center;
}
.loading-screen.overlay-active {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 250;
  opacity: 1;
  transition: opacity 0.22s ease;
}
.loading-screen.overlay-active.overlay-leaving {
  opacity: 0;
  pointer-events: none;
}
.load-protein-name { font-size: 22px; font-weight: 600; color: var(--t1); }
.load-ring {
  width: 50px; height: 50px;
  border: 3px solid var(--dim); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-steps { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; align-items: center; }
.load-step {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px; color: var(--t3); transition: color 0.3s;
}
.load-step.done { color: var(--accent); }
.load-step.active { color: var(--t2); }
.load-step.error { color: var(--error); }
.load-step .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dim); flex-shrink: 0; transition: background 0.3s, transform 0.3s;
}
.load-step.done .dot { background: var(--accent); }
.load-step.active .dot { background: var(--t2); animation: pulse 1s infinite; }
.load-step.error .dot { background: var(--error); }
.load-step.loading { color: var(--t2); }
.load-step.loading .dot { background: var(--accent); animation: pulse 1.1s infinite; transform: scale(1.1); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
