:root {
  --bg: #000;
  --surface: #000;
  --surface-hover: #0c0c0c;
  --border: rgba(203, 208, 235, 0.08);
  --border-strong: rgba(203, 208, 235, 0.14);
  --text: #e8eaf4;
  --text-secondary: #9aa3b8;
  --text-muted: #6b7288;
  --accent: #8b9dff;
  --accent-bright: #a8b8ff;
  --buy: #22c55e;
  --font: "JetBrains Mono", Menlo, ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: #000;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 157, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(52, 211, 153, 0.04), transparent 40%),
    #000;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(203, 208, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 208, 235, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black, transparent);
}

.app {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 12px 16px;
  display: flex;
  flex-direction: column;
}

/* ── Top bar（对齐 EvmFun 覆写尺寸）── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  height: 26px;
  width: auto;
  min-width: 26px;
  border-radius: 3px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  box-shadow: none;
}

.brand-mark-img {
  height: 26px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 8px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}

.status-dot.live {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.btn-topbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 8px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-topbar:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: #111;
}

.btn-topbar.btn-icon {
  width: 26px;
  min-width: 26px;
  padding: 0;
}

.btn-topbar.btn-icon svg {
  display: block;
}

/* ── Main ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 10px;
}

.panel {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.panel-head p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.panel-body {
  padding: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  --product-accent: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transition: border-color 0.15s, background 0.15s;
  animation: card-in 0.35s ease both;
  animation-delay: calc(var(--stagger, 0) * 40ms);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  border-color: rgba(139, 157, 255, 0.35);
  background: #0a0a0a;
}

.product-card.is-soon {
  opacity: 0.65;
  cursor: default;
}

.product-card.is-soon:hover {
  border-color: var(--border);
  background: #050505;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-icon {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  background: #0a0a0a;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}

.product-icon.has-img {
  color: transparent;
}

.product-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.3;
}

.product-status[data-status="live"] {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.06);
}

.product-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-blurb {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.product-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-top: 2px;
}

.product-card.is-soon .product-cta {
  color: var(--text-muted);
}

.products-empty {
  margin: 0;
  padding: 16px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

.site-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 4px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.site-foot a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--accent-bright);
}

.foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 18px;
  height: 18px;
}

.foot-icon svg {
  display: block;
}

.foot-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
}

.foot-contact {
  color: var(--text-muted);
  margin-left: 2px;
}

.foot-sep { opacity: 0.5; }

@media (max-width: 520px) {
  .topbar {
    flex-wrap: wrap;
    gap: 6px;
  }
}
