:root {
    --blue: #2563eb;
    --blue2: #5b9af7;
    --dark: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: rgba(148, 163, 184, .28);
    --green: #059669;
    --green-bg: #ecfdf5;
    --green-line: #86efac;
    --orange: #b45309;
    --orange-bg: #fef3c7;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --red-line: #fecaca;
    --shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at 86% 82%, rgba(96, 165, 250, .13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #ffffff 44%, #eef5ff 100%);
}

.topbar {
    height: 76px;
    padding: 0 clamp(22px, 6vw, 82px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-symbol {
    width: 48px;
    height: 48px;
    display: inline-flex;
}

.brand-symbol svg {
    width: 48px;
    height: 48px;
}

.brand-text {
    color: #111827;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.5px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-link,
.logout-btn {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.top-link {
    color: var(--blue);
    text-decoration: none;
}

.logout-btn {
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
    cursor: pointer;
}

.page {
    width: min(960px, calc(100% - 34px));
    margin: 0 auto;
    padding: 44px 0 56px;
}

.hero {
    text-align: center;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #111a30;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 640px;
    margin: 14px auto 0;
    color: #53627a;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 600;
}

.status-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.status-card.pending {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.status-card.linked {
    border-color: var(--green-line);
    background: linear-gradient(135deg, var(--green-bg), #ffffff);
}

.status-card.error {
    border-color: var(--red-line);
    background: linear-gradient(135deg, var(--red-bg), #ffffff);
}

.status-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #eff6ff;
    color: var(--blue);
    font-size: 30px;
    font-weight: 900;
}

.status-card.pending .status-icon {
    background: var(--orange-bg);
    color: var(--orange);
}

.status-card.linked .status-icon {
    background: var(--green-bg);
    color: var(--green);
}

.status-card.error .status-icon {
    background: var(--red-bg);
    color: var(--red);
}

.status-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.status-card p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}

.programs-section {
    margin-top: 26px;
}

.section-head h2 {
    margin: 0;
    font-size: 26px;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.programs-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.program-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    box-shadow: 0 12px 38px rgba(15, 23, 42, .055);
}

.program-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.program-card h3 {
    margin: 0;
    font-size: 20px;
}

.program-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.pill {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.pill.pending {
    background: var(--orange-bg);
    color: var(--orange);
}

.pill.linked {
    background: var(--green-bg);
    color: var(--green);
}

.pill.rejected,
.pill.spam {
    background: var(--red-bg);
    color: var(--red);
}

.features-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
}

.feature-icon {
    font-size: 28px;
}

.feature-card h3 {
    margin: 12px 0 0;
}

.feature-card p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 600;
}

.feature-card.locked {
    opacity: .76;
}

.message-card {
    margin-top: 22px;
    padding: 20px;
    border-radius: 18px;
    background: var(--red-bg);
    border: 1px solid var(--red-line);
    color: #991b1b;
    font-weight: 700;
}

@media (max-width: 760px) {
    .topbar {
        height: auto;
        padding: 14px 18px;
    }

    .top-actions {
        gap: 6px;
    }

    .top-link {
        display: none;
    }

    .page {
        width: calc(100% - 24px);
        padding-top: 30px;
    }

    .status-card {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .program-top {
        flex-direction: column;
    }
}
