:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1429;
    --bg-tertiary: #141935;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #4a5568;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transition: transform 0.15s ease;
}

.cursor-trail {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.5;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
}

.logo-icon {
    font-size: 32px;
}

.logo-text .accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chain-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.chain-selector:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.chain-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 10px 40px var(--shadow);
}

.chain-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.chain-option:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.btn-connect {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.5);
}

.wallet-connected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.wallet-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* Ticker Marquee */
.ticker-marquee {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 48px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.ticker-symbol {
    font-weight: 700;
}

.ticker-price {
    color: var(--text-secondary);
}

.ticker-change {
    font-weight: 600;
}

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

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

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-wallets {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.wallet-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
}

.wallet-icon {
    font-size: 24px;
}

/* Stats Bar */
.stats-bar {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.2);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 14px;
    font-weight: 600;
}

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

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

.stat-change.neutral {
    color: var(--text-secondary);
}

/* Token Section */
.token-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.title-icon {
    font-size: 56px;
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.token-card {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.token-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.3);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
}

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

.token-icon {
    font-size: 40px;
}

.token-details h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.token-symbol {
    color: var(--text-muted);
    font-size: 14px;
}

.token-chain {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.token-price {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.token-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.token-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.token-stat-value {
    font-size: 16px;
    font-weight: 700;
}

.price-change {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.price-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Screener Section */
.screener-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.screener-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.tab-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
}

.chart-frame {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.chart-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Swap Section */
.swap-section {
    padding: 80px 0 120px;
    position: relative;
    z-index: 10;
}

.swap-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 50px var(--shadow);
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.swap-header h3 {
    font-size: 24px;
    font-weight: 700;
}

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

.slippage-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.slippage-select {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.swap-input-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.swap-input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.input-label {
    font-size: 14px;
    color: var(--text-muted);
}

.input-balance {
    font-size: 14px;
    color: var(--text-secondary);
}

.swap-input-wrapper {
    display: flex;
    gap: 16px;
}

.swap-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 700;
    outline: none;
}

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

.token-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.token-select:hover {
    border-color: var(--accent-primary);
}

.token-symbol {
    font-weight: 700;
}

.flip-container {
    display: flex;
    justify-content: center;
    margin: -8px 0;
    position: relative;
    z-index: 1;
}

.flip-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-btn:hover {
    transform: rotate(180deg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.swap-details {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

.detail-label {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
}

.impact-low {
    color: var(--success);
}

.impact-medium {
    color: var(--warning);
}

.impact-high {
    color: var(--danger);
}

.btn-swap {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-swap:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 240, 255, 0.5);
}

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

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
}

.modal-close:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.wallet-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
    text-align: left;
}

.wallet-option:last-child {
    margin-bottom: 0;
}

.wallet-option:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-name {
    font-size: 16px;
    font-weight: 700;
}

.wallet-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast-icon {
    font-size: 20px;
    color: var(--success);
}

.toast-message {
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .token-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .wallet-section {
        flex-direction: column;
    }
}