/* ═══════════════════════════════════════════════
   VIGO EQUITY TOKENS — Design System v1.0
   ═══════════════════════════════════════════════ */

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

:root {
  --navy:      #0A1628;
  --navy-mid:  #0F2040;
  --navy-lt:   #162840;
  --teal:      #0D9488;
  --teal-lt:   #2DD4BF;
  --teal-dim:  #CCFBF1;
  --gold:      #FBBF24;
  --gold-lt:   #FEF3C7;
  --white:     #FFFFFF;
  --gray:      #94A3B8;
  --gray-lt:   #E2E8F0;
  --text:      #F1F5F9;
  --text-mid:  #CBD5E1;
  --success:   #34D399;
  --danger:    #FB7185;
  --warning:   #FBBF24;

  --glass-bg:     rgba(15, 32, 64, 0.80);
  --glass-border: rgba(13, 148, 136, 0.15);
  --glass-blur:   blur(12px);
  --grid-line:    rgba(13, 148, 136, 0.04);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: 'DM Sans', sans-serif; color: var(--white); background: var(--navy); min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* Layout */
.vigo-layout { display: flex; min-height: 100vh; background: var(--navy); }
.vigo-sidebar { width: 220px; flex-shrink: 0; background: var(--navy-mid); border-right: 0.5px solid var(--glass-border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
.vigo-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; margin-left: 220px; }
.vigo-topbar { height: 56px; border-bottom: 0.5px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: var(--glass-blur); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 90; }
.vigo-content { flex: 1; overflow-y: auto; padding: 24px; }

/* Background grid */
.vigo-bg-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Sidebar internals */
.sidebar-logo { padding: 20px 18px 24px; border-bottom: 0.5px solid var(--glass-border); }
.logo-vigo { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: var(--teal-lt); letter-spacing: 0.12em; }
.logo-sub { font-size: 9px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 2px; }
.logo-chain { font-size: 8px; color: var(--gray); margin-top: 6px; opacity: 0.6; }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.vigo-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 400; color: var(--gray-lt); transition: all 0.15s ease; cursor: pointer; }
.vigo-nav-item:hover { background: rgba(13,148,136,0.08); color: var(--white); }
.vigo-nav-item.active { background: rgba(13,148,136,0.12); color: var(--teal-lt); font-weight: 500; }
.vigo-nav-item svg { opacity: 0.6; flex-shrink: 0; }
.vigo-nav-item.active svg { opacity: 1; }
.sidebar-divider { height: 1px; background: var(--glass-border); margin: 8px 12px; }

.sidebar-footer { padding: 16px 18px; border-top: 0.5px solid var(--glass-border); }
.chain-info { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gray-lt); }
.block-number { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gray); margin-top: 4px; }
.chain-label { font-size: 9px; color: var(--gray); margin-top: 2px; opacity: 0.6; }

/* Topbar internals */
.topbar-left { display: flex; align-items: center; }
.topbar-title { font-size: 13px; font-weight: 500; color: var(--gray-lt); }
.topbar-center { flex: 1; display: flex; justify-content: center; }
.vigo-search { display: flex; align-items: center; gap: 8px; background: rgba(13,148,136,0.06); border: 0.5px solid var(--glass-border); border-radius: 8px; padding: 6px 14px; width: 340px; }
.vigo-search svg { color: var(--gray); flex-shrink: 0; }
.vigo-search input { background: none; border: none; outline: none; color: var(--gray-lt); font-family: 'DM Sans', sans-serif; font-size: 12px; width: 100%; }
.vigo-search input::placeholder { color: var(--gray); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-notif { position: relative; background: none; border: none; cursor: pointer; color: var(--gray-lt); padding: 4px; }
.notif-badge { position: absolute; top: -2px; right: -4px; background: var(--danger); color: var(--white); font-size: 9px; font-weight: 600; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--white); }
.user-name { font-size: 12px; color: var(--gray-lt); }

/* Notification panel */
.notif-panel { position: fixed; top: 56px; right: 0; width: 360px; background: var(--navy-mid); border: 0.5px solid var(--glass-border); border-radius: 0 0 0 12px; z-index: 200; transform: translateX(100%); transition: transform 0.25s ease; max-height: 400px; overflow-y: auto; }
.notif-panel.open { transform: translateX(0); }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 0.5px solid var(--glass-border); }
.notif-header span:first-child { font-size: 13px; font-weight: 500; color: var(--white); }
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 0.5px solid rgba(13,148,136,0.06); }
.notif-item:hover { background: rgba(13,148,136,0.04); }
.notif-icon { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.notif-icon.blue { background: #3B82F6; }
.notif-icon.amber { background: #F59E0B; }
.notif-icon.green { background: #10B981; }
.notif-title { font-size: 12px; color: var(--white); font-weight: 500; }
.notif-meta { font-size: 10px; color: var(--gray); margin-top: 3px; }
.notif-meta .mono { font-family: 'JetBrains Mono', monospace; }

/* Cards */
.vigo-card {
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: var(--glass-blur);
  padding: 20px 24px;
}
.vigo-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.vigo-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
}
.vigo-metric.teal { color: var(--teal-lt); }
.vigo-metric-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* Tables */
.vigo-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; }
.vigo-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--glass-border);
  text-align: left;
}
.vigo-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray-lt);
  border-bottom: 0.5px solid rgba(13, 148, 136, 0.06);
}
.vigo-table tr:hover td { background: rgba(13, 148, 136, 0.04); }
.vigo-table tr { cursor: pointer; transition: background 0.15s; }
.vigo-table .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.vigo-table .positive { color: var(--success); }
.vigo-table .negative { color: var(--danger); }
.vigo-table .teal { color: var(--teal-lt); }
.vigo-table .row-alert td { border-left: 2px solid var(--warning); }

/* Badges */
.vigo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vigo-badge.active  { background: rgba(16,185,129,0.12); color: #10B981; }
.vigo-badge.alert   { background: rgba(245,158,11,0.12); color: #F59E0B; }
.vigo-badge.danger  { background: rgba(226,75,74,0.12);  color: #E24B4A; }
.vigo-badge.info    { background: rgba(13,148,136,0.12);  color: #14B8A6; }

/* Dot */
.vigo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: vigo-pulse 2s ease-in-out infinite;
}
.vigo-dot.green { background: var(--success); }
.vigo-dot.amber { background: var(--gold); }

/* Buttons */
.vigo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.vigo-btn.primary { background: var(--teal); color: var(--white); }
.vigo-btn.primary:hover { background: var(--teal-lt); }
.vigo-btn.ghost { background: transparent; color: var(--gray-lt); border: 0.5px solid var(--glass-border); }
.vigo-btn.ghost:hover { background: rgba(13,148,136,0.08); color: var(--white); }

/* Animations */
@keyframes vigo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}
@keyframes vigo-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vigo-animate { animation: vigo-fade-up 0.4s ease forwards; }
.vigo-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.vigo-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.vigo-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Utility */
.positive { color: var(--success) !important; }
.negative { color: var(--danger) !important; }
.positive-dim { opacity: 0.6; }
.mono { font-family: 'JetBrains Mono', monospace; }
.teal { color: var(--teal-lt); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(13,148,136,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,148,136,0.35); }
