:root {
  --bg:        #0e0c14;
  --bg2:       #14121d;
  --bg3:       #1c1828;
  --border:    #2c273d;
  --accent:    #ad62ff;
  --accent2:   #8b5cf6;
  --accentRGB: 173, 98, 255;
  --text:      #ece8f5;
  --text2:     #9b94b0;
  --text3:     #56506d;
  --danger:    #e55050;
  --warn:      #e5a550;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh; overflow-x: hidden;
}
.page { display: none; min-height: 100vh; }
.page.active { display: flex; }

/* ── Loading overlay ── */
.loading-overlay {
  position: fixed; inset: 0; background: #0e0c14cc;
  display: none; flex-direction: column;
  align-items: center; justify-content: center; z-index: 9999;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: var(--text2); letter-spacing: 0.1em;
}

/* ── Shared button styles ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  letter-spacing: 0.05em; border: none; border-radius: 1px;
  cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #0e0c14; width: 100%;
  font-weight: 600; margin-bottom: 12px;
}
.btn-primary:hover { background: #be80ff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border); margin-bottom: 10px;
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 11px; margin-bottom: 0 !important; }

/* ── Shared panel ── */
.panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 2px; padding: 18px;
}
.panel-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 14px;
}

/* ── Shared select ── */
select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  border-radius: 1px; outline: none; cursor: pointer;
}
select:focus { border-color: var(--accent); }
select option { background: var(--bg3); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
