:root {
    --bg-primary: #0a0f0a;
    --bg-secondary: #0d140d;
    --bg-card: #111a11;
    --bg-card-hover: #152015;
    --text-primary: #e8f5e8;
    --text-secondary: #85a885;
    --text-muted: #4a6b4a;
    --accent: #22c55e;
    --accent-light: #4ade80;
    --accent-dark: #16a34a;
    --accent-glow: rgba(34, 197, 94, 0.25);
    --gold: #fbbf24;
    --gold-dark: #d97706;
    --border: #1f3d1f;
    --border-light: #2d5a2d;
    --fire: #22c55e;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(34, 197, 94, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Money pattern background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(251, 191, 36, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 0% 100%, rgba(34, 197, 94, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1.5rem;
    margin-bottom: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: money-pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--accent);
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

@keyframes money-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
    50% { opacity: 0.6; box-shadow: 0 0 20px var(--accent); }
}

.dex-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
}

.dex-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

/* Token CA */
.token-ca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.ca-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.ca-address {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.copy-btn.copied {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.stat-card.hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.5));
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-value.small {
    font-size: 1.25rem;
}

.stat-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Chart Section */
.chart-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0%, transparent 100%);
}

.chart-header h2 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.chart-container {
    width: 100%;
    height: 400px;
    background: #0d0d0d;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.chart-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* LP Stats */
.lp-stats {
    margin-bottom: 1.5rem;
}

.lp-stats h2 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
}

.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card.lp {
    border-color: var(--gold-dark);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(251, 191, 36, 0.05) 100%);
}

/* History Section */
.history-section {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.history-header h2 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.history-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.history-empty p {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.history-empty span {
    font-size: 0.85rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    margin-bottom: 0.5rem;
}

.history-item:hover {
    background: var(--bg-secondary);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-amount {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.history-amount .fire {
    color: var(--accent);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--accent-dark);
    border-radius: 100px;
    transition: all 0.2s ease;
    font-weight: 700;
}

.history-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.separator {
    color: var(--text-muted);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card.hero {
        grid-column: span 2;
    }

    .lp-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }


    .header-right {
        width: 100%;
        justify-content: center;
    }

    .token-ca {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ca-address {
        font-size: 0.65rem;
    }

    .chart-container {
        height: 300px;
    }

    .history-header {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card.hero {
        flex-direction: column;
        text-align: center;
    }
}
