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

:root {
    --primary-blue: #00d4ff;
    --secondary-purple: #8b5cf6;
    --accent-cyan: #06ffa5;
    --neon-pink: #ff0080;
    --dark-bg: #0a0a0f;
    --darker-bg: #050507;
    --card-bg: rgba(20, 20, 30, 0.8);
    --border-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06ffa5 0%, #00d4ff 100%);
    --gradient-danger: linear-gradient(135deg, #ff0080 0%, #ff6b35 100%);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(6, 255, 165, 0.05) 0%, transparent 50%);
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-blue);
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: gridMove 20s linear infinite;
}

/* Header Styles */
.header {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    position: relative;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    overflow: hidden;
}

.logo-container:hover {
    transform: scale(1.05);
    border-color: var(--primary-blue);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.1);
}

.logo-image:hover {
    filter: brightness(1.3) contrast(1.2);
}

.logo-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    animation: logoGlow 3s ease-in-out infinite alternate;
    z-index: 1;
}

.sigma-logo .logo-container {
    border-color: rgba(0, 212, 255, 0.3);
}

.sigma-logo .logo-glow-effect {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
}

.sigma-logo .logo-container:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

.zora-logo .logo-container {
    border-color: rgba(6, 255, 165, 0.3);
}

.zora-logo .logo-glow-effect {
    background: radial-gradient(circle, rgba(6, 255, 165, 0.3) 0%, transparent 70%);
}

.zora-logo .logo-container:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 40px rgba(6, 255, 165, 0.6);
}

.logo-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
}

.collaboration-symbol {
    font-size: 3rem;
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.main-title {
    margin-bottom: 1.5rem;
}

.title-gradient {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-accent);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid var(--border-glow);
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-indicator {
    font-size: 1.5rem;
    animation: blink 1s infinite;
}

.status-indicator.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.status-value {
    color: var(--text-accent);
    font-weight: 600;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    overflow-x: hidden;
}

.leaderboard-container {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.leaderboard-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .leaderboard-scroll-wrapper {
        max-width: calc(100vw - 2rem); /* Account for main content padding */
    }
    
    .main-content {
        padding: 3rem 1rem; /* Reduce padding on mobile */
    }
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.title-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-blue));
}

.title-glow {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.refresh-btn {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.refresh-btn:hover {
    background: var(--primary-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.refresh-btn:hover .btn-glow {
    left: 100%;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    flex-direction: column;
}

.loading-animation {
    text-align: center;
}

.loading-circle {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-blue);
    border-right: 3px solid var(--secondary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--text-accent);
    letter-spacing: 0.1em;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Leaderboard Styles */
.leaderboard {
    display: grid;
    gap: 0.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(10px);
    overflow: hidden;
    width: 100%;
    min-width: 820px;
}

/* Remove old overflow from leaderboard-container - moved to scroll wrapper */

/* Scrollbar styling for webkit browsers */
.leaderboard-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.leaderboard-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.leaderboard-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.leaderboard-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Header Row */
.leaderboard-header-row {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-bottom: 2px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-main {
    display: grid;
    grid-template-columns: 80px 200px 150px 120px 80px 80px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    min-width: 820px;
    width: 100%;
}

.header-column {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.header-column.wallet-column {
    text-align: left;
}

.header-column.pnl-column {
    text-align: right;
}

/* Entry Styles */
.leaderboard-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-blue);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.leaderboard-entry.top-3 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.leaderboard-entry.rank-1 {
    border-left: 3px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.leaderboard-entry.rank-2 {
    border-left: 3px solid #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.leaderboard-entry.rank-3 {
    border-left: 3px solid #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

/* Main Entry Layout */
.entry-main {
    display: grid;
    grid-template-columns: 80px 200px 150px 120px 80px 80px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    min-width: 820px;
    width: 100%;
}

/* Column Styles */
.rank-column {
    text-align: center;
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
}

.rank-number {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-1 .rank-number {
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
}

.rank-2 .rank-number {
    color: #c0c0c0;
    text-shadow: 0 0 20px #c0c0c0;
}

.rank-3 .rank-number {
    color: #cd7f32;
    text-shadow: 0 0 20px #cd7f32;
}

.wallet-column {
    text-align: left;
}

.wallet-address-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.basescan-wallet-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.basescan-wallet-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-blue);
    transform: scale(1.1);
}

.pnl-column {
    text-align: right;
}

.wallet-pnl {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 900;
}

.wallet-pnl.positive {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.wallet-pnl.negative {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.trades-column {
    text-align: center;
}

.trade-count {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.trade-breakdown {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.tokens-column {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.expand-column {
    text-align: center;
}

.expand-btn {
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.expand-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.expand-btn[aria-expanded="true"] {
    background: var(--primary-blue);
    color: var(--dark-bg);
    border-color: var(--primary-blue);
}

/* Details Section */
.entry-details {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-glow);
    padding: 1.5rem;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

.detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.tokens-list, .trades-list {
    display: grid;
    gap: 0.75rem;
}

.token-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.token-symbol {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.token-trades {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 1rem;
}

.chart-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--primary-blue);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.chart-link:hover {
    background: var(--primary-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trade-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
    margin-right: 1.5rem;
}

.trade-type {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    min-width: 45px;
    text-align: center;
}

.trade-type.buy {
    background: rgba(6, 255, 165, 0.2);
    color: var(--accent-cyan);
}

.trade-type.sell {
    background: rgba(255, 0, 128, 0.2);
    color: var(--neon-pink);
}

.trade-symbol {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 60px;
}

.trade-amount {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-accent);
    flex: 1;
    text-align: right;
}

.basescan-btn {
    color: var(--secondary-purple);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--secondary-purple);
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.basescan-btn:hover {
    background: var(--secondary-purple);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-blue));
}

.stat-card .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid var(--neon-pink);
    border-radius: 15px;
    margin: 2rem 0;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.error-icon {
    font-size: 2rem;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
}

.error-text h3 {
    color: var(--neon-pink);
    margin-bottom: 0.5rem;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(5, 5, 7, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glow);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.separator {
    color: var(--border-glow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px var(--neon-pink); }
    50% { text-shadow: 0 0 30px var(--neon-pink), 0 0 40px var(--neon-pink); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

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

@keyframes logoGlow {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-section {
        gap: 2rem;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .logo-image {
        width: 65px;
        height: 65px;
    }
    
    .title-gradient {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .leaderboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-main,
    .entry-main {
        grid-template-columns: 60px 1fr 100px 80px 60px 50px;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .wallet-address {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
    
    .wallet-pnl {
        font-size: 1.1rem;
    }
    
    .rank-badge {
        font-size: 1.2rem;
    }
    
    .trade-count {
        font-size: 1rem;
    }
    
    .tokens-column {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .logo-section {
        gap: 1.5rem;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .title-gradient {
        font-size: 2rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-text {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Keep original table layout for horizontal scrolling */
    .header-main,
    .entry-main {
        grid-template-columns: 80px 200px 150px 120px 80px 80px;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    /* Mobile dropdown/details styling */
    .entry-details {
        padding: 1rem;
    }
    
    .detail-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    .token-symbol {
        font-size: 0.75rem;
    }
    
    .token-trades {
        font-size: 0.7rem;
    }
    
    .chart-link {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .trade-type {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
        min-width: 35px;
    }
    
    .trade-symbol {
        font-size: 0.7rem;
        min-width: 45px;
    }
    
    .trade-amount {
        font-size: 0.7rem;
    }
    
    .basescan-btn {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .token-item, .trade-item {
        padding: 0.5rem 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .token-item {
        display: flex;
        flex-wrap: wrap;
    }
    
    .token-symbol {
        flex: 1;
        text-align: left;
        min-width: 60px;
    }
    
    .token-trades {
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
    
    .chart-link {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .trade-info {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex: 1;
        margin-right: 0.25rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .trade-type {
        flex-shrink: 0;
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
        min-width: 30px;
    }
    
    .trade-symbol {
        flex-shrink: 0;
        font-size: 0.65rem;
        min-width: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .trade-amount {
        flex: 1;
        font-size: 0.65rem;
        text-align: right;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .basescan-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .refresh-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Keep original table layout for horizontal scrolling on very small screens too */
    .header-main,
    .entry-main {
        grid-template-columns: 80px 200px 150px 120px 80px 80px;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .entry-details {
        padding: 0.75rem;
    }
    
    .detail-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 0.7rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .token-symbol {
        font-size: 0.65rem;
    }
    
    .token-trades {
        font-size: 0.6rem;
    }
    
    .chart-link {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    .trade-type {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
        min-width: 30px;
    }
    
    .trade-symbol {
        font-size: 0.6rem;
        min-width: 40px;
    }
    
    .trade-amount {
        font-size: 0.6rem;
    }
    
    .basescan-btn {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    .trade-info {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        flex: 1;
        margin-right: 0.2rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .token-item, .trade-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.2rem;
        padding: 0.3rem 0.4rem;
        min-height: auto;
    }
    
    .token-item {
        flex-wrap: nowrap;
    }
    
    .token-symbol {
        flex: 1;
        text-align: left;
        min-width: 45px;
        font-weight: 600;
        font-size: 0.6rem;
    }
    
    .token-trades {
        flex: 1;
        text-align: center;
        min-width: 60px;
        font-size: 0.55rem;
    }
    
    .trade-type {
        flex-shrink: 0;
        font-size: 0.5rem;
        padding: 0.05rem 0.2rem;
        min-width: 25px;
    }
    
    .trade-symbol {
        flex-shrink: 0;
        font-size: 0.55rem;
        min-width: 35px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .trade-amount {
        flex: 1;
        font-size: 0.55rem;
        text-align: right;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .basescan-btn {
        flex-shrink: 0;
        font-size: 0.5rem;
        padding: 0.05rem 0.25rem;
        border-radius: 6px;
        white-space: nowrap;
    }
    
    .chart-link {
        font-size: 0.5rem;
        padding: 0.05rem 0.25rem;
        border-radius: 6px;
    }
}