:root {
  color-scheme: dark;
  --bg: #090d14;
  --panel: #0e1420;
  --card: #121a28;
  --card2: #172234;
  --ink: #e7edf7;
  --muted: #95a3b8;
  --line: #253348;
  --soft: #172944;
  --primary: #4f8cff;
  --primary2: #2f6fe8;
  --success: #3dd08a;
  --warning: #f0b84b;
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
* {
  scrollbar-color: #334155 #0b111c;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(79, 140, 255, .14), transparent 32%),
    linear-gradient(180deg, #0b1019 0%, var(--bg) 46%, #070a10 100%);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2dd4bf);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: .5px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 2px; font-size: 25px; }
h2 { margin-bottom: 2px; font-size: 18px; }
h3 { margin-bottom: 10px; font-size: 14px; }
p, .sub { color: var(--muted); }
.sub { font-size: 13px; font-weight: 700; }
.tagline {
  max-width: 620px;
  margin-top: 4px;
  color: #c2cee1;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.accountBox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.guided { 
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin: 0;
} 

.planPill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(18, 26, 40, .88);
  color: var(--muted);
  font-weight: 900;
}

.planPill.paid {
  background: rgba(61, 208, 138, .13);
  color: var(--success);
  border-color: rgba(61, 208, 138, .34);
}

.modeLanding {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.modeLanding[hidden],
.guidedWorkspace[hidden],
.advancedWorkspace[hidden],
.advancedGate[hidden] {
  display: none;
}

.modeCard {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modeCard.pro {
  background: linear-gradient(180deg, #18243a, var(--card));
}

.modeCard h2 {
  font-size: 25px;
}

.modeCard p {
  line-height: 1.5;
  max-width: 560px;
}

.modeBadge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wizardShell {
  max-width: 980px;
  margin: 18px auto;
}

.wizardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.wizardProgress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #182235;
  margin-bottom: 16px;
}

.wizardProgress span {
  display: block;
  height: 100%;
  width: 12.5%;
  background: var(--primary);
  transition: width .2s ease;
}

.wizardStep {
  display: none;
}

.wizardStep.active {
  display: block;
}

.wizardNav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.advancedGate {
  margin: 18px auto;
  max-width: 780px;
}

.tab-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin-bottom: 16px;
  background: rgba(9, 13, 20, .86);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101827;
  color: var(--muted);
  padding: 10px 12px;
  white-space: nowrap;
  font-weight: 900;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  border-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.grid {
  display: grid;
  gap: 16px;
}

.twoCol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span { grid-column: 1 / -1; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 34, 52, .92), rgba(18, 26, 40, .92));
}

.ic {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  flex: 0 0 auto;
}

.card-body {
  padding: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.inlineGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  font-size: 13px;
  font-weight: 900;
  color: #cbd6e8;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #0c121d;
  color: var(--ink);
  font: inherit;
}

select {
  color-scheme: dark;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(79, 140, 255, .36);
  border-color: rgba(79, 140, 255, .78);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.checks {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #0d1522;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.chk {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd6e8;
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0;
}

.chk input {
  width: auto;
}

.checks input {
  width: auto;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 13px;
}

.btn, button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active, button:active { transform: translateY(1px); }
.btn:hover, button:hover { background: var(--primary2); }
.btn.success, button.success { background: #209765; }
.btn.copy, button.copy { background: #334155; }
.btn.soft, button.soft {
  background: var(--soft);
  color: var(--primary);
  border: 1px solid rgba(79, 140, 255, .28);
}

.note {
  border: 1px solid var(--line);
  background: #0d1522;
  color: var(--muted);
  border-radius: 8px;
  padding: 11px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 700;
}

.previewBox {
  border: 1px solid var(--line);
  background: #0d1522;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  gap: 5px;
}

.previewBox span {
  color: var(--muted);
  font-size: 13px;
}

.assetGroups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.assetGroups section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
  background: #0d1522;
}

.buttonList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assetBtn {
  background: var(--soft);
  color: var(--primary);
  border: 1px solid rgba(79, 140, 255, .3);
  padding: 8px 10px;
}

.assetBtn:hover {
  color: #fff;
}

.empty {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  background: #1b2638;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 18, .68);
}

.modal[hidden] {
  display: none;
}

.modalCard {
  width: min(860px, 96vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.modalHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card2), var(--card));
}

.modalCard pre {
  white-space: pre-wrap;
  margin: 0;
  padding: 16px;
  color: var(--ink);
  font: 13px/1.5 Consolas, Monaco, monospace;
}

@media (max-width: 1100px) {
  .twoCol, .assetGroups, .inlineGrid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
