/* Ghostnet - Official Financial Dex of JimmyWeber.com */

/* Color Variables - Light Theme (Default) */
:root {
  --ghostnet-primary: #0066ff;
  --ghostnet-secondary: #0066ff;
  --ghostnet-accent: #ff3366;
  --ghostnet-dark: #ffffff;
  --ghostnet-darker: #f8f9fa;
  --ghostnet-light: #ffffff;
  --ghostnet-text: #212529;
  --ghostnet-text-dim: #6c757d;
  --ghostnet-border: #dee2e6;
  --ghostnet-success: #22b14c;
  --ghostnet-danger: #e8413a;
  --ghostnet-warning: #ffaa00;
}




/* Base Styles */
body.ghostnet-page {
  color: var(--ghostnet-text);
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
}

/* Connect Wallet Top Button */
.connect-wallet-top {
  position: static;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.connect-wallet-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ghostnet-primary);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--ghostnet-light);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connect-wallet-btn:hover {
  background: var(--ghostnet-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.connect-wallet-btn.disconnected {
  background: var(--ghostnet-accent);
}

.connect-wallet-btn.disconnected:hover {
  background: #ff1a4d;
}

/* Connect Wallet Button Icon Styling */
.connect-wallet-btn .wallet-icon {
  font-size: 0.9rem;
}

.connect-wallet-btn .wallet-icon .material-symbols-outlined {
  font-size: 0.9rem;
  color: var(--ghostnet-text);
}

.wallet-text {
  font-weight: 700;
}

/* Header Section */
.ghostnet-header {
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ghostnet-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  animation: ghostnet-sweep 3s infinite;
}

@keyframes ghostnet-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.ghostnet-logo {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--ghostnet-primary), var(--ghostnet-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.ghostnet-tagline {
  font-size: 1.2rem;
  color: var(--ghostnet-text-dim);
  margin-bottom: 1rem;
}

.ghostnet-subtitle {
  font-size: 0.9rem;
  color: var(--ghostnet-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Main Content */
.ghostnet-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Professional Container */
.tokens-container {
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ghostnet-intro {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.ghostnet-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ghostnet-text-dim);
}

.ghostnet-prices {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Dashboard Grid */
.token-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.ghost-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.wrapped-tokens-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Dashboard Cards */
.token-card {
  background: var(--ghostnet-light);
  border: 2px solid var(--ghostnet-border);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.token-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.15);
  transform: translateY(-4px);
}

.token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-secondary));
}

/* Special styling for GHOST token */
.token-card.ghost-token::before {
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-accent));
}

.token-card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--ghostnet-border);
  background: linear-gradient(135deg, var(--ghostnet-darker) 0%, var(--ghostnet-light) 100%);
}

.token-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--ghostnet-light);
  border: 2px solid var(--ghostnet-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.token-card:hover .token-icon-wrapper {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
  transform: scale(1.05);
}

.token-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.token-card:hover .token-logo {
  transform: scale(1.1);
}

.token-logo.ghost-skull-icon {
  width: 40px;
  height: 40px;
}

.token-symbol {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ghostnet-text);
  letter-spacing: 0.5px;
}

.token-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.token-name {
  color: var(--ghostnet-text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.token-price {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ghostnet-text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.token-change {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.token-change.positive {
  color: var(--ghostnet-success);
  background: rgba(34, 177, 76, 0.1);
  border: 1px solid rgba(34, 177, 76, 0.2);
}

.token-change.negative {
  color: var(--ghostnet-danger);
  background: rgba(232, 65, 58, 0.1);
  border: 1px solid rgba(232, 65, 58, 0.2);
}

.token-card:hover .token-change.positive {
  background: rgba(34, 177, 76, 0.15);
  border-color: rgba(34, 177, 76, 0.3);
  transform: scale(1.05);
}

.token-card:hover .token-change.negative {
  background: rgba(232, 65, 58, 0.15);
  border-color: rgba(232, 65, 58, 0.3);
  transform: scale(1.05);
}

/* Additional DEX styling */
.ghostnet-prices {
  position: relative;
}

.ghostnet-prices::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ghostnet-primary), transparent);
}

/* Loading states */
.token-price.loading {
  color: var(--ghostnet-text-dim);
  font-style: italic;
}

.token-change.loading {
  color: var(--ghostnet-text-dim);
  background: var(--ghostnet-border);
  border: none;
}

/* Glow effects for active tokens */
.token-card.active {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  border-color: var(--ghostnet-primary);
}

/* Dashboard Grid */
.ghostnet-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Dashboard Cards */
.ghostnet-card {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ghostnet-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transform: translateY(-2px);
}

.ghostnet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-secondary));
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ghostnet-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  font-size: 1.5rem;
}

/* Portfolio Overview */
.portfolio-overview {
  grid-column: 1 / -1;
}

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--ghostnet-darker);
  border-radius: 8px;
  border: 1px solid var(--ghostnet-border);
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ghostnet-success);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--ghostnet-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-change {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.stat-change.positive {
  color: var(--ghostnet-success);
}

.stat-change.negative {
  color: var(--ghostnet-danger);
}

/* Trading Interface */
.trading-interface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.trade-form {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--ghostnet-text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 6px;
  color: var(--ghostnet-text);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--ghostnet-primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 6px;
  color: var(--ghostnet-text);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
}

.trade-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, var(--ghostnet-primary), var(--ghostnet-secondary));
  border: none;
  border-radius: 6px;
  color: var(--ghostnet-dark);
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trade-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.trade-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Market Data */
.market-data {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.market-list {
  max-height: 400px;
  overflow-y: auto;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--ghostnet-border);
  transition: background 0.2s ease;
}

.market-item:hover {
  background: var(--ghostnet-darker);
}

.market-item:last-child {
  border-bottom: none;
}

.token-symbol {
  font-weight: 700;
  color: var(--ghostnet-primary);
}

.token-name {
  font-size: 0.8rem;
  color: var(--ghostnet-text-dim);
}

.token-price {
  font-weight: 700;
  font-size: 1.1rem;
}

.token-change {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Transaction History */
.transaction-history {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.history-table th,
.history-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--ghostnet-border);
}

.history-table th {
  background: var(--ghostnet-darker);
  color: var(--ghostnet-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.history-table tr:hover {
  background: var(--ghostnet-darker);
}

.transaction-type {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.transaction-type.buy {
  background: rgba(0, 255, 136, 0.2);
  color: var(--ghostnet-success);
}

.transaction-type.sell {
  background: rgba(255, 51, 102, 0.2);
  color: var(--ghostnet-danger);
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--ghostnet-text-dim);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ghostnet-border);
  border-top: 2px solid var(--ghostnet-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ghostnet-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--ghostnet-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ghostnet-primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-success { color: var(--ghostnet-success); }
.text-danger { color: var(--ghostnet-danger); }
.text-warning { color: var(--ghostnet-warning); }
.text-dim { color: var(--ghostnet-text-dim); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.hidden { display: none; }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* ========================================
   PRICING DATA UPDATE SECTION
   ======================================== */

.ghostnet-pricing-update {
  margin-bottom: 2rem;
}

.pricing-update-container {
  max-width: 400px;
  margin: 0 auto;
}

/* ===== Last Update Box ===== */
.last-update-box {
  background: var(--card-bg, #fff);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color, #e0e0e0);
  transition: all 0.3s ease;
  width: 100%;
}

.last-update-label {
  font-family: var(--font-heading, 'Roboto Flex', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #666);
  margin-bottom: 0.4rem;
}

.last-update-timestamp {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-code, 'Roboto Mono', monospace);
  color: var(--text-primary, #333);
  line-height: 1.2;
}

/* ===== Last Update Box Dark Mode ===== */
body.dark-mode .last-update-box {
  background: #222 !important;
  color: #eee !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  border-color: #333 !important;
}

body.dark-mode .last-update-label {
  color: #9bb0c8 !important;
}

body.dark-mode .last-update-timestamp {
  color: #eee !important;
}

/* ========================================
   WALLET SECTION
   ======================================== */

.ghostnet-wallet {
  background: var(--ghostnet-dark);
  padding: 2rem 0;
  margin: 2rem 0;
}

.explorer-subtitle,
.wallet-subtitle,
.price-index-subtitle,
.defi-subtitle,
.dex-subtitle,
.token-info-subtitle {
  font-family: 'Roboto';
  text-transform: uppercase;
  text-align: center;
  color: var(--ghostnet-text-dim);
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.wallet-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wallet-card {
  background: var(--ghostnet-light);
  border: 2px solid var(--ghostnet-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wallet-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-secondary));
}

.wallet-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ghostnet-darker);
  border-radius: 12px;
  flex-shrink: 0;
}

/* Override for Connect Wallet button - remove icon box */
.connect-wallet-btn .wallet-icon {
  width: auto !important;
  height: auto !important;
  display: inline !important;
  align-items: unset !important;
  justify-content: unset !important;
  background: none !important;
  border-radius: 0 !important;
  flex-shrink: unset !important;
}

.wallet-icon .material-symbols-outlined {
  font-size: 2rem;
  color: var(--ghostnet-primary);
}

.wallet-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wallet-logo.ghost-skull-icon {
  width: 45px;
  height: 45px;
}

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

.wallet-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ghostnet-text);
}

.wallet-price {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ghostnet-text-dim);
  margin-left: 0.5rem;
}

.wallet-name {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--ghostnet-text-dim);
  font-weight: 500;
}

.wallet-amount {
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ghostnet-text);
  margin-bottom: 0.25rem;
}

.wallet-value {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--ghostnet-text-dim);
  font-weight: 500;
}

/* Special styling for cash card */
.cash-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #28a745;
}

.cash-card:hover {
  border-color: #28a745;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.cash-card::before {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.cash-card .wallet-icon .material-symbols-outlined {
  color: #28a745;
}

/* Special styling for wealth card */
.wealth-card {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  border-color: #6f42c1;
  color: #ffffff;
}

.wealth-card:hover {
  border-color: #e83e8c;
  box-shadow: 0 8px 25px rgba(111, 66, 193, 0.15);
}

.wealth-card::before {
  background: linear-gradient(90deg, #6f42c1, #e83e8c);
}

.wealth-card .wallet-info h3 {
  color: #ffffff;
}

.wealth-card .wallet-name {
  color: #e0a3ff;
}

.wealth-card .wallet-amount {
  color: #ffffff;
}

.wealth-card .wallet-icon {
  background: rgba(255, 255, 255, 0.1);
}

.wealth-card .wallet-icon .material-symbols-outlined {
  color: #ffffff;
}


/* Dark theme adjustments */
.dark-mode .token-card {
  background: #1a1a2e;
  border-color: #2d3748;
}

.dark-mode .token-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.25);
}

.dark-mode .token-card-header {
  background: linear-gradient(135deg, #2d3748 0%, #1a1a2e 100%);
  border-bottom-color: #4a5568;
}

.dark-mode .token-icon-wrapper {
  background: #2d3748;
  border-color: #4a5568;
}

.dark-mode .token-card:hover .token-icon-wrapper {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.dark-mode .wallet-card {
  background: #1a1a2e;
  border-color: #2d3748;
}

.dark-mode .wallet-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.25);
}

.dark-mode .wallet-icon {
  background: #2d3748;
}

/* Override dark mode for Connect Wallet button */
.dark-mode .connect-wallet-btn .wallet-icon {
  background: none !important;
}

/* Dark mode for Connect Wallet button icon - make it dark */
body.dark-mode .connect-wallet-btn .wallet-icon .material-symbols-outlined {
  color: #0a0a0a !important;
}

/* Dark mode for Connect Wallet button icon - make it dark */
body.dark-mode .connect-wallet-btn .wallet-icon .material-symbols-outlined {
  color: #0a0a0a !important;
}

.dark-mode .cash-card {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.dark-mode .cash-card .wallet-icon {
  background: #4a5568;
}

/* Responsive design for wallet */
@media (max-width: 768px) {
  .wallet-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .wallet-card {
    padding: 1rem;
  }
  
  .wallet-icon {
    width: 50px;
    height: 50px;
  }
  
  /* Override mobile responsive for Connect Wallet button */
  .connect-wallet-btn .wallet-icon {
    width: auto !important;
    height: auto !important;
  }
  
  .wallet-icon .material-symbols-outlined {
    font-size: 1.5rem;
  }
  
  .wallet-logo {
    width: 35px;
    height: 35px;
  }
  
  .wallet-logo.ghost-skull-icon {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   PRICE INDEX SECTION
   ======================================== */

.ghostnet-price-index {
  background: var(--ghostnet-dark);
  border: 1px solid var(--ghostnet-border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ghostnet-defi h2,
.ghostnet-explorer h2,
.ghostnet-prices h2,
.ghostnet-wallet h2,
.ghostnet-dex h2,
.ghostnet-price-index h2 {
  font-family: var(--font-slab) !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}



/* Coin Selector */
.coin-selector-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.coin-selector-label {
  color: var(--ghostnet-text);
  font-weight: 600;
  font-size: 1.1rem;
}

.coin-selector {
  background: var(--ghostnet-light);
  border: 2px solid var(--ghostnet-border);
  border-radius: 8px;
  color: var(--ghostnet-text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  min-width: 250px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.coin-selector:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.coin-selector:focus {
  outline: none;
  border-color: var(--ghostnet-primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Token Stats Row */
.token-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
}

.token-stats-row .stat-item {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.token-stats-row .stat-item:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

.token-stats-row .stat-label {
  display: block;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.token-stats-row .stat-value {
  font-family: var(--font-code);
  display: block;
  color: var(--ghostnet-text);
  font-size: 1.4rem;
  font-weight: 700;
}

.token-stats-row .stat-value.positive {
  color: var(--ghostnet-success);
}

.token-stats-row .stat-value.negative {
  color: var(--ghostnet-danger);
}

/* Chart Container */
.chart-container {
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-header h3 {
  color: var(--ghostnet-text);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.selected-token-name {
  color: var(--ghostnet-text);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Chart Wrapper */
.chart-wrapper {
  position: relative;
  height: 400px;
  margin: 1.5rem 0;
  background: var(--ghostnet-dark);
  border: 1px solid var(--ghostnet-border);
  border-radius: 8px;
  padding: 1rem;
}

#candlestick-chart {
  width: 100% !important;
  height: 100% !important;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chart-btn {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 6px;
  color: var(--ghostnet-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chart-btn:hover {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-dark);
  border-color: var(--ghostnet-primary);
}

.chart-btn.active {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-dark);
  border-color: var(--ghostnet-primary);
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

/* Chart Loading Indicator */
.chart-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.chart-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  color: var(--ghostnet-text);
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .token-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .token-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .ghostnet-header h1 {
    font-size: 2.5rem;
  }
  
  .ghostnet-logo {
    width: 60px;
    height: 60px;
  }
  
  .token-card {
    min-height: 180px;
  }
  
  .token-card-header {
    padding: 1rem 1rem 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .token-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .token-logo {
    width: 32px;
    height: 32px;
  }
  
  .token-logo.ghost-skull-icon {
    width: 36px;
    height: 36px;
  }
  
  .token-symbol {
    font-size: 1.2rem;
  }
  
  .token-card-body {
    padding: 1rem;
  }
  
  .token-name {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .token-price {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .token-change {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  
  .ghostnet-main {
    padding: 1rem;
  }
  
  .ghostnet-dashboard {
    grid-template-columns: 1fr;
  }
  
  .trading-interface {
    grid-template-columns: 1fr;
  }
  
  .ghostnet-logo {
    font-size: 2rem;
  }
  
  .portfolio-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ghostnet-price-index {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .coin-selector-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .coin-selector {
    min-width: auto;
    width: 100%;
  }
  
  .chart-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .token-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .token-stats-row .stat-item {
    padding: 0.75rem;
  }
  
  .token-stats-row .stat-value {
    font-size: 1.2rem;
  }
  
  .chart-wrapper {
    height: 300px;
  }
  
  .chart-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .token-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .ghostnet-header {
    padding: 2rem 0;
  }
  
  .ghostnet-header h1 {
    font-size: 2rem;
  }
  
  .token-card {
    min-height: 160px;
  }
  
  .token-card-header {
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .token-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .token-logo {
    width: 28px;
    height: 28px;
  }
  
  .token-logo.ghost-skull-icon {
    width: 32px;
    height: 32px;
  }
  
  .token-symbol {
    font-size: 1.1rem;
  }
  
  .token-card-body {
    padding: 0.75rem;
  }
  
  .token-name {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .token-price {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }
  
  .token-change {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }
  
  .portfolio-stats {
    grid-template-columns: 1fr;
  }
  
  .ghostnet-header {
    padding: 1rem 0;
  }
  
  .ghostnet-logo {
    font-size: 1.5rem;
  }
  
  .token-stats-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .token-stats-row .stat-item {
    padding: 0.5rem;
  }
  
  .token-stats-row .stat-value {
    font-size: 1.1rem;
  }
  
  .chart-wrapper {
    height: 250px;
  }
}

/* ========================================
   DARK MODE OVERRIDE
   ======================================== */

body.dark-mode {
  --ghostnet-primary: #00ff88;
  --ghostnet-secondary: #0066ff;
  --ghostnet-accent: #ff3366;
  --ghostnet-dark: #0a0a0a;
  --ghostnet-darker: #050505;
  --ghostnet-light: #1a1a1a;
  --ghostnet-text: #ffffff;
  --ghostnet-text-dim: #cccccc;
  --ghostnet-border: #333333;
  --ghostnet-success: #00ff88;
  --ghostnet-danger: #ff3366;
  --ghostnet-warning: #ffaa00;
}

body.dark-mode .chart-loading {
  background: rgba(17, 17, 17, 0.9);
}

body.dark-mode .loading-spinner {
  border-color: #333;
  border-top-color: var(--ghostnet-primary);
}

/* ========================================
   GHOST DEFI SECTION
   ======================================== */

.ghostnet-defi {
  background: var(--ghostnet-dark);
  padding: 2rem 0;
  margin: 2rem 0;
}

.defi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.defi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.defi-pool-card {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.defi-pool-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

.defi-pool-card.featured-pool {
  border-color: var(--ghostnet-accent);
  background: linear-gradient(135deg, var(--ghostnet-light) 0%, rgba(255, 51, 102, 0.02) 100%);
}

.defi-pool-card.featured-pool:hover {
  border-color: var(--ghostnet-accent);
  box-shadow: 0 8px 25px rgba(255, 51, 102, 0.2);
}

/* Pool Banner */
.pool-banner {
  position: absolute;
  top: -1px;
  right: 1rem;
  background: linear-gradient(135deg, var(--ghostnet-success), #20c997);
  color: var(--ghostnet-light);
  padding: 0.25rem 0.5rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  z-index: 10;
  max-width: 80px;
}

.banner-text {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-emoji {
  font-size: 0.9rem;
}

/* Pool Header */
.pool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.pool-icons {
  position: relative;
  width: 70px;
  height: 50px;
  flex-shrink: 0;
}

.pool-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--ghostnet-light);
  background: var(--ghostnet-light);
}

.pool-icon.primary-icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.7;
}

.pool-icon.secondary-icon {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 2;
}

.pool-info {
  flex: 1;
}

.pool-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ghostnet-text);
  line-height: 1.2;
}

.pool-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pool-badge {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-light);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pool-icon-small {
  font-size: 0.9rem;
}

/* Pool Metrics */
.pool-metrics {
  margin-bottom: 1.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

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

.metric-label {
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.metric-value {
  color: var(--ghostnet-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}

/* Stake Button */
.stake-button {
  width: 100%;
  background: var(--ghostnet-primary);
  border: none;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  color: var(--ghostnet-light);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stake-button:hover {
  background: var(--ghostnet-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.stake-button.featured-stake {
  background: var(--ghostnet-accent);
}

.stake-button.featured-stake:hover {
  background: #e83e8c;
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.stake-text {
  font-family: 'Roboto Mono', monospace;
}

/* Pool Expand */
.pool-expand {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ghostnet-text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.pool-expand:hover {
  color: var(--ghostnet-primary);
  transform: translateY(2px);
}

.pool-expand .material-symbols-outlined {
  font-size: 1.25rem;
}

/* Dark Mode Adjustments */
body.dark-mode .defi-pool-card {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .defi-pool-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.25);
}

body.dark-mode .defi-pool-card.featured-pool {
  background: linear-gradient(135deg, #1a1a2e 0%, rgba(255, 51, 102, 0.05) 100%);
  border-color: var(--ghostnet-accent);
}

body.dark-mode .defi-pool-card.featured-pool:hover {
  box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
}

body.dark-mode .pool-icon {
  background: #2d3748;
  border-color: #4a5568;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .defi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .ghostnet-defi {
    padding: 1.5rem 0;
  }
  
  .defi-container {
    padding: 0 0.5rem;
  }
  
  .defi-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .defi-pool-card {
    padding: 1.25rem;
  }
  
  .pool-banner {
    right: 0.75rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    max-width: 70px;
  }
  
  .pool-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .pool-icons {
    width: 60px;
    height: 40px;
  }
  
  .pool-icon {
    width: 30px;
    height: 30px;
  }
  
  .pool-icon.secondary-icon {
    left: 18px;
  }
  
  .pool-info h3 {
    font-size: 1.2rem;
  }
  
  .pool-metrics {
    margin-bottom: 1.25rem;
  }
  
  .metric-row {
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
  }
  
  .metric-label,
  .metric-value {
    font-size: 0.85rem;
  }
  
  .stake-button {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
  }
}

@media (max-width: 480px) {
  .ghostnet-defi {
    padding: 1rem 0;
  }
  
  .defi-container {
    padding: 0 0.25rem;
  }
  
  .defi-pool-card {
    padding: 1rem;
  }
  
  .pool-banner {
    right: 0.5rem;
    padding: 0.15rem 0.3rem;
    font-size: 0.55rem;
    max-width: 60px;
  }
  
  .pool-header {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .pool-icons {
    width: 55px;
    height: 35px;
  }
  
  .pool-icon {
    width: 26px;
    height: 26px;
  }
  
  .pool-icon.secondary-icon {
    left: 16px;
  }
  
  .pool-info h3 {
    font-size: 1.1rem;
  }
  
  .pool-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .pool-metrics {
    margin-bottom: 1rem;
  }
  
  .metric-row {
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
  }
  
  .metric-label,
  .metric-value {
    font-size: 0.8rem;
  }
  
  .stake-button {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .pool-expand {
    padding: 0.4rem;
  }
  
  .pool-expand .material-symbols-outlined {
    font-size: 1.1rem;
  }
}

/* ========================================
   GHOSTNET BLOCK EXPLORER
   ======================================== */

.ghostnet-explorer {
  background: var(--ghostnet-dark);
  padding: 2rem 0;
  margin: 2rem 0;
}

.explorer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation Tabs */
.explorer-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--ghostnet-border);
}

.explorer-tab {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.explorer-tab.active {
  color: var(--ghostnet-primary);
  border-bottom-color: var(--ghostnet-primary);
}

.explorer-tab:hover {
  color: var(--ghostnet-text);
}

/* Countdown Timer */
.countdown-container {
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.countdown-bar {
  width: 100%;
  height: 8px;
  background: var(--ghostnet-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.countdown-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-secondary));
  border-radius: 4px;
  transition: width 1s linear;
  width: 0%;
}

.countdown-text {
  color: var(--ghostnet-text);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Roboto Mono', monospace;
}

/* Validations Table */
.validations-table {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr 1fr 0.8fr 1.5fr 0.8fr;
  background: var(--ghostnet-darker);
  border-bottom: 1px solid var(--ghostnet-border);
}

.header-cell {
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ghostnet-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid var(--ghostnet-border);
}

.header-cell:last-child {
  border-right: none;
}

.table-body {
  max-height: 600px;
  overflow-y: auto;
}

.validation-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr 1fr 0.8fr 1.5fr 0.8fr;
  border-bottom: 1px solid var(--ghostnet-border);
  transition: all 0.2s ease;
}

.validation-row:hover {
  background: var(--ghostnet-darker);
}

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

.table-cell {
  padding: 0.875rem 0.75rem;
  font-size: 0.85rem;
  color: var(--ghostnet-text);
  border-right: 1px solid var(--ghostnet-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-cell:last-child {
  border-right: none;
}

.table-cell.time {
  font-family: 'Roboto Mono', monospace;
  color: var(--ghostnet-text-dim);
}

.table-cell.level {
  font-family: 'Roboto Mono', monospace;
  color: var(--ghostnet-primary);
  font-weight: 600;
}

.table-cell.validator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.validator-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ghostnet-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ghostnet-light);
  flex-shrink: 0;
}

.validator-name {
  font-weight: 500;
  color: var(--ghostnet-text);
}

.table-cell.type {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.table-cell.status {
  font-weight: 600;
}

.status.success {
  color: var(--ghostnet-success);
}

.status.error {
  color: var(--ghostnet-danger);
}

.status.pending {
  color: var(--ghostnet-warning);
}

.table-cell.details {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: var(--ghostnet-text-dim);
}

.table-cell.reward {
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  color: var(--ghostnet-success);
}

.table-cell.reward.profit {
  color: var(--ghostnet-success);
}

.table-cell.reward.loss {
  color: var(--ghostnet-danger);
}

.table-cell.reward.investment {
  color: var(--ghostnet-danger);
}

.table-cell.reward.neutral {
  color: var(--ghostnet-text-dim);
}

/* Dark Mode Adjustments */
body.dark-mode .validations-table {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .table-header {
  background: #2d3748;
}

body.dark-mode .validation-row:hover {
  background: #2d3748;
}

body.dark-mode .countdown-container {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .countdown-bar {
  background: #4a5568;
}

body.dark-mode .explorer-tabs {
  border-bottom-color: #4a5568;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .table-header,
  .validation-row {
    grid-template-columns: 1fr 0.7fr 1fr 0.8fr 0.7fr 1.2fr 0.7fr;
  }
  
  .header-cell,
  .table-cell {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .ghostnet-explorer {
    padding: 1.5rem 0;
  }
  
  .explorer-container {
    padding: 0 0.5rem;
  }
  
  .explorer-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .explorer-tab {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }
  
  .countdown-container {
    padding: 0.75rem;
  }
  
  .countdown-text {
    font-size: 0.8rem;
  }
  
  .table-header,
  .validation-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .header-cell,
  .table-cell {
    padding: 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--ghostnet-border);
  }
  
  .header-cell:last-child,
  .table-cell:last-child {
    border-bottom: none;
  }
  
  .table-cell {
    display: block;
  }
  
  .table-cell::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--ghostnet-text-dim);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .explorer-tabs {
    flex-direction: column;
  }
  
  .explorer-tab {
    text-align: center;
    border-bottom: 1px solid var(--ghostnet-border);
  }
  
  .explorer-tab.active {
    border-bottom-color: var(--ghostnet-primary);
  }
}

/* ========================================
   DEX EXCHANGE INTERFACE
   ======================================== */

.ghostnet-dex {
  background: var(--ghostnet-dark);
  padding: 2rem 0;
  margin: 2rem 0;
}


.dex-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.dex-main {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Swap Widget */
.swap-widget {
  background: var(--ghostnet-light);
}

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

.swap-tabs {
  display: flex;
  gap: 0;
}

.swap-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  color: var(--ghostnet-text-dim);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.swap-tab.active {
  color: var(--ghostnet-primary);
  border-bottom-color: var(--ghostnet-primary);
}

.swap-tab:hover {
  color: var(--ghostnet-text);
}

.settings-btn {
  background: none;
  border: none;
  color: var(--ghostnet-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.settings-btn:hover {
  background: var(--ghostnet-darker);
}

.settings-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

/* Swap Content */
.swap-content {
  padding: 1.5rem;
}

/* Wallet Balance Section */
.wallet-balance-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
}

.wallet-label {
  display: block;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.wallet-balance-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-balance-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-balance-amount {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ghostnet-text);
}

.wallet-balance-symbol {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ghostnet-text-dim);
}

.wallet-balance-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ghostnet-text-dim);
}

.token-input-section {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Percentage Buttons */
.percentage-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: space-between;
}

.percentage-btn {
  flex: 1;
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
  color: var(--ghostnet-text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Roboto Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.percentage-btn:hover {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-light);
  border-color: var(--ghostnet-primary);
}

.percentage-btn:active {
  transform: translateY(1px);
}

.token-input-container {
  display: flex;
  align-items: center;
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.token-input-container:hover {
  border-color: var(--ghostnet-primary);
}

.token-input-container:focus-within {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

.amount-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.amount-input input {
  background: none;
  border: none;
  color: var(--ghostnet-text);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
  outline: none;
  width: 100%;
}

.amount-input input::placeholder {
  color: var(--ghostnet-text-dim);
}

/* Hide default number input spinner arrows */
#from-amount::-webkit-outer-spin-button,
#from-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#from-amount {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Custom spinner buttons */
.input-with-spinner {
  position: relative;
  display: flex;
  align-items: center;
}

#from-amount {
  padding-right: 2.5rem; /* Space for spinner buttons */
  width: 100%;
}

.spinner-buttons {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.spinner-up,
.spinner-down {
  background: none;
  border: none;
  color: var(--ghostnet-text-dim);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.125rem;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.spinner-up:hover,
.spinner-down:hover {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-light);
}

.usd-value {
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.token-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.token-selector:hover {
  background: var(--ghostnet-darker);
  border-color: var(--ghostnet-primary);
}

.token-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.token-symbol {
  font-weight: 600;
  color: var(--ghostnet-text);
  font-size: 0.9rem;
}

.token-selector .material-symbols-outlined {
  font-size: 1rem;
  color: var(--ghostnet-text-dim);
}

/* Swap Direction */
.swap-direction {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.swap-direction-btn {
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swap-direction-btn:hover {
  background: var(--ghostnet-primary);
  border-color: var(--ghostnet-primary);
  transform: rotate(180deg);
}

.swap-direction-btn .material-symbols-outlined {
  color: var(--ghostnet-text);
  font-size: 1.25rem;
}

.swap-direction-btn:hover .material-symbols-outlined {
  color: var(--ghostnet-light);
}

/* Swap Button */
.swap-button {
  width: 100%;
  background: var(--ghostnet-primary);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  color: var(--ghostnet-light);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 1.5rem 0 1rem 0;
}

.swap-button:hover {
  background: var(--ghostnet-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.swap-button:disabled {
  background: var(--ghostnet-border);
  color: var(--ghostnet-text-dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.swap-button-text {
  font-family: 'Roboto Mono', monospace;
}

/* Powered By */
.powered-by {
  text-align: center;
  color: var(--ghostnet-text-dim);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.powered-logo {
  color: var(--ghostnet-primary);
  font-weight: 600;
  margin-left: 0.25rem;
}

/* DEX Sidebar */
.dex-sidebar {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--ghostnet-border);
}

.sidebar-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 1rem;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-tab.active {
  color: var(--ghostnet-primary);
  border-bottom-color: var(--ghostnet-primary);
}

.sidebar-tab:hover {
  color: var(--ghostnet-text);
}

.sidebar-content {
  padding: 1.5rem;
}

.exchange-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

.info-icon {
  font-size: 0.875rem;
  color: var(--ghostnet-text-dim);
  cursor: help;
}

.detail-value {
  color: var(--ghostnet-text);
  font-weight: 600;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-usd {
  color: var(--ghostnet-text-dim);
  font-size: 0.8rem;
  font-weight: 500;
}

.price-impact {
  color: var(--ghostnet-text-dim);
  font-family: 'Roboto Mono', monospace;
}

.fee-amount {
  font-family: 'Roboto Mono', monospace;
  color: var(--ghostnet-text-dim);
}

/* Token Dropdown */
.token-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  min-width: 200px;
  width: max-content;
}

.token-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--ghostnet-border);
}

.token-dropdown-item:last-child {
  border-bottom: none;
}

.token-dropdown-item:hover {
  background: var(--ghostnet-darker);
  transform: translateX(2px);
}

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

.token-dropdown-item .token-symbol {
  font-weight: 600;
  color: var(--ghostnet-text);
  font-size: 0.95rem;
}

.token-dropdown-item .token-name {
  color: var(--ghostnet-text-dim);
  font-size: 0.8rem;
  margin-top: 0.125rem;
}

/* Dark Mode Adjustments */
body.dark-mode .dex-main,
body.dark-mode .dex-sidebar {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .token-input-container {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .token-input-container:hover {
  border-color: var(--ghostnet-primary);
}

body.dark-mode .token-selector {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .token-selector:hover {
  background: #4a5568;
  border-color: var(--ghostnet-primary);
}

body.dark-mode .swap-direction-btn {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .token-dropdown {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .token-dropdown-item:hover {
  background: #2d3748;
}

body.dark-mode .wallet-balance-section {
  background: #2d3748;
  border-color: #4a5568;
}

body.dark-mode .wallet-balance-amount {
  color: #ffffff;
}

body.dark-mode .wallet-balance-symbol {
  color: #9bb0c8;
}

body.dark-mode .wallet-balance-value {
  color: #9bb0c8;
}

body.dark-mode .percentage-btn {
  background: #2d3748;
  border-color: #4a5568;
  color: #9bb0c8;
}

body.dark-mode .percentage-btn:hover {
  background: var(--ghostnet-primary);
  color: #0a0a0a;
  border-color: var(--ghostnet-primary);
}

body.dark-mode .spinner-up,
body.dark-mode .spinner-down {
  color: #9bb0c8;
}

body.dark-mode .spinner-up:hover,
body.dark-mode .spinner-down:hover {
  background: var(--ghostnet-primary);
  color: #0a0a0a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dex-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dex-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .ghostnet-dex {
    padding: 1rem 0;
  }
  
  .dex-container {
    padding: 0 0.5rem;
  }
  
  .swap-content {
    padding: 1rem;
  }
  
  .swap-header {
    padding: 1rem 1rem 0 1rem;
  }
  
  .token-input-container {
    padding: 0.75rem;
  }
  
  .amount-input input {
    font-size: 1.25rem;
  }
  
  .token-selector {
    min-width: 100px;
    padding: 0.4rem 0.6rem;
  }
  
  .token-icon {
    width: 20px;
    height: 20px;
  }
  
  .token-symbol {
    font-size: 0.8rem;
  }
  
  .swap-button {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  .sidebar-content {
    padding: 1rem;
  }
  
  .exchange-details {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .swap-tabs {
    gap: 0;
  }
  
  .swap-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .token-input-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .token-selector {
    align-self: flex-start;
    min-width: auto;
  }
  
  .amount-input input {
    font-size: 1.1rem;
  }
  
  .swap-direction-btn {
    width: 36px;
    height: 36px;
  }
  
  .swap-direction-btn .material-symbols-outlined {
    font-size: 1.1rem;
  }
  
  /* Mobile dropdown adjustments */
  .token-dropdown {
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    max-width: calc(100vw - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* ========================================
   GHOSTNET DAPPS SECTION
   ======================================== */

.ghostnet-dapps {
  background: var(--ghostnet-dark);
  padding: 2rem 0;
  margin: 2rem 0;
}

.ghostnet-dapps h2 {
  font-family: var(--font-slab) !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--ghostnet-text);
}

.dapps-subtitle {
  font-family: 'Roboto';
  text-transform: uppercase;
  text-align: center;
  color: var(--ghostnet-text-dim);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.dapps-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dapps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.dapp-card {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dapp-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

.dapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-secondary));
}

.dapp-card.coming-soon::before {
  background: linear-gradient(90deg, var(--ghostnet-warning), var(--ghostnet-accent));
}

.dapp-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ghostnet-border);
}

.dapp-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--ghostnet-darker);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dapp-card:hover .dapp-icon-wrapper {
  border: 2px solid var(--ghostnet-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
  transform: scale(1.05);
}

.dapp-icon {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dapp-info {
  flex: 1;
}

.dapp-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ghostnet-text);
  line-height: 1.2;
}

.dapp-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--ghostnet-success);
  color: var(--ghostnet-light);
}

.dapp-status.coming-soon-status {
  background: var(--ghostnet-warning);
  color: var(--ghostnet-dark);
  animation: pulse 2s infinite;
}

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

.dapp-content {
  color: var(--ghostnet-text-dim);
  line-height: 1.6;
}

.dapp-content p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.dapp-content p:last-child {
  margin-bottom: 1rem;
}

.ghostnet-integration {
  background: var(--ghostnet-darker);
  border-left: 4px solid var(--ghostnet-primary);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0 !important;
  font-style: italic;
}

.ghostnet-integration strong {
  color: var(--ghostnet-primary);
  font-weight: 600;
}

.dapp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-tag {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-light);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: var(--ghostnet-secondary);
  transform: translateY(-1px);
}

/* Dark Mode Adjustments */
body.dark-mode .dapp-card {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .dapp-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.25);
}

body.dark-mode .dapp-icon-wrapper {
  background: #2d3748;
}

body.dark-mode .dapp-card:hover .dapp-icon-wrapper {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

body.dark-mode .ghostnet-integration {
  background: #2d3748;
  border-left-color: var(--ghostnet-primary);
}

body.dark-mode .ghostnet-integration strong {
  color: var(--ghostnet-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ghostnet-dapps {
    padding: 1.5rem 0;
  }
  
  .ghostnet-dapps h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .dapps-container {
    padding: 0 0.5rem;
  }
  
  .dapps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dapp-card {
    padding: 1.25rem;
  }
  
  .dapp-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .dapp-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .dapp-icon {
    font-size: 1.5rem;
  }
  
  .dapp-info h3 {
    font-size: 1.25rem;
  }
  
  .dapp-content p {
    font-size: 0.9rem;
  }
  
  .ghostnet-integration {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .dapp-features {
    gap: 0.4rem;
  }
  
  .feature-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .ghostnet-dapps {
    padding: 1rem 0;
  }
  
  .ghostnet-dapps h2 {
    font-size: 1.5rem;
  }
  
  .dapps-container {
    padding: 0 0.25rem;
  }
  
  .dapps-grid {
    gap: 1rem;
  }
  
  .dapp-card {
    padding: 1rem;
  }
  
  .dapp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }
  
  .dapp-icon-wrapper {
    width: 45px;
    height: 45px;
  }
  
  .dapp-icon {
    font-size: 1.25rem;
  }
  
  .dapp-info h3 {
    font-size: 1.1rem;
  }
  
  .dapp-content p {
    font-size: 0.85rem;
  }
  
  .ghostnet-integration {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .dapp-features {
    justify-content: center;
  }
  
  .feature-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
}

/* ========================================
   TOKEN INFORMATION SECTION
   ======================================== */

.ghostnet-token-info {
  background: var(--ghostnet-dark);
  padding: 2rem 0;
  margin: 2rem 0;
}

.ghostnet-token-info h2 {
  color: var(--ghostnet-text);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.wrapped-tokens-explanation {
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  padding: 2rem;
  margin: 0 auto 2rem auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.wrapped-tokens-explanation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ghostnet-accent), var(--ghostnet-primary));
}

.wrapped-tokens-explanation h3 {
  color: var(--ghostnet-text);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

.explanation-content {
  text-align: left;
}

.explanation-text {
  color: var(--ghostnet-text-dim);
  line-height: 1.6;
}

.explanation-text p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.explanation-text p:last-child {
  margin-bottom: 0;
}

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

.wrapping-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ghostnet-light);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--ghostnet-border);
}

.real-token,
.wrapped-token,
.ghostnet {
  background: var(--ghostnet-primary);
  color: var(--ghostnet-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  min-width: 80px;
}

.wrapped-token {
  background: var(--ghostnet-accent);
}

.ghostnet {
  background: var(--ghostnet-secondary);
}

.arrow {
  color: var(--ghostnet-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Dark Mode Adjustments */
body.dark-mode .wrapped-tokens-explanation {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .wrapping-flow {
  background: #2d3748;
  border-color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapped-tokens-explanation {
    padding: 1.5rem;
    margin: 0 1rem 1.5rem 1rem;
  }
  
  .wrapped-tokens-explanation h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .explanation-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .explanation-text p {
    font-size: 0.9rem;
  }
  
  .wrapping-flow {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .real-token,
  .wrapped-token,
  .ghostnet {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: 60px;
  }
  
  .arrow {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .wrapped-tokens-explanation {
    padding: 1rem;
    margin: 0 0.5rem 1rem 0.5rem;
  }
  
  .wrapping-flow {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }
  
  .arrow {
    transform: rotate(90deg);
  }
  
  .real-token,
  .wrapped-token,
  .ghostnet {
    min-width: 100px;
  }
}

.ghost-token-featured {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

.token-info-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.token-info-card {
  background: var(--ghostnet-light);
  border: 1px solid var(--ghostnet-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.token-info-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

.token-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-secondary));
}

.ghost-token-info::before {
  background: linear-gradient(90deg, var(--ghostnet-primary), var(--ghostnet-accent));
}

.token-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.token-info-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.token-info-title h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ghostnet-text);
}


.token-info-content {
  color: var(--ghostnet-text-dim);
  line-height: 1.6;
}

.token-info-content p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

.token-info-content p:last-child {
  margin-bottom: 0;
}

.personal-note {
  background: var(--ghostnet-darker);
  border-left: 4px solid var(--ghostnet-primary);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem !important;
  font-style: italic;
}

.personal-note strong {
  color: var(--ghostnet-primary);
  font-weight: 600;
}

/* Dark Mode Adjustments */
body.dark-mode .token-info-card {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .token-info-card:hover {
  border-color: var(--ghostnet-primary);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.25);
}

body.dark-mode .personal-note {
  background: #2d3748;
  border-left-color: var(--ghostnet-primary);
}

body.dark-mode .personal-note strong {
  color: var(--ghostnet-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ghostnet-token-info {
    padding: 1.5rem 0;
  }
  
  .ghostnet-token-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .ghost-token-featured {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .token-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .token-info-card {
    padding: 1rem;
  }
  
  .token-info-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .token-info-icon {
    width: 40px;
    height: 40px;
  }
  
  .token-info-title h3 {
    font-size: 1.25rem;
  }
  
  .token-info-content p {
    font-size: 0.9rem;
  }
  
  .personal-note {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .ghostnet-token-info h2 {
    font-size: 1.5rem;
  }
  
  .ghost-token-featured {
    margin-bottom: 1rem;
    padding: 0 0.25rem;
  }
  
  .token-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  
  .token-info-card {
    padding: 0.75rem;
  }
  
  .token-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .token-info-icon {
    width: 36px;
    height: 36px;
  }
  
  .token-info-title h3 {
    font-size: 1.1rem;
  }
  
  .token-info-content p {
    font-size: 0.85rem;
  }
}

/* ========================================
   DISCLAIMER & POWERED BY SECTIONS
   ======================================== */

.ghostnet-disclaimer {
  background: var(--ghostnet-darker);
  border: 1px solid var(--ghostnet-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.ghostnet-disclaimer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ghostnet-warning), var(--ghostnet-primary));
}

.disclaimer-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.disclaimer-icon {
  background: var(--ghostnet-warning);
  color: var(--ghostnet-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.disclaimer-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.disclaimer-text {
  flex: 1;
}

.disclaimer-text p {
  margin: 0;
  color: var(--ghostnet-text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.disclaimer-text strong {
  color: var(--ghostnet-warning);
  font-weight: 600;
}

.ghostnet-powered-by {
  background: var(--ghostnet-dark);
  padding: 1.5rem 0;
  margin-top: 2rem;
  text-align: center;
}

.powered-by {
  color: var(--ghostnet-text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.powered-by a {
  color: var(--ghostnet-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.powered-by a:hover {
  color: var(--ghostnet-secondary);
  text-decoration: underline;
}

/* Dark Mode Adjustments */
body.dark-mode .ghostnet-disclaimer {
  background: #1a1a2e;
  border-color: #2d3748;
}

body.dark-mode .disclaimer-icon {
  background: var(--ghostnet-warning);
  color: #0a0a0a;
}

body.dark-mode .disclaimer-text p {
  color: #cccccc;
}

body.dark-mode .disclaimer-text strong {
  color: var(--ghostnet-warning);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ghostnet-disclaimer {
    margin: 1.5rem 1rem;
    padding: 1rem;
  }
  
  .disclaimer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  
  .disclaimer-icon {
    margin-top: 0;
  }
  
  .disclaimer-text p {
    font-size: 0.85rem;
  }
  
  .ghostnet-powered-by {
    padding: 1rem 0;
  }
  
  .powered-by {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .ghostnet-disclaimer {
    margin: 1rem 0.5rem;
    padding: 0.75rem;
  }
  
  .disclaimer-icon {
    width: 36px;
    height: 36px;
  }
  
  .disclaimer-icon .material-symbols-outlined {
    font-size: 1.1rem;
  }
  
  .disclaimer-text p {
    font-size: 0.8rem;
  }
  
  .powered-by {
    font-size: 0.75rem;
  }
}

/* ========================================
   CUSTOM MODALS
   ======================================== */

/* Login Modal */
#login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Roboto Mono', monospace;
}

.login-modal-container {
  background: #1a1a2e;
  border: 2px solid #00ff88;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
}

.login-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-modal-icon {
  width: 40px;
  height: 40px;
  background: #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.login-modal-icon .material-symbols-outlined {
  color: #ffffff !important;
  font-size: 1.5rem;
}

/* Dark mode adjustments for login modal */
body[data-theme="dark"] .login-modal-container {
  background: #0a0a0a;
  border-color: #00ff88;
}

body[data-theme="dark"] .login-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-theme="dark"] .login-modal-icon {
  background: #00ff88;
}

body[data-theme="dark"] .login-modal-icon .material-symbols-outlined {
  color: #0a0a0a;
}

body[data-theme="dark"] .login-modal-title {
  color: #00ff88;
}

body[data-theme="dark"] .login-modal-description {
  color: #cccccc;
}

body[data-theme="dark"] .login-modal-input {
  background: #1a1a1a;
  border-color: #333333;
  color: #ffffff;
}

body[data-theme="dark"] .login-modal-input:focus {
  border-color: #00ff88;
}

body[data-theme="dark"] .login-modal-btn-cancel {
  background: #333333;
  color: #ffffff;
}

body[data-theme="dark"] .login-modal-btn-cancel:hover {
  background: #4a5568;
}

body[data-theme="dark"] .login-modal-btn-submit {
  background: #00ff88;
  color: #0a0a0a;
}

body[data-theme="dark"] .login-modal-btn-submit:hover {
  background: #00e676;
}

.login-modal-title {
  color: #00ff88;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.login-modal-description {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.login-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 1.5rem;
}

.login-modal-input:focus {
  border-color: #00ff88;
}

.login-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.login-modal-btn {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-modal-btn-cancel {
  background: #4a5568;
  color: #ffffff;
}

.login-modal-btn-cancel:hover {
  background: #6b7280;
}

.login-modal-btn-submit {
  background: #00ff88;
  color: #0a0a0a;
}

.login-modal-btn-submit:hover {
  background: #00e676;
}

/* Blockchain Connection Modal */
#blockchain-connection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Roboto Mono', monospace;
}

.blockchain-modal-container {
  background: #1a1a2e;
  border: 2px solid #00ff88;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
}

.blockchain-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.blockchain-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid #00ff88;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

.blockchain-modal-title {
  color: #00ff88;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.blockchain-status {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  min-height: 60px;
}

.blockchain-subtitle {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
}

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

/* Ghostnet logo dark mode - handled by JavaScript */
