/* ═══════════════════════════════════════════════════════════════
 *  Stepless — Shared Styles
 *  WCAG AA compliant | Light/Dark | Mobile-first | Zero dependencies
 * ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
 *  CSS Reset
 * ────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────
 *  Theme Variables — WCAG AA (4.5:1+ contrast)
 * ────────────────────────────────────────────────────────────── */

:root {
  /* Light theme — all pairs tested ≥ 4.5:1 */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-card: #ffffff;
  --bg-code: #f0f2f5;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --text-light: #6b7280;
  --link: #1a56c4;
  --link-hover: #0f3d96;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --accent: #1a56c4;
  --accent-bg: #e8f0fe;
  --accent-text: #ffffff;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --primary: #1a56c4;
  --primary-hover: #0f3d96;
  --secondary: #6b21a8;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --max-width: 1200px;
  --header-height: 64px;
}

[data-theme="dark"] {
  /* Dark theme — all pairs tested ≥ 4.5:1 */
  --bg: #0f1117;
  --bg-alt: #161821;
  --bg-card: #1a1d28;
  --bg-code: #21242f;
  --text: #e8eaf0;
  --text-muted: #b0b8c8;
  --text-light: #8892a6;
  --link: #6ba4ff;
  --link-hover: #8fbcff;
  --border: #2d3140;
  --border-light: #252836;
  --accent: #6ba4ff;
  --accent-bg: #1a2d4a;
  --accent-text: #0f1117;
  --success: #4ade80;
  --success-bg: #0f2818;
  --warning: #fbbf24;
  --warning-bg: #2a2008;
  --danger: #f87171;
  --danger-bg: #2a1010;
  --primary: #6ba4ff;
  --primary-hover: #8fbcff;
  --secondary: #c084fc;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ──────────────────────────────────────────────────────────────
 *  Accessibility — Focus states (WCAG 2.4.7)
 * ────────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 24px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────────────────────────────
 *  Layout
 * ────────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-light);
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ──────────────────────────────────────────────────────────────
 *  Header / Nav
 * ────────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
  white-space: nowrap;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--link);
  background: var(--accent-bg);
  text-decoration: none;
}

.lang-selector {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-bg);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  flex-shrink: 0;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--accent-bg);
}

.wallet-info {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-info.connected {
  display: flex;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.wallet-address,
.wallet-balance {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ──────────────────────────────────────────────────────────────
 *  Buttons
 * ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.4;
  min-height: 44px; /* WCAG 2.5.5 touch target */
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .btn-primary {
  color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--accent-bg);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--text-muted);
  text-decoration: none;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.875rem;
  min-height: 36px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ──────────────────────────────────────────────────────────────
 *  Cards
 * ────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--text-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

/* Stat card */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* ──────────────────────────────────────────────────────────────
 *  Tables
 * ────────────────────────────────────────────────────────────── */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: var(--bg-alt);
}

th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-alt);
}

.table-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-light);
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────────
 *  Forms
 * ────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 0;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
}

input[type="file"]::file-selector-button {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 12px;
}

[data-theme="dark"] input[type="file"]::file-selector-button {
  color: var(--bg);
}

/* ──────────────────────────────────────────────────────────────
 *  Badges / Tags
 * ────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--accent-bg);
  color: var(--accent);
}

/* ──────────────────────────────────────────────────────────────
 *  Alert / Notification
 * ────────────────────────────────────────────────────────────── */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.alert-info {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ──────────────────────────────────────────────────────────────
 *  Hero
 * ────────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--accent-bg) 0%,
    var(--bg) 100%
  );
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

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

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
}

/* ──────────────────────────────────────────────────────────────
 *  Mascot SVG — Animated Robot
 * ────────────────────────────────────────────────────────────── */

.mascot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 32px;
  width: 160px;
  height: 160px;
}

.mascot {
  width: 100%;
  height: 100%;
}

/* Antenna pulse */
@keyframes antenna-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.mascot-antenna-dot {
  animation: antenna-pulse 2s ease-in-out infinite;
  transform-origin: center;
}

/* Eye blink */
@keyframes eye-blink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

.mascot-eye {
  animation: eye-blink 4s ease-in-out infinite;
  transform-origin: center;
}

.mascot-eye-right {
  animation-delay: 0.1s;
}

/* Body float */
@keyframes body-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.mascot-body-group {
  animation: body-float 3s ease-in-out infinite;
}

/* Arm wave */
@keyframes arm-wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

.mascot-arm {
  animation: arm-wave 2.5s ease-in-out infinite;
  transform-origin: top center;
}

/* Shadow pulse */
@keyframes shadow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.15;
  }
}

.mascot-shadow {
  animation: shadow-pulse 3s ease-in-out infinite;
  transform-origin: center;
}

/* ──────────────────────────────────────────────────────────────
 *  Problem / Solution grid
 * ────────────────────────────────────────────────────────────── */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ──────────────────────────────────────────────────────────────
 *  How It Works — Steps
 * ────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

[data-theme="dark"] .step::before {
  color: var(--bg);
}

/* ──────────────────────────────────────────────────────────────
 *  Reward Table
 * ────────────────────────────────────────────────────────────── */

.reward-table th {
  text-align: center;
}

.reward-table td {
  text-align: center;
}

.reward-amount {
  font-weight: 700;
  color: var(--success);
  font-size: 1.1rem;
}

/* ──────────────────────────────────────────────────────────────
 *  Tech Stack
 * ────────────────────────────────────────────────────────────── */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tech-item small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.8rem;
}

/* ──────────────────────────────────────────────────────────────
 *  Roadmap
 * ────────────────────────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
}

.timeline-phase {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ──────────────────────────────────────────────────────────────
 *  Footer
 * ────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--link);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────
 *  Theme toggle
 * ────────────────────────────────────────────────────────────── */

.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

/* ──────────────────────────────────────────────────────────────
 *  Language selector
 * ────────────────────────────────────────────────────────────── */

.lang-select {
  padding: 5px 6px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  width: 78px;
  min-width: 0;
}
.lang-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.lang-select:hover { border-color: var(--primary); }

/* legacy buttons kept for buscar.html */
.lang-selector { display: flex; gap: 4px; }
.lang-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition); font-family: inherit;
}
.lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ──────────────────────────────────────────────────────────────
 *  Wallet connection
 * ────────────────────────────────────────────────────────────── */

.wallet-info {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.wallet-info.connected {
  display: flex;
}

.wallet-address {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wallet-balance {
  font-weight: 700;
  color: var(--success);
}

/* ──────────────────────────────────────────────────────────────
 *  Dashboard specific
 * ────────────────────────────────────────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.map-placeholder {
  width: 100%;
  height: 320px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.map-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

/* Event log */
.event-log {
  max-height: 300px;
  overflow-y: auto;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
}

.event-entry {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.event-entry .event-time {
  color: var(--text-light);
  font-size: 0.8rem;
}

.event-entry .event-type {
  font-weight: 700;
  color: var(--accent);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Connection status */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.connected {
  background: var(--success);
}

.status-dot.disconnected {
  background: var(--danger);
}

.status-dot.connecting {
  background: var(--warning);
  animation: antenna-pulse 1s ease-in-out infinite;
}

/* Code block */
code {
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}

pre {
  background: var(--bg-code);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  border: 1px solid var(--border);
}

pre code {
  background: none;
  padding: 0;
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-1 { gap: 8px; }
.wrap { flex-wrap: wrap; }