:root {
  --bg: #07060d;
  --ink: #f2eee6;
  --body-text: #cbc4de;
  --muted: #b9a3f5;
  --muted2: #9089a6;
  --accent: #9d7bf0;
  --accent-ink: #0c0716;
  --accent2: #7ee6d0;
  --card: rgba(255,255,255,0.055);
  --card-solid: #16121f;
  --border: rgba(255,255,255,0.22);
  --err: #ff7a7a;
  --glow: 0 0 0 1px rgba(157,123,240,0.12), 0 10px 34px rgba(124,79,224,0.22);
  --font-display: "Fredoka", "M PLUS Rounded 1c", sans-serif;
  --font-body: "M PLUS Rounded 1c", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
img { display: block; }

#spaceCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1.5px solid var(--border);
  background: rgba(7,6,13,0.55); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(157,123,240,0.5)); }
.navLinks { display: flex; gap: 20px; font-size: 14px; font-weight: 600; align-items: center; color: var(--body-text); }
.navLinks a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; border: 1.5px solid var(--border);
  cursor: pointer; white-space: nowrap; background: var(--card); color: var(--ink); backdrop-filter: blur(8px);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: rgba(157,123,240,0.6); box-shadow: 0 0 24px rgba(157,123,240,0.45); }
.btn-dark { background: var(--card-solid); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }

.hero { padding: 64px 24px 32px; text-align: center; }
h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 50px); line-height: 1.1; font-weight: 700; margin: 0 0 14px; color: var(--ink); text-shadow: 0 0 40px rgba(124,79,224,0.35); }
.heroSub { font-size: 16px; line-height: 1.6; color: var(--body-text); max-width: 52ch; margin: 0 auto 22px; }
.heroBtns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: 20px; padding: 22px;
  backdrop-filter: blur(14px); box-shadow: var(--glow);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 60px; }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.tokenCard { display: flex; flex-direction: column; gap: 10px; transition: transform 0.15s, box-shadow 0.15s; }
.tokenCard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(157,123,240,0.3), 0 14px 40px rgba(124,79,224,0.3); }
.tokenCard .top { display: flex; gap: 12px; align-items: center; }
.tokenCard .logo { width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--border); object-fit: cover; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.tokenCard .names { min-width: 0; }
.tokenCard .tName { font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.tokenCard .tSym { font-size: 12.5px; color: var(--muted2); }
.tokenCard .desc { font-size: 13px; color: var(--body-text); line-height: 1.5; max-height: 3.2em; overflow: hidden; }
.tokenCard .stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted2); font-weight: 600; }
.tokenCard .stats b { color: var(--ink); }

.formRow { margin-bottom: 16px; }
.formRow label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.formRow input, .formRow textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 14.5px; background: rgba(255,255,255,0.04); color: var(--ink);
}
.formRow input::placeholder, .formRow textarea::placeholder { color: var(--muted2); }
.formRow input:focus, .formRow textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(157,123,240,0.2); }
.formRow textarea { resize: vertical; min-height: 70px; }
.formHint { font-size: 12px; color: var(--muted2); margin-top: 4px; }

.status { font-size: 13.5px; font-weight: 600; margin-top: 12px; min-height: 1.4em; }
.status.ok { color: #6fe0a3; }
.status.err { color: var(--err); }

.walletBox { position: relative; }
.walletDropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--card-solid);
  border: 1.5px solid var(--border); border-radius: 16px; padding: 10px; min-width: 220px; z-index: 20;
  box-shadow: var(--glow);
}
.walletDropdown.open { display: block; }
.walletBtn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none;
  background: transparent; border-radius: 10px; cursor: pointer; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--ink);
}
.walletBtn:hover { background: rgba(255,255,255,0.06); }
.walletBtn img { width: 22px; height: 22px; border-radius: 6px; }

.addrLine { font-family: monospace; font-size: 12px; color: var(--muted2); margin-top: 6px; word-break: break-all; }

.detailHead { display: flex; gap: 18px; align-items: center; padding: 48px 24px 20px; }
.detailHead .logo { width: 84px; height: 84px; border-radius: 22px; border: 1.5px solid var(--border); object-fit: cover; background: rgba(255,255,255,0.06); flex-shrink: 0; box-shadow: var(--glow); }
.detailHead h1 { text-align: left; margin: 0 0 4px; font-size: clamp(26px, 4vw, 36px); }
.detailHead .sym { color: var(--muted2); font-weight: 600; font-size: 15px; }

.statGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.statGrid .card { padding: 16px 18px; }
.statGrid .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted2); margin-bottom: 6px; }
.statGrid .v { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }

.tradeGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
@media (max-width: 640px) { .tradeGrid { grid-template-columns: 1fr; } }
.tabRow { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1; padding: 10px; text-align: center; border: 1.5px solid var(--border); border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; background: rgba(255,255,255,0.03); color: var(--body-text); }
.tab.active { background: var(--accent); color: var(--accent-ink); border-color: rgba(157,123,240,0.6); box-shadow: 0 0 18px rgba(157,123,240,0.4); }

.center { text-align: center; }
.footer { padding: 44px 24px 50px; text-align: center; font-size: 12.5px; color: var(--muted2); border-top: 1.5px solid var(--border); margin-top: 20px; }
.footer .footBrand { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.footer .footBrand img { width: 20px; height: 20px; filter: drop-shadow(0 0 8px rgba(157,123,240,0.5)); }
.footer a { text-decoration: underline; }
.linkRow { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; }

.section { padding: 20px 24px 56px; }
.sectionHead { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
h2 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.sectionSub { font-size: 14.5px; line-height: 1.6; color: var(--body-text); }

.ruleList { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .ruleList { grid-template-columns: 1fr; } }
.ruleItem {
  display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 14px 16px; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--ink); backdrop-filter: blur(14px);
}
.ruleItem .check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent2); color: #0c1a17; border: 1.5px solid rgba(126,230,208,0.5); display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 0 14px rgba(126,230,208,0.45); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1.5px solid var(--border); border-radius: 20px; padding: 22px; backdrop-filter: blur(14px); box-shadow: var(--glow); }
.step .num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 8px; text-shadow: 0 0 16px rgba(157,123,240,0.5); }
.step h3 { font-size: 16px; margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--body-text); margin: 0; }
