/* Общие сбросы и шрифты */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Боковая панель */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.04);
}

#sidebar.open {
    transform: translateX(0);
}

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

.sidebar-header .logo {
    max-height: 40px;
}

#closeSidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #475569;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 0.25rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-links a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: #eef2ff;
    color: #2563eb;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-play {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-play:hover {
    background: #1d4ed8;
}

/* Основное содержимое */
#main-content {
    margin-left: 0;
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

#openSidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #0f172a;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

/* Hero */
#hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
}

#hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 0.5rem;
}

#hero p {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
}
.btn.primary:hover {
    background: #1d4ed8;
}

.btn.secondary {
    background: #e2e8f0;
    color: #0f172a;
}
.btn.secondary:hover {
    background: #cbd5e1;
}

/* About */
#about {
    padding: 3rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    text-align: center;
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: #475569;
    font-size: 0.95rem;
}

/* Tokenomics */
#tokenomics {
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

.tokenomics-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.tokenomics-stats .stat {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}

.tokenomics-stats .label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tokenomics-stats .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

#bonus-tiers {
    margin-top: 2rem;
}

#bonus-tiers h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tier-label {
    min-width: 100px;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    min-width: 120px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 20px;
}

.tier-bonus {
    font-weight: 600;
    color: #2563eb;
}

/* Roadmap */
#roadmap {
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

#roadmap-list {
    list-style: none;
    margin-top: 1.5rem;
}

#roadmap-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#roadmap-list .date {
    font-weight: 600;
    color: #2563eb;
    min-width: 80px;
}

/* Footer */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-radius: 20px 20px 0 0;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem 0;
}

footer a:hover {
    color: #fff;
}

footer .footer-logo {
    max-height: 40px;
    margin-bottom: 0.5rem;
}

footer .btn.secondary {
    background: #1e293b;
    color: #fff;
}

footer .btn.secondary:hover {
    background: #334155;
}

/* Адаптивность */
@media (min-width: 1024px) {
    #sidebar {
        transform: translateX(0);
        width: 280px;
    }
    #main-content {
        margin-left: 280px;
    }
    #openSidebar {
        display: none;
    }
    #closeSidebar {
        display: none;
    }
}

@media (max-width: 1023px) {
    #openSidebar {
        display: block;
    }
    #sidebar {
        transform: translateX(-100%);
    }
    #sidebar.open {
        transform: translateX(0);
    }
    #main-content {
        margin-left: 0;
    }
    #hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные улучшения для мобильных */
@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-card .number {
        font-size: 1.6rem;
    }
    .stat-card .label {
        font-size: 0.75rem;
    }
    .tier-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .tier-label {
        min-width: 70px;
        font-size: 0.85rem;
    }
    .progress-bar {
        min-width: 80px;
    }
    .docs-container,
    .whitepaper-content,
    .admin-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    #hero h1 {
        font-size: 1.6rem;
    }
    #hero p {
        font-size: 1rem;
    }
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    table {
        font-size: 0.8rem;
    }
    th, td {
        padding: 0.4rem 0.6rem;
    }
}
