
:root {
  --bg: #050816;
  --bg-alt: #0b1220;
  --card: #020617;
  --accent: #0ea5e9;
  --accent-soft: rgba(14,165,233,0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px 16px;
}

.layout {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
}

.wizard-card {
  background: linear-gradient(145deg, #020617 0, #020617 40%, #0b1120 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.25);
  box-shadow: 0 30px 80px rgba(15,23,42,0.9);
  padding: 24px 24px 28px;
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(129,140,248,0.18) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.wizard-inner { position: relative; z-index: 1; }

.wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.wizard-title-block { max-width: 480px; }

.wizard-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wizard-title .icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.wizard-subtitle {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.wizard-pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(15,23,42,0.9);
}

.progress-shell { margin-bottom: 18px; }

.progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.step-indicator { font-weight: 500; color: var(--accent); }

.progress-bar-shell {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #0ea5e9, #6366f1);
  transition: width 0.25s ease-out;
}

.progress-glow {
  position: absolute;
  inset: 0;
  box-shadow: 0 0 18px rgba(56,189,248,0.4);
  opacity: 0.25;
  pointer-events: none;
}

.steps-shell { margin-top: 10px; }

.step {
  display: none;
  padding: 18px 16px 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9) 0, #020617 55%);
  margin-bottom: 8px;
}

.step.active {
  display: block;
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.25);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.step-header .icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.step-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.step-subtext {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.step-body { margin-top: 4px; }

.field-row { margin-bottom: 12px; }

.field-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

input::placeholder,
textarea::placeholder { color: #6b7280; }

textarea {
  resize: vertical;
  min-height: 80px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(14,165,233,0.4);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #0b1120;
  font-weight: 600;
}

.btn-secondary {
  background: rgba(15,23,42,0.9);
  color: var(--muted);
  border: 1px solid rgba(31,41,55,0.9);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 2px;
}

.preview-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  font-size: 0.8rem;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.preview-label { color: var(--muted); }

.preview-value { font-weight: 500; }

.side-card {
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.25);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.side-inner { position: relative; z-index: 1; }

.side-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34,197,94,0.18) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.side-title .icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.side-list li {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.bullet { color: var(--accent); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
  color: var(--muted);
}

.badge.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.footer-shell {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 6px;
}

.theme-toggle-shell {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

#themeToggle {
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

#themeIcon { font-size: 1rem; }

.ai-active {
  box-shadow: 0 0 0 1px rgba(56,189,248,0.6);
  border-color: var(--accent);
}

.autocomplete-box {
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.95);
  max-height: 140px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.autocomplete-item:hover {
  background: rgba(31,41,55,0.9);
  color: var(--text);
}


body.dark .bottom-nav {
    background: rgba(17,19,23,0.95);
    border-top-color: #2a2d33;
}

.bottom-actions {
    display: flex;
    gap: 12px;                   /* spacing between buttons */
    justify-content: center;     /* center buttons */
}

.bottom-link {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

/* Premium green hover */
.bottom-link:hover {
    background: var(--green);
    color: #ffffff;
    border-color: var(--green-dark);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}
</style>


<style>
:root {
  /* LIGHT MODE DEFAULTS */
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #0ea5e9;
  --accent-soft: rgba(14,165,233,0.12);
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --radius-lg: 18px;
  --radius-md: 10px;

  --shadow-strong: 0 30px 80px rgba(0,0,0,0.08);
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
}



body.dark-mode {
  --bg: #050816;
  --bg-alt: #0b1220;
  --card: #020617;
  --accent: #0ea5e9;
  --accent-soft: rgba(14,165,233,0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;

  --shadow-strong: 0 30px 80px rgba(15,23,42,0.9);
  --shadow-soft: 0 10px 25px rgba(15,23,42,0.6);
}

/* ============================================================
   GLOBAL ELEMENTS
   ============================================================ */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}

.shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px 16px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.layout {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
}

/* ============================================================
   WIZARD CARD
   ============================================================ */

.wizard-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  padding: 24px 24px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wizard-card::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, var(--accent-soft) 0, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   HEADERS
   ============================================================ */

.wizard-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.wizard-title .icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-subtitle {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.progress-bar-shell {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, var(--accent), #6366f1);
  transition: width 0.25s ease-out;
}

/* ============================================================
   STEPS
   ============================================================ */

.step {
  display: none;
  padding: 18px 16px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  margin-bottom: 8px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.step.active {
  display: block;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* ============================================================
   INPUTS
   ============================================================ */

input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-weight: 600;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ============================================================
   PILLS
   ============================================================ */

.pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

/* ============================================================
   SIDE PANEL
   ============================================================ */

.side-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.side-title .icon {
  background: var(--accent-soft);
}

.badge {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}

.badge.accent {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* NETWORK SLIDER */
.network-slider-shell {
  margin: 20px 0;
  padding: 10px 0;
}

.network-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding-bottom: 10px;
}

.network-slider::-webkit-scrollbar {
  height: 6px;
}
.network-slider::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 10px;
}

.network-slide {
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.network-slide:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.network-slide.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.network-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.network-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.network-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.network-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.net-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.net-btn:hover {
  background: var(--accent-soft);
}

/* NAV WRAPPER */
.eg-nav {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT SIDE */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
}

/* RIGHT SIDE */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* MENU BUTTON */
.menu-btn {
    background: var(--card-light);
    border: 1px solid var(--border-soft);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

body.dark .menu-btn {
    background: var(--card-dark);
}

/* DROPDOWN */
.nav-menu {
    position: relative;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: 38px;
    background: var(--card-light);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: none;
    flex-direction: column;
    min-width: 160px;
    animation: fadeSlide 0.25s ease;
}

body.dark .menu-dropdown {
    background: var(--card-dark);
}

.menu-dropdown a {
    padding: 10px 14px;
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.menu-dropdown a:hover {
    background: var(--bg-light);
}

body.dark .menu-dropdown a:hover {
    background: var(--bg-dark);
}

/* SHOW DROPDOWN WHEN ACTIVE */
.nav-menu.active .menu-dropdown {
    display: flex;
}

/* DARK MODE TOGGLE */
.toggle {
    cursor: pointer;
    font-size: 0.85rem;
}

/* Ensure nav sits above all page containers */
.eg-nav {
    position: relative;
    z-index: 1000;
}

/* Ensure dropdown floats above wizard, cards, sections */
.menu-dropdown {
    position: absolute;
    right: 0;
    top: 38px;
    z-index: 2000; /* <-- THE FIX */
}

.wizard {
    position: relative;
    z-index: 1;
}

/* FULL-WIDTH NAV */
.eg-nav {
    width: 100%;
    background: var(--card-light);
    border-bottom: 1px solid var(--border-soft);
    position: relative;
    z-index: 2000; /* ensures dropdown floats above wizard */
}

body.dark .eg-nav {
    background: var(--card-dark);
}

/* CENTERED INNER CONTAINER (640px) */
.nav-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LEFT SIDE */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
}

/* RIGHT SIDE */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* MENU BUTTON */
.menu-btn {
    background: var(--card-light);
    border: 1px solid var(--border-soft);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

body.dark .menu-btn {
    background: var(--card-dark);
}

/* DROPDOWN */
.nav-menu {
    position: relative;
}

.menu-dropdown {
    position: absolute;
    right: 0;
    top: 38px;
    background: var(--card-light);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: none;
    flex-direction: column;
    min-width: 160px;
    z-index: 3000; /* floats above wizard */
}

body.dark .menu-dropdown {
    background: var(--card-dark);
}

.menu-dropdown a {
    padding: 10px 14px;
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.menu-dropdown a:hover {
    background: var(--bg-light);
}

body.dark .menu-dropdown a:hover {
    background: var(--bg-dark);
}

/* SHOW DROPDOWN */
.nav-menu.active .menu-dropdown {
    display: flex;
}

/* DARK MODE TOGGLE */
.toggle {
    cursor: pointer;
    font-size: 0.85rem;
}

.bottom-nav {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 20px;
    text-align: center; /* <-- centers text */
    display: flex;
    flex-direction: column;
    align-items: center; /* <-- centers children */
    justify-content: center;
    gap: 12px;
}

.bottom-message {
    font-size: 1rem;
    font-weight: 600;
    text-align: center; /* <-- ensures perfect centering */
}

.bottom-actions {
    display: flex;
    gap: 20px;
    justify-content: center; /* <-- centers links */
    flex-wrap: wrap;
}

.bottom-link {
    color: #00c853;
    text-decoration: none;
    font-weight: 600;
}

.bottom-link:hover {
    text-decoration: underline;
}

