/* css/tokenomics.css */
:root {
    /* Color Palette Allocation */
    --color-community: #9d00ff; /* Purple - Dominant */
    --color-liquidity: #00d4ff; /* Cyan */
    --color-team: #ff00ff;      /* Magenta */
    --color-investors: #39ff14; /* Neon Green */
    
    --table-bg: rgba(20, 20, 35, 0.6);
    --border-glow: rgba(0, 212, 255, 0.3);
}

.tokenomics-section {
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

.tokenomics-section::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---------------------------------------------------------------- */
/* STYLING KHUSUS UNTUK SECTION UTILITY (#utility) - Tampil di tengah */
/* ---------------------------------------------------------------- */

#utility .tokenomics-content-wrapper {
    /* Menimpa grid layout agar menjadi satu kolom terpusat */
    display: flex;
    justify-content: center; 
    align-items: center;
    max-width: 1000px; 
    margin: 2rem auto;
    gap: 0; 
    flex-direction: column;
}

#utility .utility-card {
    width: 100%;
    max-width: 800px; 
    margin: 0; 
}


/* --- REVISED LAYOUT STRUCTURE (Default untuk Tokenomics) --- */

/* Wrapper Utama Grid */
.tokenomics-content-wrapper {
    display: grid;
    /* Ubah rasio sedikit agar chart di kiri punya ruang cukup */
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 2.5rem;
    max-width: 1200px;
    margin: 2rem auto; /* Dipastikan terpusat */
    align-items: start; 
    position: relative;
    z-index: 2;
}

/* Wrapper Kolom Kiri & Kanan */
.tokenomics-left, 
.tokenomics-right {
    display: flex;
    flex-direction: column;
    gap: 2rem; 
}

/* --- BARU: Container untuk Supply & Network berdampingan --- */
.stats-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

/* Stat Box Style */
.token-stat-box {
    text-align: center;
    background: linear-gradient(145deg, rgba(20,20,30,0.8), rgba(10,10,15,0.9));
    padding: 1.5rem 1rem; 
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Agar kedua box lebarnya sama rata (50:50) */
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.token-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    border-color: var(--primary-color);
}

.stat-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-size: 0.85rem; 
    margin-bottom: 0.5rem;
    white-space: nowrap; 
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; 
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    margin-bottom: 0.2rem;
    word-break: break-all; 
}

.stat-unit {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Chart Container */
.chart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0; 
}

.canvas-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

canvas#tokenomicsChart {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

.chart-center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

#chart-center-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: color 0.3s ease;
}

#chart-center-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table & Utility Cards */
.allocation-card, .utility-card {
    background: var(--table-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.allocation-card h3, .utility-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Premium Table Styles */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.premium-table th {
    text-align: left;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0 1rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-table tr {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.premium-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
}

.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.premium-table tr[data-id="community"]:hover { border-left: 3px solid var(--color-community); box-shadow: 0 0 15px rgba(157, 0, 255, 0.2); }
.premium-table tr[data-id="liquidity"]:hover { border-left: 3px solid var(--color-liquidity); box-shadow: 0 0 15px rgba(0, 212, 255, 0.2); }
.premium-table tr[data-id="team"]:hover { border-left: 3px solid var(--color-team); box-shadow: 0 0 15px rgba(255, 0, 255, 0.2); }
.premium-table tr[data-id="investors"]:hover { border-left: 3px solid var(--color-investors); box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); }

.premium-table td {
    padding: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    vertical-align: middle;
}

.premium-table td:first-child {
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.premium-table td:last-child {
    border-radius: 0 8px 8px 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px currentColor;
}

.highlight {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-weight: bold;
}

.dim {
    color: #aaa;
    font-size: 0.9rem;
}

/* Utility List */
.utility-list {
    list-style: none;
    padding: 0;
    /* Block centering is correct. */
    max-width: 600px; 
    margin: 0 auto; 
}

.utility-list li {
    /* MENGUBAH LAYOUT: Menghilangkan flex dan menggunakan text-align */
    /* Menghilangkan: display: flex; align-items: flex-start; gap: 1rem; */
    
    text-align: center; /* <<< INI YANG MEMBUAT TEKS RATA TENGAH */
    
    margin-bottom: 1.5rem; 
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.utility-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.utility-list i {
    /* MEMUSATKAN IKON: Membuatnya elemen blok agar margin auto berfungsi */
    display: block; 
    font-size: 2rem; /* Memperbesar ikon agar terlihat lebih bagus */
    color: var(--secondary-color);
    margin: 0 auto 0.5rem auto; /* Memusatkan ikon dan memberi jarak bawah */
    text-shadow: 0 0 8px var(--secondary-color);
}

.utility-list strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.utility-list p {
    font-size: 0.9rem;
    color: #bbb;
    margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    /* Tablet: Stack menjadi 1 kolom vertikal */
    /* Menggunakan ini agar grid layout default dihilangkan */
    .tokenomics-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    /* Mobile: Stat Box kembali stack (atas-bawah) jika layar terlalu kecil */
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .canvas-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .token-stat-box {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
}