/* CryptoCrowned DEX — modern dark UI */

:root {
  --bg: #07070c;
  --panel: rgba(18, 18, 28, 0.8);
  --panel2: rgba(26, 26, 40, 0.7);
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --muter: rgba(255,255,255,0.45);
  --accent: #00ff88;
  --accent2: #00d4ff;
  --warn: #fbbf24;
  --bad: #ff3366;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(0,255,136,0.10), transparent 60%),
    radial-gradient(600px 300px at 90% 0%, rgba(0,212,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 50% 100%, rgba(168,85,247,0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%);
  pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7,7,12,0.65);
  border-bottom: 1px solid var(--border);
}

.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #02150c;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(0,255,136,0.18);
}
.brand__name { font-weight: 800; letter-spacing: -0.3px; }
.brand__tag { color: var(--muter); font-size: 12px; margin-top: 2px; }

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

.pill {
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 13px;
}

.hero { padding: 44px 0 20px; position: relative; }
.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0;
}
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }

.hero__cta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  font-weight: 600;
}
.btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #02150c;
}
.btn--primary:hover { filter: brightness(1.05); }

.btn--ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.stat__label { color: var(--muter); font-size: 12px; }
.stat__value { margin-top: 6px; font-weight: 800; }

.grid {
  padding: 22px 0 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__head {
  padding: 16px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.card h2 { margin: 0; font-size: 16px; letter-spacing: -0.2px; }

.badge {
  font-size: 12px;
  color: rgba(0,255,136,0.9);
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.form, .filters {
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label { font-size: 12px; color: var(--muter); display: grid; gap: 6px; }
input, select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: rgba(0,255,136,0.35); box-shadow: 0 0 0 3px rgba(0,255,136,0.08); }

.row { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }

.result {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel2);
}
.result__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.result__row:last-child { border-bottom: none; }

.tableWrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.table th { text-align: left; color: var(--muter); font-size: 12px; }
.table td { color: var(--text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
}
.chip--good { border-color: rgba(0,255,136,0.20); background: rgba(0,255,136,0.08); color: rgba(0,255,136,0.95); }
.chip--bad { border-color: rgba(255,51,102,0.20); background: rgba(255,51,102,0.08); color: rgba(255,51,102,0.95); }

.feed {
  padding: 14px 16px 0;
  height: 240px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
}
.feed__line { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.feed__line strong { color: var(--accent2); }

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(7,7,12,0.55);
}
.footer__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .form, .filters { grid-template-columns: 1fr; }
}
