/*
 * Micro - AI Agent Stack Dashboard Styles
 * High-quality modular dashboard interface for prediction markets
 */

/* Font Variables - Match main page */
:root {
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* Global glow effects for dashboard */
body {
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.12);
}

/* Dashboard-specific glow effects */
.sidebar-brand, .user-name, .section-title {
  text-shadow: 
    0 0 10px rgba(0, 212, 255, 0.2),
    0 0 18px rgba(0, 212, 255, 0.1);
}

.nav-text, .breadcrumb-item, .prediction-question p {
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.15);
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg-primary);
}

/* Dashboard Navigation Header */
.dashboard-nav-header {
  background: linear-gradient(180deg, rgba(8, 12, 25, 0.9) 0%, rgba(8, 12, 25, 0.8) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 12px 24px;
  backdrop-filter: blur(10px);
}

.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.dashboard-nav .nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.dashboard-nav .nav-link:hover {
  color: var(--color-text-primary);
  background: rgba(59, 130, 246, 0.1);
}

.dashboard-nav .nav-link.active {
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.15);
}

.dashboard-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-user-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-icon {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-text-secondary);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* Enhanced Sidebar */
.dashboard-sidebar {
  width: 220px;
  background: linear-gradient(180deg, rgba(8, 12, 25, 0.98) 0%, rgba(15, 20, 35, 0.95) 100%);
  border-right: 1px solid var(--color-border-glow);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(15px);
  box-shadow: 
    4px 0 20px var(--color-shadow),
    0 0 20px var(--color-glow-soft);
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.sidebar-logo:hover,
.sidebar-logo:focus,
.sidebar-logo:active,
.sidebar-logo:visited {
  text-decoration: none;
  color: inherit;
}

.sidebar-logo:hover .logo-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px var(--color-glow-medium));
}

.sidebar-logo:hover .micro-logo-image {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(0, 136, 254, 0.5));
}

.sidebar-logo:hover .sidebar-brand {
  color: var(--color-accent-bright);
}

.sidebar-logo .logo-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent-glow);
  filter: drop-shadow(0 0 6px var(--color-glow-soft));
}

.sidebar-logo .micro-logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-right: -10px;
  filter: drop-shadow(0 0 6px rgba(0, 136, 254, 0.4));
  transition: all 0.3s ease;
}

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 
    1px 1px 0px rgba(0, 0, 0, 0.8),
    0 0 10px var(--color-glow-medium);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-user:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-glow);
}

.disconnect-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  margin-left: 8px;
}

.disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  opacity: 1;
  transform: translateY(-1px);
}

.disconnect-btn.hidden {
  display: none;
}

.user-avatar {
  position: relative;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-glow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

/* Wallet-specific avatar styling */
.avatar-circle.wallet-phantom {
  background: linear-gradient(135deg, #ab9ff2 0%, #9945ff 100%);
  box-shadow: 0 2px 8px rgba(153, 69, 255, 0.3);
}

.avatar-circle.wallet-solflare {
  background: linear-gradient(135deg, #fc8c03 0%, #ff6b35 100%);
  box-shadow: 0 2px 8px rgba(252, 140, 3, 0.3);
}

.avatar-circle.wallet-metamask {
  background: linear-gradient(135deg, #f6851b 0%, #e2761b 100%);
  box-shadow: 0 2px 8px rgba(246, 133, 27, 0.3);
}

/* Wallet logo styling in avatar */
.wallet-avatar-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Enhanced styling when showing wallet logos */
.avatar-circle.wallet-phantom.has-logo {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(153, 69, 255, 0.4);
}

.avatar-circle.wallet-solflare.has-logo {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(252, 140, 3, 0.4);
}

.avatar-circle.wallet-metamask.has-logo {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(246, 133, 27, 0.4);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.user-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  position: relative;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.user-name:hover {
  color: var(--color-accent-glow);
  text-shadow: 0 0 8px rgba(0, 136, 254, 0.3);
}

/* Tooltip for full public key */
.user-name[data-full-key]:hover::after {
  content: attr(data-full-key);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 25, 0.95);
  color: var(--color-text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  border: 1px solid rgba(0, 136, 254, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  animation: tooltip-fade-in 0.2s ease;
}

@keyframes tooltip-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(5px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.user-status {
  font-size: 0.7rem;
  color: var(--color-accent-glow);
  font-weight: 500;
}

/* Enhanced Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 1.5rem;
}

.nav-section-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem 0.5rem;
  margin-bottom: 0.4rem;
}

.section-icon {
  color: var(--color-accent-glow);
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    transform: translateX(3px);
}

.nav-item:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-glow) 100%);
  color: white;
  box-shadow: 0 2px 8px var(--color-shadow-glow);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-accent-bright);
    border-radius: 0 2px 2px 0;
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: white;
}

.nav-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-badge {
  background: var(--color-accent-glow);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Enhanced Main Content */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-bg-primary);
  margin-left: 220px;
}

.main-header {
  background: linear-gradient(135deg, rgba(8, 12, 25, 0.95) 0%, rgba(15, 20, 35, 0.9) 100%);
  border-bottom: 1px solid var(--color-border-glow);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  min-height: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 200px;
  }
  
  .dashboard-main {
    margin-left: 200px;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
    max-height: 180px;
    overflow-y: auto;
  }
  
  .sidebar-logo .micro-logo-image {
    width: 24px;
    height: 24px;
    z-index: 50;
  }
  
  .dashboard-main {
    margin-left: 0;
  }
  
  .sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 1rem;
  }
  
  .nav-section {
    margin-bottom: 0;
    min-width: max-content;
  }
  
  .nav-section-header {
    margin-bottom: 0.25rem;
  }
  
  .nav-list {
    display: flex;
    gap: 0.5rem;
  }
  
  .nav-item {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .header-top {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 45px;
  }
  
  .header-controls {
    gap: 0.25rem;
  }
  
  .header-btn {
    width: 32px;
    height: 32px;
  }
  
  .page-header {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .page-actions {
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
  }
  
  .action-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .page-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .dashboard-content {
    padding: 1rem;
    max-height: calc(100vh - 220px);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-item {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.breadcrumb-item.current {
  color: var(--color-text-primary);
  font-weight: 600;
}

.breadcrumb-separator {
  color: var(--color-text-muted);
}

/* Header Controls - Clean Styling */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.header-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg-primary);
  font-family: var(--font-mono);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  text-align: center;
}

.page-header {
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  min-height: 120px;
}

.page-title-section {
  flex: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
  text-shadow: 
    1px 1px 0px rgba(0, 0, 0, 0.5),
    0 0 15px var(--color-glow-medium);
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-weight: 400;
}

.page-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.template-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent-glow);
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--color-border);
  opacity: 0.6;
}

/* Page Actions - Clean Action Buttons */
.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.action-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--color-text-secondary);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  text-align: center;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
  border-color: var(--color-accent-bright);
  color: white;
  font-weight: 600;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, var(--color-accent-glow), var(--color-accent-bright));
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 212, 255, 0.3),
    0 0 30px rgba(0, 212, 255, 0.2);
}

/* Enhanced Content Grid */
.dashboard-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

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

/* Prediction Market Cards with Flip Animation */
.prediction-card {
  perspective: 1000px;
  max-width: 350px;
  height: 450px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.prediction-card:hover {
  transform: scale(1.02);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.prediction-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(8, 12, 25, 0.9) 100%);
  border: 1px solid var(--color-border-glow);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px var(--color-shadow),
    inset 0 1px 0 rgba(59, 130, 246, 0.05);
  display: flex;
  flex-direction: column;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.9) 0%, rgba(15, 20, 35, 0.95) 100%);
  border-color: var(--color-accent-glow);
}

.prediction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.prediction-card:hover::before {
  opacity: 1;
}

.prediction-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.9) 0%, rgba(15, 20, 35, 0.95) 100%);
  box-shadow: 
    0 8px 30px var(--color-shadow),
    0 0 25px var(--color-glow-soft),
    inset 0 1px 0 rgba(59, 130, 246, 0.1);
  border-color: var(--color-accent-glow);
}

.prediction-card.featured {
  border-color: var(--color-accent-bright);
  box-shadow: 
    0 4px 20px var(--color-shadow),
    0 0 20px var(--color-glow-medium),
    inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.prediction-card.featured::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 50%, transparent 100%);
  opacity: 1;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.token-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.token-details {
  display: flex;
  flex-direction: column;
}

.token-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.05em;
}

.token-symbol {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prediction-question {
  padding: 0.75rem 1rem 0;
}

.prediction-question p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin: 0;
}

.prediction-odds {
  padding: 0.75rem 1rem;
}

.odds-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.odds-button {
  padding: 0.75rem;
  border-radius: 10px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  overflow: hidden;
}

.odds-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.yes-button {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.3);
}

.yes-button::before {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.yes-button:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: #14b8a6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.yes-button:hover::before {
  opacity: 0.2;
}

.no-button {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.no-button::before {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.no-button:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.no-button:hover::before {
  opacity: 0.2;
}

.odds-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

.yes-button .odds-label {
  color: #14b8a6;
}

.no-button .odds-label {
  color: #ef4444;
}

.odds-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

.market-stats {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.sentiment-positive {
  color: #14b8a6 !important;
}

.sentiment-very-positive {
  color: #10b981 !important;
}

.sentiment-neutral {
  color: #f59e0b !important;
}

.sentiment-negative {
  color: #ef4444 !important;
}

.activity-high {
  color: #14b8a6 !important;
}

.activity-medium {
  color: #f59e0b !important;
}

.activity-live {
  color: #8b5cf6 !important;
}

/* Badge Styles */
.hot-badge {
  background: linear-gradient(135deg, #00d4ff, #4ecdc4);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.trending-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.native-badge {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.ai-confidence {
  background: var(--color-glow-soft);
  color: var(--color-accent-bright);
  border: 1px solid var(--color-border-glow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.live-badge {
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.6);
  }
}

/* Premium Template Cards */
.template-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(8, 12, 25, 0.9) 100%);
  border: 1px solid var(--color-border-glow);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px var(--color-shadow),
    inset 0 1px 0 rgba(59, 130, 246, 0.05);
  position: relative;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.template-card:hover::before {
  opacity: 1;
}

.template-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.9) 0%, rgba(15, 20, 35, 0.95) 100%);
  box-shadow: 
    0 12px 40px var(--color-shadow),
    0 0 30px var(--color-glow-soft),
    inset 0 1px 0 rgba(59, 130, 246, 0.1);
  border-color: var(--color-accent-glow);
}

.template-card.featured {
  border-color: var(--color-accent-bright);
  box-shadow: 
    0 4px 20px var(--color-shadow),
    0 0 20px var(--color-glow-medium),
    inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.template-card.featured::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 50%, transparent 100%);
  opacity: 1;
}

.card-header {
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.template-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-glow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px var(--color-shadow-glow);
}

.card-badges {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.featured-badge {
  background: linear-gradient(135deg, var(--color-accent-bright) 0%, var(--color-accent-glow) 100%);
  color: white;
  box-shadow: 0 2px 8px var(--color-shadow-glow);
}

.category-badge {
  background: var(--color-glow-soft);
  color: var(--color-accent-bright);
  border: 1px solid var(--color-border-glow);
}

.meme-badge {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.defi-badge {
  background: linear-gradient(135deg, #26a69a, #00695c);
  color: white;
  box-shadow: 0 2px 8px rgba(38, 166, 154, 0.4);
}

.dex-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.oracle-badge {
  background: linear-gradient(135deg, #ff9500, #ff6b35);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
}

.card-content {
  padding: 1.5rem;
}

.template-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.template-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.meta-value {
  font-size: 0.875rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.stars {
  color: #fbbf24;
  font-size: 0.875rem;
}

.rating-value {
  font-size: 0.875rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

.card-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.btn-view, .btn-use {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view {
  background: rgba(30, 64, 175, 0.1);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
  box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.05);
}

.btn-view:hover {
  background: var(--color-bg-secondary);
  color: var(--color-accent-glow);
  border-color: var(--color-accent);
  box-shadow: 
    0 2px 8px var(--color-shadow),
    0 0 10px var(--color-glow-soft);
  transform: translateY(-1px);
}

.btn-use {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-glow) 100%);
  color: white;
  border-color: var(--color-accent-bright);
  box-shadow: 
    0 2px 8px var(--color-shadow-glow),
    0 0 10px var(--color-glow-soft);
}

.btn-use:hover {
  background: linear-gradient(135deg, var(--color-accent-glow) 0%, var(--color-accent-bright) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px var(--color-shadow-glow),
    0 0 20px var(--color-glow-medium);
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex !important;
}

/* Bet option styling for yes/no */
.bet-option.yes-option {
  background: linear-gradient(135deg, #14F195, #00D4FF);
}

.bet-option.no-option {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.95) 0%, rgba(8, 12, 25, 0.98) 100%);
  border: 1px solid var(--color-border-glow);
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px var(--color-glow-soft);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    transform: translateY(30px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.modal-content {
  padding: 1.5rem;
}

.token-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.token-icon-large {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.token-info-large h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem 0;
}

.token-info-large p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.bet-selection {
  margin-bottom: 1.5rem;
}

.bet-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.bet-option.yes-option {
  border-color: rgba(20, 184, 166, 0.3);
  background: rgba(20, 184, 166, 0.1);
}

.bet-option.no-option {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.bet-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bet-option.yes-option .bet-label {
  color: #14b8a6;
}

.bet-option.no-option .bet-label {
  color: #ef4444;
}

.bet-odds {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.bet-amount {
  margin-bottom: 1.5rem;
}

.bet-amount label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#bet-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#bet-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.potential-payout {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-tertiary);
  border-radius: 8px;
  text-align: center;
}

.potential-payout span {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.potential-payout strong {
  color: var(--color-accent-glow);
  font-family: var(--font-mono);
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-cancel, .btn-confirm {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 100px;
}

.btn-cancel {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-cancel:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-confirm:hover {
  background: linear-gradient(135deg, var(--color-accent-glow), var(--color-accent-bright));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success Modal Styles */
.success-modal {
  animation: successModalSlideIn 0.4s ease-out;
}

@keyframes successModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-container {
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-primary));
  border: 2px solid #14F195;
  box-shadow: 0 25px 50px rgba(20, 241, 149, 0.15);
}

.success-header {
  background: linear-gradient(135deg, #14F195, #00D4FF);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.success-icon {
  margin: 0 auto 1rem;
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.success-header .modal-title {
  color: white;
  font-size: 1.8rem;
  margin: 0;
}

.success-header .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-header .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.success-content {
  padding: 2rem 1.5rem;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.success-summary {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.success-summary h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem 0;
}

.success-summary p {
  color: var(--color-text-secondary);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.bet-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.choice-label {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.choice-value {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #14F195, #00D4FF);
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.success-stats {
  background: var(--color-bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.success-stats .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.success-stats .stat-row:last-child {
  border-bottom: none;
}

.success-stats .stat-label {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.success-stats .stat-value {
  color: var(--color-text-primary);
  font-weight: 600;
}

.success-payout {
  color: #14F195 !important;
  font-size: 1.1rem;
  font-weight: 700;
}

.tx-id {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.success-footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.success-note {
  color: var(--color-text-primary);
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.auto-close-timer {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#timer-countdown {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* Hot Tokens Section Styles */
.trending-tokens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.trending-token-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(8, 12, 25, 0.9) 100%);
  border: 1px solid var(--color-border-glow);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px var(--color-shadow),
    inset 0 1px 0 rgba(59, 130, 246, 0.05);
}

.trending-token-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-glow);
  box-shadow: 
    0 8px 30px var(--color-shadow),
    0 0 25px var(--color-glow-soft);
}

.token-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.token-basic-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.token-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.token-name-symbol h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem 0;
}

.token-name-symbol span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.price-change {
  text-align: right;
}

.current-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.price-change-percent {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.price-change-percent.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.price-change-percent.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.token-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
  background: var(--color-bg-secondary);
  border-radius: 8px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Refresh Section */
.refresh-section {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: var(--color-accent-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.refresh-btn svg {
  animation: none;
}

.refresh-btn:active svg {
  animation: spin 0.5s ease-in-out;
}

.last-updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Real Data Indicators */
.real-data-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--color-accent-glow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent-glow);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.price-info {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.data-warning {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  text-align: center;
}

/* Enhanced Token Stats Grid */
.token-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 1s ease-in-out infinite;
}

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

.section-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--color-text-secondary);
}

.section-loading .loading-spinner {
  margin-bottom: 1rem;
}

/* AI Summary Card Back Styling */
.ai-summary {
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.ai-brain-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.ai-brain-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ai-summary-title {
  flex: 1;
}

.ai-summary-title h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem 0;
}

.ai-summary-title span {
  font-size: 0.8rem;
  color: var(--color-accent-glow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-score {
  text-align: right;
}

.confidence-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-bright);
  line-height: 1;
}

.confidence-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analysis-section {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.875rem;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.analysis-section h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.analysis-section h4::before {
  content: "🤖";
  font-size: 0.8rem;
}

.analysis-text {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.key-factors {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  overflow-y: auto;
}

.factor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.factor-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.factor-icon.positive {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.factor-icon.negative {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.factor-icon.neutral {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.factor-text {
  flex: 1;
  color: var(--color-text-secondary);
}

.flip-hint {
  text-align: center;
  padding: 0.5rem;
  background: var(--color-bg-tertiary);
  border-radius: 6px;
  margin-top: auto;
  flex-shrink: 0;
}

.flip-hint span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.flip-hint .flip-icon {
  display: inline-block;
  margin-left: 0.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--color-border-glow);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* =============================================
   PUMP.FUN FEED STYLES
   ============================================= */

.pump-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.pump-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-text-primary);
}

.filter-btn.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  color: var(--color-success);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

.feed-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-success);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

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

.token-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.token-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.token-card:hover::before {
  opacity: 1;
}

.token-card.graduated::before {
  background: linear-gradient(90deg, var(--color-success), var(--color-warning));
}

.token-card.bonding::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.token-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.token-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.token-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-info {
  flex: 1;
  min-width: 0;
}

.token-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.token-symbol {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
  font-family: var(--font-mono);
}

.token-status {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.token-status.graduated {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.token-status.bonding {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.token-description {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.token-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.metric-value.positive {
  color: var(--color-success);
}

.metric-value.negative {
  color: var(--color-error);
}

.token-progress {
  margin-bottom: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.holders-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.token-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.token-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.creator {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.created-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.token-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.view-btn {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
  border-color: rgba(59, 130, 246, 0.2);
}

.view-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.trade-btn {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  border-color: rgba(34, 197, 94, 0.2);
}

.trade-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

.feed-footer {
  margin-top: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.api-notice {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.api-notice a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.api-notice a:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .pump-tokens-grid {
    grid-template-columns: 1fr;
  }
  
  .pump-feed-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .feed-controls {
    justify-content: center;
  }
  
  .token-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .token-actions {
    justify-content: center;
  }
  
  .action-btn {
    flex: 1;
    text-align: center;
    max-width: 200px;
  }
}