body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 149, 0, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 110% 10%, rgba(0, 200, 255, 0.18), transparent 60%),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 24px),
    linear-gradient(180deg, #0b0b0b, #0e0e0e 20%, #0a0a0a 60%, #090909 100%);
  background-size:
    auto,
    auto,
    4px 4px,
    24px 24px,
    24px 24px,
    auto;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

/* Animated gradient blobs for added depth */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.35;
}

body::before {
  background:
    radial-gradient(35% 35% at 20% 30%, rgba(255,149,0,0.35), transparent 60%),
    radial-gradient(35% 35% at 70% 60%, rgba(0,200,255,0.35), transparent 60%);
  animation: blobFloatA 18s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(30% 30% at 30% 70%, rgba(173, 94, 255, 0.28), transparent 60%),
    radial-gradient(28% 28% at 80% 20%, rgba(0, 255, 153, 0.22), transparent 60%);
  animation: blobFloatB 22s ease-in-out infinite alternate;
}

@keyframes blobFloatA {
  0% { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(-4%) translateX(2%) scale(1.05); }
}

@keyframes blobFloatB {
  0% { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(3%) translateX(-2%) scale(1.04); }
}

.hero {
  position: relative;
  text-align: center;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 8px 0 0 0;
  border-radius: 0;
  width: 100%;
  max-width: 980px;
  box-shadow: none;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.bg-faces {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-face {
  position: absolute;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.35;
  filter: saturate(1.05) contrast(1.05);
  transform: rotate(-3deg);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin: 0 auto;
}

.floating-orbs::before,
.floating-orbs::after {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 149, 0, 0.6), transparent 60%);
  filter: blur(30px);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.floating-orbs::after {
  left: -30px;
  top: auto;
  bottom: -30px;
  background: radial-gradient(circle at 70% 70%, rgba(0, 200, 255, 0.5), transparent 60%);
  animation-duration: 12s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mascot {
  width: 130px;
  height: auto;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 30px rgba(255,149,0,0.25);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contract-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 1px rgba(255,149,0,0.08) inset, 0 0 16px rgba(0,200,255,0.12);
}

.ca-label { color: #ffd7a6; opacity: 0.9; font-weight: 700; text-transform: lowercase; }
.ca-value { 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
  font-size: 0.95em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.btn-copy { padding: 6px 10px; font-size: 0.85em; }

.mascot:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 12px 40px rgba(255,149,0,0.35);
}

h1 {
  font-size: 2.6em;
  margin: 10px 0 6px 0;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, #ffd7a6, #00e1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.05em;
  color: #cfcfcf;
}

p {
  font-size: 1.05em;
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95em;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(90deg, #ff9500, #ff6b00);
  color: #000;
  box-shadow: 0 10px 20px rgba(255,149,0,0.25);
}

.btn-accent {
  background: linear-gradient(90deg, #00e1ff, #00b7ff);
  color: #00131a;
  box-shadow: 0 10px 20px rgba(0,200,255,0.25);
}

.btn-glass {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.wallet-status { display: none; }

main {
  max-width: 980px;
  width: 100%;
}

section {
  margin: 22px 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0 0 10px 0;
  border-radius: 0;
  box-shadow: none;
}

h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #ffd7a6, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chat {
  height: 200px;
  overflow-y: auto;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,149,0,0.08) inset, 0 0 24px rgba(0,200,255,0.12);
}

.chat-message { display: grid; gap: 10px; align-items: start; }
.chat-message.bot { grid-template-columns: 40px 1fr; }
.chat-message.user { grid-template-columns: 1fr; }

.bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px;
  word-wrap: break-word;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}

.chat-message.user { justify-content: end; }
.chat-message.user .bubble {
  justify-self: end;
  background: linear-gradient(90deg, #ff9500, #ff6b00);
  color: #000;
}

.chat-message.bot { justify-content: start; }
.chat-message.bot .bubble {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: #fff;
}

.chat-controls { display: grid; gap: 8px; }

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  justify-content: center;
}

#chatInput {
  flex: 1;
  max-width: none;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1em;
}

#sendMessage { border: none; }

.api-note {
  text-align: center;
  font-size: 0.9em;
  color: #ffd7a6;
  font-style: italic;
}

#memeSection img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: block;
  margin: 0 auto;
}

.hero-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }

.key-row { display: none; }

.social-links { display: flex; gap: 10px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }

.toggles { display: none; }
.toggle { display: none; }

.footer { opacity: 0.7; font-size: 0.9em; margin-top: 10px; }

@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .chat-input { grid-template-columns: 1fr; }

  .ca-value { max-width: 120px; }
}
