/* Obsidio products — cryptix.fun layout patterns, Obsidio green accent */
:root {
  color-scheme: dark;
  --bg: #0a0e0c;
  --card: #121a16;
  --card2: #182018;
  --line: rgba(61, 255, 154, 0.14);
  --txt: #e8f0ea;
  --mut: #8a9a90;
  --accent: #3dff9a;
  --accent-dim: #1a7a4a;
  --good: #3dff9a;
  --warn: #ffb84d;
  --bad: #ff6b6b;
  --blue: #5b9dff;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Syne", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(61, 255, 154, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(40, 120, 90, 0.2), transparent 45%),
    var(--bg);
  color: var(--txt);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 12, 0.88);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 1.25rem; min-height: 58px;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--txt); text-decoration: none;
}
.brand span { color: var(--accent); }
.nav { margin-left: auto; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--mut); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a.on { color: var(--txt); }
.nav a.on { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.hero-row { margin-bottom: 1.5rem; }
.eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--good); border: 1px solid rgba(61,255,154,0.35);
  border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: 0.75rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 0.5rem;
}
.lead { color: var(--mut); max-width: 36rem; font-size: 1.02rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
}
.card h2, .card h3 {
  font-size: 0.78rem; font-weight: 700; color: var(--mut);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem;
}

.field { margin-bottom: 0.85rem; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--mut); margin-bottom: 0.35rem; letter-spacing: 0.04em;
}
.field input, .field select {
  width: 100%;
  background: #0c1210;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--txt);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus {
  outline: none; border-color: rgba(61,255,154,0.45);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.1rem; border-radius: 12px; font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  text-decoration: none; width: 100%;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #041208;
}
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--txt);
}
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn-row .btn { width: auto; flex: 1; min-width: 7rem; }

.token-row {
  display: flex; gap: 0.5rem; align-items: center;
  background: #0c1210; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.65rem 0.75rem; margin-bottom: 0.65rem;
}
.token-row input {
  flex: 1; background: transparent; border: none; color: var(--txt);
  font-size: 1.25rem; font-weight: 700; font-family: var(--mono); min-width: 0;
}
.token-row input:focus { outline: none; }
.token-pill {
  background: var(--card2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.75rem; font-weight: 700; font-size: 0.85rem;
  color: var(--accent); white-space: nowrap;
}

.meta { font-size: 0.8rem; color: var(--mut); margin-top: 0.65rem; }
.meta strong { color: var(--txt); font-weight: 600; }

.coin-list { display: flex; flex-direction: column; gap: 0.65rem; }
.coin {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem;
  padding: 0.9rem 1rem; border-radius: 14px;
  background: var(--card2); border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.coin:hover { border-color: rgba(61,255,154,0.4); transform: translateY(-1px); }
.coin.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(61,255,154,0.25); }
.coin .sym { font-weight: 800; font-size: 1.05rem; }
.coin .name { color: var(--mut); font-size: 0.8rem; }
.coin .right { text-align: right; font-family: var(--mono); font-size: 0.8rem; }
.coin .px { color: var(--good); font-weight: 700; }

.progress {
  height: 8px; border-radius: 999px; background: #0c1210;
  border: 1px solid var(--line); overflow: hidden; margin: 0.75rem 0 0.35rem;
}
.progress > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px; width: 0%; transition: width 0.35s ease;
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem;
  margin-top: 0.85rem;
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  background: #0c1210; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem;
}
.stat .l { font-size: 0.68rem; color: var(--mut); text-transform: uppercase; letter-spacing: 0.05em; }
.stat .v { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; margin-top: 0.2rem; }

.toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  background: var(--card); border: 1px solid var(--line);
  padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.85rem;
  max-width: 22rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 50;
}
.toast.show { opacity: 1; }

.live {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--mut); font-family: var(--mono);
}
.live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.45; }
}

.empty {
  text-align: center; padding: 2rem 1rem; color: var(--mut); font-size: 0.92rem;
}

.pool-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line); gap: 0.75rem;
}
.pool-row:last-child { border-bottom: none; }
.pool-row .pair { font-weight: 700; }
.pool-row .det { font-family: var(--mono); font-size: 0.78rem; color: var(--mut); text-align: right; }

.rpc-key {
  width: 8.5rem; background: transparent; border: 1px solid var(--line);
  color: var(--txt); padding: 0.25rem 0.4rem; font: inherit; font-size: 0.75rem; border-radius: 8px;
}
footer {
  max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line); color: var(--mut); font-size: 0.82rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
}
footer a { color: var(--accent); }

/* Fair-launch discovery (cryptix2-inspired) */
.controls {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
  margin-bottom: 1rem;
}
.controls .search {
  flex: 1; min-width: 12rem;
  background: #0c1210; border: 1px solid var(--line); border-radius: 12px;
  color: var(--txt); padding: 0.7rem 0.9rem; font: inherit;
}
.controls .select {
  background: #0c1210; border: 1px solid var(--line); border-radius: 12px;
  color: var(--txt); padding: 0.65rem 0.75rem; font: inherit;
}
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.coin-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem; cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.coin-card:hover { border-color: rgba(61,255,154,0.45); transform: translateY(-2px); }
.coin-card.active { border-color: var(--accent); }
.coin-card .head { display:flex; justify-content:space-between; gap:.5rem; align-items:baseline; }
.coin-card .sym { font-weight:800; font-size:1.15rem; }
.coin-card .status {
  font-size:0.68rem; text-transform:uppercase; letter-spacing:.04em;
  color: var(--mut); border:1px solid var(--line); border-radius:999px; padding:.15rem .45rem;
}
.coin-card .status.live { color: var(--accent); border-color: rgba(61,255,154,.35); }
.coin-card .status.graduated { color: var(--blue); }
.coin-card .nm { color:var(--mut); font-size:.82rem; margin:.25rem 0 .65rem; }
.coin-card .row { display:flex; justify-content:space-between; font-family:var(--mono); font-size:.78rem; }
.modal-bg {
  position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:40;
  display:flex; align-items:center; justify-content:center; padding:1rem;
}
.modal {
  width:min(420px, 100%); background:var(--card); border:1px solid var(--line);
  border-radius:18px; padding:1.15rem 1.2rem; max-height:90vh; overflow:auto;
}
.modal h2 { font-family:var(--display); font-size:1.25rem; text-transform:none; letter-spacing:-.02em; color:var(--txt); margin-bottom:.85rem; }
.hidden { display:none !important; }
