:root {
  --bg: #07070c;
  --panel: rgba(18, 18, 28, 0.55);
  --ink: #f5f5f7;
  --dim: #8b8b95;
  --accent: #ff2e63;
  --accent2: #08d9d6;
  --accent-old: #ff6b9d;
  --accent2-old: #ffb347;
  --danger: #ff4d6d;
  --line: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 46, 99, 0.18), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(8, 217, 214, 0.15), transparent 45%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  backdrop-filter: blur(20px);
  background: rgba(7, 7, 12, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 14px; transition: 0.2s; }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 8px 16px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent2);
  border: 1px solid var(--line);
}

.hero {
  text-align: center;
  padding: 50px 20px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.live-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 46, 99, 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 46, 99, 0.08);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff, #666);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--dim);
  font-size: 17px;
  margin-top: 18px;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.5;
}

.dare-btn {
  margin-top: 22px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 22px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 10px 40px rgba(255, 46, 99, 0.35);
  font-family: inherit;
}

.dare-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(255, 46, 99, 0.5);
}

.chat-wrap {
  max-width: 900px;
  margin: 24px auto 40px;
  padding: 0 20px;
}

.chat.glass {
  background: var(--panel);
  backdrop-filter: blur(30px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.messages {
  padding: 24px;
  min-height: 360px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  padding: 14px 18px;
  border-radius: 16px;
  max-width: 88%;
  line-height: 1.55;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  animation: fade 0.3s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #c81d4e);
  color: #fff;
}

.message.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 95%;
}

.message.assistant .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent2);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.compare-pane {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  line-height: 1.45;
}

.compare-pane.gpt {
  background: rgba(255, 77, 109, 0.08);
  border-color: rgba(255, 77, 109, 0.25);
  color: #ffb3c0;
}

.compare-pane.us {
  background: rgba(8, 217, 214, 0.06);
  border-color: rgba(8, 217, 214, 0.2);
}

.compare-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}

.compare-pane.gpt .compare-label { color: var(--danger); }
.compare-pane.us .compare-label { color: var(--accent2); }

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.msg-actions button {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent2);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.msg-actions button:hover {
  border-color: var(--accent2);
}

.input-row {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  align-items: flex-end;
}

.input-row select,
.input-row textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.input-row select { flex-shrink: 0; }
.input-row textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 120px;
}

.input-row select:focus,
.input-row textarea:focus { border-color: var(--accent); }

.send-btn {
  padding: 0 24px;
  height: 48px;
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.send-btn:hover { background: #ff4577; }
.send-btn:disabled { opacity: 0.5; cursor: wait; }

.features {
  max-width: 1000px;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feat {
  padding: 22px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  backdrop-filter: blur(20px);
}

.feat h3 { font-size: 15px; margin-bottom: 8px; color: var(--accent2); }
.feat p { color: var(--dim); font-size: 14px; line-height: 1.5; }

.leaderboard {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.leaderboard h2 {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.leader-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: 0.15s;
}

.leader-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.leader-card .q { font-weight: 600; font-size: 14px; line-height: 1.4; }
.leader-card .meta { color: var(--dim); font-size: 11px; margin-top: 10px; }

.receipt-render {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 600px;
  padding: 40px;
  background: linear-gradient(135deg, #0a0a0f, #1a0a1f);
  color: #fff;
  border-radius: 24px;
  font-family: Inter, sans-serif;
}

.receipt-render .r-logo {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.receipt-render .r-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent2);
  margin-bottom: 20px;
}

.receipt-render .r-q {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.receipt-render .r-a {
  font-size: 15px;
  color: #ccc;
  line-height: 1.5;
  max-height: 180px;
  overflow: hidden;
  position: relative;
}

.receipt-render .r-a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #1a0a1f);
}

.receipt-render .r-foot {
  margin-top: 24px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.paywall {
  max-width: 560px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.paywall[hidden] { display: none !important; }

.paywall h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.sub { color: var(--dim); margin-bottom: 20px; line-height: 1.5; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.tier-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
}

.tier-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier-card .tier-name { font-size: 14px; font-weight: 700; }
.tier-card .tier-usd { font-size: 20px; font-weight: 800; color: var(--accent); }
.tier-card .tier-crypto { font-size: 11px; color: var(--dim); margin-top: 4px; }

.verify-section {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid var(--line);
}

.verify-section[hidden],
.token-entry[hidden],
.dev-unlock[hidden] { display: none !important; }

.chain-pick { display: flex; gap: 8px; margin: 12px 0; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.chip.active {
  color: #0a0a10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
}

.wallet-info {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 10px;
  margin: 12px 0;
  font-size: 13px;
}
.wallet-info .label { color: var(--dim); }
.address { word-break: break-all; color: var(--accent2); font-size: 12px; }

input[type="text"], textarea { width: 100%; }

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  font-family: inherit;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0a0a10;
  width: 100%;
}
.btn.secondary { border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--ink); width: 100%; }
.btn.text { background: none; color: var(--accent); text-decoration: underline; padding: 0; margin: 0; display: inline; }
.status-msg { font-size: 13px; color: var(--accent2); min-height: 1.2em; }
.token-info { margin-top: 16px; color: var(--dim); font-size: 13px; }

.foot {
  text-align: center;
  padding: 40px 20px;
  color: var(--dim);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-page .receipt-view {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.receipt-og {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.receipt-view h1 {
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.2;
  margin: 12px 0 20px;
}

.receipt-view .r-tag {
  color: var(--accent2);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.answer-full {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 15px;
}

.share-row {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.share-row button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
}

.muted { color: var(--dim); }

@media (max-width: 640px) {
  .compare-split { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .input-row { flex-wrap: wrap; }
  .input-row select { width: 100%; }
}
