:root {
    color-scheme: dark;
    font-family:
        Inter,
        Arial,
        sans-serif;

    background: #0f1117;
    color: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #232846,
            #0f1117 45%
        );
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    font: inherit;
}

.navbar {
    min-height: 72px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 17, 23, 0.9);
    border-bottom: 1px solid #292d3a;
    position: sticky;
    top: 0;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-actions form {
    margin: 0;
}

.nav-actions button {
    border: 0;
    background: transparent;
    color: #f5f7fb;
    cursor: pointer;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: 48px 0 80px;
}

.hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 48px;
    border: 1px solid #2f3444;
    border-radius: 24px;
    background:
        linear-gradient(
            120deg,
            rgba(88, 101, 242, 0.25),
            rgba(214, 54, 62, 0.15)
        );
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    margin: 16px 0;
}

.hero p {
    max-width: 620px;
    color: #b7bdcb;
    font-size: 18px;
    line-height: 1.7;
}

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #252a3c;
    color: #cfd5ff;
}

.discord-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

.discord-button {
    background: #5865f2;
    color: white;
}

.discord-button.large {
    margin-top: 18px;
    padding: 15px 22px;
}

.primary-button {
    background: #e63946;
    color: white;
}

.products {
    margin-top: 64px;
}

.product-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.product-card,
.balance-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #2d3242;
    background: #181b24;
}

.product-card h3 {
    margin-top: 0;
}

.price {
    margin: 16px 0;
    font-size: 30px;
    font-weight: 800;
}

.product-card p {
    color: #adb4c5;
}

.product-card .primary-button {
    width: 100%;
    margin-top: 16px;
}

.product-card button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

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

.balance-card {
    min-width: 220px;
}

.balance-card span {
    display: block;
    color: #aeb5c6;
}

.balance-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

@media (max-width: 680px) {
    .navbar {
        padding: 0 4%;
    }

    .hero {
        padding: 30px 22px;
    }

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .balance-card {
        width: 100%;
    }
}

.stat-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.stat-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #2d3242;
    background: #181b24;
}

.stat-card span {
    display: block;
    color: #aeb5c6;
    margin-bottom: 12px;
}

.stat-card strong {
    display: block;
    font-size: 34px;
}

.dashboard-section {
    margin-top: 48px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
}

.section-label {
    color: #8d96ad;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
}

.section-heading h2 {
    margin: 0;
}

.empty-state {
    padding: 60px 24px;
    border: 1px dashed #394054;
    border-radius: 20px;
    text-align: center;
    background: rgba(24, 27, 36, 0.55);
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    margin-bottom: 0;
    color: #aeb5c6;
}

@media (max-width: 720px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}
