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

body {
  background: linear-gradient(135deg, #0a1428 0%, #1e3a8a 50%, #1e40af 100%);
  color: white;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Floating Header */
.header {
  position: fixed;
  top: 10px;
  left: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 15px 20px;
  z-index: 1000;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2), 
              0 0 0 1px rgba(255, 255, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateZ(0);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateZ(0);
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  font-family: 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  letter-spacing: -0.8px;
  text-align: center;
}

/* Main Content */
.main-content {
  margin-top: 100px;
  padding: 20px;
  padding-bottom: 80px;
}

/* Section Headers */
.section-header {
  margin: 20px 0 15px 0;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.section-icon svg {
  width: 12px;
  height: 12px;
  fill: white;
}

/* Performance Section */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.stat-card:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3),
              0 0 0 1px rgba(59, 130, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
}

.stat-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.stat-accent {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Slider Card */
.slider-card {
  position: relative;
  overflow: hidden;
}

.slider-container {
  margin-top: 15px;
}

.slider {
  width: 100%;
  height: 6px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Analytics Section */
.chart-container {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 15px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  position: relative;
}

.chart-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #e2e8f0;
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 600px;
  gap: 0px;
  padding: 15px 20px 25px 60px;
  position: relative;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
  margin-top: 8px;
}



.y-axis {
  position: absolute;
  left: 2px;
  top: 15px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  height: calc(100% - 40px);
}

.y-label {
  transform: translateY(50%);
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 4px;
  border-radius: 3px;
}

.y-label:last-child {
  transform: translateY(50%);
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0px;
  flex: 1;
  position: relative;
  height: calc(100% - 25px);
  min-height: 530px;
  max-width: 120px;
}

.bar-column {
  width: 22px;
  border-radius: 4px 4px 2px 2px;
  position: absolute;
  bottom: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  min-height: 8px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom;
}

.bar-column:hover {
  transform: scale(1.08) translateZ(0);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bar-1 { 
  background: linear-gradient(180deg, #6366f1 0%, #4338ca 100%); 
  height: 75%; 
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.bar-2 { 
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%); 
  height: 78%; 
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}
.bar-3 { 
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%); 
  height: 35%; 
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}
.bar-4 { 
  background: linear-gradient(180deg, #10b981 0%, #059669 100%); 
  height: 18%; 
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.bar-5 { 
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); 
  height: 12%; 
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.bar-label {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  font-weight: 500;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.6);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  white-space: nowrap;
  width: max-content;
  min-width: 40px;
}

.bar-percentage {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95));
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  z-index: 10;
}

.bar-percentage::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(59, 130, 246, 0.95);
}

.bar-column:hover .bar-percentage {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.bar-info {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(29, 78, 216, 0.95));
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 15;
  font-size: 11px;
  color: #e2e8f0;
}

.bar-column:hover .bar-info {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* Timeframe Buttons */
.timeframe-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  justify-content: center;
}

.performance-timeframe {
  margin-bottom: 15px;
}

.timeframe-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 28px;
  justify-content: center;
}

.timeframe-btn:hover {
  border-color: rgba(59, 130, 246, 0.6);
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.1);
}

.timeframe-btn.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: #94a3b8;
  font-size: 14px;
}

/* Error and No Tokens Messages */
.no-tokens, .error-message {
  text-align: center;
  color: #94a3b8;
  padding: 40px 20px;
  font-size: 16px;
}

.error-message {
  color: #ef4444;
}

/* Tokens Section */
.tokens-container {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.tokens-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tokens-scroll::-webkit-scrollbar {
  height: 6px;
}

.tokens-scroll::-webkit-scrollbar-track {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 3px;
}

.tokens-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  border-radius: 3px;
}

.tokens-table {
  min-width: fit-content;
  width: 100%;
}

.token-row {
  display: grid;
  grid-template-columns: 40px 140px 80px 80px 60px 80px;
  gap: 15px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.token-row:hover {
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  border-bottom-color: transparent;
}

.token-rank {
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 16px;
}

.token-name {
  font-weight: 600;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.token-return {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.token-mcap, .token-volume, .token-age, .token-time {
  color: #94a3b8;
  font-size: 14px;
}

.token-time {
  color: #60a5fa;
  font-weight: 500;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  margin-top: 40px;
}

.footer-text {
  color: #64748b;
  font-size: 14px;
}

.footer-brand {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  overflow-x: auto;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: fit-content;
  padding: 0 5px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pagination-btn, .page-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pagination-btn:hover:not(:disabled), .page-btn:hover:not(.active) {
  border-color: rgba(59, 130, 246, 0.6);
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.1);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-ellipsis {
  color: #64748b;
  padding: 4px 1px;
  font-size: 12px;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}



/* Success Rate Time Chart */
.time-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 350px;
  gap: 20px;
  padding: 15px 40px 40px 40px;
  position: relative;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
  margin-top: 8px;
}

.time-chart.compact {
  height: 220px;
  gap: 16px;
  padding: 12px 35px 35px 35px;
  border-radius: 8px;
}



.time-y-axis {
  position: absolute;
  left: 2px;
  top: 15px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.time-y-axis .y-label {
  transform: translateY(50%);
}

.time-y-axis .y-label:last-child {
  transform: translateY(50%);
}

.time-y-axis-right {
  position: absolute;
  right: 2px;
  top: 15px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.time-y-axis-right .y-label {
  transform: translateY(50%);
}

.time-y-axis-right .y-label:last-child {
  transform: translateY(50%);
}

.time-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: calc(100% - 0px);
  padding: 0 10px;
  position: relative;
  top: 0px;
}

.time-bar-group {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  height: 100%;
  justify-content: center;
  position: relative;
}

.time-bar {
  width: 10px;
  border-radius: 3px;
  min-height: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.time-bar.success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.time-bar.return {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.time-label {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  position: absolute;
  bottom: -30px;
  width: 100%;
  left: 0;
}

/* Heatmap Styles */
.heatmap-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #94a3b8;
  font-size: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.color-legend {
  display: flex;
  justify-content: center;
  align-items: center;
}

.legend-text {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

.color-boxes {
  display: flex;
  gap: 1px;
}

.color-box {
  width: 12px;
  height: 3px;
  border-radius: 1px;
}

.color-box.low {
  background: #dc2626;
}

.color-box.medium {
  background: #f59e0b;
}

.color-box.high {
  background: #10b981;
}

.heatmap-container {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 8px;
  padding: 15px;
  width: 100%;
  overflow: hidden;
}

.heatmap-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.time-header-single {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  width: 100%;
}

.time-label-daily {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.day-row {
  display: grid;
  grid-template-columns: 50px repeat(24, 1fr);
  gap: 1px;
  align-items: center;
}

.day-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
  padding: 4px 2px;
}

.heat-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  min-height: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.heat-cell:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.heat-cell.empty {
  background: rgba(71, 85, 105, 0.2);
}

.heat-cell.low {
  background: #dc2626;
}

.heat-cell.medium {
  background: #f59e0b;
}

.heat-cell.high {
  background: #10b981;
}

.utc-label {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  font-style: italic;
}

.heatmap-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.day-row {
  display: grid;
  grid-template-columns: 50px repeat(24, minmax(8px, 1fr));
  gap: 2px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.day-label {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
  padding-right: 6px;
  width: 45px;
  text-align: right;
  flex-shrink: 0;
}

.heat-cell {
  height: 12px;
  width: 100%;
  min-width: 8px;
  max-width: 15px;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.heat-cell.empty {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.heat-cell.low {
  background: #dc2626;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
}

.heat-cell.medium {
  background: #f59e0b;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

.heat-cell.high {
  background: #10b981;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
}

.heat-cell:hover {
  transform: scale(1.1);
  z-index: 10;
}

/* Edit Icon */
.edit-icon {
  width: 14px;
  height: 14px;
  fill: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 4px;
}

.edit-icon:hover {
  fill: #3b82f6;
  transform: scale(1.1);
}

.edit-btn svg {
  width: 12px;
  height: 12px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 0;
  min-width: 350px;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-header h3 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ef4444;
}

.modal-body {
  padding: 24px;
}

.modal-body input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-body input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.modal-btn.cancel {
  background: rgba(71, 85, 105, 0.8);
  color: #94a3b8;
}

.modal-btn.cancel:hover {
  background: rgba(71, 85, 105, 1);
  color: white;
}

.modal-btn.submit {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.modal-btn.submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Token Modal Specific Styles */
.token-modal {
  max-width: 800px;
  width: 90%;
}

.token-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.token-detail-row:last-child {
  border-bottom: none;
}

.token-detail-label {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.token-detail-value {
  color: white;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-text {
  font-family: monospace;
  font-size: 12px;
}

.copy-icon {
  width: 16px;
  height: 16px;
  fill: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-icon:hover {
  fill: #3b82f6;
  transform: scale(1.1);
}

.token-return-value {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .performance-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
  }

  .stat-card {
      padding: 12px;
  }

  .stat-value {
      font-size: 18px;
  }

  .chart {
      height: 180px;
      gap: 8px;
      padding: 12px 15px 25px 25px;
  }

  .bar {
      min-height: 140px;
  }

  .bar-column {
      width: 16px;
  }

  .token-row {
      grid-template-columns: 30px 100px 55px 55px 45px 60px;
      gap: 8px;
      font-size: 11px;
      padding: 10px 4px;
  }

  .token-name {
      font-size: 12px;
  }

  .token-return {
      font-size: 10px;
      padding: 4px 6px;
  }

  .token-mcap,
  .token-volume,
  .token-age,
  .token-time {
      font-size: 10px;
  }

  .main-content {
      margin-top: 80px;
  }

  .section-header {
      font-size: 18px;
  }

  .header {
      padding: 10px;
      top: 5px;
      left: 5px;
      right: 5px;
      border-radius: 15px;
  }

  .logo-icon {
      width: 30px;
      height: 30px;
      font-size: 16px;
  }

  .logo-text {
      font-size: 22px;
  }

  .chart {
      padding: 10px 12px 20px 20px;
  }

  .time-chart {
      padding: 10px 20px 30px 20px;
  }

  .time-bars {
      padding: 0 5px;
  }

  .time-bar {
      width: 6px;
  }

  .heatmap-legend {
      font-size: 11px;
  }

  .day-label {
      font-size: 11px;
  }

  .heat-cell {
      width: 6px;
      height: 6px;
  }

  .heatmap-content {
      flex-direction: column;
      gap: 4px;
  }

  .time-header-single {
      margin-bottom: 10px;
  }

  .time-label-daily {
      font-size: 10px;
      padding: 6px 12px;
  }

  .day-row {
      grid-template-columns: 35px repeat(24, minmax(6px, 1fr));
      gap: 1px;
  }

  .day-label {
      font-size: 10px;
      width: 30px;
  }

  .heat-cell {
      height: 10px;
      min-width: 6px;
      max-width: 12px;
  }

  /* Mobile pagination improvements */
  .pagination {
      gap: 2px;
      padding: 0 2px;
  }

  .pagination-btn, .page-btn {
      padding: 3px 6px;
      font-size: 11px;
      min-width: 28px;
      height: 24px;
      border-radius: 4px;
  }

  .page-ellipsis {
      font-size: 11px;
      min-width: 12px;
      padding: 3px 0px;
  }

  .pagination-container {
      margin-top: 15px;
  }

  /* Mobile modal adjustments */
  .modal-content {
      margin: 20px;
      min-width: auto;
      max-width: calc(100% - 40px);
  }

  .modal-header {
      padding: 16px 20px;
  }

  .modal-header h3 {
      font-size: 16px;
  }

  .modal-body {
      padding: 20px;
  }

  .token-detail-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      padding: 10px 0;
  }

  .token-detail-value {
      width: 100%;
      justify-content: flex-start;
  }

  .timeframe-btn {
      padding: 4px 8px;
      font-size: 11px;
      min-width: 28px;
  }

  .edit-icon {
      width: 12px;
      height: 12px;
  }
}

/* Dark Mode Toggle (Optional) */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.dark-mode-toggle svg {
  width: 24px;
  height: 24px;
  fill: #e2e8f0;
}

/* Example Dark Mode Styles (Extend as needed) */
body.dark-mode {
  background: linear-gradient(135deg, #050c1a 0%, #102250 50%, #10245a 100%);
  color: #e2e8f0;
}

body.dark-mode .header {
  background: rgba(5, 12, 26, 0.95);
  border-color: rgba(59, 130, 246, 0.4);
}

body.dark-mode .stat-card {
  background: rgba(5, 12, 26, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .chart-container,
body.dark-mode .tokens-container {
  background: rgba(5, 12, 26, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .footer {
  background: rgba(5, 12, 26, 0.95);
  border-color: rgba(59, 130, 246, 0.3);
}