* {
    box-sizing: border-box;
}

:root {
    --bg: #0b0d12;
    --panel: #12151d;
    --panel-2: #171b24;
    --border: #272d39;
    --text: #f4f6f8;
    --muted: #9ca5b4;
    --accent: #ffffff;
    --accent-text: #0b0d12;
    --danger: #ff6b6b;
    --success: #65d39a;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.topbar {
    height: 72px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 13, 18, .92);
}

.brand {
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
}

.nav a {
    text-decoration: none;
}

.nav a:hover {
    color: var(--text);
}

.nav-user {
    color: var(--text);
}

.nav-button {
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-text) !important;
    font-weight: 700;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
    padding: 50px 0 70px;
}

.hero {
    min-height: calc(100vh - 142px);
    display: grid;
    place-items: center;
}

.hero-card {
    width: min(760px, 100%);
    text-align: center;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 14px;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.03;
    letter-spacing: -2.5px;
}

.hero h1 span {
    color: var(--muted);
}

h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -.5px;
}

p {
    line-height: 1.65;
}

.muted {
    color: var(--muted);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 11px;
    padding: 13px 19px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: var(--accent);
    color: var(--accent-text);
}

.btn.secondary {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn.full {
    width: 100%;
    margin-top: 8px;
}

.btn.disabled {
    opacity: .5;
    cursor: not-allowed;
}

.auth-wrap {
    display: grid;
    place-items: center;
    padding: 25px 0;
}

.auth-card {
    width: min(470px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.auth-card h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
}

form {
    margin-top: 26px;
}

label {
    display: block;
    margin-bottom: 17px;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0e1117;
    color: var(--text);
    outline: none;
    font-size: 14px;
}

input:focus {
    border-color: #687285;
}

.optional {
    color: var(--muted);
    font-weight: 500;
}

.bottom-link {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 22px 0 0;
}

.bottom-link a {
    color: var(--text);
    font-weight: 700;
}

.alert {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.alert.error {
    border: 1px solid rgba(255, 107, 107, .3);
    background: rgba(255, 107, 107, .08);
    color: #ffb0b0;
}

.alert.success {
    border: 1px solid rgba(101, 211, 154, .3);
    background: rgba(101, 211, 154, .08);
    color: #a7eac6;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-head h1 {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -1.8px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card,
.welcome-panel,
.profile-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.stat-card {
    padding: 20px;
}

.stat-card span,
.stat-card small {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
}

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

.stat-card small {
    color: var(--muted);
    font-size: 11px;
}

.welcome-panel {
    margin-top: 18px;
    padding: 26px;
}

.welcome-panel p {
    color: var(--muted);
    max-width: 760px;
}

.next-box {
    margin-top: 22px;
    padding: 15px;
    border-radius: 12px;
    background: var(--panel-2);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.next-box span {
    color: var(--muted);
}

.profile-card {
    margin-top: 18px;
    padding: 26px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.profile-row:last-child {
    border-bottom: 0;
}

.profile-row span {
    color: var(--muted);
}

.status-active {
    color: var(--success);
}

.footer {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 0 35px;
    color: #697180;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .topbar {
        height: auto;
        padding: 17px 5%;
        gap: 15px;
    }

    .nav {
        gap: 12px;
        font-size: 12px;
    }

    .nav-user {
        display: none;
    }

    .container {
        padding-top: 35px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-head .btn {
        width: 100%;
    }

    .auth-card {
        padding: 24px;
    }
}

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