:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #152027;
  --muted: #68757e;
  --subtle: #8a969d;
  --line: #e0e6e8;
  --line-strong: #cfd8dc;
  --accent: #ed6514;
  --accent-dark: #c94f0a;
  --accent-soft: #fff2e9;
  --positive: #63981d;
  --positive-soft: #f5faec;
  --cyan: #287f90;
  --violet: #685ca2;
  --pink: #be5c82;
  --shadow: 0 16px 40px rgba(22, 37, 44, 0.08);
  --shadow-small: 0 6px 16px rgba(22, 37, 44, 0.05);
  --display: 'Space Grotesk', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fbfcfc 0, var(--bg) 420px);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(237, 101, 20, 0.28);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.app-shell { width: min(100%, 1180px); min-height: 100vh; margin: 0 auto; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(224, 230, 232, 0.92);
  background: rgba(251, 252, 252, 0.9);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--ink);
  font: 700 15px var(--display);
  letter-spacing: -0.055em;
  text-decoration: none;
}
.brand img { width: 24px; height: 24px; object-fit: contain; }
.brand small { align-self: flex-start; margin-top: 4px; color: var(--accent); font: 500 8px var(--mono); letter-spacing: 0; }

.top-nav { display: flex; align-items: center; justify-content: center; gap: 3px; }
.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: 500 10px var(--mono);
  text-decoration: none;
  white-space: nowrap;
}
.top-link:hover { color: var(--ink); background: #eef1f2; }
.top-link.active { color: var(--ink); background: #e9edee; }
.top-link b {
  display: inline-grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  margin-left: 3px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font: 500 8px var(--mono);
}
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.network-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font: 10px var(--mono); }
.network-pill i { width: 6px; height: 6px; border-radius: 50%; background: #8dba35; box-shadow: 0 0 0 3px rgba(141, 186, 53, 0.14); }
.icon-button, .wallet-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.icon-button { width: 32px; font-size: 16px; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); }
.wallet-button { display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: var(--ink); font: 500 10px var(--mono); }
.wallet-button #walletLabel { max-width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-button:hover { border-color: rgba(237, 101, 20, 0.55); background: var(--accent-soft); }
.wallet-button.connected { border-color: var(--accent); background: var(--accent); color: #fff; }
.wallet-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wallet-button.connected .wallet-dot { background: #fff; }

main { min-height: calc(100vh - 126px); }
.hero { width: min(100%, 860px); margin: 0 auto; padding: 76px 28px 52px; text-align: center; }
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--accent); font-size: 15px; }
.hero h1, .page-title h1 {
  margin: 20px 0 14px;
  font: 700 clamp(36px, 5.4vw, 58px)/1.04 var(--display);
  letter-spacing: -0.065em;
}
.hero h1 em, .page-title h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 540px; margin: 0 auto 28px; color: var(--muted); font-size: 16px; line-height: 1.55; }

.search-card {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}
.search-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.search-card label { color: var(--ink); font: 500 10px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.search-card-header > span { color: var(--subtle); font: 9px var(--mono); white-space: nowrap; }
.search-row { display: flex; gap: 9px; }
.search-row input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.search-row input::placeholder { color: #9aa5aa; }
.search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237, 101, 20, 0.1); }
.search-row button {
  min-width: 126px;
  height: 48px;
  border: 0;
  border-radius: 9px;
  padding: 0 15px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(237, 101, 20, 0.16);
}
.search-row button:hover { background: var(--accent-dark); }
.search-row button span { margin-left: 5px; font-size: 15px; }
.search-hint { margin: 9px 0 0; color: var(--subtle); font: 9px var(--mono); }
.search-chips { display: flex; gap: 7px; margin: 14px 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.search-chips::-webkit-scrollbar { display: none; }

.search-chips button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
}
.search-chips button:hover, .search-chips button.active { color: var(--accent-dark); border-color: #f4b88e; background: var(--accent-soft); }
.free-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dce8c7;
  border-radius: 9px;
  background: var(--positive-soft);
}
.free-meter > div { display: grid; min-width: 0; flex: 1; gap: 2px; }
.meter-icon { color: var(--positive); font-size: 16px; }
.free-meter strong { color: var(--ink); font-size: 11px; }
.free-meter small { color: #77816f; font: 9px var(--mono); }
.free-meter > b { color: var(--positive); font: 500 9px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.free-meter.used { border-color: #f1c9ae; background: #fff8f3; }
.free-meter.used .meter-icon, .free-meter.used > b { color: var(--accent); }

.signal-panel { width: min(100%, 720px); margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.signal-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.signal-actions { display: flex; align-items: center; gap: 6px; }
.signal-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font: 500 9px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.signal-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 3px rgba(141, 186, 53, 0.12); }
.signal-panel h2 { margin: 7px 0 0; color: var(--ink); font: 600 17px/1.1 var(--display); letter-spacing: -0.045em; }
.signal-copy { margin: 5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.signal-refresh, .signal-random { min-height: 28px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 7px; padding: 0 9px; background: #fff; color: var(--muted); font: 500 9px var(--mono); white-space: nowrap; }
.signal-random { border-color: #f0b48d; background: var(--accent-soft); color: var(--accent-dark); }
.signal-refresh:hover:not(:disabled), .signal-random:hover:not(:disabled) { border-color: #f1b58d; color: var(--accent-dark); background: var(--accent-soft); }
.signal-refresh:disabled, .signal-random:disabled { cursor: wait; opacity: 0.62; }
.signal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.signal-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; background: rgba(255, 255, 255, 0.74); color: var(--ink); text-align: left; transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease; }
.signal-item:hover { border-color: #f0b48d; background: #fff; transform: translateY(-1px); }
.signal-index { color: var(--subtle); font: 500 8px var(--mono); }
.signal-title { display: -webkit-box; overflow: hidden; font-size: 11px; font-weight: 500; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.signal-use { color: var(--accent-dark); font: 500 8px var(--mono); white-space: nowrap; }
.signal-use b { margin-left: 2px; font-size: 12px; }
.signal-note { margin: 9px 0 0; color: var(--subtle); font: 8px var(--mono); }
.signals-empty { grid-column: 1 / -1; margin: 0; padding: 13px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); font-size: 11px; text-align: center; }
.signal-loading { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.signal-loading span { height: 52px; border-radius: 9px; background: linear-gradient(100deg, #edf0f1 25%, #f8f9f9 45%, #edf0f1 65%); background-size: 220% 100%; animation: loading 1.25s linear infinite; }

.result-section { width: min(100%, 860px); margin: 0 auto; padding: 46px 28px 64px; border-top: 1px solid var(--line); }
.section-heading { display: grid; justify-items: center; gap: 7px; margin-bottom: 18px; text-align: center; }
.section-heading h2 { margin: 0; font: 700 24px/1.15 var(--display); letter-spacing: -0.05em; }
.result-network { color: var(--cyan); font: 9px var(--mono); }
.empty-state { display: grid; min-height: 230px; place-items: center; align-content: center; gap: 5px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.75); text-align: center; }
.empty-state > span { color: var(--accent); font-size: 26px; }
.empty-state h3 { margin: 5px 0 0; font: 600 19px var(--display); letter-spacing: -0.045em; }
.empty-state p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.idea-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-small); animation: enter 0.28s ease both; }
.idea-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--accent); content: ''; }
.idea-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--subtle); font: 500 9px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.idea-card-top b { color: var(--cyan); font-weight: 500; }
.idea-visual { position: relative; display: flex; min-height: 148px; align-items: center; gap: 19px; overflow: hidden; margin-bottom: 18px; border: 1px solid #f4d4bd; border-radius: 10px; padding: 20px 24px; background: radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.9), transparent 34%), linear-gradient(125deg, #fff0e3, #fff9f4 65%, #f5e6da); }
.idea-visual::after { position: absolute; top: -48px; right: -24px; width: 180px; height: 180px; border: 1px solid rgba(237, 101, 20, 0.14); border-radius: 50%; box-shadow: 0 0 0 18px rgba(237, 101, 20, 0.035), 0 0 0 38px rgba(237, 101, 20, 0.025); content: ''; }
.idea-art-mark { z-index: 1; display: grid; width: 86px; height: 86px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 24px; background: rgba(255, 255, 255, 0.75); box-shadow: 0 12px 26px rgba(157, 75, 25, 0.1); font-size: 45px; }
.idea-art-copy { z-index: 1; display: grid; min-width: 0; gap: 6px; }
.idea-art-copy small { color: var(--accent-dark); font: 500 8px var(--mono); letter-spacing: 0.1em; }
.idea-art-copy strong { overflow-wrap: anywhere; color: var(--ink); font: 700 clamp(19px, 4vw, 27px)/1 var(--display); letter-spacing: -0.06em; }
.idea-art-copy span { color: var(--cyan); font: 10px var(--mono); }
.idea-art-copy span b { margin-right: 5px; color: var(--subtle); font: 500 8px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.idea-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.idea-emoji { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--accent-soft); font-size: 23px; }
.idea-name { margin: 0; font: 700 26px/0.95 var(--display); letter-spacing: -0.065em; }
.idea-ticker { margin-top: 5px; color: var(--cyan); font: 10px var(--mono); }
.idea-hook { margin: 0 0 17px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.42; }
.idea-story { margin: 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.idea-why { margin: 13px 0 0; border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.idea-story strong, .idea-why strong, .idea-detail strong { display: block; margin-bottom: 5px; color: var(--subtle); font: 500 9px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; }
.idea-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.idea-detail { color: var(--muted); font-size: 12px; line-height: 1.5; }
.idea-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.score label { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 6px; color: var(--subtle); font: 8px var(--mono); }
.score label b { color: var(--ink); font-weight: 500; }
.score-progress {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  appearance: none;
  background: #e5eaeb;
  accent-color: var(--accent);
}
.score-progress::-webkit-progress-bar { background: #e5eaeb; }
.score-progress::-webkit-progress-value { background: var(--accent); }
.score-progress::-moz-progress-bar { background: var(--accent); }
.score:nth-child(2) .score-progress { accent-color: var(--cyan); }
.score:nth-child(2) .score-progress::-webkit-progress-value { background: var(--cyan); }
.score:nth-child(2) .score-progress::-moz-progress-bar { background: var(--cyan); }
.score:nth-child(3) .score-progress { accent-color: var(--pink); }
.score:nth-child(3) .score-progress::-webkit-progress-value { background: var(--pink); }
.score:nth-child(3) .score-progress::-moz-progress-bar { background: var(--pink); }
.risk-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; color: var(--subtle); font: 9px var(--mono); }
.risk-line b { color: var(--pink); font-weight: 500; text-transform: uppercase; }
.idea-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
.idea-action { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font: 500 10px var(--mono); }
.idea-action:hover, .idea-action.saved { border-color: #f1b58d; background: var(--accent-soft); color: var(--accent-dark); }

.locked-area { margin-top: 12px; }
.lock-card { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lock-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #eef1f2; color: var(--ink); }
.lock-copy { min-width: 0; flex: 1; }
.lock-copy strong { display: block; margin-bottom: 3px; font-size: 12px; }
.lock-copy span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.lock-card button { min-height: 34px; border: 0; border-radius: 7px; padding: 0 11px; background: var(--ink); color: #fff; font: 500 9px var(--mono); white-space: nowrap; }

.page-title { max-width: 720px; margin: 0 auto; padding: 64px 28px 27px; text-align: center; }
.page-title h1 { margin-top: 16px; }
.page-title p { max-width: 500px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.55; }
.plans-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-width: 760px; margin: 0 auto; padding: 0 28px; }
.plan-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-small); }
.plan-card.plan-creator { border-color: var(--accent); box-shadow: 0 12px 28px rgba(237, 101, 20, 0.1); }
.plan-top { display: flex; align-items: center; justify-content: space-between; color: var(--subtle); font: 9px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.plan-icon { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 8px; background: #eef1f2; color: var(--ink); font: 500 9px var(--mono); }
.plan-card h2 { margin: 17px 0 7px; font: 700 23px var(--display); letter-spacing: -0.055em; }
.plan-card > p { min-height: 40px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.plan-price { display: block; margin: 18px 0 14px; font: 700 29px var(--display); letter-spacing: -0.055em; }
.plan-price small { color: var(--muted); font: 10px var(--mono); letter-spacing: 0; }
.plan-card ul { display: grid; gap: 8px; margin: 0 0 19px; padding: 0; list-style: none; color: var(--muted); font-size: 11px; line-height: 1.35; }
.plan-card li::before { margin-right: 7px; color: var(--positive); content: '✓'; font-weight: 700; }
.plan-button { width: 100%; min-height: 41px; margin-top: auto; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f9; color: var(--ink); font: 500 10px var(--mono); }
.plan-button:hover { border-color: var(--line-strong); background: #eef1f2; }
.plan-creator .plan-button { border-color: var(--accent); background: var(--accent); color: #fff; }
.plan-button span { float: right; font-size: 14px; }

.ranking-banner { display: flex; align-items: center; gap: 11px; width: min(calc(100% - 56px), 720px); margin: 0 auto 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.ranking-banner > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--ink); color: #fff; font-size: 17px; }
.ranking-banner > div { display: grid; min-width: 0; flex: 1; gap: 3px; }
.ranking-banner strong { font: 500 10px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.ranking-banner small { color: var(--muted); font: 9px var(--mono); }
.ranking-banner > b { color: var(--cyan); font: 500 10px var(--mono); }
.ranking-list { display: grid; gap: 8px; width: min(calc(100% - 56px), 720px); margin: 0 auto; padding-bottom: 42px; }
.ranking-row { display: grid; grid-template-columns: 30px 38px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.rank-number { color: var(--subtle); font: 500 10px var(--mono); }
.ranking-coin-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--accent-soft); font-size: 18px; }
.ranking-green { background: #eff7e0; }.ranking-violet { background: #efedfa; }.ranking-cyan { background: #e7f5f7; }
.ranking-name, .ranking-volume, .ranking-holders { display: grid; min-width: 0; gap: 3px; }
.ranking-name strong { overflow: hidden; font: 700 13px var(--display); letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.ranking-name small, .ranking-volume small, .ranking-holders small { color: var(--muted); font: 8px var(--mono); }
.ranking-volume, .ranking-holders { text-align: right; }
.ranking-volume strong { font: 500 12px var(--mono); }
.ranking-change { color: var(--positive); font: 500 10px var(--mono); text-align: right; }

.saved-view { padding-bottom: 36px; }
.saved-view #savedList { display: grid; gap: 12px; width: min(calc(100% - 56px), 760px); margin: 0 auto; }
.saved-view .idea-detail-grid { display: none; }
.saved-empty { padding: 64px 20px; color: var(--muted); text-align: center; }
.saved-empty > span { color: var(--accent); font-size: 27px; }
.saved-empty h3 { margin: 12px 0 6px; color: var(--ink); font: 600 20px var(--display); letter-spacing: -0.04em; }
.saved-empty p { margin: 0; font-size: 13px; }

.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px 28px; border-top: 1px solid var(--line); color: var(--subtle); font: 9px var(--mono); }
.footer-links { display: flex; align-items: center; gap: 13px; }
.admin-link { color: inherit; font: inherit; text-decoration: none; }
.admin-link:hover { color: var(--accent-dark); }
.social-link { display: inline-flex; width: 28px; height: 28px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; color: inherit; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.social-link svg { display: block; width: 15px; height: 15px; }
.social-link:hover { border-color: var(--line); background: var(--surface); color: var(--ink); }
.social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(21, 32, 39, 0.34); backdrop-filter: blur(4px); }
.modal { position: relative; width: min(100%, 470px); max-height: calc(100vh - 36px); overflow: auto; padding: 24px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(10, 20, 25, 0.24); animation: pop 0.2s ease both; }
.modal-close { position: absolute; top: 12px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.modal-close:hover { background: #f2f4f4; color: var(--ink); }
.modal-kicker { margin-bottom: 11px; color: var(--subtle); font: 500 9px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.modal h2 { margin: 0 0 10px; font: 700 31px/1 var(--display); letter-spacing: -0.07em; }
.modal h2 em { color: var(--accent); font-style: normal; }
.modal > #modalContent > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.detail-premise { margin-top: 17px; border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: var(--surface-soft); }
.detail-premise h3, .detail-section h3 { margin: 0 0 6px; color: var(--ink); font: 600 11px var(--mono); }
.detail-premise p, .detail-section p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-sections { display: grid; gap: 8px; margin-top: 9px; }
.detail-section { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fff; }
.wallet-options { display: grid; gap: 8px; margin-top: 18px; }
.wallet-option { display: flex; align-items: center; width: 100%; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); text-align: left; }
.wallet-option:hover { border-color: #f0b48d; background: var(--accent-soft); }
.wallet-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; overflow: hidden; border-radius: 9px; background: transparent; }
.wallet-icon img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.wallet-copy { display: grid; gap: 3px; }
.wallet-copy strong { font-size: 12px; }
.wallet-copy small { color: var(--muted); font: 9px var(--mono); }
.wallet-state { margin-left: auto; color: var(--accent-dark); font: 9px var(--mono); }
.wallet-footnote { margin-top: 14px; color: var(--subtle); font: 9px var(--mono); }
.username-form { display: grid; gap: 8px; margin-top: 18px; }
.username-form > label { color: var(--ink); font-size: 11px; font-weight: 600; }
.username-field { display: flex; min-height: 44px; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 11px; background: #fff; color: var(--muted); }
.username-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(237, 101, 20, 0.1); }
.username-field > span { color: var(--accent); font: 500 12px var(--mono); }
.username-field input, .username-field input:focus { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #152027; -webkit-text-fill-color: #152027; caret-color: #ed6514; opacity: 1; font-size: 13px; }
.username-field input::placeholder { color: #73818a; -webkit-text-fill-color: #73818a; opacity: 1; }
.username-field input:-webkit-autofill, .username-field input:-webkit-autofill:hover, .username-field input:-webkit-autofill:focus { -webkit-text-fill-color: #152027; caret-color: #ed6514; box-shadow: 0 0 0 1000px #fff inset; }
.username-feedback { margin: 0; color: var(--muted); font: 9px var(--mono); }
.username-feedback.available { color: var(--positive); }
.username-feedback.unavailable { color: #c65023; }
.username-note { margin-top: 12px !important; color: var(--subtle) !important; font: 9px/1.5 var(--mono) !important; }
.connected-address { overflow-wrap: anywhere; color: var(--accent-dark); font: 10px var(--mono); }
.wallet-connected-card { display: flex; align-items: center; gap: 11px; margin: 17px 0; padding: 13px; border: 1px solid #f3c8ac; border-radius: 10px; background: var(--accent-soft); }
.wallet-connected-card > div { display: grid; gap: 3px; }
.wallet-connected-card small { color: var(--muted); font: 9px var(--mono); }
.connected-check { margin-left: auto; color: var(--positive); font-size: 18px; }
.disconnect-button, .checkout-button { width: 100%; min-height: 43px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: 500 10px var(--mono); }
.checkout-button:disabled { cursor: not-allowed; filter: saturate(.45); opacity: .58; }
.disconnect-button { background: #f1f3f3; color: var(--ink); }
.paywall-options { display: grid; gap: 8px; margin-top: 17px; }
.paywall-option { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); text-align: left; }
.paywall-option:hover { border-color: #f0b48d; background: var(--accent-soft); }
.paywall-option span { display: grid; gap: 4px; }
.paywall-option strong { font-size: 12px; }
.paywall-option small { color: var(--muted); font: 9px var(--mono); }
.paywall-option b { color: var(--accent-dark); font: 700 16px var(--display); }
.checkout-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 12px; padding: 13px; border-radius: 9px; background: #f3f5f5; }
.checkout-summary > div { display: grid; gap: 3px; }
.checkout-summary strong { font-size: 14px; }
.checkout-summary small { color: var(--muted); font: 9px var(--mono); }
.checkout-summary b { color: var(--accent-dark); font: 700 17px var(--display); }
.checkout-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.checkout-term { display: grid; gap: 5px; min-height: 58px; padding: 9px 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--muted); text-align: center; }
.checkout-term strong { font-size: 11px; }
.checkout-term small { color: var(--subtle); font: 9px var(--mono); }
.checkout-term.active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.checkout-term.active small { color: var(--accent-dark); }
.checkout-disclaimer { margin: 11px 0 0; color: var(--subtle); text-align: center; font: 9px var(--mono); }
.modal > #modalContent > .payment-launch-status { margin: 10px 0 !important; color: #aebbc1 !important; font-size: 10px !important; text-align: center; }
.payment-open { display: flex; align-items: center; justify-content: space-between; padding: 0 13px; background: linear-gradient(100deg,#ff981c,#f14c00); color: #fff; text-decoration: none; text-align: left; }
.payment-open[hidden] { display: none; }
.payment-open span { font-size: 16px; }
.payment-retry { display: flex; align-items: center; justify-content: space-between; padding: 0 13px; }
.payment-retry[hidden] { display: none; }
.payment-retry span { font-size: 16px; }
.settings-intro { margin-bottom: 15px !important; }
.settings-identity { display: flex; align-items: center; gap: 10px; margin: 15px 0 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.settings-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #ff8c1a, #f45100); color: #fff; font-size: 22px; }
.settings-identity-copy { display: grid; min-width: 0; gap: 3px; }
.settings-identity-copy small, .settings-card-label { color: var(--subtle); font: 500 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.settings-identity-copy strong { overflow-wrap: anywhere; font-size: 13px; }
.settings-connected { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--positive); font: 500 8px var(--mono); white-space: nowrap; }
.settings-connected i { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.settings-card { display: grid; min-width: 0; align-content: start; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.settings-card-value { overflow-wrap: anywhere; color: var(--ink); font-size: 11px; }
.settings-card-detail { overflow-wrap: anywhere; color: var(--muted); font: 8px/1.45 var(--mono); }
.settings-actions { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8px; margin-top: 10px; }
.settings-actions .checkout-button, .settings-actions .disconnect-button { min-height: 40px; padding-inline: 8px; font-size: 9px; }
.settings-actions .disconnect-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.settings-actions .disconnect-button:hover { border-color: #a94e1a; color: var(--accent-dark); }
.settings-security-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px !important; font-size: 10px !important; }
.settings-security-note span { color: var(--positive); }

.toast { position: fixed; z-index: 70; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 12px 30px rgba(22, 37, 44, 0.14); transform: translate(-50%, 110px); transition: transform 0.22s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast span { color: var(--accent); }
.toast p { margin: 0; color: var(--ink); font: 10px var(--mono); }

@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.98) translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes orbit-turn { to { rotate: 360deg; } }

@media (max-width: 820px) {
  .app-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; width: 100%; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .plans-list { grid-template-columns: 1fr; max-width: 520px; }
  .plan-card > p { min-height: auto; }
}

@media (max-width: 560px) {
  .app-header { min-height: 60px; padding: 0 16px; }
  .brand { font-size: 14px; }
  .network-pill { display: none; }
  .icon-button { width: 31px; }
  .wallet-button { min-width: 78px; justify-content: center; padding: 0 9px; }
  .wallet-button #walletLabel { max-width: 72px; }
  .top-nav { gap: 2px; margin: 0 -2px; padding-bottom: 8px; }
  .top-link { min-height: 30px; padding: 0 8px; font-size: 9px; }
  .hero { padding: 42px 17px 38px; }
  .hero h1, .page-title h1 { margin-top: 16px; font-size: 35px; line-height: 1.06; }
  .hero-copy { max-width: 330px; margin-bottom: 22px; font-size: 14px; }
  .search-card { padding: 15px; border-radius: 13px; }
  .search-card-header > span { font-size: 8px; }
  .search-row { gap: 7px; }
  .search-row input { height: 46px; padding: 0 10px; font-size: 13px; }
  .search-row button { min-width: 104px; height: 46px; padding: 0 10px; font-size: 10px; }
  .search-chips { margin: 12px 0; }
  .free-meter { padding: 10px; }
  .free-meter small { max-width: 160px; line-height: 1.35; }
  .signal-panel { margin-top: 14px; padding-top: 14px; }
  .signal-panel-head { display: grid; gap: 9px; }
  .signal-actions { justify-content: flex-start; }
  .signal-refresh, .signal-random { padding: 0 8px; font-size: 8px; }
  .signal-panel h2 { font-size: 16px; }
  .signal-copy { max-width: 270px; font-size: 10px; }
  .signal-list { grid-template-columns: 1fr; }
  .signal-loading { grid-template-columns: 1fr; }
  .signal-item { min-height: 49px; }
  .result-section { padding: 38px 17px 52px; }
  .section-heading h2 { font-size: 22px; }
  .idea-card { padding: 16px; }
  .idea-visual { min-height: 128px; gap: 13px; padding: 15px; }
  .idea-art-mark { width: 68px; height: 68px; border-radius: 19px; font-size: 36px; }
  .idea-name { font-size: 23px; }
  .idea-detail-grid { grid-template-columns: 1fr; gap: 10px; }
  .risk-line { align-items: flex-start; font-size: 8px; line-height: 1.35; }
  .risk-line span { max-width: 62%; }
  .lock-card { align-items: flex-start; }
  .lock-card button { margin-top: 1px; }
  .page-title { padding: 44px 17px 24px; }
  .page-title p { font-size: 14px; }
  .plans-list { padding: 0 17px; }
  .ranking-banner, .ranking-list { width: calc(100% - 34px); }
  .ranking-row { grid-template-columns: 24px 34px minmax(0, 1fr) auto; gap: 8px; padding: 11px; }
  .ranking-volume { grid-column: 3; text-align: left; }
  .ranking-change { grid-column: 4; grid-row: 1 / span 2; }
  .ranking-holders { display: none; }
  .saved-view #savedList { width: calc(100% - 34px); }
  .app-footer { padding: 18px 17px 24px; font-size: 8px; }
  .modal { padding: 22px 17px; }
}

/* Sembriva visual system: dark Solana studio with a high-contrast creation action. */
:root {
  color-scheme: dark;
  --bg: #090f15;
  --surface: #121c25;
  --surface-soft: #17242e;
  --ink: #f3f7f8;
  --muted: #b2c0c6;
  --subtle: #8b9ba3;
  --line: #293942;
  --line-strong: #3b4d56;
  --accent: #ff7415;
  --accent-dark: #ff9b58;
  --accent-soft: #302016;
  --positive: #a7d94c;
  --positive-soft: #1b2918;
  --cyan: #5ad4df;
  --violet: #a795ff;
  --pink: #ff83a9;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --shadow-small: 0 9px 24px rgba(0, 0, 0, 0.24);
}

body {
  background:
    radial-gradient(ellipse at 50% -18%, rgba(18, 152, 169, 0.12), transparent 44%),
    radial-gradient(ellipse at 100% 50%, rgba(255, 107, 0, 0.035), transparent 42%),
    linear-gradient(180deg, #0d151d 0, var(--bg) 650px);
}

.app-header {
  border-bottom-color: rgba(130, 155, 165, 0.16);
  background: rgba(9, 15, 21, 0.88);
}
.brand { color: #f5f8f9; }
.top-link { color: #a8b6bc; }
.top-link:hover { color: #fff; background: #1c2a33; }
.top-link.active { color: #ffad75; background: #2b1d15; }
.network-pill { color: #69d7e0; }
.icon-button, .wallet-button { border-color: #30414a; background: #121d25; color: #ecf2f4; }
.icon-button:hover { border-color: #52656e; background: #1a2932; }
.wallet-button.connected { border-color: var(--accent); background: var(--accent); }
.wallet-button.connected { color: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 56px), 1100px);
  overflow: hidden;
  margin: 22px auto 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 27px;
  padding: 55px 38px 34px;
  background:
    radial-gradient(ellipse at 8% 2%, rgba(255, 107, 0, 0.18), transparent 34%),
    radial-gradient(ellipse at 95% 20%, rgba(10, 183, 199, 0.17), transparent 34%),
    linear-gradient(145deg, #14232d 0%, #101b24 58%, #152932 100%);
  box-shadow: 0 28px 64px rgba(15, 32, 42, 0.16);
  text-align: center;
}
.hero::before, .hero::after { position: absolute; z-index: -1; border: 1px solid rgba(255, 255, 255, 0.055); border-radius: 50%; content: ''; pointer-events: none; }
.hero::before { top: -250px; right: -95px; width: 520px; height: 520px; box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.018), 0 0 0 75px rgba(255, 255, 255, 0.014); }
.hero::after { bottom: 58px; left: -155px; width: 310px; height: 310px; box-shadow: 0 0 0 28px rgba(255, 107, 0, 0.025), 0 0 0 58px rgba(255, 107, 0, 0.018); }
.hero > * { position: relative; z-index: 1; }
.hero-orbit { position: relative; z-index: 1; display: grid; width: 120px; height: 112px; place-items: center; margin: 0 auto 13px; }
.orbit-track { position: absolute; display: block; border: 1px solid rgba(136, 225, 231, 0.33); border-radius: 50%; }
.orbit-track-a { width: 116px; height: 47px; transform: rotate(-30deg); animation: orbit-turn 18s linear infinite; }
.orbit-track-b { width: 72px; height: 104px; border-color: rgba(255, 157, 95, 0.35); transform: rotate(37deg); animation: orbit-turn 22s linear infinite reverse; }
.orbit-core { position: relative; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 18px; background: linear-gradient(145deg, #ff9c42, #f35a00); box-shadow: 0 0 0 8px rgba(255, 107, 0, 0.09), 0 12px 28px rgba(255, 107, 0, 0.25); }
.orbit-core img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.orbit-node { position: absolute; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 9px; background: #1c3a45; color: #b8eff1; box-shadow: 0 5px 15px rgba(0,0,0,.2); font-size: 11px; }
.orbit-node-a { top: 2px; left: 10px; color: #ffd39b; }
.orbit-node-b { right: 4px; bottom: 17px; color: #b9ed7d; }
.orbit-node-c { bottom: 4px; left: 16px; color: #93e3eb; }
.eyebrow { border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 999px; padding: 7px 11px; background: rgba(255, 255, 255, 0.055); color: #d7e4e8; font-size: 9px; }
.eyebrow span { color: #ff8a35; }
.hero h1 { margin: 20px 0 11px; color: #f8fbfc; font-size: clamp(38px, 5vw, 54px); letter-spacing: -0.067em; }
.hero h1 em { color: #ff8536; }
.hero-copy { max-width: 560px; margin-bottom: 25px; color: #b6c5cb; font-size: 14px; }

.search-card { width: min(100%, 770px); border: 1px solid rgba(255, 255, 255, 0.82); border-radius: 17px; padding: 19px; background: #fff; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18); }
.search-card label { color: #293944; }
.search-mode-label { color: #293944; font: 500 10px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.search-card-header > span { border: 1px solid #dcebc1; border-radius: 999px; padding: 6px 9px; background: #f5faeb; color: #608b22; font-size: 8px; }
.search-card-header { margin-bottom: 13px; }
.generate-button { display: flex; width: 100%; min-height: 76px; align-items: center; gap: 13px; border: 0; border-radius: 12px; padding: 12px 15px; background: linear-gradient(110deg, #ff7415 0%, #ff6500 55%, #ed5400 100%); color: #fff; text-align: left; box-shadow: 0 12px 24px rgba(237, 84, 0, 0.2); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.generate-button:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 16px 28px rgba(237, 84, 0, 0.27); }
.generate-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.15); font-size: 20px; }
.generate-copy { display: grid; flex: 1; gap: 4px; }
.generate-copy strong { font: 600 15px var(--display); letter-spacing: -.025em; }
.generate-copy small { color: rgba(255,255,255,.84); font-size: 10px; }
.generate-arrow { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.15); font-size: 18px; }
.custom-topic { margin-top: 13px; border-top: 1px solid #edf0f1; padding-top: 11px; }
.custom-topic summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #63727a; cursor: pointer; font-size: 10px; list-style: none; }
.custom-topic summary::-webkit-details-marker { display: none; }
.custom-topic summary span { color: var(--accent-dark); font-size: 16px; transition: transform .15s ease; }
.custom-topic[open] summary span { transform: rotate(45deg); }
.custom-topic-content { display: grid; gap: 6px; margin-top: 11px; }
.custom-topic-content label { color: #46565f; font: 500 9px var(--mono); }
.custom-topic-content input { width: 100%; min-height: 42px; border: 1px solid #dce3e6; border-radius: 8px; padding: 0 11px; background: #f8fafb; color: var(--ink); font-size: 12px; outline: none; }
.custom-topic-content input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,0,.1); }
.custom-topic-content > small { color: #84929b; font: 8px var(--mono); }
.search-card .free-meter { margin-top: 13px; }
.search-row { gap: 8px; }
.search-row input { border-color: #dce3e6; background: #f8fafb; }
.search-row button { border-radius: 8px; background: linear-gradient(135deg, #ff7b1a, #f45a00); box-shadow: 0 8px 18px rgba(244, 90, 0, 0.2); }
.search-row button:hover { background: linear-gradient(135deg, #ed6508, #d94c00); }
.search-hint { color: #84929b; }
.search-chips button { border-color: #e2e7e9; background: #fff; }
.search-chips button:hover, .search-chips button.active { border-color: #ffc393; background: #fff3e8; }
.free-meter { border-color: #e1edca; background: #f7faef; }
.free-meter small { color: #728261; }

.hero-flow { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; margin: 18px auto 26px; color: #d6e0e4; }
.hero-flow span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, 0.095); border-radius: 7px; padding: 7px 9px; background: rgba(255, 255, 255, 0.045); font: 9px var(--mono); white-space: nowrap; }
.hero-flow b { color: #ff9148; font-size: 8px; }
.hero-flow i { color: #71868e; font: normal 11px var(--mono); }

.signal-panel { width: min(100%, 770px); margin-top: 0; border-top-color: rgba(255, 255, 255, 0.14); }
.signal-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px 2px; color: #d6e1e4; cursor: pointer; list-style: none; }
.signal-summary::-webkit-details-marker { display: none; }
.signal-summary-label { display: inline-flex; align-items: center; gap: 8px; color: #d2dfe3; font: 500 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.signal-summary-label i { width: 6px; height: 6px; border-radius: 50%; background: #a7d94c; box-shadow: 0 0 0 3px rgba(167,217,76,.14); }
.signal-summary-action { display: inline-flex; align-items: center; gap: 8px; color: #99abb2; font: 9px var(--mono); }
.signal-summary-action b { color: #ffad75; font-size: 15px; font-weight: 400; transition: transform .16s ease; }
.signal-panel[open] .signal-summary-action b { transform: rotate(45deg); }
.signal-disclosure-content { padding-top: 12px; }
.signal-kicker { color: #aebfc5; }
.signal-kicker i { background: #a7d94c; box-shadow: 0 0 0 3px rgba(167, 217, 76, 0.14); }
.signal-panel h2 { color: #f4f8f9; }
.signal-copy { color: #aebdc3; }
.signal-refresh, .signal-random { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #d8e2e5; }
.signal-random { border-color: rgba(255, 135, 58, 0.35); background: rgba(255, 107, 0, 0.13); color: #ffb078; }
.signal-refresh:hover:not(:disabled), .signal-random:hover:not(:disabled) { border-color: rgba(255, 153, 91, 0.6); background: rgba(255, 107, 0, 0.17); color: #ffd2b4; }
.signal-item { border-color: rgba(255, 255, 255, 0.105); background: rgba(255, 255, 255, 0.055); color: #f3f7f8; }
.signal-item:hover { transform: none; border-color: rgba(255, 255, 255, 0.105); background: rgba(255, 255, 255, 0.055); }
.signal-title { color: #f3f7f8; }
.signal-index { color: #8fa2a9; }
.signal-use { overflow: hidden; max-width: 88px; color: #91cdd2; font: 8px var(--mono); text-overflow: ellipsis; }
.signal-note { color: #899da5; }
.signals-empty { border-color: rgba(255, 255, 255, 0.18); color: #b7c6cb; }
.signal-loading span { background: linear-gradient(100deg, rgba(255,255,255,.06) 25%, rgba(255,255,255,.12) 45%, rgba(255,255,255,.06) 65%); background-size: 220% 100%; }

.result-section { width: min(100%, 900px); border-top: 0; padding-top: 32px; }
.section-heading { margin-bottom: 20px; }
.section-label { color: var(--accent-dark); }
.section-heading h2 { font-size: 27px; }
.result-network { border: 1px solid #d9e8eb; border-radius: 999px; padding: 5px 9px; background: #f3fafb; color: var(--cyan); }
.empty-state { position: relative; overflow: hidden; min-height: 260px; border: 1px solid #dce5e8; border-radius: 17px; background: radial-gradient(ellipse at 100% 0%, rgba(10, 183, 199, 0.08), transparent 40%), linear-gradient(135deg, #fff, #f8fafb); }
.empty-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #ff8126, #f45b00); box-shadow: 0 10px 20px rgba(244, 90, 0, 0.22); color: #fff !important; font-size: 25px !important; }
.empty-kicker { margin-top: 5px; color: var(--subtle); font: 8px var(--mono); letter-spacing: 0.12em; }
.empty-state h3 { max-width: 390px; font-size: 22px; }
.empty-state p { max-width: 410px; font-size: 12px; }
.empty-highlights { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.empty-highlights span { border: 1px solid #e2e8ea; border-radius: 999px; padding: 6px 9px; background: #fff; color: #63727a; font: 8px var(--mono); }

.idea-card { border-color: #dfe6e8; border-radius: 17px; padding: 22px; box-shadow: 0 15px 40px rgba(12, 29, 40, 0.08); }
.idea-card::before { height: 4px; background: linear-gradient(90deg, #ff6b00 0%, #ffae36 45%, #16b7c6 100%); }
.idea-card-top { color: #74828a; }
.idea-card-top span { border: 1px solid #e4e9eb; border-radius: 999px; padding: 5px 8px; background: #fafbfb; }
.idea-visual { border-color: rgba(255, 255, 255, 0.8); background: radial-gradient(circle at 84% 10%, rgba(255,255,255,.72), transparent 30%), linear-gradient(120deg, #fff0df 0%, #ffe4d1 48%, #e4f8f7 100%); }
.idea-art-mark { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.83); }
.idea-story, .idea-why, .idea-detail { color: #53636d; }
.idea-why { border-left-color: #ff8126; }
.idea-action { border-radius: 8px; }

.plan-card { border-radius: 16px; }
.plan-card.plan-creator { border-color: #ff9a59; box-shadow: 0 15px 35px rgba(255, 107, 0, 0.12); }
.plan-card.plan-studio { border-color: #172b35; background: linear-gradient(145deg, #182a35, #10212b); color: #f4f8f9; }
.plan-studio .plan-top, .plan-studio > p, .plan-studio ul { color: #b8c7cd; }
.plan-studio .plan-icon { background: rgba(255,255,255,.12); color: #bdeaf0; }
.plan-studio .plan-price { color: #fff; }
.plan-studio .plan-price small { color: #b8c7cd; }
.plan-studio li::before { color: #a7d94c; }
.plan-studio .plan-button { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; }
.plan-studio .plan-button:hover { background: rgba(255,255,255,.16); }

.ranking-banner, .ranking-row { border-radius: 13px; box-shadow: 0 6px 18px rgba(12, 29, 40, 0.035); }
.ranking-banner > span { background: linear-gradient(135deg, #152b35, #087f90); }
.ranking-row { transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.ranking-row:hover { transform: translateY(-2px); border-color: #cbdadd; box-shadow: var(--shadow-small); }
.app-footer { color: #7b8991; }

@media (max-width: 820px) {
  .hero { width: calc(100% - 36px); padding: 46px 25px 28px; }
}

@media (max-width: 560px) {
  .hero { width: calc(100% - 20px); margin: 12px auto 22px; border-radius: 20px; padding: 36px 13px 25px; }
  .hero h1 { margin: 17px 0 10px; font-size: 35px; }
  .hero-copy { max-width: 320px; margin-bottom: 19px; color: #bdcbd0; font-size: 12px; }
  .search-card { padding: 13px; }
  .search-card-header { align-items: flex-start; }
  .search-card-header > span { max-width: 128px; white-space: normal; text-align: center; }
  .hero-orbit { width: 104px; height: 98px; margin-bottom: 11px; transform: scale(.88); }
  .generate-button { min-height: 67px; gap: 10px; padding: 10px; }
  .generate-icon { width: 39px; height: 39px; }
  .generate-copy strong { font-size: 13px; }
  .generate-copy small { font-size: 9px; }
  .generate-arrow { width: 30px; height: 30px; }
  .search-row button { min-width: 108px; }
  .hero-flow { display: grid; grid-template-columns: 1fr; justify-items: stretch; width: min(100%, 290px); gap: 5px; margin: 14px auto 20px; }
  .hero-flow span { justify-content: flex-start; padding: 6px 8px; }
  .hero-flow i { display: none; }
  .signal-panel { padding-top: 14px; }
  .signal-panel-head { display: grid; gap: 9px; }
  .signal-list { grid-template-columns: 1fr; }
  .signal-item { background: rgba(255, 255, 255, 0.065); }
  .result-section { padding-top: 24px; }
  .section-heading h2 { font-size: 24px; }
  .empty-state { min-height: 250px; padding: 24px 16px; }
  .empty-state h3 { font-size: 19px; }
  .idea-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dark surfaces stay dark throughout every view; orange is reserved for the main action. */
.search-card { border-color: #2f414b; background: linear-gradient(145deg, #17242e, #121d26); box-shadow: 0 18px 46px rgba(0,0,0,.3); }
.search-card label, .search-mode-label { color: #e3ebee; }
.search-card-header > span { border-color: #3a5125; background: #202d19; color: #b9e37b; }
.generate-button { min-height: 88px; border: 1px solid rgba(255, 193, 135, .52); padding: 15px 18px; background: linear-gradient(105deg, #ff8a00 0%, #ff6900 48%, #f34d00 100%); box-shadow: 0 0 0 4px rgba(255, 105, 0, .11), 0 15px 32px rgba(255, 87, 0, .3); }
.generate-button:hover { box-shadow: 0 0 0 5px rgba(255, 105, 0, .15), 0 20px 38px rgba(255, 87, 0, .36); }
.generate-icon { width: 51px; height: 51px; border-radius: 15px; background: rgba(255,255,255,.19); font-size: 23px; }
.generate-copy strong { font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.generate-copy small { font-size: 11px; }
.generate-arrow { width: 40px; height: 40px; border-radius: 11px; font-size: 21px; }
.custom-topic { border-top-color: #2d3b44; }
.custom-topic summary { color: #bdc9ce; }
.custom-topic summary span { color: #ff9b58; }
.custom-topic-content label { color: #d8e2e5; }
.custom-topic-content input { border-color: #334650; background: #0f1820; color: #f1f5f6; }
.custom-topic-content input::placeholder { color: #788a93; }
.custom-topic-content > small { color: #91a0a7; }
.free-meter { border-color: #354b28; background: #1a2619; }
.free-meter strong { color: #edf5e5; }
.free-meter small { color: #b5c49f; }
.free-meter.used { border-color: #573b29; background: #2b2019; }
.search-card .free-meter { margin-top: 13px; }

.result-section { color: #eaf0f2; }
.result-network { border-color: #29464b; background: #13272c; color: #6cdae2; }
.empty-state { border-color: #2b3b44; background: radial-gradient(ellipse at 100% 0%, rgba(10,183,199,.12), transparent 42%), linear-gradient(135deg, #141f28, #101920); }
.empty-state h3 { color: #f3f7f8; }
.empty-state p { color: #abb9bf; }
.empty-highlights span { border-color: #35464f; background: #18252e; color: #c0ccd1; }
.idea-card { border-color: #2c3c45; background: linear-gradient(145deg, #16222b, #111a22); box-shadow: 0 18px 46px rgba(0,0,0,.26); }
.idea-card-top { color: #a7b4ba; }
.idea-card-top span { border-color: #33434c; background: #1a2730; }
.idea-visual { border-color: #3e4a4b; background: radial-gradient(circle at 88% 9%, rgba(255,255,255,.14), transparent 31%), linear-gradient(120deg, #38251b 0%, #292035 54%, #123137 100%); }
.idea-art-mark { border-color: rgba(255,255,255,.17); background: rgba(17,29,36,.72); }
.idea-story, .idea-why, .idea-detail { color: #bcc8cd; }
.idea-story { border-top-color: #2a3a43; }
.idea-why { border-left-color: #ff8a35; }
.idea-scores { border-top-color: #2a3a43; }
.score label { color: #9eacb2; }
.score label b { color: #e2eaed; }
.score-progress { background: #31414a; }
.score-progress::-webkit-progress-bar { background: #31414a; }
.idea-action { border-color: #34454e; background: #1a2730; color: #c4d0d4; }
.idea-action:hover, .idea-action.saved { border-color: #a94e1a; background: #342116; color: #ffb27d; }
.risk-line { color: #93a2a9; }
.lock-card { border-color: #2f414a; background: #15212a; }
.lock-icon { background: #263740; color: #e7eff1; }
.lock-card button { background: linear-gradient(105deg, #ff800d, #ed5600); color: #fff; }

.page-title, .page-title h1 { color: #f0f5f6; }
.page-title p { color: #aebbc1; }
.plan-card, .ranking-banner, .ranking-row { border-color: #293a43; background: #121d26; color: #edf3f4; }
.plan-card.plan-creator { border-color: #a84f1c; background: linear-gradient(145deg, #1d2529, #171f24); }
.plan-card.plan-studio { border-color: #26444b; background: linear-gradient(145deg, #142b33, #101d26); }
.plan-card > p, .plan-card ul { color: #b5c1c6; }
.plan-card .plan-icon { border: 1px solid #35464f; background: #202d35; color: #edf3f4; }
.plan-card .plan-price { color: #fff; }
.plan-card .plan-price small { color: #aebbc1; }
.plan-button { border-color: #36464f; background: #202c34; color: #f1f5f6; }
.plan-button:hover { border-color: #60737c; background: #293841; }
.plan-creator .plan-button { border-color: #ff7415; background: linear-gradient(105deg, #ff800d, #ed5600); color: #fff; }
.ranking-banner > span { background: linear-gradient(135deg, #087e8c, #143944); }
.ranking-banner small, .ranking-name small, .ranking-volume small, .ranking-holders small { color: #94a4ab; }
.ranking-row:hover { border-color: #47616b; background: #17252e; }
.ranking-green { background: #1b2d21; }
.ranking-violet { background: #29263a; }
.ranking-cyan { background: #173139; }
.saved-empty { color: #aab8be; }
.saved-empty h3 { color: #f1f5f6; }
.app-footer { border-top-color: #25343d; color: #87969e; }

.modal { border-color: #35464f; background: #111b23; color: #edf3f4; box-shadow: 0 28px 80px rgba(0,0,0,.5); }
.modal-close { color: #b1bec4; }
.modal-close:hover { background: #25343d; color: #fff; }
.modal-kicker { color: #a0afb6; }
.modal > #modalContent > p { color: #bac6cb; }
.detail-premise, .detail-section { border-color: #30414a; background: #17232c; }
.detail-premise h3, .detail-section h3 { color: #f1f5f6; }
.detail-premise p, .detail-section p { color: #b6c3c9; }
.wallet-option { border-color: #30414a; background: #17232c; }
.wallet-option:hover { border-color: #a94e1a; background: #2a201a; }
.wallet-icon { background: transparent; }
.wallet-copy small, .wallet-footnote { color: #9baab1; }
.wallet-connected-card { border-color: #704322; background: #2c2119; }
.wallet-connected-card small { color: #c0a992; }
.disconnect-button { background: #24323a; color: #e3ebee; }
.checkout-button { background: linear-gradient(105deg, #ff800d, #ed5600); color: #fff; }
.checkout-button:disabled { opacity: .48; }
.paywall-option { border-color: #30414a; background: #17232c; }
.paywall-option:hover { border-color: #a94e1a; background: #2a201a; }
.paywall-option small { color: #9eafb6; }
.checkout-summary { background: #1d2a33; }
.checkout-summary small { color: #aab8be; }
.checkout-term { border-color: #30414a; background: #17232c; color: #c0cbd0; }
.checkout-term small { color: #9eafb6; }
.checkout-term.active { border-color: #ff7415; background: #34261c; color: #fff; }
.checkout-term.active small { color: #ffb27d; }
.checkout-disclaimer { color: #94a3aa; }
.settings-identity, .settings-card { border-color: #30414a; background: #17232c; }
.settings-identity-copy small, .settings-card-label { color: #aab8be; }
.settings-card-value { color: #edf3f4; }
.settings-card-detail { color: #9eafb6; }
.settings-actions .disconnect-button { border-color: #34454e; color: #c4d0d4; }
.settings-actions .disconnect-button:hover { border-color: #a94e1a; color: #ffb27d; }
.settings-security-note { color: #9eafb6 !important; }
.toast { border-color: #34454e; background: rgba(18, 28, 37, 0.97); box-shadow: 0 12px 30px rgba(0,0,0,.38); }
.toast p { color: #edf3f4; }

@media (max-width: 560px) {
  .generate-button { min-height: 76px; padding: 11px; }
  .generate-copy strong { font-size: 17px; }
  .generate-copy small { font-size: 9px; }
}

/* Floating, minimal forge: these final rules override the legacy theme styles above. */
.hero {
  width: min(100% - 32px, 980px);
  overflow: visible;
  margin: 44px auto 26px;
  border: 0;
  border-radius: 0;
  padding: 42px 16px 20px;
  background: transparent;
  box-shadow: none;
}
.hero::before, .hero::after { display: none; }
.eyebrow { border: 0; border-radius: 0; padding: 0; background: transparent; color: #9aabb2; font-size: 9px; }
.hero h1 { margin: 17px 0 10px; font-size: clamp(34px, 4.4vw, 48px); }
.hero-copy { max-width: 500px; margin-bottom: 24px; }
.search-card {
  width: min(100%, 660px);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.search-card-header { display: none; }
.search-mode-label { color: #96a8af; font-size: 9px; }
.search-card-header > span { border: 0; border-radius: 0; padding: 0; background: transparent; color: #a7d94c; font-size: 9px; }
.generate-button { min-height: 78px; border: 0; border-radius: 9px; padding: 13px 16px; box-shadow: 0 9px 24px rgba(255, 87, 0, .22); }
.generate-button:hover { box-shadow: 0 13px 28px rgba(255, 87, 0, .3); }
.generate-icon { border-radius: 10px; }
.generate-arrow { border-radius: 8px; }
.custom-topic { margin-top: 12px; border-top: 0; padding-top: 0; }
.custom-topic summary { width: fit-content; margin: 0 auto; color: #9aabb2; }
.custom-topic summary span { margin-left: 5px; }
.free-meter { min-height: 35px; gap: 8px; margin-top: 11px; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.free-meter > div { display: flex; align-items: baseline; flex: 1; flex-wrap: wrap; gap: 5px 8px; }
.meter-icon { font-size: 12px; }
.free-meter strong { color: #c8d5d9; font-size: 10px; font-weight: 500; }
.free-meter small { color: #82949b; font-size: 9px; }
.free-meter > b { color: #a7d94c; font-size: 8px; }
.free-meter.used { border: 0; background: transparent; }
.free-meter.used strong, .free-meter.used small { color: #c7b09e; }
.signal-panel { width: min(100% - 32px, 660px); margin-top: 8px; padding-top: 10px; border-top: 0; }
.signal-summary { padding: 8px 0; }
@media (max-width: 820px) {
  .hero { width: min(100% - 28px, 720px); margin-top: 34px; padding: 34px 12px 16px; }
}
@media (max-width: 560px) {
  .hero { width: calc(100% - 32px); margin: 25px auto 18px; padding: 24px 0 12px; }
  .hero h1 { margin: 15px 0 9px; font-size: clamp(32px, 9vw, 39px); line-height: 1.08; }
  .hero-copy { max-width: 340px; margin-bottom: 20px; font-size: 13px; }
  .search-card { padding: 0; }
  .generate-button { min-height: 72px; gap: 10px; border-radius: 8px; padding: 10px 12px; }
  .generate-icon { width: 40px; height: 40px; }
  .generate-copy strong { font-size: 17px; }
  .generate-copy small { font-size: 9px; }
  .generate-arrow { width: 31px; height: 31px; }
  .free-meter { align-items: flex-start; }
  .free-meter > b { padding-top: 3px; }
  .signal-panel { width: calc(100% - 32px); padding-top: 8px; }
}

/* Compact studio layout: creation and preview share the first screen. */
main { min-height: calc(100svh - 132px); }
.forge-view {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(26px, 4.5vw, 58px);
  width: min(100%, 1180px);
  min-height: calc(100svh - 132px);
  margin: 0 auto;
  padding: 22px 38px 28px;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 116, 21, .075), transparent 28%),
    radial-gradient(ellipse at 88% 76%, rgba(36, 183, 198, .07), transparent 34%);
}
.forge-view .hero {
  width: 100%;
  margin: 0;
  padding: 14px 0;
  text-align: left;
}
.forge-view .eyebrow { color: #9bb1b8; letter-spacing: .12em; }
.forge-view .eyebrow span { color: #ff8b3d; }
.forge-view .hero h1 { max-width: 510px; margin: 16px 0 10px; font-size: clamp(38px, 4.1vw, 51px); line-height: 1.04; }
.forge-view .hero-copy { max-width: 400px; margin: 0 0 20px; color: #aabac0; font-size: 13px; line-height: 1.5; }
.forge-view .search-card { width: 100%; margin: 0; }
.forge-view .generate-button { min-height: 72px; }
.forge-view .custom-topic summary { margin-left: 0; }
.forge-view .free-meter { margin-top: 8px; }
.forge-view .signal-panel { width: 100%; margin-top: 14px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.forge-view .signal-summary { padding: 6px 0; }
.forge-view .result-section {
  width: 100%;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(126, 166, 177, .2);
  padding: 12px 0 12px clamp(22px, 3vw, 38px);
}
.forge-view .section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  align-items: end;
  gap: 5px 12px;
  margin-bottom: 13px;
  text-align: left;
}
.forge-view .section-label { grid-column: 1 / -1; }
.forge-view .section-heading h2 { font-size: clamp(21px, 2.3vw, 27px); }
.forge-view .result-network { grid-column: 2; grid-row: 2; justify-self: end; }
.forge-view .empty-state {
  min-height: 218px;
  gap: 6px;
  border-color: rgba(120, 176, 188, .2);
  border-radius: 12px;
  padding: 22px;
  background:
    radial-gradient(ellipse at 85% 12%, rgba(48, 176, 190, .09), transparent 38%),
    linear-gradient(145deg, rgba(20, 33, 42, .78), rgba(13, 23, 31, .72));
}
.forge-view .empty-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 21px !important; }
.forge-view .empty-kicker { color: #8fa6ae; }
.forge-view .empty-state h3 { max-width: 360px; margin-top: 3px; font-size: 19px; }
.forge-view .empty-state p { max-width: 350px; font-size: 11px; }
.forge-view .empty-highlights { margin-top: 8px; }
.forge-view .empty-highlights span { padding: 5px 7px; font-size: 8px; }

@media (max-width: 820px) {
  .forge-view {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    min-height: auto;
    padding: 24px 28px 30px;
  }
  .forge-view .hero { padding: 8px 0 0; text-align: center; }
  .forge-view .hero h1 { margin: 13px auto 8px; }
  .forge-view .hero-copy { margin: 0 auto 16px; }
  .forge-view .custom-topic summary { margin-inline: auto; }
  .forge-view .signal-panel { margin-top: 10px; }
  .forge-view .result-section {
    border-left: 0;
    border-top: 1px solid rgba(126, 166, 177, .16);
    padding: 17px 0 0;
  }
  .forge-view .section-heading { margin-bottom: 10px; }
  .forge-view .empty-state { min-height: 176px; }
}
@media (min-width: 561px) and (max-width: 820px) {
  main { min-height: calc(100svh - 160px); }
}
@media (max-width: 560px) {
  main { min-height: calc(100svh - 134px); }
  .forge-view { gap: 8px; padding: 15px 18px 14px; }
  .forge-view .hero { padding-top: 4px; }
  .forge-view .eyebrow { font-size: 8px; }
  .forge-view .hero h1 { margin: 10px auto 7px; font-size: clamp(31px, 8.8vw, 38px); line-height: 1.03; }
  .forge-view .hero-copy { max-width: 340px; margin-bottom: 13px; font-size: 12px; }
  .forge-view .generate-button { min-height: 64px; }
  .forge-view .generate-copy strong { font-size: 16px; }
  .forge-view .custom-topic { margin-top: 8px; }
  .forge-view .free-meter { margin-top: 6px; }
  .forge-view .signal-panel { margin-top: 7px; }
  .forge-view .signal-summary { padding: 5px 0; }
  .forge-view .signal-summary-label, .forge-view .signal-summary-action { font-size: 8px; }
  .forge-view .result-section { padding-top: 13px; }
  .forge-view .section-heading h2 { font-size: 20px; }
  .forge-view .result-network { padding: 4px 7px; font-size: 8px; }
  .forge-view .empty-state { min-height: 152px; gap: 4px; padding: 15px 12px; }
  .forge-view .empty-mark { width: 34px; height: 34px; font-size: 18px !important; }
  .forge-view .empty-state h3 { max-width: 300px; font-size: 16px; }
  .forge-view .empty-state p { max-width: 300px; font-size: 10px; }
  .forge-view .empty-highlights { gap: 5px; margin-top: 5px; }
  .forge-view .empty-highlights span { padding: 4px 6px; font-size: 7px; }
}

.plan-duration { margin: 15px 0 16px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(8,15,21,.28); }
.duration-label { display: block; margin-bottom: 7px; color: var(--subtle); font: 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.duration-promo { display: block; margin: -2px 0 8px; color: #a6df45; font: 8px var(--mono); }
.term-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.term-option { display: flex; min-width: 0; min-height: 37px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #344650; border-radius: 7px; padding: 4px 3px; background: #17232c; color: #bac6cb; font: 9px var(--mono); white-space: nowrap; transition: border-color .16s, background .16s, color .16s; }
.term-option:hover { border-color: #a94e1a; color: #f1f5f6; }
.term-option[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,112,21,.13); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,112,21,.12); }
.term-option small { color: #a6df45; font: 7px var(--mono); }
.plan-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.plan-total span { color: var(--muted); font: 9px var(--mono); }
.plan-total-value { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.plan-total-value strong { color: var(--accent-dark); font: 600 15px var(--display); }
.plan-total-value del, .checkout-total del { color: var(--subtle); font: 9px var(--mono); }
.discount-badge { border-radius: 4px; padding: 3px 5px; background: rgba(164, 221, 70, .13); color: #a6df45; font: 700 8px var(--mono); }
.checkout-total { display: grid; justify-items: end; gap: 3px; }
.checkout-total b { color: var(--accent-dark); font: 700 17px var(--display); white-space: nowrap; }
.checkout-total del[hidden] { display: none; }
.plan-button:disabled { cursor: not-allowed; opacity: .5; }
.checkout-duration { margin: 18px 0 12px; }
.checkout-duration .term-option { min-height: 40px; }
@media (max-width: 560px) {
  .plan-duration { padding: 10px; }
}

.about-view { width: min(100%, 1080px); margin: 0 auto; padding: 52px 28px 64px; }
.about-hero { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.about-hero h1 { margin: 15px 0 12px; color: var(--ink); font: 700 clamp(38px, 5vw, 58px)/1.02 var(--display); letter-spacing: -.065em; }
.about-hero h1 em { color: var(--accent); font-style: normal; }
.about-hero > p { max-width: 630px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.65; }
.about-section { max-width: 850px; margin: 0 auto 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.about-section-heading { margin-bottom: 11px; }
.about-section-heading h2, .about-safety h2 { margin: 6px 0 0; color: var(--ink); font: 600 clamp(20px, 2.7vw, 27px)/1.2 var(--display); letter-spacing: -.045em; }
.about-section > p:not(.about-fineprint) { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.about-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 850px; margin: 0 auto 32px; }
.about-card { min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, var(--surface), rgba(18,28,37,.72)); }
.about-card > span { color: var(--accent-dark); font: 8px var(--mono); letter-spacing: .1em; }
.about-card h3 { margin: 18px 0 7px; color: var(--ink); font: 600 15px var(--display); letter-spacing: -.03em; }
.about-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.about-access-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.about-access-grid p { display: grid; align-content: start; gap: 6px; min-height: 70px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.about-access-grid strong { color: var(--ink); font: 500 10px var(--mono); }
.about-access-grid span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.about-section .about-fineprint { margin: 10px 0 0; color: var(--subtle); font: 9px/1.6 var(--mono); }
.about-safety { display: flex; align-items: flex-start; gap: 14px; max-width: 850px; margin: 0 auto; padding: 18px; border: 1px solid rgba(90,212,223,.22); border-radius: 11px; background: linear-gradient(110deg, rgba(18,55,62,.56), rgba(18,28,37,.82)); }
.about-safety-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(90,212,223,.25); border-radius: 10px; color: var(--cyan); font-size: 21px; }
.about-safety h2 { margin-top: 5px; font-size: 19px; }
.about-safety p { max-width: 690px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.about-disclaimer { max-width: 850px; margin: 17px auto 0; color: var(--subtle); font: 9px/1.6 var(--mono); }
.about-actions { display: flex; justify-content: center; gap: 9px; margin: 23px auto 0; }
.about-primary, .about-secondary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--line); border-radius: 7px; padding: 0 14px; color: var(--ink); font: 10px var(--mono); text-decoration: none; }
.about-primary { border-color: var(--accent); background: linear-gradient(105deg, #ff800d, #ed5600); color: #fff; }
.about-primary span { font-size: 14px; }
.about-secondary { background: var(--surface); color: var(--muted); }
.about-primary:hover, .about-secondary:hover { filter: brightness(1.1); }
@media (max-width: 700px) {
  .about-view { padding: 36px 20px 42px; }
  .about-hero { margin-bottom: 33px; }
  .about-hero > p { font-size: 13px; }
  .about-steps { grid-template-columns: 1fr; }
  .about-card { min-height: auto; }
  .about-card h3 { margin-top: 12px; }
  .about-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .about-view { padding-inline: 16px; }
  .about-access-grid { grid-template-columns: 1fr; }
  .about-safety { padding: 14px; }
}

.app-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1.8fr) repeat(4, minmax(95px, 1fr));
  align-items: start;
  gap: clamp(22px, 4vw, 58px);
  padding: 54px clamp(28px, 6vw, 96px) 44px;
  border-top: 1px solid #25343d;
  background: linear-gradient(180deg, rgba(14,22,29,.96), #0a1016);
  color: #87969e;
  font: 12px var(--body);
}
.footer-brand-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #f3f7f8; font: 700 25px var(--display); letter-spacing: -.06em; text-decoration: none; }
.footer-brand img { width: 43px; height: 43px; object-fit: contain; }
.back-to-top { margin-top: 31px; color: #edf3f4; font-size: 12px; text-decoration: none; }
.back-to-top span { color: var(--accent-dark); }
.footer-copyright { margin-top: 25px; color: #87969e; font: 11px var(--body); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column h2 { margin: 2px 0 5px; color: #f1f5f6; font: 600 14px var(--display); }
.footer-column > a:not(.social-link) { color: #aab8be; font: 12px var(--body); text-decoration: none; transition: color .16s ease; }
.footer-column > a:not(.social-link):hover, .back-to-top:hover { color: var(--accent-dark); }
.footer-socials .social-link { width: 38px; height: 38px; justify-content: center; border: 1px solid #34444d; border-radius: 50%; background: rgba(17,27,36,.72); color: #e7edef; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.footer-socials .social-link svg { width: 19px; height: 19px; }
.footer-socials .social-link:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(255,116,21,.12); color: var(--ink); box-shadow: 0 0 18px rgba(255,116,21,.16); }
.footer-socials .social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .app-footer { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
  .footer-brand-column { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .app-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding: 38px 20px 30px; }
  .footer-brand-column { grid-column: 1 / -1; }
  .footer-brand { font-size: 22px; }
  .footer-brand img { width: 38px; height: 38px; }
  .back-to-top { margin-top: 22px; }
  .footer-copyright { margin-top: 18px; }
  .footer-column { gap: 9px; }
  .footer-column h2 { font-size: 13px; }
  .footer-column > a:not(.social-link) { font-size: 11px; }
}

.idea-action.save-action,
.idea-action.save-action:hover,
.idea-action.save-action.saved {
  border-color: #83c83b;
  background: #83c83b;
  color: #14200e;
  font-weight: 700;
}
.idea-action.save-action:hover { border-color: #a2e45d; background: #a2e45d; }

/* Use the available desktop canvas instead of trapping the app in a narrow centered shell. */
.app-shell { width: 100%; max-width: none; }
.app-header { padding-inline: clamp(20px, 4vw, 72px); }
.app-footer { padding-inline: clamp(20px, 4vw, 72px); }
.forge-view {
  width: 100%;
  max-width: none;
  padding-inline: clamp(28px, 6vw, 116px);
  gap: clamp(32px, 5vw, 92px);
}
.forge-view .hero h1 { max-width: 680px; font-size: clamp(44px, 4.2vw, 72px); }
.forge-view .hero-copy { max-width: 540px; font-size: 15px; }
.forge-view .generate-button { min-height: 84px; }
.forge-view .generate-copy strong { font-size: 22px; }
.forge-view .generate-copy small { font-size: 12px; }
.forge-view .result-section { padding-left: clamp(28px, 3.6vw, 66px); }
.forge-view .section-heading h2 { font-size: clamp(24px, 2.5vw, 34px); }
.forge-view .empty-state { min-height: 300px; padding: clamp(24px, 3vw, 46px); }
.forge-view .empty-state h3 { max-width: 520px; font-size: clamp(21px, 2vw, 28px); }
.forge-view .empty-state p { max-width: 500px; font-size: 13px; }

@media (max-width: 820px) {
  .app-header { padding-inline: 18px; }
  .app-footer { padding-inline: 18px; }
  .forge-view { padding: 24px 28px 30px; gap: 12px; }
  .forge-view .result-section { padding: 17px 0 0; }
  .forge-view .empty-state { min-height: 176px; padding: 22px; }
}
@media (max-width: 560px) {
  .app-header { padding-inline: 16px; }
  .app-footer { padding-inline: 17px; }
  .forge-view { padding: 15px 18px 14px; gap: 8px; }
  .forge-view .hero h1 { font-size: clamp(31px, 8.8vw, 38px); }
  .forge-view .hero-copy { font-size: 12px; }
  .forge-view .generate-button { min-height: 64px; }
  .forge-view .generate-copy strong { font-size: 16px; }
  .forge-view .generate-copy small { font-size: 9px; }
  .forge-view .result-section { padding-top: 13px; }
  .forge-view .section-heading h2 { font-size: 20px; }
  .forge-view .empty-state { min-height: 152px; padding: 15px 12px; }
  .forge-view .empty-state h3 { font-size: 16px; }
  .forge-view .empty-state p { font-size: 10px; }
}

/* Center the creation headline like the plans page, then balance action and preview below. */
.forge-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: stretch;
  min-height: calc(100svh - 132px);
  padding: clamp(20px, 3vh, 36px) clamp(28px, 6vw, 116px);
}
.forge-view .hero {
  display: block;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.forge-view .hero-intro { max-width: 1050px; margin: 0 auto clamp(16px, 2vh, 22px); text-align: center; }
.forge-view .hero .eyebrow { justify-content: center; }
.forge-view .hero h1 { max-width: none; margin: 0 auto 9px; font-size: clamp(42px, 4.2vw, 70px); line-height: 1.03; }
.forge-view .hero-copy { max-width: 650px; margin: 0 auto; font-size: 15px; }
.forge-view .forge-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(14px, 2vh, 20px);
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}
.forge-view .forge-controls { display: grid; align-content: start; gap: 10px; width: min(100%, 620px); min-width: 0; }
.forge-view .search-card { width: 100%; margin: 0; }
.forge-view .generate-button { min-height: 84px; }
.forge-view .result-section { width: 100%; max-width: 760px; margin: 0; border: 0; padding: 0; }
.forge-view .section-heading {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin-bottom: 9px;
  text-align: center;
}
.forge-view .section-label { grid-column: auto; }
.forge-view .section-heading h2 { grid-column: 1; grid-row: 2; font-size: clamp(24px, 2.2vw, 32px); }
.forge-view .result-network { grid-column: 1; grid-row: 3; }
.forge-view .empty-state { min-height: 190px; padding: 20px; }

@media (max-width: 820px) {
  .forge-view { min-height: auto; padding: 24px 28px 30px; }
  .forge-view .hero-intro { margin-bottom: 16px; }
  .forge-view .forge-workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; width: min(100%, 680px); }
  .forge-view .forge-controls { gap: 10px; }
  .forge-view .result-section { border: 0; padding: 0; }
  .forge-view .empty-state { min-height: 165px; }
}
@media (max-width: 560px) {
  .forge-view { padding: 15px 18px 14px; }
  .app-footer { padding-bottom: 16px; }
  .forge-view .hero-intro { margin-bottom: 15px; }
  .forge-view .hero h1 { margin: 0 auto 7px; font-size: clamp(31px, 8.8vw, 38px); }
  .forge-view .hero-copy { font-size: 12px; }
  .forge-view .forge-workspace { gap: 12px; }
  .forge-view .generate-button { min-height: 64px; }
  .forge-view .generate-copy strong { font-size: 16px; }
  .forge-view .generate-copy small { font-size: 9px; }
  .forge-view .custom-topic { margin-top: 8px; }
  .forge-view .free-meter { margin-top: 6px; }
  .forge-view .signal-panel { margin-top: 7px; }
  .forge-view .signal-summary { padding: 5px 0; }
  .forge-view .section-heading { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .forge-view .section-heading h2 { grid-column: 1; grid-row: 2; font-size: 20px; }
  .forge-view .result-network { grid-column: 1; grid-row: 3; justify-self: center; padding: 4px 7px; font-size: 8px; }
  .forge-view .empty-state { min-height: 152px; gap: 4px; padding: 15px 12px; }
  .forge-view .empty-mark { width: 34px; height: 34px; font-size: 18px !important; }
  .forge-view .empty-state h3 { max-width: 300px; font-size: 16px; }
  .forge-view .empty-state p { max-width: 300px; font-size: 10px; }
  .forge-view .empty-highlights { gap: 5px; margin-top: 5px; }
  .forge-view .empty-highlights span { padding: 4px 6px; font-size: 7px; }
}

