[v-cloak] { display: none !important; }

/* ── Base ── */
body {
  background: #07070c;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(17,143,128,.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(17,143,128,.04), transparent);
  background-attachment: fixed;
}

/* ── Transitions ── */
.fade-enter-active, .fade-leave-active { transition: all .2s cubic-bezier(.4,0,.2,1); }
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateY(-4px) scale(.98); }
.slide-enter-active, .slide-leave-active { transition: all .25s cubic-bezier(.4,0,.2,1); }
.slide-enter-from { opacity: 0; transform: translateX(-8px); }
.slide-leave-to { opacity: 0; transform: translateX(8px); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.15); }

/* ── Focus ring ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(17,143,128,.35);
  border-color: rgba(17,143,128,.5) !important;
}

/* ── Stat card ── */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #118F80, transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  border-color: rgba(17,143,128,.2);
  box-shadow: 0 8px 32px -8px rgba(17,143,128,.15), 0 0 0 1px rgba(17,143,128,.08);
  transform: translateY(-1px);
}
.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17,143,128,.1);
  color: #118F80;
  flex-shrink: 0;
  transition: all .3s;
}
.stat-card:hover .stat-icon {
  background: rgba(17,143,128,.18);
  transform: scale(1.05);
}

/* ── Animated number ── */
.stat-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── Sidebar ── */
.sidebar {
  background: rgba(14,14,22,.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.sidebar .nav-item {
  position: relative;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}
.sidebar .nav-item.active {
  background: rgba(17,143,128,.1);
}
.sidebar .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  border-radius: 0 3px 3px 0;
  background: #118F80;
}

/* ── Glass panel ── */
.glass-panel {
  background: rgba(17,17,26,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.06);
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.glass-panel:hover {
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 4px 24px -4px rgba(0,0,0,.4);
}

/* ── Table row ── */
.table-row {
  transition: background .15s;
}
.table-row:hover {
  background: rgba(17,143,128,.03);
}

/* ── Badge ── */
.badge-pulse {
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17,143,128,.3); }
  50% { box-shadow: 0 0 0 4px rgba(17,143,128,0); }
}

/* ── Copy button ── */
.copy-btn {
  opacity: 0;
  transition: opacity .15s;
}
tr:hover .copy-btn,
.key-cell:hover .copy-btn { opacity: 1; }

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Chart container ── */
.chart-container {
  position: relative;
}
.chart-container::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,143,128,.2), transparent);
}

/* ── Modal overlay ── */
.modal-overlay {
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Live dot ── */
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #118F80;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(17,143,128,.4); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(17,143,128,0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { width: 56px !important; }
  .sidebar .nav-label, .sidebar .brand-text, .sidebar .logout-text { display: none; }
  .sidebar .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
  main.content-area { margin-left: 56px !important; }
}
