/* ─── Exchange Create Wizard ─────────────────────────────────────────────── */
.create-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.create-container {
  width: 100%;
  max-width: 560px;
}

.create-header {
  margin-bottom: 32px;
  text-align: center;
}

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.done .step-num {
  background: var(--teal);
  color: #000;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s;
}

.step-indicator.active .step-num {
  background: var(--amber);
  border-color: var(--amber);
  color: #000;
}

.step-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.step-indicator.active .step-label {
  color: var(--text);
}

.step-line {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
  transition: background 0.2s;
}

.step-line.done {
  background: var(--teal);
}

.step-header {
  margin-bottom: 32px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--amber);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.slug-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.slug-input-wrap:focus-within {
  border-color: var(--amber);
}

.slug-prefix {
  padding: 12px 12px 12px 16px;
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
}

.slug-input {
  border: none !important;
  background: transparent !important;
  flex: 1;
}

.slug-input:focus {
  border: none !important;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-error {
  font-size: 13px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary {
  flex: 1;
  padding: 14px 24px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #fbbf24;
}

.btn-secondary {
  padding: 14px 20px;
  background: var(--surface2);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-create {
  background: var(--teal);
}

.btn-create:hover {
  background: #2dd4bf;
}

/* Toggle Options */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-option {
  cursor: pointer;
}

.toggle-option input {
  display: none;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.toggle-option.selected .toggle-card {
  border-color: var(--amber);
  background: var(--amber-dim);
}

.toggle-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.toggle-option.selected .toggle-icon {
  background: var(--amber-dim);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-text strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

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

/* Review Card */
.review-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-key {
  font-size: 13px;
  color: var(--text-muted);
}

.review-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  margin-bottom: 20px;
}

.success-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.success-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.invite-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.invite-url {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.01em;
  text-align: left;
}

.btn-copy {
  padding: 14px 18px;
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  color: var(--text);
  background: var(--surface2);
}

.invite-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  margin-top: -8px;
}

.success-card .btn-primary {
  display: inline-block;
  max-width: 280px;
}

/* ─── Exchange Landing Page ───────────────────────────────────────────────── */
.exchange-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.exchange-header {
  text-align: center;
  margin-bottom: 56px;
}

.exchange-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.exchange-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: pulse 2s infinite;
}

.exchange-name {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.exchange-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.exchange-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.market-count {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 4px 10px;
  border-radius: 99px;
}

/* Markets List */
.markets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}

.market-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
}

.market-question {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

.market-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.market-bar {
  flex: 1;
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill.teal {
  background: linear-gradient(90deg, var(--teal), #2dd4bf);
}

.market-price {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  min-width: 48px;
  text-align: right;
}

.market-price.teal {
  color: var(--teal);
}

.market-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* Leaderboard */
.leaderboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.lb-entry {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.lb-entry:last-child {
  border-bottom: none;
}

.lb-entry:hover {
  background: var(--surface2);
}

.lb-rank {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
}

.lb-entry:nth-child(1) .lb-rank { color: #f59e0b; }
.lb-entry:nth-child(2) .lb-rank { color: #9ca3af; }
.lb-entry:nth-child(3) .lb-rank { color: #92400e; }

.lb-name {
  font-size: 14px;
  color: var(--text);
}

.lb-score {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.join-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.join-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-join {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-join:hover {
  background: #fbbf24;
}

/* ─── Error Page ─────────────────────────────────────────────────────────── */
.error-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-container {
  text-align: center;
  padding: 40px;
}

.error-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wizard-card { padding: 28px 20px; }
  .wizard-steps { gap: 0; }
  .step-line { width: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .exchange-content { grid-template-columns: 1fr; }
  .exchange-page { padding-top: 100px; }
}
