/* AUREA Launchpad — brand spec: ~/workspace/aurea-brand/brand-spec.md */
:root {
  --bg: #0a0f1e;
  --bg-deep: #020616;
  --card: #121626;
  --card-2: #141828;
  --panel: #0f1423;
  --input-bg: #0e1222;
  --border: #282d3c;
  --gold: #ffd700;
  --gold-light: #ffeb50;
  --gold-dark: #c8aa00;
  --violet: #8a2be2;
  --text: #ffffff;
  --muted: #848388;
  --faint: #626066;
  --success: #02b589;
  --danger: #e94d7a;
  --warning: #d9ab52;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  background-image:
    radial-gradient(900px 480px at 85% -10%, rgba(138, 43, 226, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 0%, rgba(255, 215, 0, 0.1), transparent 55%);
  background-attachment: fixed;
}
a {
  color: var(--gold-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}
header.site .logo img {
  height: 34px;
  width: auto;
  display: block;
}
header.site .badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.45);
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}
header.site nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--gold-dark);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #141828;
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--gold-light);
}
.btn-ghost {
  background: transparent;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.connected {
  border-color: var(--success);
  color: var(--success);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 44px 0 10px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  background: linear-gradient(45deg, #ffd700 6.62%, #8a2be2 86.5%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: #c9cbd4;
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 56ch;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 80px rgba(138, 43, 226, 0.25);
  display: block;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 6px;
}
.stat {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat .k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat .v {
  font-size: 24px;
  font-weight: 800;
  margin-top: 4px;
}

/* sections / cards */
section.block {
  margin: 34px 0;
}
section.block > h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sortbar {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.sortbar .btn {
  padding: 6px 12px;
  font-size: 13px;
}
.sortbar .btn.active {
  background: var(--gold);
  color: #141828;
  border-color: var(--gold);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.tcard {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tcard:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dark);
  text-decoration: none;
}
.tcard .top {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.tcard .thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
  background: var(--panel);
}
.tcard .thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--gold);
}
.tcard .name {
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tcard .sym {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.tcard .desc {
  color: #b9bbc4;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.progress {
  height: 10px;
  border-radius: 9999px;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 9999px;
}
.tcard .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.tcard .meta b {
  color: var(--text);
}
.pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill.grad {
  color: #04150e;
  background: var(--success);
  border-color: var(--success);
}
.empty,
.errorbox {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

/* forms */
.panel {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
form .row {
  margin-bottom: 14px;
}
label.flabel {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #c9cbd4;
  margin-bottom: 6px;
}
input[type="text"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}
textarea {
  min-height: 76px;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 215, 0, 0.5);
  border-color: var(--gold-dark);
}
.note {
  font-size: 12.5px;
  color: var(--muted);
}
.feeline {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}
.feeline.total {
  font-weight: 800;
  font-size: 16px;
}
.status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1.4em;
}
.status.err {
  color: var(--danger);
}
.status.ok {
  color: var(--success);
}

/* detail */
.detail-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 22px 0 6px;
  flex-wrap: wrap;
}
.detail-head .thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel);
}
.detail-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.kv .cell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.kv .k {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kv .v {
  font-size: 17px;
  font-weight: 800;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
canvas.chart {
  width: 100%;
  height: 260px;
  display: block;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tabs .btn {
  flex: 1;
}
.tabs .btn.active {
  background: var(--gold);
  color: #141828;
  border-color: var(--gold);
}
table.trades {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.trades th,
table.trades td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
table.trades th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.table-scroll {
  overflow-x: auto;
}
.side-buy {
  color: var(--success);
  font-weight: 800;
}
.side-sell {
  color: var(--danger);
  font-weight: 800;
}
.grad-banner {
  border: 1px solid var(--success);
  background: rgba(2, 181, 137, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .frow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  header.site .badge {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: floaty 7s ease-in-out infinite;
  }
  @keyframes floaty {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }
}
