/* Kingdom Trending - Dark Theme Styles */

/* CSS Variables */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-tertiary: #2A2A2A;
  --accent-purple: #BB86FC;
  --accent-teal: #03DAC6;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #666666;
  --border-color: #333333;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --warning-color: #FF9800;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure all images are visible */
img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.search-section {
  flex: 1;
  max-width: 400px;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-result-item:hover {
  background-color: var(--bg-tertiary);
}

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

.search-result-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.search-result-symbol {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-result-chain {
  font-size: 0.7rem;
  color: var(--accent-teal);
  text-transform: uppercase;
}

/* Unlisted token styles removed - only local database search */

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions, .header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button Styles */
.btn-primary, .list-token-btn {
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-teal));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-primary:hover, .list-token-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.telegram-btn {
  background: linear-gradient(45deg, #0088cc, #229ED9);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(45deg, #006699, #1a7bb8);
}

.new-listings-btn {
  background: linear-gradient(45deg, #FF6B35, #F7931E);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.new-listings-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(45deg, #E55A2B, #E0841A);
}

.new-listings-btn.active {
  background: linear-gradient(45deg, #E55A2B, #E0841A);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

/* Banner Section */
.banner-section {
  padding: 1rem 0;
  background-color: var(--bg-secondary);
}

.banners, .banner-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.banner {
  flex: 1;
  max-width: 700px;
  min-width: 300px;
}

.banner-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.banner-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* Middle Banner Section */
.middle-banner-section {
  margin: 3rem 0;
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.middle-banners {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.middle-banner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.middle-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.middle-banner.banner-large {
  flex: 3;
  min-width: 400px;
  max-width: 600px;
}

.middle-banner.banner-small {
  flex: 3;
  min-width: 400px;
  max-width: 600px;
}

.middle-banner-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block !important;
  cursor: pointer;
  transition: var(--transition);
  visibility: visible !important;
  opacity: 1 !important;
}

.middle-banner-img:hover {
  transform: scale(1.05);
}

/* Banner Placeholder */
.banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: var(--transition);
}

.banner-placeholder:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.15) 100%);
}

.banner-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.banner-placeholder span {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.banner-placeholder small {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 400;
}

@media (max-width: 768px) {
  .middle-banners {
    flex-direction: column;
    gap: 1rem;
  }
  
  .middle-banner.banner-large,
  .middle-banner.banner-small {
    flex: 1;
    min-width: 100%;
    max-width: 100%;
  }
  
  .middle-banner-img {
    height: 150px;
  }
  
  .banner-placeholder {
    height: 150px;
  }
  
  .banner-placeholder i {
    font-size: 2rem;
  }
}

/* Main Content */
.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.section-title i {
  color: var(--accent-purple);
}

/* Trending Section */
.trending-section {
  margin-bottom: 3rem;
}

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

.trending-card {
  background: linear-gradient(145deg, var(--bg-secondary), rgba(30, 30, 30, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.03), rgba(3, 218, 198, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.trending-card:hover::before {
  opacity: 1;
}

.trending-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(187, 134, 252, 0.2);
  border-color: var(--accent-purple);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(42, 42, 42, 0.9));
}

.trending-card .rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 193, 7, 0.9));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 3;
  transition: all 0.3s ease;
}

.trending-card .rank-badge i {
  font-size: 14px;
  color: #1a1a1a;
}

.trending-card .rank-badge .rank-number {
  font-size: 10px;
  font-weight: bold;
  color: #1a1a1a;
  margin-left: 2px;
}

.trending-card .rank-badge i.fa-crown {
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.trending-card:hover .rank-badge {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.trending-card .token-logo {
  width: 45px;
  height: 45px;
  margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.08), rgba(3, 218, 198, 0.08));
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.trending-card:hover .token-logo {
  transform: scale(1.15) rotate(3deg);
  box-shadow: 0 8px 25px rgba(187, 134, 252, 0.3);
}

.token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.trending-card .token-logo img {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.token-card .token-logo img {
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.token-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 2;
}

.token-symbol {
  font-size: 0.8rem;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.token-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  position: relative;
  z-index: 2;
}

.buy-count {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.market-cap {
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.65rem;
}

.vote-count {
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.liquidity {
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.65rem;
}

/* All Tokens Section */
.tokens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Vote Section Styles */
.vote-section {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .vote-section {
        flex-direction: column;
    }
    
    .vote-boost-btn {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
    }
}

.vote-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.vote-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.vote-btn.voted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.vote-btn.voted:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.vote-boost-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
    text-decoration: none;
    margin-left: 12px;
}

.vote-boost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #de831a 100%);
    text-decoration: none;
    color: white;
}

.vote-message {
    margin-top: 15px;
    min-height: 20px;
}

.success-message {
    color: #28a745;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}

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

@media (max-width: 768px) {
  .tokens-grid {
    grid-template-columns: 1fr;
  }
}

.token-card {
  background: linear-gradient(145deg, var(--bg-secondary), rgba(30, 30, 30, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.token-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.05), rgba(3, 218, 198, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.token-card:hover::before {
  opacity: 1;
}

.token-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(187, 134, 252, 0.3);
  border-color: var(--accent-purple);
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(42, 42, 42, 0.9));
}

.token-logo {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
}

.token-card .token-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.token-card .token-logo {
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.1), rgba(3, 218, 198, 0.1));
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.token-card:hover .token-logo {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(187, 134, 252, 0.4);
}

.token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.token-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.token-info .token-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.token-info .token-symbol {
  font-size: 1.2rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

/* All Tokens section specific styles */
.tokens-grid .token-card {
  min-height: 50px;
  padding: 0.8rem;
}

.tokens-grid .token-card .token-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 0.5rem;
}

.tokens-grid .token-info {
  gap: 0.4rem;
}

.tokens-grid .token-name-symbol {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tokens-grid .token-info .token-name {
  font-size: 1rem;
  max-width: 120px;
}

.tokens-grid .token-info .token-symbol {
  font-size: 0.9rem;
  opacity: 0.8;
}

.token-info .chain-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
  transition: all 0.3s ease;
}

.token-card:hover .chain-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(187, 134, 252, 0.5);
}

/* Removed unused styles for old token card layout */

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Chain Filters */
.chain-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chain-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
  border-color: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.filter-btn i {
  font-size: 1rem;
}

/* Responsive filters */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .chain-filters {
    width: 100%;
    justify-content: flex-start;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 0.3s ease;
}

/* Modern enhancements */
.tokens-grid {
  transition: all 0.3s ease;
}

.token-card {
  transition: all 0.3s ease, transform 0.2s ease;
}

.token-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced section styling */
.all-tokens-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trending-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Chain Badges */
.chain-badge {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chain-solana { background-color: #9945FF; }
.chain-ethereum { background-color: #627EEA; }
.chain-bsc { background-color: #F3BA2F; }
.chain-avalanche { background-color: #E84142; }
.chain-base { background-color: #0052FF; }
.chain-ton { background-color: #0088CC; }
.chain-tron { background-color: #FF060A; }

/* Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.cto {
  background-color: var(--accent-purple);
  color: white;
}

.badge.presale {
  background-color: var(--accent-teal);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.page-btn:hover {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.page-btn.active {
  background-color: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

/* No Tokens State */
.no-tokens {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-tokens i {
  font-size: 4rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

.no-tokens h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
}

.close {
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: var(--accent-purple);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
}

.form-section h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.form-group input[type="file"] {
  padding: 0.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.loading-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  text-align: center;
  color: var(--text-primary);
}

.loading-spinner i {
  font-size: 3rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

.loading-spinner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Token Detail Page Styles */
.token-detail-main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.token-header {
  margin-bottom: 2rem;
}

.token-banner {
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-header-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.token-main-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.token-logo-large {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.token-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.token-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.token-symbol-large {
  font-size: 1.2rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.token-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-section {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.price-item {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.price-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-teal);
}

.token-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.token-detail-left,
.token-detail-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.chart-section,
.description-section,
.platform-section,
.presale-section,
.social-section,
.contract-section,
.actions-section,
.stats-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.chart-container {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

.dexscreener-embed {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
}

.chart-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.description-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.platform-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.platform-link {
  color: var(--accent-teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.platform-link:hover {
  background-color: var(--bg-tertiary);
}

.presale-content {
  text-align: center;
}

.presale-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-teal));
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.presale-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.social-link-large {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link-large:hover {
  background-color: var(--border-color);
  transform: translateX(4px);
}

.social-link-large.telegram:hover { border-color: #0088CC; }
.social-link-large.twitter:hover { border-color: #1DA1F2; }
.social-link-large.website:hover { border-color: var(--accent-teal); }
.social-link-large.discord:hover { border-color: #7289DA; }
.social-link-large.contact:hover { border-color: var(--accent-purple); }

.contract-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contract-item label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contract-address {
  display: flex;
  gap: 0.5rem;
}

.contract-address input {
  flex: 1;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: monospace;
}

.copy-btn {
  background-color: var(--accent-purple);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background-color: var(--accent-teal);
}

.contract-value {
  color: var(--text-primary);
  font-weight: 500;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.action-btn:hover {
  background-color: var(--border-color);
  transform: translateX(4px);
}

.action-btn.dexscreener:hover { border-color: #FF6B6B; }
.action-btn.share:hover { border-color: var(--accent-teal); }
.action-btn.report:hover { border-color: var(--error-color); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-weight: 600;
  color: var(--accent-teal);
}

/* Admin Styles */
.admin-main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.admin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.admin-header p {
  color: var(--text-secondary);
}

.admin-content {
  max-width: 800px;
  margin: 0 auto;
}

.banner-form {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.banner-sections {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.banner-section {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.banner-section h2 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-preview {
  margin-bottom: 1rem;
}

.preview-container {
  position: relative;
  display: inline-block;
}

.banner-preview-img {
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 0.5rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: 0.8rem;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  background-color: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-muted);
}

.preview-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.admin-instructions {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.admin-instructions h3 {
  color: var(--accent-teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-instructions ul {
  list-style: none;
  padding: 0;
}

.admin-instructions li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.admin-instructions strong {
  color: var(--text-primary);
}

.admin-preview {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
}

.admin-preview h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-banners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-banner {
  max-width: 100%;
}

.preview-banner-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.no-banners-preview {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.no-banners-preview i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

/* Error Page Styles */
.error-main {
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-icon {
  font-size: 6rem;
  color: var(--accent-purple);
  margin-bottom: 2rem;
}

.error-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-subtitle {
  font-size: 2rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.error-suggestions {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: left;
}

.error-suggestions h3 {
  color: var(--accent-purple);
  margin-bottom: 1rem;
  text-align: center;
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
}

.error-suggestions li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.error-suggestions li i {
  color: var(--accent-teal);
  width: 20px;
}

.error-suggestions a {
  color: var(--accent-purple);
  text-decoration: none;
}

.error-suggestions a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .trending-card {
    height: 130px;
    padding: 0.75rem;
  }
  
  .tokens-grid {
    grid-template-columns: 1fr;
  }
  
  .token-card {
    height: auto;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .token-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .token-main-info {
    flex-direction: column;
    text-align: center;
  }
  
  .price-section {
    justify-content: center;
  }
  
  .token-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 300px;
  }
  
  .banner-sections {
    grid-template-columns: 1fr;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-title {
    font-size: 3rem;
  }
  
  .error-subtitle {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trending-card {
    height: 120px;
    padding: 0.5rem;
  }
  
  .token-name {
    font-size: 0.8rem;
  }
  
  .token-symbol {
    font-size: 0.7rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .error-title {
    font-size: 2.5rem;
  }
  
  .error-icon {
    font-size: 4rem;
  }
}

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

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

.trending-card,
.token-card {
  animation: fadeIn 0.5s ease-out;
}

.social-link-large,
.action-btn {
  animation: slideIn 0.3s ease-out;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* Selection Styling */
::selection {
  background-color: var(--accent-purple);
  color: white;
}

::-moz-selection {
  background-color: var(--accent-purple);
  color: white;
}

/* Footer Styles */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}