:root {
  --bg: #080c14;
  --surface: #101726;
  --surface-2: #162033;
  --border: #233048;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --sky: #38bdf8;
  --violet: #a78bfa;
  --amber: #f59e0b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(8, 12, 20, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #10b981 100%);
  color: #071018; font-family: var(--mono); font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.kofi-btn {
  display: inline-flex; align-items: center; gap: 7px; background: var(--amber);
  color: #111827; font-weight: 750; font-size: 13px; padding: 8px 14px; border-radius: 8px;
}
.kofi-btn:hover { text-decoration: none; filter: brightness(1.07); }

.container { max-width: 1240px; margin: 0 auto; padding: 24px 20px 44px; }
.hero {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(167, 139, 250, 0.08), rgba(16, 185, 129, 0.09));
  border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px;
}
.hero-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.hero h1 { margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--text-muted); max-width: 850px; font-size: 14px; }

.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 8px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 650;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: #475569; text-decoration: none; }
.btn-primary { background: var(--emerald); border-color: var(--emerald); color: #041710; font-weight: 750; }
.btn-sky { background: var(--sky); border-color: var(--sky); color: #041521; font-weight: 750; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.panel-head h2 { margin: 0; font-size: 15px; }
textarea, input[type="text"] {
  width: 100%; background: #060a11; color: var(--text); border: 1px solid var(--border);
  border-radius: 9px; font-family: var(--mono); font-size: 12px; padding: 10px 12px;
}
textarea { min-height: 210px; resize: vertical; line-height: 1.48; }

.map-box {
  background: #060a11; border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  max-height: 170px; overflow-y: auto; font-family: var(--mono); font-size: 11.5px;
  scrollbar-width: thin; scrollbar-color: #334155 #060a11;
}
.map-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px solid #162033;
}
.map-row:last-child { border-bottom: none; }
.tok { color: var(--emerald); font-weight: 700; }

.support-bar {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer {
  max-width: 1240px; margin: 0 auto; padding: 18px 20px 34px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 21px; }
}
