:root {
  --panel: rgba(18, 21, 28, .85);
  --panel2: rgba(26, 30, 40, .88);
  --stroke: rgba(255,255,255,.12);
}

#bgGlow {
  background:
    radial-gradient(1400px 900px at 25% 15%, rgba(59, 130, 246, .18), transparent 55%),
    radial-gradient(1100px 800px at 75% 8%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 700px at 50% 85%, rgba(239, 68, 68, .14), transparent 58%),
    radial-gradient(800px 600px at 10% 50%, rgba(16, 185, 129, .08), transparent 65%),
    linear-gradient(180deg, #0a0c10, #0d0f15);
  animation: bgPulse 20s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { opacity: 1; }
  50% { opacity: 0.92; }
  100% { opacity: 1; }
}

#noise {
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

.panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(18, 21, 28, .88) 0%, rgba(22, 26, 35, .85) 100%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 
    0 0 0 1px rgba(255,255,255,.06),
    0 4px 24px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  transition: left .6s ease;
}
.panel:hover::before {
  left: 100%;
}
.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, .25);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, .15),
    0 8px 32px rgba(59, 130, 246, .15),
    0 12px 48px rgba(139, 92, 246, .1),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.widget {
  border-radius: 1.6rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(18, 21, 28, .92) 0%, rgba(22, 26, 35, .88) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 0 0 1px rgba(255,255,255,.06),
    0 8px 32px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255,255,255,.1);
  overflow: hidden;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.widget::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.widget:hover::after {
  opacity: 1;
}
.widget:hover {
  border-color: rgba(59, 130, 246, .35);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, .2),
    0 12px 48px rgba(59, 130, 246, .2),
    0 16px 64px rgba(139, 92, 246, .15),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.widgetHead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, rgba(26, 30, 40, .95), rgba(30, 35, 48, .9));
  backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
}

.widgetBody.collapsed {
  display: none;
}

.widgetDrag {
  width: 30px;
  height: 30px;
  border-radius: .9rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.70);
  cursor: grab;
}
.widgetDrag:active { cursor: grabbing; }
.widgetDrag:hover { background: rgba(255,255,255,.07); }

.input {
  border-radius: 1.0rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  padding: 10px 14px;
  color: rgba(255,255,255,.95);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.input::placeholder {
  color: rgba(255,255,255,.4);
}
.input:focus {
  border-color: rgba(59, 130, 246, .5);
  background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(139, 92, 246, .06));
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, .15),
    inset 0 1px 2px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

.btn {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 1.0rem;
  border: 1px solid rgba(59, 130, 246, .25);
  background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(139, 92, 246, .18));
  padding: 10px 16px;
  color: rgba(255,255,255,.95);
  font-weight: 600;
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, .1),
    0 4px 12px rgba(59, 130, 246, .15),
    inset 0 1px 0 rgba(255,255,255,.1);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, .35), rgba(139, 92, 246, .35));
  border-color: rgba(59, 130, 246, .4);
  transform: translateY(-2px);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, .2),
    0 8px 24px rgba(59, 130, 246, .3),
    0 12px 32px rgba(139, 92, 246, .2),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.btn:active { transform: translateY(0) scale(.97); }

.btnGhost {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: 1.0rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  padding: 10px 14px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btnGhost:hover { 
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 8px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.btnTiny {
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  transition: background-color .15s ease;
}
.btnTiny:hover { background: rgba(255,255,255,.07); }

.iconBtn {
  width: 36px;
  height: 36px;
  border-radius: 1.0rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.iconBtn:hover { 
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(139, 92, 246, .12));
  border-color: rgba(59, 130, 246, .3);
  color: rgba(255,255,255,1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, .25);
}

.badge {
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, .25);
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(139, 92, 246, .15));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,.95);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, .1),
    0 2px 8px rgba(59, 130, 246, .15);
  text-transform: uppercase;
}

.navItem {
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 1.0rem;
  border: 1px solid transparent;
  color: rgba(255,255,255,.78);
  text-decoration:none;
  background: transparent;
  font-weight: 500;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.navItem::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  transform: scaleY(0);
  transition: transform .3s ease;
  border-radius: 0 4px 4px 0;
}
.navItem:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.12);
  transform: translateX(4px);
  color: rgba(255,255,255,.95);
}
.navItem.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(139, 92, 246, .12));
  border-color: rgba(59, 130, 246, .35);
  color: rgba(255,255,255,1);
  box-shadow: 
    0 0 0 1px rgba(59, 130, 246, .15),
    0 4px 16px rgba(59, 130, 246, .2);
  transform: translateX(4px);
}
.navItem.active::before {
  transform: scaleY(1);
}

.kbd {
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  box-shadow: 
    0 1px 0 rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.statCard, .miniStat {
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: 14px;
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 8px rgba(0,0,0,.2);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.statCard::before, .miniStat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ef4444);
  opacity: 0;
  transition: opacity .3s ease;
}
.statCard:hover, .miniStat:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, .3);
  background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(139, 92, 246, .06));
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,.12),
    0 8px 24px rgba(59, 130, 246, .2),
    0 12px 32px rgba(139, 92, 246, .15);
}
.statCard:hover::before, .miniStat:hover::before {
  opacity: 1;
}

.quickBtn {
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 1.0rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  color: rgba(255,255,255,.9);
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.quickBtn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(139, 92, 246, .12));
  border-color: rgba(59, 130, 246, .3);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, .2),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.toggle {
  width: 44px;
  height: 24px;
  appearance: none;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.3);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle:checked { 
  background: linear-gradient(135deg, rgba(59, 130, 246, .4), rgba(139, 92, 246, .35));
  border-color: rgba(59, 130, 246, .5);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,.2),
    0 0 12px rgba(59, 130, 246, .3);
}
.toggle::after {
  content:"";
  position:absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transform: translateY(-50%);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle:checked::after { 
  left: 22px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.95));
}

.suggestBtn{
  width:100%;
  text-align:left;
  padding: 11px 14px;
  border-radius: 1.0rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  color: rgba(255,255,255,.9);
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.suggestBtn:hover{ 
  background: linear-gradient(135deg, rgba(59, 130, 246, .12), rgba(139, 92, 246, .1));
  border-color: rgba(59, 130, 246, .25);
  transform: translateX(4px);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, .15),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.shadow-glow {
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .2),
    0 0 32px rgba(59, 130, 246, .25),
    0 0 64px rgba(139, 92, 246, .2),
    0 0 96px rgba(59, 130, 246, .1);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(59, 130, 246, .2),
      0 0 32px rgba(59, 130, 246, .25),
      0 0 64px rgba(139, 92, 246, .2),
      0 0 96px rgba(59, 130, 246, .1);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(139, 92, 246, .2),
      0 0 40px rgba(139, 92, 246, .3),
      0 0 80px rgba(59, 130, 246, .25),
      0 0 120px rgba(139, 92, 246, .15);
  }
}

.pill{
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  color: rgba(255,255,255,.85);
  font-weight: 600;
  box-shadow: 
    0 0 0 1px rgba(255,255,255,.05),
    0 2px 6px rgba(0,0,0,.2);
}

.chartWrap{
  height: 170px;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, rgba(59, 130, 246, .04), rgba(139, 92, 246, .03));
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
  position: relative;
}
.chartWrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}

/* Compact mode */
body.compact .widgetHead { padding: 10px 12px; }
body.compact .btn, body.compact .btnGhost { padding: 8px 10px; }
body.compact .chartWrap { height: 150px; }

/* scrollbar */
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, .3), rgba(139, 92, 246, .3));
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.3);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, .5), rgba(139, 92, 246, .5));
}
::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 150%;
  }
}

/* Floating animation for special elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade out animation */
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

/* Scale in animation */
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.route {
  animation: fadeIn 0.4s ease-out;
}

/* Tooltip styling */
[title]:hover::after {
  animation: fadeIn 0.2s ease-out;
}

/* Glass reflection effect */
.glass-reflect {
  position: relative;
}
.glass-reflect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
}

/* Table row hover effects */
tbody tr {
  transition: all .2s ease;
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, .08), rgba(139, 92, 246, .06)) !important;
  transform: scale(1.01);
}

/* Status indicators with pulse */
.status-live {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Chat bubbles */
.chat-bubble-user {
  margin-left: auto;
  max-width: 85%;
  padding: 14px 16px;
  border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(139, 92, 246, .15));
  border: 1px solid rgba(59, 130, 246, .3);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, .15),
    inset 0 1px 0 rgba(255,255,255,.1);
}

.chat-bubble-assistant {
  margin-right: auto;
  max-width: 85%;
  padding: 14px 16px;
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 
    0 2px 12px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.chat-bubble-typing {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
}

.chat-bubble-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  animation: typingDot 1.4s infinite;
}

.chat-bubble-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-bubble-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* ===== PAYWALL MESSAGE ===== */
.paywall-message {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(249, 115, 22, 0.1)) !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.paywall-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
  animation: paywallShimmer 2s linear infinite;
}

@keyframes paywallShimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Remaining counter styling */
#remainingMessages.text-yellow {
  color: #fbbf24;
}

#remainingMessages.text-red {
  color: #ef4444;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== ENHANCED PAGE TRANSITIONS ===== */
.page-enter {
  animation: pageSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SIDEBAR ENHANCEMENTS ===== */
.sidebar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.95), rgba(10, 12, 16, 0.98));
}

.sidebar-logo {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ENHANCED NAVIGATION ===== */
.navItem {
  margin: 2px 0;
}

.navItem .nav-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navItem:hover .nav-icon {
  transform: scale(1.1);
}

.navItem.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

/* ===== PREMIUM CARD STYLES ===== */
.premium-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 20px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3), transparent);
}

.premium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  transition: left 0.6s ease;
}

.premium-card:hover::after {
  left: 100%;
}

.premium-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.2),
    0 16px 48px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===== STAT VALUE ANIMATIONS ===== */
.stat-value {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.stat-value.positive {
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.stat-value.negative {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ===== SPARKLINE CONTAINERS ===== */
.sparkline-container {
  position: relative;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
}

/* ===== TABLE ENHANCEMENTS ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table tbody tr {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.data-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.08));
  transform: scale(1.01);
}

/* ===== LOADING STATES ===== */
.loading-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.6);
  animation: loadingBounce 0.6s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.1s; }
.loading-dots span:nth-child(3) { animation-delay: 0.2s; }

@keyframes loadingBounce {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 21, 28, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(100px);
  opacity: 0;
  animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 9999;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(16, 185, 129, 0.1);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.2),
    inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

.toast.fadeOut {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* ===== INPUT FOCUS STATES ===== */
.input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 4px 16px rgba(59, 130, 246, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== PRICE CHANGE INDICATORS ===== */
.price-up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.price-down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ===== WIDGET DRAG HANDLE ===== */
.widget-drag-handle {
  cursor: grab;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.widget-drag-handle:hover {
  opacity: 1;
}

.widget-drag-handle:active {
  cursor: grabbing;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    height: auto;
    flex-direction: row;
    padding: 8px 16px;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }

  .navItem {
    flex-direction: column;
    padding: 8px;
    font-size: 10px;
    gap: 4px;
  }

  .navItem span:not(.nav-icon) {
    display: none;
  }

  .premium-card {
    padding: 14px;
  }

  .panel {
    padding: 14px;
    border-radius: 1rem;
  }
}

/* ===== MOBILE NAV ITEM FIXES ===== */
@media (max-width: 640px) {
  .widget {
    margin-bottom: 12px;
  }

  .chartWrap {
    height: 140px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ===== DARK MODE REFINEMENTS ===== */
::selection {
  background: rgba(59, 130, 246, 0.4);
  color: white;
}

/* ===== FOCUS VISIBLE FOR ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .panel, .widget, .premium-card {
    border-width: 2px;
  }

  .navItem.active {
    border-color: rgba(59, 130, 246, 0.8);
  }
}
