/* ===== SPIDER GRAPH DEDICATED STYLES ===== */

/* Zoom controls positioned in JS */
.zoom-controls {
  display: flex;
  gap: 0.5rem;
  z-index: 30;
}

.zoom-btn {
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  background: #fff;
  color: var(--neutral-700);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.zoom-btn:hover {
  background: var(--primary-50);
  transform: translateY(-1px);
}

/* Node hover glow effect added via JS (class .hover-glow) */
.hover-glow circle,
.hover-glow rect {
  filter: url(#glow);
}

/* Spinner used while token modal loads */
.detail-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid transparent;
  border-top-color: var(--primary-500);
  border-right-color: var(--primary-400);
  border-radius: 50%;
  animation: spin 0.9s linear infinite, detailGlow 1.6s ease-in-out infinite;
}

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

@keyframes detailGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 12px rgba(59,130,246,0.35); }
}

/* Improve hit area & cursor styles for nodes */
.graph-container g.token rect { cursor: pointer; }
.graph-container g.category circle { cursor: grab; }

/* Tooltip base override for better visibility on dark backgrounds */
.tooltip {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== STATS PANEL PROFESSIONAL STYLING ===== */

/* Stats panel container */
#statsPane {
  background: linear-gradient(135deg, #ffffff 0%, var(--neutral-50) 100%);
  box-shadow: 
    0 0 0 1px var(--neutral-200),
    0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Stats panel header */
.stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, #ffffff 0%, var(--neutral-50) 100%);
  border-bottom: 1px solid var(--neutral-200);
  position: relative;
  z-index: 15;
}

.stats-panel-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-400), var(--success-400));
  opacity: 0.2;
  border-radius: 1px;
}

.stats-header-content {
  flex: 1;
}

.stats-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.stats-subtitle {
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-top: 0.125rem;
  font-weight: 500;
}

/* Collapse button */
.stats-collapse-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  color: var(--neutral-600);
}

.stats-collapse-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
  transform: scale(1.05);
}

.stats-collapse-btn:active {
  transform: scale(0.95);
}

.stats-collapse-btn svg {
  transition: transform var(--duration-normal) var(--ease-out);
}

#statsPane.collapsed .stats-collapse-btn svg {
  transform: rotate(180deg);
}

/* Stats panel body */
.stats-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Enhanced scrollbar for stats panel */
.stats-panel-body::-webkit-scrollbar {
  width: 6px;
}

.stats-panel-body::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

.stats-panel-body::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 3px;
}

.stats-panel-body::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-400);
}

/* Stats table styling */
#statsTable {
  font-family: var(--font-primary);
  color: var(--neutral-800);
  width: 100%;
}

#statsTable thead {
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, var(--neutral-50) 0%, var(--neutral-100) 100%);
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#statsTable thead th {
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--neutral-200);
  text-align: left;
  color: var(--neutral-600);
  position: relative;
}

#statsTable thead th:nth-child(2),
#statsTable thead th:nth-child(3) {
  text-align: right;
}

/* Color indicators for buy/sell columns */
#statsTable thead th:nth-child(2)::before {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0.75rem;
  left: 0.75rem;
  height: 2px;
  background: var(--primary-400);
  opacity: 0.5;
}

#statsTable thead th:nth-child(3)::before {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0.75rem;
  left: 0.75rem;
  height: 2px;
  background: var(--error-400);
  opacity: 0.5;
}

/* Category rows */
#statsTable tbody tr {
  position: relative;
  transition: all var(--duration-fast) var(--ease-out);
  border-bottom: 1px solid var(--neutral-100);
}

#statsTable tbody tr:hover {
  background: linear-gradient(90deg, var(--primary-50) 0%, rgba(59, 130, 246, 0.03) 100%);
  box-shadow: inset 3px 0 0 var(--primary-400);
}

#statsTable tbody tr td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
}

#statsTable tbody tr td:nth-child(2),
#statsTable tbody tr td:nth-child(3) {
  text-align: right;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Buy/sell number colors */
#statsTable tbody tr td:nth-child(2) {
  color: var(--primary-600);
}

#statsTable tbody tr td:nth-child(3) {
  color: var(--error-600);
}

/* Category name styling */
#statsTable tbody tr td:first-child strong {
  color: var(--neutral-900);
  font-weight: 600;
  font-size: 0.875rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hover indicator for expandable rows */
#statsTable tbody tr[style*="cursor: pointer"] td:first-child strong::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--neutral-400);
  transition: all var(--duration-fast) var(--ease-out);
}

#statsTable tbody tr[style*="cursor: pointer"]:hover td:first-child strong::before {
  border-left-color: var(--primary-500);
}

/* Expanded state indicator */
#statsTable tbody tr[style*="cursor: pointer"]:has(+ tr[style*="display: table-row"]) td:first-child strong::before {
  transform: rotate(90deg);
  border-left-color: var(--primary-600);
}

/* Token detail rows (expanded content) */
#statsTable tbody tr td[colspan="3"] {
  padding: 0;
  background: linear-gradient(135deg, var(--neutral-50) 0%, #ffffff 100%);
  border-left: 3px solid var(--primary-300);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Inner token table */
#statsTable tbody tr td[colspan="3"] table {
  margin: 0;
  background: transparent;
}

#statsTable tbody tr td[colspan="3"] table thead {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: none;
}

#statsTable tbody tr td[colspan="3"] table thead th {
  font-size: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--neutral-200);
  color: var(--neutral-500);
  font-weight: 600;
  letter-spacing: 0.05em;
}

#statsTable tbody tr td[colspan="3"] table tbody tr {
  background: transparent;
  border-bottom: 1px solid var(--neutral-100);
  box-shadow: none;
}

#statsTable tbody tr td[colspan="3"] table tbody tr:last-child {
  border-bottom: none;
}

#statsTable tbody tr td[colspan="3"] table tbody tr:hover {
  background: rgba(59, 130, 246, 0.03);
  box-shadow: none;
}

#statsTable tbody tr td[colspan="3"] table tbody td {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  border: none;
}

/* Token image and symbol */
#statsTable tbody tr td[colspan="3"] table tbody td:first-child {
  font-weight: 500;
  color: var(--neutral-700);
}

#statsTable tbody tr td[colspan="3"] table tbody td img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}

/* Numbers formatting */
#statsTable tbody tr td[colspan="3"] table tbody td:nth-child(2),
#statsTable tbody tr td[colspan="3"] table tbody td:nth-child(3) {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

#statsTable tbody tr td[colspan="3"] table tbody td:nth-child(2) {
  color: var(--primary-600);
}

#statsTable tbody tr td[colspan="3"] table tbody td:nth-child(3) {
  color: var(--error-600);
}

/* Remove old toggle button styles */
.stats-toggle {
  display: none !important;
}

/* Collapsed state for stats panel */
#statsPane.collapsed {
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
}

#statsPane.collapsed .stats-panel-body {
  display: none;
}

#statsPane.collapsed .stats-panel-header {
  padding: 0.5rem;
  border-bottom: none;
  justify-content: center;
}

#statsPane.collapsed .stats-panel-header::after {
  display: none;
}

#statsPane.collapsed .stats-header-content {
  display: none;
}

#statsPane.collapsed .stats-collapse-btn {
  margin: 0;
}

/* Original inline style for collapsed state - remove old toggle button styles */
#statsPane.collapsed {
  transition: width 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

/* Responsive adjustments */
@media (max-width: 960px) {
  #statsPane {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  
  #statsPane.collapsed {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
  }
  
  #statsPane.collapsed .stats-panel-header {
    justify-content: flex-end;
  }
  
  .stats-panel-header {
    padding: 0.875rem 1rem;
  }
  
  .stats-title {
    font-size: 0.875rem;
  }
  
  .stats-subtitle {
    font-size: 0.6875rem;
  }
  
  #statsTable thead th,
  #statsTable tbody td {
    padding: 0.625rem 0.5rem;
  }
}

/* Dark mode support */
.dark-theme #statsPane {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
  box-shadow: 
    0 0 0 1px var(--neutral-700),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.dark-theme .stats-panel-header {
  background: linear-gradient(to bottom, var(--neutral-900) 0%, var(--neutral-800) 100%);
  border-bottom-color: var(--neutral-700);
}

.dark-theme .stats-panel-header::after {
  opacity: 0.3;
}

.dark-theme .stats-title {
  color: var(--neutral-100);
}

.dark-theme .stats-subtitle {
  color: var(--neutral-400);
}

.dark-theme .stats-collapse-btn {
  background: var(--neutral-800);
  border-color: var(--neutral-700);
  color: var(--neutral-400);
}

.dark-theme .stats-collapse-btn:hover {
  background: var(--neutral-700);
  border-color: var(--primary-600);
  color: var(--primary-400);
}

.dark-theme #statsTable {
  color: var(--neutral-100);
}

.dark-theme #statsTable thead {
  background: linear-gradient(to bottom, var(--neutral-800) 0%, var(--neutral-900) 100%);
}

.dark-theme #statsTable thead th {
  color: var(--neutral-400);
  border-bottom-color: var(--neutral-700);
}

.dark-theme #statsTable tbody tr {
  border-bottom-color: var(--neutral-800);
}

.dark-theme #statsTable tbody tr:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  box-shadow: inset 3px 0 0 var(--primary-600);
}

.dark-theme #statsTable tbody tr td:first-child strong {
  color: var(--neutral-100);
}

.dark-theme #statsTable tbody tr td[colspan="3"] {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
  border-left-color: var(--primary-600);
}

.dark-theme #statsTable tbody tr td[colspan="3"] table thead {
  background: rgba(255, 255, 255, 0.02);
}

.dark-theme #statsTable tbody tr td[colspan="3"] table thead th {
  color: var(--neutral-500);
  border-bottom-color: var(--neutral-700);
}

.dark-theme #statsTable tbody tr td[colspan="3"] table tbody tr {
  border-bottom-color: var(--neutral-800);
}

.dark-theme #statsTable tbody tr td[colspan="3"] table tbody td:first-child {
  color: var(--neutral-200);
}

.dark-theme #statsTable tbody tr td[colspan="3"] table tbody td img {
  border-color: var(--neutral-700);
}

.dark-theme .stats-panel-body::-webkit-scrollbar-track {
  background: var(--neutral-800);
}

.dark-theme .stats-panel-body::-webkit-scrollbar-thumb {
  background: var(--neutral-600);
}

.dark-theme .stats-panel-body::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

/* ===== TOKEN MODAL PROFESSIONAL STYLING ===== */

/* Modal overlay with backdrop blur */
.token-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn var(--duration-normal) var(--ease-out);
}

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

/* Modal container */
.token-modal {
  background: linear-gradient(135deg, #ffffff 0%, var(--neutral-50) 100%);
  border-radius: var(--radius-2xl);
  padding: 0;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: modalSlideIn var(--duration-normal) var(--ease-out);
}

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

/* Modal header with gradient */
.token-modal-header {
  background: var(--gradient-primary);
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.token-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulse 3s ease-in-out infinite;
}

/* Close button */
.token-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 10;
}

.token-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.token-modal-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Token image container */
.token-modal-image-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}

.token-modal-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-2xl);
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  background: white;
}

/* Modal body */
.token-modal-body {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

/* Token info section */
.token-modal-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.token-modal-symbol {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.token-modal-name {
  font-size: 1rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.token-modal-description {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  text-align: left;
}

/* Contract address section */
.token-modal-contract {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neutral-700);
  word-break: break-all;
  border: 1px solid var(--neutral-200);
}

.token-modal-copy-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--neutral-700);
  white-space: nowrap;
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.token-modal-copy-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.token-modal-copy-btn.copied {
  background: var(--success-50);
  border-color: var(--success-300);
  color: var(--success-700);
}

/* Stats grid */
.token-modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.token-modal-stat {
  background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.token-modal-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--neutral-300);
}

.token-modal-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.token-modal-stat:hover::before {
  opacity: 1;
}

.token-modal-stat.buy::before {
  background: var(--gradient-success);
}

.token-modal-stat.sell::before {
  background: linear-gradient(90deg, var(--error-400), var(--error-500));
}

.token-modal-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.token-modal-stat.buy .token-modal-stat-value {
  color: var(--success-600);
}

.token-modal-stat.sell .token-modal-stat-value {
  color: var(--error-600);
}

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

/* Action button */
.token-modal-action {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.token-modal-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.token-modal-action:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.token-modal-action:hover::before {
  width: 300px;
  height: 300px;
}

.token-modal-action:active {
  transform: translateY(0);
}

/* Vector button special styling */
.token-modal-action.vector {
  background: var(--gradient-primary);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.token-modal-action.vector:hover {
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Additional enterprise enhancements */

/* Add subtle pattern to header */
.token-modal-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 15px
    );
  pointer-events: none;
}

/* Enhance modal with subtle border glow */
.token-modal {
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.token-modal::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600), var(--success-400));
  border-radius: var(--radius-2xl);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.token-modal:hover::before {
  opacity: 0.1;
}

/* Add verified badge placeholder */
.token-modal-symbol::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--success-500);
  border-radius: 50%;
  margin-left: 0.5rem;
  position: relative;
  opacity: 0.8;
}

.token-modal-symbol::after {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--success-400), var(--success-500));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Enhanced stat cards with icons */
.token-modal-stat {
  padding: 1.25rem 1rem;
}

.token-modal-stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.token-modal-stat-value::before {
  content: '';
  width: 20px;
  height: 20px;
  opacity: 0.2;
}

.token-modal-stat.buy .token-modal-stat-value::before {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%2310b981"><path d="M7 14l5-5 5 5H7z"/></svg>') center/contain no-repeat;
}

.token-modal-stat.sell .token-modal-stat-value::before {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23ef4444"><path d="M7 10l5 5 5-5H7z"/></svg>') center/contain no-repeat;
}

/* Add divider between stats */
.token-modal-stats {
  position: relative;
}

.token-modal-stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 60%;
  background: var(--neutral-200);
}

.token-modal-stats::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--neutral-200);
}

/* Enhanced contract section */
.token-modal-contract {
  position: relative;
  overflow: hidden;
}

.token-modal-contract::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Add subtle animation to modal body */
.token-modal-body > * {
  animation: modalContentFadeIn 0.4s var(--ease-out) backwards;
}

.token-modal-body > *:nth-child(1) { animation-delay: 0.1s; }
.token-modal-body > *:nth-child(2) { animation-delay: 0.15s; }
.token-modal-body > *:nth-child(3) { animation-delay: 0.2s; }
.token-modal-body > *:nth-child(4) { animation-delay: 0.25s; }
.token-modal-body > *:nth-child(5) { animation-delay: 0.3s; }

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

/* Enhanced action buttons */
.token-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.token-modal-action {
  flex: 1;
}

.token-modal-action.secondary {
  background: white;
  color: var(--neutral-700);
  border: 1px solid var(--neutral-300);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.token-modal-action.secondary:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-400);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Add loading shimmer for image */
.token-modal-image {
  position: relative;
  overflow: hidden;
}

.token-modal-image.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Enhanced responsive */
@media (max-width: 640px) {
  .token-modal {
    max-width: calc(100vw - 2rem);
  }
  
  .token-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .token-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .token-modal-image {
    width: 100px;
    height: 100px;
  }
  
  .token-modal-symbol {
    font-size: 1.5rem;
  }
  
  .token-modal-stats {
    gap: 0.75rem;
  }
  
  .token-modal-stats::before,
  .token-modal-stats::after {
    display: none;
  }
  
  .token-modal-actions {
    flex-direction: column;
  }
  
  .token-modal-symbol::after {
    width: 18px;
    height: 18px;
    font-size: 0.625rem;
  }
}

/* Enhanced dark mode */
.dark-theme .token-modal {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark-theme .token-modal-header {
  background: var(--gradient-dark);
}

.dark-theme .token-modal-header::after {
  opacity: 0.5;
}

.dark-theme .token-modal-close {
  background: rgba(255, 255, 255, 0.1);
}

.dark-theme .token-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dark-theme .token-modal-image {
  border-color: var(--neutral-800);
}

.dark-theme .token-modal-symbol {
  color: var(--neutral-100);
}

.dark-theme .token-modal-name,
.dark-theme .token-modal-description {
  color: var(--neutral-400);
}

.dark-theme .token-modal-description,
.dark-theme .token-modal-contract {
  background: var(--neutral-800);
  border-color: var(--neutral-700);
}

.dark-theme .token-modal-contract {
  color: var(--neutral-300);
}

.dark-theme .token-modal-contract::before {
  opacity: 0.7;
}

.dark-theme .token-modal-copy-btn {
  background: var(--neutral-800);
  border-color: var(--neutral-700);
  color: var(--neutral-300);
}

.dark-theme .token-modal-copy-btn:hover {
  background: var(--neutral-700);
  border-color: var(--primary-600);
  color: var(--primary-400);
}

.dark-theme .token-modal-stat {
  background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
  border-color: var(--neutral-700);
}

.dark-theme .token-modal-stat:hover {
  border-color: var(--neutral-600);
}

.dark-theme .token-modal-stat-label {
  color: var(--neutral-500);
}

.dark-theme .token-modal-stats::before,
.dark-theme .token-modal-stats::after {
  background: var(--neutral-700);
}

.dark-theme .token-modal-action.secondary {
  background: var(--neutral-800);
  border-color: var(--neutral-700);
  color: var(--neutral-300);
}

.dark-theme .token-modal-action.secondary:hover {
  background: var(--neutral-700);
  border-color: var(--neutral-600);
} 