:root {
  --bg: #06080f;
  --panel: rgba(12, 18, 34, 0.82);
  --border: rgba(165, 196, 255, 0.24);
  --text: #f0f5ff;
  --muted: #a6b5d8;
  --brand: #50b6ff;
  --brand-2: #5cff9a;
  --danger: #ff7e7e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% -10%, #163768 0%, transparent 40%),
    radial-gradient(circle at 90% 0%, #0f2a4a 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.bg-orb {
  position: fixed;
  filter: blur(40px);
  opacity: 0.35;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: #3ac2ff;
  top: 8%;
  right: 8%;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: #48ffb4;
  bottom: 5%;
  left: 8%;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 28px auto 56px;
  display: grid;
  gap: 16px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.hero h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.subcopy {
  color: var(--muted);
  margin-top: 8px;
  max-width: 760px;
}

.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  font-size: 0.78rem;
  border: 1px solid rgba(80, 182, 255, 0.45);
  color: #d7edff;
  border-radius: 999px;
  padding: 6px 10px;
}

.tag-soft {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--muted);
}

.connect-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.connect-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#switchBtn {
  display: none;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet {
  margin: 4px 0 0;
  font-family: "Syne", sans-serif;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.stat .value {
  margin: 8px 0 0;
  font-size: 1.3rem;
  font-family: "Syne", sans-serif;
}

.value.small {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.actions-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.action-card h2 {
  margin-top: 0;
  font-family: "Syne", sans-serif;
}

.hint {
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.88rem;
}

input {
  width: 100%;
  border: 1px solid rgba(173, 203, 255, 0.35);
  background: rgba(8, 12, 24, 0.9);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  margin: 6px 0 12px;
  font-family: "Space Grotesk", sans-serif;
}

.btn {
  border: 1px solid rgba(170, 210, 255, 0.5);
  background: linear-gradient(180deg, rgba(58, 144, 255, 0.25), rgba(10, 15, 30, 0.8));
  color: #eaf5ff;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(0.25);
  transform: none;
}

.btn.primary {
  background: linear-gradient(130deg, #44a8ff, #1f7ed8);
  border: none;
}

.btn.accent {
  background: linear-gradient(130deg, #2ad092, #138d65);
  border: none;
}

.status-wrap {
  border-left: 4px solid #61bfff;
}

.status {
  margin: 8px 0 0;
  color: #dbefff;
  min-height: 1.4em;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--brand-2);
}

@media (max-width: 920px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .connect-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .connect-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
