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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Regular.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --darkish-bg: #05070c;
  --sidebar-bg: #000000;
  --primary-color: #ffffff;
  --primary-gradient: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-white: #fff;
  --dark-bg: #111827;
  --border-color: #1f2937;
  --input-bg: #111827;
  --card-bg: #111827;
  --accent-purple: #ffffff;
  --accent-green: #10b981;
}

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

body {
  font-family: 'Kumbh Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--darkish-bg);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.5;
}

.dashboard-container {
  height: 100vh;
  overflow: hidden;
  background: var(--darkish-bg);
}

@media (max-width: 991px) {
  .dashboard-container {
    padding-right: 20px;
  }
}

.main-layout {
  display: flex;
  height: 100vh;
  gap: 0;
  width: 100%;
}

@media (max-width: 991px) {
  .main-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}

/* Navigation Sidebar */
.navigation-sidebar {
  display: flex;
  flex-direction: column;
  width: 260px;
  flex-shrink: 0;
  background: #000000;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  height: 100vh;
  padding: 24px 16px;
  overflow: hidden;
  animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-sizing: border-box;
}

/* Galaxy Background for Navigation Sidebar */
.navigation-sidebar::before,
.navigation-sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Stars layer */
.navigation-sidebar::before {
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(0.5px 0.5px at 50px 160px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(0.5px 0.5px at 130px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 200px 200px;
  animation: floatStars 80s linear infinite;
  opacity: 0.5;
}

/* Nebula layer */
.navigation-sidebar::after {
  background: radial-gradient(ellipse at top, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(75, 0, 130, 0.1) 0%, transparent 50%);
  opacity: 0.3;
  animation: pulseNebula 15s ease-in-out infinite;
}

/* Ensure content appears above the background */
.navigation-sidebar > * {
  position: relative;
  z-index: 1;
}

/* Prevent horizontal overflow in navigation */
.navigation-main {
  overflow: hidden;
  width: 100%;
}

.nav-item {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Hide scrollbars on navigation sidebar for Chrome */
.navigation-sidebar::-webkit-scrollbar {
  display: none;
}

.navigation-sidebar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Animation for floating stars */
@keyframes floatStars {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(-100px) translateX(-100px);
  }
}

/* Animation for pulsing nebula */
@keyframes pulseNebula {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@media (max-width: 991px) {
  .navigation-sidebar {
    width: 100%;
    margin-top: 32px;
    padding: 0 20px;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .brand-logo {
    white-space: initial;
  }
}

.logo-content {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: auto 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.navigation-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.primary-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

@media (max-width: 991px) {
  .nav-item {
    padding-right: 20px;
    white-space: initial;
  }
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(-100%);
  width: 3px;
  height: 70%;
  background: var(--primary-color);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
  color: #ffffff;
}

.nav-item:hover::before {
  transform: translateY(-50%) translateX(0);
}

.nav-item:hover .nav-icon,
.nav-item:hover .special-icon {
  transform: scale(1.1) rotate(5deg);
}

.nav-item.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE1FF 100%);
  color: #1b212d;
  font-weight: 600;
}

.nav-item.active .nav-icon {
  filter: brightness(0) saturate(100%);
}

.nav-item.special {
  color: #ffffff;
}

/* Don't apply active state filter to special icon */
.nav-item.special.active .special-icon {
  filter: none;
}

.nav-icon,
.special-icon {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.nav-label {
  align-self: stretch;
  margin: auto 0;
}

.social-navigation {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 991px) {
  .social-navigation {
    margin-top: 40px;
    white-space: initial;
  }
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--darkish-bg);
}

@media (max-width: 991px) {
  .main-content {
    width: 100%;
  }
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  height: 100%;
  width: 100%;
}

@media (max-width: 991px) {
  .content-wrapper {
    max-width: 100%;
    margin-top: 40px;
  }
}

.content-layout {
  display: none;
}

@media (max-width: 991px) {
  .content-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}

/* Removed unused cards-section styles */

.dashboard-section, .content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  width: 100%;
}

/* Token Explorer Wrapper */
.token-explorer-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.token-explorer-wrapper .token-explorer-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Error message styling */
.error-message {
  text-align: center;
  padding: 40px;
  color: #ef4444;
  font-size: 16px;
}

@media (max-width: 991px) {
  .dashboard-section {
    width: 100%;
  }
}

/* Dashboard Content - Remove padding for full-width backgrounds */
.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  margin: 0;
  background: #000000;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  overflow: visible;
}

@media (max-width: 991px) {
  .dashboard-header {
    max-width: 100%;
  }
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  animation: fadeIn 1s ease 0.4s both;
  position: relative;
  z-index: 10;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.notification-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Chat History Button */
.chat-history-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.chat-history-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.chat-history-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Chat History Modal - Galaxy Theme */
.chat-history-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-history-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.chat-history-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.chat-history-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.chat-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 1;
}

.chat-history-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  letter-spacing: -0.02em;
}

.chat-history-close {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-history-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.05) rotate(90deg);
}

.chat-history-close img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.chat-history-body {
  padding: 24px;
  max-height: calc(80vh - 140px);
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* New Chat Button */
.chat-history-new-btn {
  margin-bottom: 20px;
  width: 100%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.chat-history-new-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.chat-history-new-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.chat-history-new-btn:hover svg {
  transform: scale(1.1);
}

.chat-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-history-empty {
  text-align: center;
  padding: 60px 20px;
}

.chat-history-empty .empty-icon {
  width: 60px;
  height: 60px;
  opacity: 0.3;
  margin-bottom: 16px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.chat-history-empty p {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.chat-history-empty span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Chat History Item */
.chat-history-item {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chat-history-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

.chat-history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px) scale(1.01);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.chat-history-item:hover::before {
  left: 100%;
}

.chat-history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.chat-history-item-title {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.chat-history-item-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

.chat-history-item-preview {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.icon-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.icon-button:hover .header-icon {
  transform: rotate(15deg) scale(1.1);
}

.header-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 6px;
  background: var(--dark-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

@media (max-width: 991px) {
  .user-profile {
    white-space: initial;
  }
}

.profile-info {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: start;
  margin: auto 0;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.username {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  margin: 0 4px;
}

.dropdown-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Dashboard Content - DUPLICATE REMOVED 
.dashboard-content {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow: hidden;
} */

@media (max-width: 991px) {
  .dashboard-content {
    flex-direction: column;
  }
}

.content-grid {
  display: flex;
  height: 100%;
  width: 100%;
  padding: 0;
}

@media (max-width: 991px) {
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}

/* Chat Section */
.chat-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  position: relative;
}

@media (max-width: 991px) {
  .chat-section {
    width: 100%;
  }
}

.chat-interface {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000000;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* Galaxy Background for Chat */
.chat-galaxy-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.chat-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, white, transparent),
    radial-gradient(1px 1px at 50px 160px, white, transparent),
    radial-gradient(1px 1px at 130px 40px, white, transparent);
  background-size: 200px 200px;
  animation: zoom 10s infinite;
  opacity: 0.3;
}

.chat-nebula {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05), transparent 50%);
  animation: nebula-float 20s ease-in-out infinite;
  opacity: 0.3;
}

/* Galaxy background for header */
.header-galaxy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.header-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 40px 10px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 50px 40px, rgba(255, 255, 255, 0.4), transparent);
  background-size: 100px 50px;
  animation: zoom 15s infinite;
  opacity: 0.5;
}

/* Mouse Glow Effect */
.mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* Mouse Trail Particles */
.mouse-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}

.particle-star {
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: particleFade 2s ease-out forwards;
}

@keyframes particleFade {
  0% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  20% {
    opacity: 0.8;
    transform: scale(1.5) translateY(-5px);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) translateY(-30px);
  }
}

.particle-sparkle {
  width: 3px;
  height: 3px;
  background: transparent;
  position: relative;
}

.particle-sparkle::before,
.particle-sparkle::after {
  content: '';
  position: absolute;
  background: white;
}

.particle-sparkle::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.particle-sparkle::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.particle-sparkle {
  animation: sparkleFade 1.5s ease-out forwards;
}

@keyframes sparkleFade {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(360deg);
  }
}


@media (max-width: 991px) {
  .chat-interface {
    margin-top: 35px;
  }
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
  padding: 48px;
  padding-bottom: 20px;
  z-index: 2;
  overflow-y: scroll;
  overflow-x: hidden;
  min-height: 0;
  max-height: 100%;
}

/* Adjust layout when messages are present */
.chat-messages.has-messages {
  justify-content: flex-start;
  align-items: stretch;
}

/* No transition on chat-messages to avoid layout jumps */

@media (max-width: 991px) {
  .chat-background {
    max-width: 100%;
  }
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 700px; /* Keeping original for centered content */
  margin: 0 auto;
  position: relative;
  align-items: center;
}

@media (max-width: 991px) {
  .chat-suggestions {
    max-width: 90%;
    padding: 0 20px;
  }
}

.suggestions-header {
  text-align: center;
  margin-bottom: 8px;
}

.suggestions-title {
  font-size: 24px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 5px;
}

.suggestions-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(156, 163, 175, 0.6);
  letter-spacing: 0.05em;
}

.suggestions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* Initial state for suggestion items */
.chat-messages:not(.has-messages) .suggestion-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.chat-messages:not(.has-messages) .suggestion-item:nth-child(1) {
  animation-delay: 0.1s;
}

.chat-messages:not(.has-messages) .suggestion-item:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-messages:not(.has-messages) .suggestion-item:nth-child(3) {
  animation-delay: 0.3s;
}

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

.suggestions-list .suggestion-item:last-child {
  grid-column: 1 / -1;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  position: relative;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-family: 'Kumbh Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.suggestion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.suggestion-item:hover::before {
  transform: translateX(100%);
}

.suggestion-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.suggestion-item:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

.suggestion-item.trending {
  position: relative;
  background: transparent !important;
  border: none;
}

.suggestion-item.trending::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(90deg, transparent 0%, transparent 50%, #FFFFFF 70%, #FFFFFF 100%);
  border-radius: 12px;
  z-index: -1;
}

.suggestion-item.trending::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  border-radius: 11px;
  z-index: -1;
}

.suggestion-item.trending .suggestion-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.suggestion-text {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Special button styling - Complete override */
.suggestion-item.suggestion-special {
  background: #000000 !important;
  border: 1px solid transparent !important;
  border-radius: 12px;
  position: relative;
  overflow: visible;
  padding: 12px 20px;
  /* Remove any text gradient from the button itself */
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: white !important;
}

/* Completely disable the inherited ::before gradient overlay */
.suggestion-item.suggestion-special::before {
  display: none !important;
}

/* White gradient border on the right side */
.suggestion-item.suggestion-special::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.5) 80%, #FFFFFF 100%);
  border-radius: 12px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

/* Gradient text styling for the span element */
.suggestion-item.suggestion-special .gradient-text {
  background: linear-gradient(90deg, #738CE8 0%, #7FF76F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* Ensure text is above backgrounds */
.suggestion-item.suggestion-special > * {
  position: relative;
  z-index: 1;
}

/* Enhanced hover state */
.suggestion-item.suggestion-special:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(115, 140, 232, 0.2) !important;
  background: #000000 !important; /* Maintain black background on hover */
}

.suggestion-item.suggestion-special:hover::after {
  background: linear-gradient(90deg, transparent 0%, rgba(115, 140, 232, 0.3) 40%, rgba(127, 247, 111, 0.5) 70%, #FFFFFF 100%);
}

/* Active state */
.suggestion-item.suggestion-special:active {
  transform: translateY(-1px);
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: 20px 40px 30px 40px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Ensure bottom input area is always present */
.chat-interface > .chat-input-area {
  display: flex !important;
}

/* Input area inside suggestions - vertical layout */
.chat-suggestions .chat-input-area {
  position: relative;
  padding: 0 0 5px 0;
  margin: 5px 0 10px 0;
  width: 100%;
  max-width: 100%;
  transform: none;
  left: auto;
  bottom: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

/* Animate the centered input wrapper */
.chat-suggestions .message-input-wrapper {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keep input wrapper visible until it's moved */
.chat-messages.has-messages .chat-suggestions .message-input-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* Chat input area always visible at bottom */
.chat-interface > .chat-input-area {
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
}

/* Show bottom input area when messages are present */
.chat-messages.has-messages ~ .chat-input-area {
  opacity: 1;
  pointer-events: auto;
}

/* Message input wrapper styles */
.chat-interface > .chat-input-area .message-input-wrapper {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  flex-direction: row;
}

/* Only animate when first moved to bottom */
.chat-messages.has-messages ~ .chat-input-area .message-input-wrapper {
  animation: slideDownIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-200px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .chat-input-area {
    max-width: 100%;
    margin-right: 10px;
  }
}

.attachment-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.attachment-button:hover {
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

/* Bottom buttons container - removed, integrated into message input */

.deep-research-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
}

.deep-research-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.deep-research-button:active {
  transform: scale(0.98);
}

.deep-research-button.selected {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.deep-research-button.selected .research-icon {
  opacity: 1;
}

.deep-research-button.selected .research-text {
  color: rgba(255, 255, 255, 0.95);
}

.deep-research-button.loading {
  opacity: 0.7;
  pointer-events: none;
}

.deep-research-button.loading .research-icon {
  animation: spin 1s linear infinite;
}

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

.research-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
}

.research-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.02em;
}

/* AI Model Selector */
.ai-model-selector {
  position: relative;
}

.ai-model-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  height: 36px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: auto;
  width: fit-content;
}

.ai-model-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ai-model-name {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Kumbh Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dropdown-arrow {
  width: 10px;
  height: 6px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s;
}

.ai-model-button.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.ai-model-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  z-index: 100;
  min-width: 160px;
  width: max-content;
}

.ai-model-dropdown.active {
  display: flex;
}

.ai-model-option {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  position: relative;
}

.ai-model-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 1);
}

.ai-model-option.active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
}

.ai-model-option.active::before {
  content: '✓';
  position: absolute;
  left: 140px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.research-tooltip {
  background: #1a1a1a;
  border: 1px solid #363A3F;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: tooltipIn 0.2s ease;
  max-width: 300px;
}

.research-tooltip.fade-out {
  animation: tooltipOut 0.3s ease;
  opacity: 0;
}

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

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

.attachment-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.message-input-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  background: #080808;
  border: 1px solid #363A3F;
  border-radius: 12px;
  padding: 8px 12px;
  gap: 8px;
  transition: all 0.3s ease;
  min-height: 56px;
}

.input-left-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(54, 58, 63, 0.5);
  padding-right: 10px;
  margin-right: 4px;
}

.message-input-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

@media (max-width: 991px) {
  .message-input {
    max-width: 100%;
  }
}

.message-input-wrapper .text-input {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  padding: 8px 0;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  resize: none;
  line-height: 1.5;
  margin: 0;
  font-family: inherit;
  min-height: 24px;
  max-height: 120px;
  overflow: hidden;
}

/* Hide scrollbars but keep functionality */
.text-input::-webkit-scrollbar {
  display: none;
}

.text-input {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.text-input::placeholder {
  color: rgba(156, 163, 175, 0.6);
  transition: all 0.3s ease;
}

.text-input:focus::placeholder {
  color: rgba(156, 163, 175, 0.3);
  transform: translateX(5px);
}

.send-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.send-button:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.send-button:active {
  transform: scale(0.98);
}

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

.send-button:hover .send-icon {
  transform: translateX(2px);
}

.send-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Market Section styles removed - saved in market-cards-design.css */

/* Responsive Design */
/* Hide mobile elements by default on desktop */
.mobile-menu-toggle {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* Mobile Optimizations */
@media screen and (max-width: 768px) {
  .dashboard-container {
    padding: 0 !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile */
  }
  
  /* Mobile Navigation */
  .main-layout {
    position: relative;
  }
  
  .navigation-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 20px 16px;
    margin-top: 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .navigation-sidebar.mobile-open {
    left: 0;
  }
  
  /* Mobile Menu Toggle */
  .mobile-menu-toggle {
    display: flex !important;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s;
  }
  
  .mobile-menu-toggle span::before,
  .mobile-menu-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    left: 0;
    transition: all 0.3s;
  }
  
  .mobile-menu-toggle span::before {
    top: -6px;
  }
  
  .mobile-menu-toggle span::after {
    top: 6px;
  }
  
  .mobile-menu-toggle.active span {
    background: transparent;
  }
  
  .mobile-menu-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .mobile-menu-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  
  /* Mobile Overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .mobile-overlay.active {
    display: block !important;
    opacity: 1;
  }
  
  /* Adjust main content for mobile */
  .main-content {
    width: 100%;
    margin-left: 0;
    padding-top: 70px;
  }
  
  .content-wrapper {
    margin-top: 0;
    height: 100%;
  }
  
  /* Mobile Header */
  .dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-left: 70px;
    height: 70px;
    flex-wrap: nowrap;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .header-controls {
    gap: 12px;
  }
  
  .notification-icons {
    gap: 8px;
  }
  
  .icon-button {
    width: 36px;
    height: 36px;
  }
  
  .connect-wallet-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  /* Hide wallet address on mobile */
  .wallet-address {
    display: none;
  }
  
  /* Mobile Chat Interface */
  .content-grid {
    padding: 0;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
  }
  
  .chat-interface {
    margin-top: 0;
    height: 100%;
  }
  
  .chat-messages {
    padding: 20px;
    padding-bottom: 20px;
  }
  
  .chat-suggestions {
    padding: 0;
    max-width: 100%;
  }
  
  .suggestions-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .suggestions-list .suggestion-item:last-child {
    grid-column: 1;
  }
  
  .suggestion-item {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .chat-input-area {
    padding: 16px 20px 20px 20px;
    gap: 12px;
    margin-right: 0;
  }
  
  .message-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px 16px;
  }
  
  .send-button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  
  /* Mobile Performance - Reduce animations */
  .chat-stars,
  .chat-nebula {
    display: none;
  }
  
  .mouse-glow,
  .mouse-particle {
    display: none;
  }
  
  /* Navigation items for mobile */
  .nav-item {
    padding: 12px;
    font-size: 14px;
  }
  
  .nav-icon {
    width: 18px;
    height: 18px;
  }
  
  .nav-label {
    font-size: 14px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .dashboard-header {
    padding: 12px 16px;
    padding-left: 60px;
  }
  
  .page-title {
    font-size: 18px;
  }
  
  .icon-button {
    width: 32px;
    height: 32px;
  }
  
  .header-icon {
    width: 18px;
    height: 18px;
  }
  
  .connect-wallet-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .suggestion-item {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .message-input {
    font-size: 16px;
    padding: 10px 14px;
  }
  
  .send-button {
    width: 40px;
    height: 40px;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  /* Optimize for iPhone SE and similar */
  @media (max-height: 670px) {
    .dashboard-header {
      height: 60px;
      padding-top: 12px;
      padding-bottom: 12px;
    }
    
    .content-grid {
      height: calc(100vh - 60px);
      height: calc(100dvh - 60px);
    }
    
    .main-content {
      padding-top: 60px;
    }
    
    .mobile-menu-toggle {
      width: 36px;
      height: 36px;
      top: 12px;
    }
  }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .nav-item {
    min-height: 48px;
  }
  
  .icon-button {
    min-width: 44px;
    min-height: 44px;
  }
  
  .suggestion-item {
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .nav-item:hover {
    background: transparent;
  }
  
  .suggestion-item:hover {
    transform: none;
  }
  
  /* Add active states for touch feedback */
  .nav-item:active {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .suggestion-item:active {
    transform: scale(0.98);
  }
  
  .icon-button:active {
    transform: scale(0.95);
  }
}

  /* This was causing issues - removed duplicate */
}

/* Ensure these styles only apply on mobile */
@media (max-width: 991px) {
  .main-content {
    width: 100%;
    margin-left: 0;
  }

  .content-grid {
    flex-direction: column;
  }

  .chat-section {
    width: 100%;
    margin-left: 0;
  }

  .social-navigation {
    margin-top: 20px;
  }
}

/* DEX Widget Styles */
.dex-widget {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}

.dex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dex-token-info h3 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.dex-chain {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

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

.price-usd {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.dex-stats {
  margin: 20px 0;
}

.dex-stats .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dex-stats .stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
}

.dex-price-changes {
  margin: 20px 0;
}

.dex-price-changes h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.time-changes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.time-change {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 8px;
  text-align: center;
}

.time-change .period {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.time-change.positive .change {
  color: var(--accent-green);
}

.time-change.negative .change {
  color: #ef4444;
}

.dex-transactions {
  margin: 20px 0;
}

.dex-transactions h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.txn-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.txn-item {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.txn-item.buys {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.txn-item.sells {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.txn-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.txn-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.dex-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.label-tag {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.dex-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.dex-link, .copy-address {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dex-link:hover, .copy-address:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.alternative-pairs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.alternative-pairs h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.pairs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alt-pair {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 13px;
  align-items: center;
}

.pair-dex {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
}

.pair-liq {
  text-align: right;
  color: #fff;
  font-weight: 500;
}

/* Enhanced Research Widget Styles */
.found-coins-section {
  margin: 16px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.found-coins-section h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.found-coins-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.found-coin-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.found-coin-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.coin-main-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.coin-name {
  font-weight: 600;
  color: #fff;
}

.coin-symbol {
  color: var(--text-secondary);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 12px;
}

.coin-rank {
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 500;
}

.matched-query {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
}

.coin-source {
  font-size: 11px;
  color: rgba(156, 163, 175, 0.6);
  margin-top: 2px;
}

.suggestion-text {
  margin: 12px 0 0 0;
  padding: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
}

/* Agent Activity Visualization */
.agent-activity-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  width: 400px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.agent-activity-container.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.agent-activity-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.agent-activity-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: 12px;
}

.agent-activity-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.agent-activity-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.agent-activity-title h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.agent-status {
  font-size: 14px;
  color: var(--text-secondary);
}

.agent-activity-steps {
  margin-top: 16px;
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-step {
  display: flex;
  align-items: flex-start;
  opacity: 0;
  animation: fadeInLeft 0.3s ease forwards;
}

.activity-step:nth-child(1) { animation-delay: 0.1s; }
.activity-step:nth-child(2) { animation-delay: 0.2s; }
.activity-step:nth-child(3) { animation-delay: 0.3s; }
.activity-step:nth-child(4) { animation-delay: 0.4s; }

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

.step-indicator {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
}

.activity-step.active .step-indicator {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.activity-step.completed .step-indicator {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.step-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.step-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.step-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.activity-step.completed .step-content h4 {
  color: var(--text-secondary);
}

.activity-step.completed .step-content p {
  color: rgba(156, 163, 175, 0.7);
}
