:root {
    --brand-dark: #061b3a;
    --brand-blue: #082e6f;
    --brand-purple: #4f46e5;
    --brand-soft: #f5f7fb;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
}

body {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 22px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-purple));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.brand-title {
    font-weight: 900;
    font-size: 18px;
}

.brand-subtitle {
    font-size: 12px;
    color: #64748b;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    padding: 13px 15px;
    border-radius: 16px;
    text-decoration: none;
    color: #475569;
    font-weight: 700;
}

.side-nav a.active,
.side-nav a:hover {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-purple));
    color: #fff;
}

.disabled-link {
    opacity: 0.45;
    pointer-events: none;
}

.sidebar-user {
    margin-top: auto;
    background: #f8fafc;
    border-radius: 18px;
    padding: 15px;
    display: grid;
    gap: 2px;
}

.sidebar-user span {
    color: #64748b;
    font-size: 13px;
    text-transform: capitalize;
}

.app-main {
    margin-left: 270px;
    padding: 26px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.page-heading {
    font-size: 30px;
    font-weight: 900;
    margin: 0;
}

.page-subtitle {
    margin: 5px 0 0;
    color: #64748b;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-pill {
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.logout-btn {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.soft-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.challenge-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09);
}

.challenge-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--brand-blue);
    font-weight: 900;
    font-size: 13px;
}

.big-money {
    font-size: 48px;
    font-weight: 950;
    letter-spacing: -1px;
}

.stat-card {
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
}

.stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.stat-value {
    font-size: 25px;
    font-weight: 950;
}

.progress {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-bar {
    border-radius: 999px;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-purple));
    color: white;
    border-radius: 16px;
    padding: 12px 22px;
    font-weight: 900;
    border: none;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.25);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(8, 46, 111, 0.16), transparent 35%),
        #f8fafc;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    padding: 32px;
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.12);
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-purple));
    color: #fff;
    font-weight: 950;
    margin-bottom: 18px;
}

.form-control {
    border-radius: 14px;
    min-height: 48px;
}

@media (max-width: 992px) {
    .app-sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
        padding: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .big-money {
        font-size: 38px;
    }
}