﻿/* Base Styles */
body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #2d2d2d;
  color: white;
  overflow-x: hidden;
}

/* Generic Modal */
.generic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeInOverlay 0.4s ease-out;
  overflow-y: hidden; /* Prevent overlay scroll; inner content will scroll */
}

@keyframes fadeInOverlay {
  from { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1; 
    backdrop-filter: blur(8px);
  }
}

.generic-modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  color: #e0e0e0;
  box-shadow:
    0 25px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(76, 175, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  padding: 30px 30px 25px 30px;
  animation: modalSlideInBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center center;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

/* Custom scrollbar for generic modal */
.generic-modal-content::-webkit-scrollbar {
  width: 6px;
}

.generic-modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.generic-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.generic-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.4);
}

@keyframes modalSlideInBounce {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-50px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0px);
  }
}

.generic-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #4CAF50);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.generic-modal-title {
  font-size: 1.6rem;
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 15px;
}

.generic-modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
  border-radius: 2px;
}

.generic-modal-body {
  line-height: 1.7;
  font-size: 1.05rem;
}

.generic-modal-body p {
  margin: 10px 0 15px 0;
  color: #f0f0f0;
}

.generic-modal-body ul {
  margin: 15px 0;
  padding-left: 25px;
  background: rgba(76, 175, 80, 0.05);
  border-radius: 10px;
  padding: 15px 15px 15px 35px;
  border-left: 4px solid #4CAF50;
}

.generic-modal-body li {
  margin: 12px 0;
  color: #e8e8e8;
  position: relative;
}

.generic-modal-body li::before {
  content: 'âœ“';
  position: absolute;
  left: -20px;
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.1em;
}

.generic-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 15px;
}

.generic-modal-button {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.generic-modal-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.generic-modal-button:hover {
  background: linear-gradient(135deg, #45a049, #5cbf60);
  box-shadow: 
    0 6px 25px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.generic-modal-button:hover::before {
  left: 100%;
}

.generic-modal-button:active {
  transform: translateY(0px);
  box-shadow: 
    0 2px 10px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.generic-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.generic-modal-close:hover {
  background: rgba(244, 67, 54, 0.2);
  color: #ff6b6b;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
}

.generic-modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

h1 {
  color: #4CAF50;
  text-align: center;
  margin-bottom: 30px;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  border-bottom: 2px solid #333;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  color: #ccc;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 3px solid #2E7D32;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.tab-btn:hover {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
  border-bottom-color: #66BB6A;
}

.tab-btn.active {
  color: #4CAF50;
  border-bottom-color: #FF9800 !important;
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Wallet Button in Tab Navigation */
.wallet-btn {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.3);
  padding: 12px 24px;
  color: #2196F3;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 3px solid #1976D2;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
  margin-right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.wallet-btn:hover {
  color: #1976D2;
  background: rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.5);
  border-bottom-color: #42A5F5;
}

.wallet-btn:active {
  transform: translateY(1px);
}

.wallet-icon {
  font-size: 1.2rem;
}

.wallet-text {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding-top: 30px;
  width: 100%;
}

.stat-box {
  background: #1a1a1a;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #4CAF50;
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4CAF50;
}

.stat-label {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Common Section Styles */
.countdown-section,
.calculator-section,
.chart-section,
.buyers-section,
.ico-steps-container {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 15px;
  margin: 10px 0;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.22);
}

.ico-steps-container {
  background: #2d2d2d;
  text-align: center;
  padding-top: 20px;
}

.countdown-section {
  text-align: center;
}

.buyers-section {
  border-radius: 8px;
  margin-top: 20px;
  padding: 20px;
}

/* Countdown */
.countdown-status {
  margin-bottom: 25px;
}

.status-indicator {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.status-waiting {
  background: linear-gradient(135deg, #FF9800, #FFC107);
  color: #000;
  animation: pulse 2s infinite;
}

.status-active {
  background: linear-gradient(135deg, #2196F3, #42A5F5);
  color: #fff;
  animation: glow 2s infinite alternate;
}

.status-ended {
  background: linear-gradient(135deg, #F44336, #E57373);
  color: #fff;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
  }

  100% {
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8);
  }
}

.countdown-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 30px auto;
  flex-wrap: nowrap;
  width: 100%;
  text-align: center;
}

.countdown-item {
  background: #2d2d2d;
  padding: 20px;
  border-radius: 12px;
  min-width: 80px;
  border: 2px solid #4CAF50;
  transition: transform 0.3s ease;
  text-align: center;
}

.countdown-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #4CAF50;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

.countdown-label {
  color: #ccc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Progress Bars */
.countdown-progress,
.funding-progress {
  margin-top: 25px;
}

.funding-progress {
  margin-top: 15px;
}

.funding-progress .progress-fill {
  background: linear-gradient(90deg, #2196F3, #42A5F5);
}

.progress-bar {
  background: #333;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #555;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2196F3, #42A5F5);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 15px;
  position: absolute;
  left: 0;
  top: 0;
}

.progress-text {
  position: relative;
  z-index: 10;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* Calculator */
.input-row {
  display: flex;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.input-col {
  flex: 1;
  min-width: 220px;
}

.calculator-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: #81C784;
  font-size: 1.05rem;
}

.calculator-section input[type=number] {
  width: 100%;
  font-size: 1.2rem;
  padding: 12px 18px;
  background: #333;
  color: #fff;
  border: 1.5px solid #4CAF50;
  border-radius: 8px;
  outline: none;
  margin-bottom: 3px;
  transition: border 0.18s;
  box-sizing: border-box;
  height: 52px;
}

.calculator-section input[type=number]:focus {
  border-color: #66BB6A;
}

.calculator-section input[readonly] {
  background: #2d2d2d;
  color: #81C784;
  font-weight: bold;
  border-color: #555;
  cursor: default;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  pointer-events: none;
}

.warning-message {
  color: #fdd835;
  text-align: center;
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 10px;
  height: 1em;
}

/* ICO Steps */
.steps-title {
  color: #4CAF50;
  font-size: 1.3rem;
  margin-bottom: 25px;
  margin-top: 10px;
  font-weight: 600;
}

.steps-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.step-item:hover {
  transform: translateY(-5px);
}

.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2196F3, #42A5F5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.step-item:hover .step-circle {
  box-shadow: 0 6px 25px rgba(33, 150, 243, 0.5);
  transform: scale(1.05);
}

.step-icon {
  font-size: 2.2rem;
  color: #fff;
}

.step-number {
  font-size: 0.8rem;
  font-weight: bold;
  color: #2196F3;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 2px 8px;
  min-width: 20px;
  text-align: center;
}

.step-label {
  color: #81C784;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.step-arrow {
  color: #4CAF50;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 50px;
  transform: translateY(-32px);
}

.step-tooltip {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  max-width: 250px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}

.step-tooltip.show {
  opacity: 1;
  visibility: visible;
  bottom: -50px;
}

.step-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #1a1a1a;
}

/* Charts */
.charts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

.chart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
}

.main-chart,
.allocation-chart {
  width: 100%;
  max-width: 900px;
}

.main-chart canvas,
.allocation-chart canvas {
  width: 100%;
  height: auto;
}

canvas {
  background: #333;
  border-radius: 15px;
  border: 1px solid #4CAF50;
  margin: 0 auto;
  display: block;
  max-width: 100%;
  height: auto;
}

.chart-title {
  color: #4CAF50;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.price-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.price-item {
  background: #333;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  border-left: 3px solid #2196F3;
}

.price-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: #4CAF50;
}

.price-label {
  color: #ccc;
  font-size: 0.8rem;
  margin-top: 5px;
}

.hint {
  text-align: center;
  color: #a0caf7;
  font-size: 0.98rem;
  margin-top: 10px;
}

/* Buyers Section */
.buyers-section h2 {
  color: #4CAF50;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-input,
.page-size-select {
  background: #333;
  color: white;
  border: 1px solid #555;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
}

.filter-input::placeholder {
  color: #888;
}

.refresh-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.refresh-btn:hover {
  background: #45a049;
}

/* Pagination */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.pagination-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-info {
  color: #ccc;
  font-size: 14px;
  order: -1;
  margin-bottom: 10px;
}

.page-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.page-btn:hover {
  background: #45a049;
}

.page-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

.page-num-btn {
  background: #333;
  color: white;
  border: 1px solid #555;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin: 0 2px;
  text-align: center;
  white-space: nowrap;
  min-width: 35px;
  transition: all 0.2s ease;
}

.page-num-btn:hover {
  background: #555;
  border-color: #4CAF50;
}

.page-num-btn.active {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: white;
  border-color: #4CAF50;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  transform: translateY(-1px);
}

.page-num-btn.active:hover {
  background: linear-gradient(135deg, #45a049, #5cbf60);
  box-shadow: 0 3px 12px rgba(76, 175, 80, 0.5);
}

/* Data Grid */
.data-grid {
  width: 100%;
  border-collapse: collapse;
  background: #333;
  display: table;
  table-layout: fixed;
}

.data-grid th,
.data-grid td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #555;
  white-space: nowrap;
  overflow: visible;
  word-break: break-all;
  overflow-wrap: break-word;
}


.data-grid th {
  background: #4CAF50;
  color: white;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.data-grid th:hover {
  background: #45a049;
}

.data-grid th.sortable::after {
  content: ' â†•ï¸';
  font-size: 0.8rem;
}

.data-grid th.sort-asc::after {
  content: ' â¬†ï¸';
}

.data-grid th.sort-desc::after {
  content: ' â¬‡ï¸';
}

.data-grid tr:hover {
  background: #444;
}

.data-grid td:before {
  display: none;
}

/* Links */
.address,
.tx-link,
.popup-link {
  font-family: monospace;
  color: #4CAF50;
  cursor: pointer;
  text-decoration: underline;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.address {
  font-size: 0.9rem;
}

.tx-link {
  font-size: 0.8rem;
  text-decoration: none;
}

.popup-link {
  font-size: 0.9rem;
  text-decoration: none;
  background: #4CAF50;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  flex: 1;
  text-align: center;
}

.address:hover,
.tx-link:hover {
  text-decoration: underline;
  background: #555;
  border-radius: 3px;
}

.popup-link:hover {
  background: #45a049;
}

/* Utility Classes */
.amount {
  text-align: right;
  font-weight: bold;
}

.trx {
  color: #2196F3;
}

.tokens {
  color: #4CAF50;
}

.loading {
  text-align: center;
  color: #ccc;
  padding: 20px;
}

/* Loading Spinner Styles */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #555;
  border-top: 3px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #4CAF50;
  font-weight: bold;
}

.loading-container .loading-spinner {
  width: 24px;
  height: 24px;
  border-width: 4px;
  margin-right: 12px;
}

.no-data {
  text-align: center;
  color: #888;
  padding: 30px;
  font-style: italic;
}

.contract-address {
  text-align: center;
  font-family: monospace;
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.date-cell {
  white-space: nowrap;
  font-size: 0.9rem;
}

.performance-info {
  color: #888;
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
}

.method-cell {
  font-family: monospace;
  font-size: 0.8rem;
  color: #FF9800;
}

.read-only-badge {
  background: #2196F3;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  margin-left: 10px;
}

/* Popups */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #2d2d2d;
  border: 2px solid #4CAF50;
  border-radius: 15px;
  padding: 20px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

/* Custom scrollbar styling for WebKit browsers */
.popup-content::-webkit-scrollbar {
  width: 6px;
}

.popup-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.4);
}

/* Mobile popup improvements */
@media (max-width: 480px) {
  .popup-content {
    max-height: 85vh; /* Reduce height on very small screens */
    padding: 15px;
    overflow-y: auto;
    /* Mobile touch scrolling improvements */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .popup-overlay {
    padding: 10px;
  }

  /* Generic modal mobile improvements */
  .generic-modal-content {
    max-height: 85vh;
    padding: 20px 15px 25px 15px;
    overflow-y: auto;
    /* Mobile touch scrolling improvements */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .generic-modal-overlay {
    padding: 10px;
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 40px;
  background: none;
  border: none;
  color: #4CAF50;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}

.popup-close:hover {
  color: #45a049;
}

.popup-title {
  color: #4CAF50;
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.popup-address {
  font-family: monospace;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  word-break: break-all;
  border-left: 4px solid #4CAF50;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.summary-item {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #2196F3;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: #4CAF50;
}

.summary-label {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 5px;
}

.transaction-list {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #444;
  font-size: 0.9rem;
}

.transaction-item:last-child {
  border-bottom: none;
}

.popup-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.progress-popup-content {
  max-width: 700px;
  background: #1a1a1a;
  border: 2px solid #4CAF50;
}

.progress-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.progress-info-item {
  background: #2d2d2d;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #4CAF50;
}

.progress-info-label {
  color: #81C784;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-info-value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.progress-bars-preview {
  margin-top: 25px;
  background: #2d2d2d;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #2196F3;
}

.preview-bar-container {
  margin-bottom: 15px;
}

.preview-bar-container:last-child {
  margin-bottom: 0;
}

.preview-label {
  color: #81C784;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.preview-progress-bar {
  background: #333;
  height: 25px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #555;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-progress-fill {
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 12px;
  position: absolute;
  left: 0;
  top: 0;
}

.preview-progress-fill.green,
.preview-progress-fill.blue {
  background: linear-gradient(90deg, #2196F3, #42A5F5);
}

.preview-progress-text {
  position: relative;
  z-index: 10;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.steps-detail-content,
.steps-overview {
  background: #2d2d2d;
  padding: 12px;
  border-radius: 10px;
  margin: 15px 0;
  border-left: 4px solid #4CAF50;
}

.steps-overview {
  margin-top: 20px;
  border-left-color: #2196F3;
}

.process-flow-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-step {
  background: linear-gradient(135deg, #2196F3, #42A5F5);
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.mini-arrow {
  color: #2196F3;
  font-size: 1.2rem;
  font-weight: bold;
}

.step-detail-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.step-detail-item {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #4CAF50;
}

.step-detail-label {
  color: #81C784;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.step-detail-value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Language Modal Styles */
.language-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.4s ease-out;
}

.language-modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 
    0 25px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(76, 175, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideInBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.language-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #4CAF50);
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}

.language-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-modal-close:hover {
  background: rgba(244, 67, 54, 0.2);
  color: #ff6b6b;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
}

.language-modal-title {
  font-size: 1.5rem;
  background: linear-gradient(45deg, #4CAF50, #66BB6A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 15px;
}

.language-modal-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
  border-radius: 2px;
}

.language-modal-body {
  text-align: center;
  line-height: 1.7;
}

.language-modal-message {
  color: #f0f0f0;
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.language-modal-message strong {
  color: #81C784;
  text-shadow: 0 0 10px rgba(129, 199, 132, 0.3);
}

.language-modal-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.language-btn-primary,
.language-btn-secondary {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  flex: 1;
  max-width: 180px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.language-btn-primary {
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  color: white;
  box-shadow: 
    0 4px 15px rgba(76, 175, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.language-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.language-btn-primary:hover {
  background: linear-gradient(135deg, #45a049, #5cbf60);
  box-shadow: 
    0 6px 25px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.language-btn-primary:hover::before {
  left: 100%;
}

.language-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #E0E0E0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.language-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.language-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 10px;
}

.language-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.language-checkbox:hover {
  color: #4CAF50;
}

.language-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4CAF50;
  cursor: pointer;
  transform: scale(1.2);
}

/* Mobile Language Modal Adjustments */
@media (max-width: 768px) {
  .generic-modal-overlay {
    align-items: flex-start; /* Start at top so content can scroll */
    padding: 0; /* No side space on mobile */
  }

  .generic-modal-content {
    margin: 0; /* Edge-to-edge on mobile */
    width: 100vw; /* Full viewport width */
    max-width: 100vw;
    height: auto;
    max-height: 100vh; /* Fit viewport height */
    border-radius: 0; /* Remove rounded corners for full-bleed */
    padding: 3px; /* Tight side padding on mobile */
    overflow-y: auto; /* Ensure vertical scroll inside modal */
    -webkit-overflow-scrolling: touch;
  }

  .language-modal-content {
    margin: 20px;
    padding: 20px;
    max-width: none;
    width: calc(100% - 40px);
  }

  .language-modal-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .language-modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .language-btn-primary,
  .language-btn-secondary {
    width: 100%;
    max-width: none;
  }

  /* Ensure inner body also hugs the edges on mobile */
  .generic-modal-body {
    padding-left: 3px;
    padding-right: 3px;
  }
}

/* Extra-small devices: even tighter sides */
@media (max-width: 480px) {
  .generic-modal-content {
    padding: 2px;
  }
  .generic-modal-body {
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* DAO Migration Status (simple left-to-right flow) */
#dao-migration-status {
  display: block; /* override .stats grid */
  margin: 10px 0 30px;
}

#dao-migration-status .process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 10px;
}

#dao-migration-status .process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  position: relative; /* allow border glow pseudo-element */
}

#dao-migration-status .step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#dao-migration-status .process-step .step-title {
  font-weight: 700;
  color: #E0E0E0;
}

#dao-migration-status .process-step .step-desc {
  font-size: 0.85rem;
  color: #9aa0a6;
  margin-top: 4px;
}

#dao-migration-status .process-connector {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
}

/* States */
#dao-migration-status .process-step.completed .step-circle {
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4CAF50;
  color: #A5D6A7;
}

#dao-migration-status .process-step.active .step-circle {
  background: rgba(255, 152, 0, 0.18);
  border: 2px solid #FF9800;
  color: #FFCC80;
  animation: pulseGlow 1.6s ease-in-out infinite;
}

/* Light green background panel for active step for better focus */
#dao-migration-status .process-step.active {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.35);
  animation: panelGlow 2.4s ease-in-out infinite;
}

/* Breathing border glow using a pseudo-element */
#dao-migration-status .process-step.active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 2px solid rgba(76, 175, 80, 0.55);
  filter: blur(1px);
  opacity: 0.6;
  pointer-events: none;
  animation: borderBreath 2.2s ease-in-out infinite;
}

#dao-migration-status .process-step.pending .step-circle {
  background: rgba(158, 158, 158, 0.15);
  border: 2px solid #9E9E9E;
  color: #BDBDBD;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(255, 152, 0, 0.05); }
}

@keyframes borderBreath {
  0%, 100% { transform: scale(0.985); opacity: 0.35; }
  50% { transform: scale(1.02); opacity: 0.85; }
}

@keyframes panelGlow {
  0%, 100% { box-shadow: 0 0 0px rgba(76, 175, 80, 0.0), inset 0 0 0 rgba(76, 175, 80, 0.0); }
  50% { box-shadow: 0 0 18px rgba(76, 175, 80, 0.25), inset 0 0 8px rgba(76, 175, 80, 0.12); }
}

@media (max-width: 640px) {
  #dao-migration-status .process-connector { width: 36px; }
  #dao-migration-status .process-step { min-width: 120px; }
}

/* Stack process flow vertically on small screens */
@media (max-width: 520px) {
  #dao-migration-status .process-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #dao-migration-status .process-connector {
    width: 4px;
    height: 28px;
    align-self: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  }
}
/* Modal bullet + panel overrides (ensure clean orange bullets) */
.generic-modal-body ul {
  list-style: none !important;
  background: rgba(255, 152, 0, 0.10) !important;
  border-left: 4px solid #FF9800 !important;
  border: 1px solid rgba(255, 152, 0, 0.35) !important;
  padding: 15px 15px 15px 35px !important;
}

.generic-modal-body li::before {
  content: "\2022" !important;
  color: #FF9800 !important;
  left: -20px !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Language selector mobile styles */
  .mobile-lang-selector {
    left: 5px !important;
    top: 5px !important;
    padding: 0px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0px !important;
  }

  .mobile-lang-selector #language-select {
    font-size: 11px !important;
    padding: 2px !important;
    background: #2d2d2d !important;
    border: 1px solid #4CAF50 !important;
    border-radius: 3px !important;
    color: #81C784 !important;
  }

  .mobile-lang-selector #international-note {
    position: absolute !important;
    top: 25px !important;
    left: 0px !important;
    font-size: 8px !important;
    color: #81C784 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    margin: 5px auto;
    padding: 5px;
    /* Gentle iOS Safari horizontal scroll prevention */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
  }

  h1 {
    margin-bottom: 15px;
  }

  /* iOS Safari specific fixes - gentler approach */
  html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* Only target problematic elements, not ALL elements */
  .tab-navigation,
  .countdown-section,
  .calculator-section,
  .chart-section,
  .buyers-section,
  .ico-steps-container,
  .data-grid {
    max-width: 100%;
    overflow-x: auto;
    /* Allow scrolling where needed */
    box-sizing: border-box;
  }

  /* Mobile wallet button improvements */
  .tab-navigation {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 0 5px;
    margin: 10px 0;
  }

  .wallet-btn {
    margin-right: 0;
    margin-bottom: 10px;
    padding: 16px 24px;
    font-size: 1.1rem;
    min-height: 52px;
    width: 100%;
    max-width: 300px;
    align-self: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.4);
    border-bottom: 3px solid #1976D2;
    border-radius: 6px;
  }

  .wallet-icon {
    font-size: 1.3rem;
  }

  .wallet-text {
    font-size: 1rem;
    font-weight: 700;
  }

  .tab-btn {
    padding: 14px 20px;
    font-size: 1rem;
    margin: 5px;
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 3px solid #2E7D32;
    border-radius: 6px;
  }

  .tab-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
    border-bottom-color: #66BB6A;
  }

  .tab-btn.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    border-bottom: 3px solid #FF9800 !important;
  }

  .countdown-section,
  .calculator-section,
  .chart-section,
  .buyers-section,
  .ico-steps-container {
    padding: 15px;
    margin: 5px 0;
  }

  .ico-steps-container {
    padding: 15px 5px;
  }

  .charts-container {
    padding: 0;
    margin: 0;
  }

  .chart-item {
    padding: 0;
    margin: 0;
  }

  canvas {
    border-radius: 8px;
    margin: 0;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-box {
    width: 100%;
    max-width: none;
  }

  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin: -45px 0 0 0;
    transform: none;
    color: #4CAF50;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }

  .steps-flow {
    gap: 0;
    margin: 15px 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
  }

  .step-circle {
    width: 45px;
    height: 45px;
  }

  .step-icon {
    font-size: 1.4rem;
  }

  .step-item {
    min-width: 40px;
    flex-shrink: 0;
  }

  .step-label {
    font-size: 0.6rem;
    margin-bottom: 2px;
  }

  .step-number {
    font-size: 0.5rem;
    padding: 1px 4px;
  }

  .countdown-display {
    gap: 15px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 15px;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  .input-row {
    flex-direction: column;
    gap: 15px;
  }

  .input-col {
    width: 100%;
    min-width: unset;
  }

  .controls {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .filter-input,
  .page-size-select {
    width: 100%;
    box-sizing: border-box;
  }

  .data-grid,
  .data-grid thead,
  .data-grid tbody,
  .data-grid tr,
  .data-grid th,
  .data-grid td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .data-grid thead {
    display: none;
  }

  .data-grid tr {
    border: 1px solid #555;
    margin-bottom: 8px;
    padding: 8px 0;
    border-radius: 6px;
    background: #444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .data-grid td {
    position: relative;
    padding: 4px 0 4px 45%;
    white-space: normal;
    text-align: left;
    min-height: 30px;
    border-bottom: 1px solid #555;
    overflow: visible;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .data-grid td:before {
    position: absolute;
    left: 5px;
    top: 4px;
    width: 40%;
    white-space: nowrap;
    font-weight: bold;
    color: #4CAF50;
    content: attr(data-label) ": ";
    display: inline-block;
    font-size: 0.85em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .data-grid td:last-child {
    border-bottom: none;
  }

  .buyers-section {
    padding: 10px 5px;
  }
}

@media (max-width: 480px) {
  body {
    margin: 5px auto;
    padding: 5px;
  }

  /* Extra small mobile step adjustments */
  .step-circle {
    width: 40px !important;
    height: 40px !important;
  }

  .step-icon {
    font-size: 1.3rem !important;
  }

  .step-item {
    min-width: 35px !important;
  }

  .step-label {
    font-size: 0.55rem !important;
  }

  .step-number {
    font-size: 0.45rem !important;
    padding: 1px 3px !important;
  }

  .step-arrow {
    font-size: 0.7rem !important;
    margin: -35px 0 0 0 !important;
  }

  /* Extra mobile improvements for wallet button */
  .wallet-btn {
    padding: 18px 28px;
    font-size: 1.2rem;
    min-height: 56px;
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.5);
    border-bottom: 4px solid #1976D2;
    border-radius: 8px;
  }

  .wallet-btn:active {
    transform: translateY(1px);
    border-bottom-color: #42A5F5;
  }

  .wallet-icon {
    font-size: 1.4rem;
  }

  .wallet-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .tab-navigation {
    padding: 0 5px;
    gap: 20px;
  }

  .countdown-section,
  .calculator-section,
  .chart-section,
  .buyers-section {
    padding: 10px;
    margin: 5px 0;
  }

  .ico-steps-container {
    padding: 10px 0;
    margin: 5px 0;
  }

  .step-circle {
    width: 110px;
    height: 110px;
  }

  .step-icon {
    font-size: 3rem;
  }

  .step-label {
    font-size: 1rem;
    font-weight: bold;
  }

  .chart-item {
    padding: 0;
    width: 100%;
  }

  canvas {
    border-radius: 5px;
    margin: 0;
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
  }

  .countdown-display {
    gap: 10px;
  }

  .countdown-item {
    padding: 12px 10px;
    min-width: 65px;
  }

  .countdown-value {
    font-size: 1.1rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }

  .page-btn {
    min-width: 55px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }

  .page-num-btn {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    min-width: 35px !important;
  }
}



/* Data grid header sort indicators */
.data-grid th {
  position: relative;
}

.data-grid th.sortable::after {
  content: "↕"; /* Up-down arrow for default state */
  color: #FFFFFF;
  margin-left: 6px;
  font-size: 1em;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.data-grid th.sortable[data-sort="asc"]::after {
  content: "↑"; /* Up arrow for ascending */
  color: #FF9800;
  font-size: 1.1em;
  opacity: 1;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.data-grid th.sortable[data-sort="desc"]::after {
  content: "↓"; /* Down arrow for descending */
  color: #FF9800;
  font-size: 1.1em;
  opacity: 1;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
