/* ═══════════════════════════════════════════════════════════════════
   VitoCoin — Shared Design System
   One source of truth for all pages. Import first, then page-specific styles.
   ═══════════════════════════════════════════════════════════════════ */

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

/* ── Design tokens ── */
:root {
  /* Backgrounds */
  --bg:         #07090B;
  --bg2:        #0B1015;
  --surface:    #0F1923;
  --surface-b:  #141F2B;
  --solid:      #1A2535;
  --solid2:     #1F2D40;

  /* Brand */
  --teal:       #00E5CC;
  --teal2:      #00BFA6;
  --teal-dim:   rgba(0,229,204,.12);
  --teal-glow:  0 0 18px rgba(0,229,204,.35);

  /* Semantic */
  --green:      #1DDB82;
  --green-dim:  rgba(29,219,130,.12);
  --red:        #FF5055;
  --red-dim:    rgba(255,80,85,.12);
  --yellow:     #F59E0B;
  --yellow-dim: rgba(245,158,11,.12);
  --blue:       #3B8EEA;
  --blue-dim:   rgba(59,142,234,.12);
  --purple:     #8B5CF6;
  --orange:     #F97316;

  /* Text */
  --text:       #FFFFFF;
  --muted:      #8899A6;
  --muted2:     #4A5C66;

  /* Borders */
  --border:     rgba(255,255,255,.07);
  --border-lit: rgba(0,229,204,.22);

  /* Shape */
  --r:          10px;
  --r2:         16px;
  --r3:         24px;

  /* Typography */
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

/* ── Base ── */
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Shared topbar (for sidebar-layout pages) ── */
.vc-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 52px;
  background: rgba(7,9,11,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}
.vc-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.vc-topbar-logo svg { width: 26px; height: 26px; }
.vc-topbar-logo span { color: var(--teal); }
.vc-topbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.vc-topbar-links a {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.vc-topbar-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.vc-topbar-links a.active { color: var(--teal); background: var(--teal-dim); }
.vc-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.vc-node-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}
.vc-node-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ── Shared buttons ── */
.vc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.vc-btn:hover { opacity: .88; transform: translateY(-1px); }
.vc-btn-primary { background: var(--teal); color: #07090B; }
.vc-btn-outline { background: transparent; color: var(--teal); border: 1px solid var(--border-lit); }

/* ── Shared sidebar nav item ── */
.vc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background .15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.vc-nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.vc-nav-link.active { color: var(--teal); background: var(--teal-dim); }
.vc-nav-link .icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

/* ── Shared section header ── */
.vc-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 0 14px;
  margin: 20px 0 6px;
}

/* ── Badge ── */
.vc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.vc-badge-green { background: var(--green-dim); color: var(--green); }
.vc-badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.vc-badge-red { background: var(--red-dim); color: var(--red); }
.vc-badge-teal { background: var(--teal-dim); color: var(--teal); }
.vc-badge-blue { background: var(--blue-dim); color: var(--blue); }

/* ── Card ── */
.vc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px;
}

/* ── Toast ── */
.vc-toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.vc-toast {
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--solid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: vc-toast-in .22s ease;
  max-width: 340px;
}
.vc-toast.ok  { border-color: var(--green);  color: var(--green); }
.vc-toast.err { border-color: var(--red);    color: var(--red); }
.vc-toast.warn{ border-color: var(--yellow); color: var(--yellow); }
@keyframes vc-toast-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── Spinner ── */
.vc-spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: vc-spin .7s linear infinite;
}
@keyframes vc-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 640px) {
  .vc-topbar-links { display: none; }
}
