/* FUMBL standalone — theme and layout */

:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 93%;
  --card: 0 0% 4%;
  --primary: 152 100% 50%;
  --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 6%;
  --secondary-foreground: 0 0% 70%;
  --muted: 0 0% 6%;
  --muted-foreground: 0 0% 40%;
  --border: 0 0% 12%;
  --destructive: 0 72% 51%;
  --radius: 0.5rem;
  --glow: 0 0 20px hsl(152 100% 50% / 0.15);
  --glow-strong: 0 0 40px hsl(152 100% 50% / 0.25);
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: hsl(152 100% 50% / 0.2);
  color: hsl(0 0% 100%);
}

.hidden {
  display: none !important;
}

.view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ——— Landing ——— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 1.5rem;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: hsl(var(--primary));
  opacity: 0.1;
  filter: blur(120px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(152 80% 70%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4), 0 0 40px hsl(152 100% 50% / 0.2);
}

.hero-tagline {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin: 0 0 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(152 100% 50% / 0.7);
  margin: 0;
  animation: fadeIn 0.6s ease-out, pulseSub 3s ease-in-out infinite;
}

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

@keyframes pulseSub {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes ctaBounce {
  0%, 100% { transform: scale(1); }
  5% { transform: scale(1.08); }
  10% { transform: scale(0.96); }
  15% { transform: scale(1.03); }
  20%, 100% { transform: scale(1); }
}

/* Hero CTA: Connect Wallet + green character (tap.fun style) */
.hero-cta-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-top: 0;
}

.hero-cta-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.tappy-lottie {
  position: absolute;
  width: 200px;
  height: 200px;
  right: 50%;
  margin-right: 50px; /* just left of button so hand overlaps/slaps it */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.hero-cta-btn {
  position: relative;
  z-index: 1;
  height: 3.5rem;
  padding: 0 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: opacity 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: ctaBounce 1s ease-in-out infinite;
}

.hero-cta-btn:hover {
  background: hsl(152 100% 50% / 0.9);
  animation-play-state: paused;
  transform: scale(1.02);
  box-shadow: var(--glow-strong);
}

.hero-cta-btn:active {
  transform: scale(0.98);
}

.search-section {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-form {
  display: flex;
  gap: 0.75rem;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}

.input-wrap input {
  width: 100%;
  height: 3rem;
  padding-left: 2.5rem;
  padding-right: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  outline: none;
}

.input-wrap input::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

.input-wrap input:focus {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.btn-go {
  height: 3rem;
  padding: 0 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: opacity 0.3s, background 0.2s;
}

.btn-go:hover:not(:disabled) {
  background: hsl(152 100% 50% / 0.9);
}

.btn-go:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.search-hint {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.4);
  margin: 0.75rem 0 0;
}

.search-hint .muted {
  color: hsl(var(--primary) / 0.5);
}

.main-footer {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
}

.main-footer p,
.main-footer .footer-creator-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.4);
  margin: 0;
}

.footer-creator-btn {
  display: inline-block;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  width: 100%;
}

@media (max-width: 767px) {
  .footer-creator-btn {
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.token-footer .footer-creator-btn {
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.3);
  letter-spacing: 0.05em;
}

/* ——— Token page ——— */
#view-token {
  overflow: hidden;
  position: relative;
}

.token-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(hsl(var(--foreground)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground)) 1px, transparent 1px);
  background-size: 60px 60px;
}

.token-glow {
  position: fixed;
  top: 33%;
  left: 50%;
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: hsl(var(--primary));
  opacity: 0.04;
  filter: blur(150px);
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.scanline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: hsl(var(--primary) / 0.1);
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { top: -2px; }
  100% { top: 100%; }
}

.token-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--foreground) / 0.1);
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
}

.logo-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--primary));
  text-decoration: none;
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4);
  letter-spacing: -0.04em;
}

.logo-link:hover {
  color: hsl(var(--primary));
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  background: none;
  border: 1px solid hsl(var(--foreground) / 0.1);
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.header-btn:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.4);
}

.token-main {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  border: 1px solid hsl(var(--foreground) / 0.1);
  padding: 1.5rem 2rem;
}

.token-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .token-hero-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

.token-hero-img-wrap {
  flex-shrink: 0;
}

.token-hero-img-wrap img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--foreground) / 0.2);
  filter: grayscale(20%);
}

.token-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.token-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.token-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: hsl(var(--primary));
  margin: 0;
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4);
}

.token-symbol-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--primary) / 0.6);
  border: 1px solid hsl(var(--primary) / 0.2);
  padding: 0.125rem 0.5rem;
}

.token-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.token-meta-row .muted {
  color: hsl(var(--muted-foreground));
}

.ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  background: none;
  border: 1px solid hsl(var(--foreground) / 0.1);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  transition: color 0.15s, border-color 0.15s;
}

.ca-btn:hover {
  color: hsl(var(--primary));
}

.ca-prefix {
  color: hsl(var(--primary) / 0.4);
}

.ca-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-icon {
  flex-shrink: 0;
  opacity: 0.3;
}

.ca-btn:hover .ca-icon {
  opacity: 1;
}

.btn-cta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  background: hsl(152 100% 50% / 0.9);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

.primary {
  color: hsl(var(--primary));
}

.token-rotating-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--primary) / 0.4);
  text-align: center;
  margin: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.section-prefix,
.section-chevron {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--primary) / 0.5);
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4);
}

.section-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 1px solid hsl(var(--border));
}

.paperhands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Live feed: single column, scrollable, new entries at top */
.paperhands-feed {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid hsl(var(--foreground) / 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .paperhands-grid:not(.paperhands-feed) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.paperhand-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--foreground) / 0.2);
  padding: 1.25rem;
  transition: border-color 0.3s;
}

.paperhand-card:hover {
  border-color: hsl(var(--primary) / 0.6);
}

.paperhand-card-feed {
  flex-shrink: 0;
  animation: paperhand-fade-in 0.4s ease-out;
}

@keyframes paperhand-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.paperhand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--foreground) / 0.1);
}

.paperhand-pid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4);
}

.paperhand-wallet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--foreground) / 0.7);
}

.paperhand-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

.paperhand-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.paperhand-row {
  display: flex;
  justify-content: space-between;
}

.paperhand-row .muted {
  color: hsl(var(--muted-foreground));
}

.paperhand-row .primary {
  color: hsl(var(--primary));
  font-weight: 700;
}

.paperhand-err {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--foreground) / 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.paperhand-err .label {
  color: hsl(var(--destructive));
}

.paperhand-err .value {
  color: hsl(var(--destructive));
  font-weight: 700;
}

.trades-list {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid hsl(var(--foreground) / 0.05);
}

.trade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  border-bottom: 1px solid hsl(var(--foreground) / 0.05);
  transition: background 0.15s;
}

.trade-item:hover {
  background: hsl(var(--foreground) / 0.02);
}

.trade-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.trade-type {
  font-weight: 700;
  text-transform: uppercase;
  width: 2rem;
}

.trade-type.buy {
  color: hsl(var(--primary));
}

.trade-type.sell {
  color: hsl(var(--destructive));
}

.trade-wallet {
  color: hsl(var(--foreground) / 0.6);
}

.trade-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trade-amount {
  color: hsl(var(--foreground));
  font-weight: 700;
}

.trade-time {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  width: 4rem;
  text-align: right;
}

.cta-card {
  border: 1px solid hsl(var(--primary) / 0.2);
  padding: 2rem;
  text-align: center;
}

.cta-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--primary));
  margin: 0 0 0.5rem;
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4);
}

.cta-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

.token-footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid hsl(var(--foreground) / 0.05);
}

.token-footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: hsl(var(--muted-foreground) / 0.3);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ——— Modals ——— */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: hsl(0 0% 0% / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  max-width: 24rem;
  width: 100%;
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid hsl(var(--foreground) / 0.1);
}

.modal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--primary));
  margin: 0 0 0.25rem;
  text-shadow: 0 0 20px hsl(152 100% 50% / 0.4);
}

.modal-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--foreground) / 0.8);
  background: none;
  border: 1px solid hsl(var(--foreground) / 0.1);
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.wallet-btn:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.05);
}

.wallet-btn img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.modal-footer {
  padding: 0 1rem 1rem;
}

.wallet-other {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  background: none;
  border: 1px dashed hsl(var(--foreground) / 0.1);
  padding: 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.wallet-other:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.05);
}

/* ——— Creator gate (invisible button bottom left, mobile-accessible) ——— */
.creator-gate-btn {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  min-width: 44px;
  min-height: 44px;
  width: 24px;
  height: 24px;
  padding: 0;
  /* Near-invisible but tappable on mobile (opacity:0 can block touch in iOS) */
  opacity: 0.01;
  z-index: 100;
  cursor: pointer;
  border: none;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.creator-gate-btn:hover,
.creator-gate-btn:focus {
  opacity: 0.01;
}

@media (max-width: 767px) {
  .creator-gate-btn {
    min-width: 56px;
    min-height: 56px;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
  }
}

/* ——— Creator OTP modal ——— */
.creator-otp-modal .otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 1.25rem 1.25rem;
}

.otp-slot {
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--foreground) / 0.2);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}

.otp-slot:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.otp-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  margin: 0 1.25rem 1rem;
  text-align: center;
}

.modal-body {
  padding: 1rem 1.25rem;
}

.modal-body .text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

/* ——— Creator modal full (form + preview + download) ——— */
.creator-modal-full {
  max-width: 56rem;
  max-height: 90vh;
  overflow-y: auto;
}

.creator-modal-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .creator-modal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.creator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creator-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.creator-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.creator-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border));
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}

.creator-input:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.6);
}

.creator-input::placeholder {
  color: hsl(var(--muted-foreground) / 0.6);
}

.creator-logo-drop {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.creator-logo-drop:hover {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.05);
}

.creator-logo-preview {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

.creator-logo-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.creator-logo-placeholder small {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

.creator-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.creator-preview-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.creator-preview-box {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(to bottom right, hsl(var(--background)), hsl(var(--secondary) / 0.3));
  padding: 1.5rem;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.creator-preview-logo-wrap {
  position: relative;
}

.creator-preview-logo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--primary) / 0.4);
  object-fit: cover;
}

.creator-preview-logo-placeholder {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.creator-preview-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.creator-preview-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin: 0;
}

.creator-preview-stats {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.creator-preview-stats p {
  margin: 0.25rem 0;
}

.creator-preview-stats .primary {
  color: hsl(var(--primary));
  font-weight: 700;
}

.creator-preview-usd {
  color: hsl(var(--foreground)) !important;
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.5rem !important;
}

.creator-preview-missed {
  color: hsl(var(--destructive)) !important;
  font-weight: 700;
  font-size: 0.75rem;
}

.btn-creator-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-creator-download:hover {
  background: hsl(152 100% 45%);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

/* ——— Mobile layout ——— */
@media (max-width: 767px) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .hero {
    padding: 3rem 1rem 2rem;
  }

  .search-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .token-header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .logo-link {
    font-size: 1.25rem;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 10px;
    justify-content: center;
  }

  .token-main {
    padding: 1rem 0.75rem 2rem;
    gap: 1.25rem;
  }

  .card {
    padding: 1rem 1.25rem;
  }

  .token-hero-img-wrap img {
    width: 5rem;
    height: 5rem;
  }

  .ca-btn {
    min-height: 44px;
    padding: 0.625rem 0.75rem;
  }

  .btn-cta {
    min-height: 48px;
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .section-label {
    font-size: 0.8125rem;
    word-break: break-word;
  }

  .paperhand-card {
    padding: 1rem;
  }

  .trades-list {
    max-height: 280px;
  }

  .trade-item {
    padding: 0.625rem 0.75rem;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .trade-right {
    width: 100%;
    justify-content: space-between;
  }

  .cta-card {
    padding: 1.5rem 1rem;
  }

  .token-footer {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .overlay {
    padding: 1rem;
    align-items: flex-end;
  }

  .wallet-btn {
    min-height: 48px;
    padding: 0.875rem;
  }

  .wallet-other {
    min-height: 48px;
  }
}
