:root {
  --bg: #071013;
  --panel: #0c1a1e;
  --panel-2: #091518;
  --line: #16343c;
  --text: #f3f8f8;
  --muted: #a4c5cf;
  --faint: #6f94a0;
  --cyan: #69aac1;
  --cyan-hover: #7eb8cc;
  --cyan-dark: #1f4451;
  --ink: #071013;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Sora, Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -18%, rgba(105, 170, 193, 0.18) 0%, transparent 48%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, a { font: inherit; }

.top-strip {
  position: relative;
  z-index: 2;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.top-strip .terms-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  pointer-events: none;
  cursor: default;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(7, 16, 19, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 34px;
  width: 34px;
  object-fit: contain;
}

.brand strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  pointer-events: none;
  cursor: default;
}

.launch-btn,
.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.launch-btn:hover,
.connect-btn:hover { background: var(--cyan-hover); }

.page-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px 80px;
}

.hero,
.token-card,
.requirements {
  width: 100%;
  max-width: 448px;
  animation: fadeIn 0.6s ease-out both;
}

.hero {
  max-width: 720px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 span { color: var(--cyan); }

.hero p {
  margin: 0 auto 28px;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.join-button,
.primary-button {
  display: inline-flex;
  min-width: 220px;
  justify-content: center;
  margin-bottom: 44px;
  padding: 14px 40px;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(105, 170, 193, 0.22);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.join-button:hover,
.primary-button:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

.token-card {
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  animation-delay: 0.1s;
}

.token-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.token-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.token-logo-wrap {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.token-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-identity h2 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.token-identity p {
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}

.network-block { flex: 0 0 auto; text-align: right; }

.network-block span {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.network-block strong {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.contract-box {
  position: relative;
  margin-bottom: 24px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}

.contract-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 12px;
}

.contract-box code {
  display: block;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -8px 0 24px;
}

.market-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel-2);
}

.market-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
}

.market-grid strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-grid strong.is-positive { color: var(--cyan); }
.market-grid strong.is-negative { color: #fb7185; }

.activity-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 12px;
}

.counter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-wrap strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 150ms ease;
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
}

.live-dot::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cyan);
  content: "";
  animation: ping 1.3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.requirements { animation-delay: 0.2s; }

.requirements h3 {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.steps { display: grid; gap: 24px; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: var(--cyan-dark);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(105, 170, 193, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.step h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step mark {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--cyan-dark);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 16, 19, 0.78);
  backdrop-filter: blur(10px);
}

.overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 18px; color: var(--muted); }

.wallet-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.wallet-option:hover { border-color: var(--cyan); }

.ghost-button {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--cyan);
  color: var(--text);
  font-size: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ping {
  75%, 100% { opacity: 0; transform: scale(2); }
}

@media (min-width: 768px) {
  .site-header { padding-inline: 32px; }
  .page-shell { padding-top: 48px; }
  .token-card { padding: 32px; }
}

@media (max-width: 720px) {
  .launch-btn { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .join-button, .primary-button { width: 100%; }
  .market-grid { grid-template-columns: 1fr; }
}

.admin-page { max-width: 720px; margin: 0 auto; padding: 32px 16px 80px; }
.admin-page h1 { margin: 0 0 8px; }
.admin-page .lead { color: var(--muted); margin: 0 0 24px; }
.admin-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.admin-card label { display: block; color: var(--faint); font-size: 12px; margin-bottom: 6px; }
.admin-card input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.admin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-row button, .admin-card button[type="submit"] {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.admin-row .ghost, .admin-list button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.preview-box { display: none; align-items: center; gap: 12px; margin: 12px 0; }
.preview-box.open { display: flex; }
.preview-box img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.admin-list { display: grid; gap: 10px; }
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.admin-item img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; }
.admin-item a { color: var(--cyan); word-break: break-all; }
