/* =====================================================================
   HOODETF — fund console
   Dark companion surface to the paper fact sheet: green-night ground,
   paper-on-dark type, ruled document panels, mono data everywhere.
   ===================================================================== */

:root {
  color-scheme: dark;

  /* night ground — pure logo black with an olive hint */
  --night: #0a0b03;
  --night-deep: #060702;
  --panel: #101204;
  --panel-2: #191c08;
  --hair: rgba(238, 242, 232, 0.14);
  --hair-strong: rgba(238, 242, 232, 0.3);

  /* type colors */
  --text: #eef2e8;
  --text-soft: #c9d2c2;
  --muted: rgba(238, 242, 232, 0.55);
  --muted-2: rgba(238, 242, 232, 0.35);

  /* signal — sampled from the HOODETF badge */
  --green: #cdef11;
  --green-ink: #0c0e02;
  --green-tint: rgba(205, 239, 17, 0.12);
  --red: #ff6a5e;
  --paper: #f5f3ec;

  --sans: var(--font-body), "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: var(--font-display), "Instrument Serif", "Georgia", serif;
  --mono: var(--font-mono), "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --label: 0.72rem;
  --micro: 0.66rem;

  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin: 0;
}

/* ---------------------------------------------------------------------
   shared atoms
   --------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}

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

.brand-sigil {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(205, 239, 17, 0.35);
}

.brand-sigil img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand-name em {
  font-style: normal;
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--green);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button.primary {
  background: var(--green);
  color: var(--green-ink);
}

.button.primary:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.mini-button {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mini-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.mini-button.quiet {
  border-color: var(--hair);
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   login gate
   --------------------------------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--night-deep);
}

.gate[data-open="false"] {
  display: none;
}

.gate-card {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 44px);
  background: var(--panel);
  border: 1px solid var(--hair-strong);
  border-top: 2px solid var(--green);
}

.gate-card .eyebrow {
  margin-top: 30px;
}

.gate-title {
  margin-top: 10px;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1;
}

.gate-lead {
  margin-top: 14px;
  color: var(--muted);
}

.gate-form {
  margin-top: 26px;
}

.gate-form label {
  display: block;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.gate-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gate-row input {
  flex: 1 1 240px;
  padding: 13px 14px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.gate-row input:focus {
  outline: none;
  border-color: var(--green);
}

.gate-error {
  min-height: 1.4em;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: var(--micro);
  color: var(--red);
}

.gate-back {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.gate-back:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------------
   app header
   --------------------------------------------------------------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px clamp(18px, 3vw, 36px);
  background: var(--night);
  border-bottom: 1px solid var(--hair);
}

.app-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-nav a:hover {
  color: var(--green);
}

@media (max-width: 860px) {
  .app-nav {
    display: none;
  }
}

.treasury-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.1em;
  cursor: pointer;
}

.app-nav + .treasury-pill {
  margin-left: 0;
}

.treasury-pill:hover {
  border-color: var(--green);
}

/* ---------------------------------------------------------------------
   app shell + hero
   --------------------------------------------------------------------- */

.app-shell {
  width: min(100% - clamp(36px, 6vw, 72px), 1360px);
  margin-inline: auto;
  padding-block: clamp(28px, 4vw, 48px) 80px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
}

.app-hero-copy h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
}

.app-hero-copy > p:not(.eyebrow):not(.treasury-note) {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
}

.treasury-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hair-strong);
  background: var(--panel);
}

.status-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
}

.status-grid > div:nth-child(odd) {
  border-right: 1px solid var(--hair);
}

.status-grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--hair);
}

.status-grid span {
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-grid strong {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .app-hero {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   panels
   --------------------------------------------------------------------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.launch-panel {
  grid-column: span 4;
}

.discover-panel {
  grid-column: span 8;
}

.basket-panel {
  grid-column: span 5;
}

.wallets-panel {
  grid-column: span 7;
}

.execute-panel {
  grid-column: span 12;
}

@media (max-width: 1100px) {
  .launch-panel,
  .discover-panel,
  .basket-panel,
  .wallets-panel {
    grid-column: span 12;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair-strong);
}

.panel-index {
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 600;
  color: var(--green);
}

.panel-head strong {
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  flex: 1;
}

.panel-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-sub {
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* forms inside panels */

.panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel input,
.panel textarea {
  padding: 11px 12px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.panel input:focus,
.panel textarea:focus {
  outline: none;
  border-color: var(--green);
}

.panel textarea {
  resize: vertical;
}

.panel input[type="file"] {
  padding: 9px 12px;
  color: var(--muted);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .field-pair {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   discovery
   --------------------------------------------------------------------- */

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

.chip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--hair-strong);
}

.chip.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
}

.search-row,
.ca-row {
  display: flex;
  gap: 10px;
}

.search-row input,
.ca-row input {
  flex: 1;
  min-width: 0;
}

.coin-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.coin-feed::-webkit-scrollbar {
  width: 6px;
}

.coin-feed::-webkit-scrollbar-thumb {
  background: var(--panel-2);
  border-radius: 3px;
}

.coin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  transition: border-color 0.15s ease;
}

.coin-card:hover {
  border-color: var(--hair-strong);
}

.coin-card.is-selected {
  border-color: var(--green);
  background: var(--green-tint);
}

.coin-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
}

.coin-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.coin-meta strong {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin-meta span {
  font-family: var(--mono);
  font-size: var(--micro);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-pill {
  padding: 3px 8px;
  background: var(--panel-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.external-link {
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.06em;
  color: var(--text-soft);
  border-bottom: 1px dotted var(--hair-strong);
}

.external-link:hover {
  color: var(--green);
  border-color: var(--green);
}

.pump-link {
  color: var(--green);
}

.empty-state {
  padding: 22px 16px;
  border: 1px dashed var(--hair-strong);
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  padding: 14px;
}

/* ---------------------------------------------------------------------
   basket
   --------------------------------------------------------------------- */

.basket-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.basket-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.basket-summary span {
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.basket-summary strong {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--green);
}

.meter {
  height: 5px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.3s ease, background 0.3s ease;
}

.meter i.is-over {
  background: var(--red);
}

.selected-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.basket-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
}

.basket-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.allocation-input {
  width: 84px;
  padding: 8px 10px;
  margin-left: auto;
}

.remove-button {
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: var(--micro);
  color: var(--muted);
  cursor: pointer;
}

.remove-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.basket-controls {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ---------------------------------------------------------------------
   tracked wallets
   --------------------------------------------------------------------- */

.wallet-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-form input {
  flex: 1 1 140px;
  min-width: 0;
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.wallet-row strong {
  color: var(--text);
}

.wallet-row .external-link {
  margin-left: auto;
}

/* ---------------------------------------------------------------------
   execute
   --------------------------------------------------------------------- */

.execute-panel .panel-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  align-items: start;
}

.signer-row,
.manifest-box,
.launch-button,
.launch-log {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .execute-panel .panel-body {
    grid-template-columns: 1fr;
  }
}

.signer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
}

.signer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.signer-info strong {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.manifest-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manifest-box > span {
  font-family: var(--mono);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.manifest-box pre {
  margin: 0;
  padding: 14px;
  max-height: 220px;
  overflow: auto;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.launch-button {
  padding: 16px 24px;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.launch-button:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.launch-button:disabled {
  background: var(--panel-2);
  border-color: var(--hair);
  color: var(--muted-2);
  cursor: not-allowed;
}

.launch-log {
  padding: 13px 14px;
  background: var(--night-deep);
  border: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.log-info {
  color: var(--text-soft);
}

.log-success {
  color: var(--green);
}

.log-error {
  color: var(--red);
}

.log-warn {
  color: #f0c85a;
}

.log-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------
   motion â€” entrance choreography (CSS-only, fill both)
   --------------------------------------------------------------------- */

@keyframes con-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes con-fade-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gate-card {
  animation: con-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.app-header {
  animation: con-fade-down 0.5s ease both;
}

.app-hero {
  animation: con-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.flow-grid .panel {
  animation: con-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flow-grid .panel:nth-child(1) { animation-delay: 0.3s; }
.flow-grid .panel:nth-child(2) { animation-delay: 0.4s; }
.flow-grid .panel:nth-child(3) { animation-delay: 0.5s; }
.flow-grid .panel:nth-child(4) { animation-delay: 0.6s; }
.flow-grid .panel:nth-child(5) { animation-delay: 0.7s; }

.coin-card {
  animation: con-rise 0.4s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .gate-card,
  .app-header,
  .app-hero,
  .flow-grid .panel,
  .coin-card {
    animation: none;
  }
}

