/* ============================================================
   /try — launcher page
   ============================================================ */

.try-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.try-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(10, 11, 16, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.try-nav .inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.try-nav .pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.try-nav .wallet-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  background: rgba(255,255,255,0.02);
}
.try-nav .wallet-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.try-nav .wallet-chip-btn {
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: all 0.18s var(--ease);
}
.try-nav .wallet-chip-btn:hover {
  border-color: var(--red);
  color: var(--fg);
}
.try-nav .wallet-chip-btn .disconnect-x {
  margin-left: 4px;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1;
  transition: color 0.18s;
}
.try-nav .wallet-chip-btn:hover .disconnect-x { color: var(--red); }

.try-page {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.try-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.try-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.try-head h1 em {
  font-family: var(--display);
  font-style: normal;
  color: var(--fg-mute);
  font-weight: 700;
}
.try-head p {
  font-size: 17px;
  color: var(--fg-dim);
  letter-spacing: -0.005em;
  line-height: 1.55;
  max-width: 580px;
}
.try-head .demo-warn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--amber);
  background: rgba(251, 191, 36, 0.06);
  color: var(--amber);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* === wallet connect modal === */
.wallet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  animation: overlayIn 0.2s var(--ease);
  padding: 20px;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wallet-modal {
  width: 100%; max-width: 420px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 32px 28px 24px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.28s var(--ease-spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wallet-modal h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.wallet-modal p {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #050505;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
}
.wallet-row:hover {
  border-color: var(--cy-line);
  background: var(--cy-soft);
  transform: translateY(-1px);
}
.wallet-row:disabled {
  opacity: 0.5;
  cursor: progress;
}
.wallet-row .wallet-logo {
  height: 28px;
  width: auto;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
}
.wallet-row .wallet-info {
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.wallet-row .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.wallet-row .arrow-r {
  margin-left: auto;
  color: var(--fg-mute);
  transition: transform 0.18s, color 0.18s;
}
.wallet-row:hover .arrow-r { color: var(--cy); transform: translateX(3px); }
.wallet-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-align: center;
}
.wallet-err {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--red);
  background: rgba(236, 72, 153, 0.06);
  color: var(--red);
  border-radius: 0;
  font-size: 13px;
  letter-spacing: -0.005em;
  text-align: center;
}

/* === config grid === */
.config-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .config-grid { grid-template-columns: 1fr; }
}

.field-card {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 24px 26px;
  margin-bottom: 14px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.field-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.field-card .label::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 5px var(--cy-glow);
}
.field-card .label-num {
  font-family: var(--mono);
  color: var(--fg-faint);
  margin-right: 4px;
}
.field-card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field-card .help {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

.field-card input[type="text"],
.field-card textarea {
  width: 100%;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field-card input[type="text"]:focus,
.field-card textarea:focus {
  border-color: var(--cy-line);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.06);
}
.field-card textarea { min-height: 92px; line-height: 1.5; }
.field-card input::placeholder, .field-card textarea::placeholder { color: var(--fg-mute); }

.option-row { display: flex; gap: 8px; flex-wrap: wrap; }
.option {
  flex: 1; min-width: 140px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #050505;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--fg-dim);
  transition: all 0.18s var(--ease);
}
.option:hover { border-color: var(--hairline-3); color: var(--fg); }
.option.on {
  border-color: var(--cy-line);
  background: var(--cy-soft);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--cy-line);
}
.option .opt-name {
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.option .opt-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.option.on .opt-desc { color: var(--cy-2); }

.fee-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}
.fee-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 4px;
}
.fee-row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--cy) var(--p, 50%), rgba(255,255,255,0.08) var(--p, 50%));
  border-radius: 2px;
}
.fee-row input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.fee-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--fg);
  border: 0;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
  cursor: pointer;
}
.fee-row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--fg);
  border: 0;
  cursor: pointer;
}
.fee-row .fee-val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  min-width: 56px;
  text-align: right;
}

/* === summary card (right rail) === */
.summary {
  position: sticky;
  top: 96px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 24px 26px 18px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.summary h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 18px;
}
.summary .sum-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
}
.summary .sum-row:last-of-type { border-bottom: 0; }
.summary .sum-row .k { color: var(--fg-mute); letter-spacing: 0.02em; }
.summary .sum-row .v { color: var(--fg); text-align: right; max-width: 60%; }
.summary .total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-2);
  display: flex; justify-content: space-between; align-items: baseline;
}
.summary .total .k {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute);
}
.summary .total .v {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.005em;
}
.summary .total .v small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.summary .deploy-btn {
  margin-top: 20px;
  width: 100%;
  padding: 1px;
  border: 0;
  border-radius: 4px;
  background: var(--rainbow);
  background-size: 100% 100%;
  cursor: pointer;
  transition: transform 0.22s var(--ease);
  box-shadow: none;
}
.summary .deploy-btn .deploy-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 15px;
  background: #000;
  color: var(--fg);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease);
}
.summary .deploy-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.summary .deploy-btn:hover:not(:disabled) .deploy-inner {
  background: #000;
}
.summary .deploy-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.summary .fine {
  margin-top: 12px;
  font-size: 11px;
  color: var(--fg-faint);
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* === run / progress view === */
.run-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .run-shell { grid-template-columns: 1fr; }
}

.run-progress {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 22px 24px 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.run-progress::before { display: none; }
.run-progress .pr-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.run-progress .pr-head .title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.run-progress .pr-head .timer {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}
.run-progress .pr-head .timer .live {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
.run-progress .bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.run-progress .bar > div {
  position: absolute; inset: 0;
  background: var(--rainbow);
  background-size: 100% 100%;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.32);
  transform-origin: left;
  transition: width 0.5s linear;
}
.run-progress .pct {
  margin-top: 10px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}

.stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .stages { grid-template-columns: 1fr; } }

.stage {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 16px 18px;
  background: #0c0c0c;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.3s var(--ease);
  opacity: 0.5;
}
.stage.active {
  opacity: 1;
  border-color: var(--cy-line);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08);
}
.stage.done {
  opacity: 1;
  border-color: var(--hairline-2);
}
.stage .stg-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.stage .stg-name {
  font-size: 14px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.stage .stg-detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  min-height: 16px;
  letter-spacing: 0.02em;
}
.stage.done .stg-detail { color: var(--fg-dim); }

.run-side {
  display: flex; flex-direction: column; gap: 14px;
}
.run-side .stat-card {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 20px 22px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.run-side .stat-card h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 14px;
}
.run-side .stat-card .stat-rows {
  display: flex; flex-direction: column; gap: 8px;
}
.run-side .stat-card .stat-rows .row {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
}
.run-side .stat-card .stat-rows .row .k { color: var(--fg-mute); }

.run-actions {
  display: flex; gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.run-actions .btn { flex: 1; justify-content: center; min-width: 140px; }

/* completion screen */
.complete-card {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 36px 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.complete-card::before { display: none; }
.complete-card .pos { position: relative; }
.complete-card .check-big {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cy-soft);
  border: 1px solid var(--cy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--cy);
  box-shadow: 0 0 32px var(--cy-glow);
}
.complete-card h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 40px;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}
.complete-card p {
  font-size: 15px;
  color: var(--fg-dim);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.complete-card .actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* terminal in run view — slightly taller */
.run-terminal { margin-top: 18px; }
.run-terminal .term-body { max-height: 320px; overflow-y: auto; }
