:root {
    --blue: #0f4c81;
    --green: #10b981;
    --white: #fff;
    --text: #0f172a;
    --muted: #475569;
    --border: #dbeafe;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbff, #eff7f9);
    min-height: 100vh;
}

.page-shell {
    max-width: 1300px;
    margin: auto;
    padding: 0 24px 48px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: var(--blue);
    border-radius: 0 0 20px 20px;
    margin-bottom: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 18px;
    background: #000;
}

.brand-name,
.brand-tagline {
    display: block;
    color: #fff;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
}

.brand-tagline {
    margin-top: 4px;
    color: rgba(255, 255, 255, .85);
}

.site-nav,
.account-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

#accountStatus {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.button-secondary {
    color: var(--blue);
    background: rgba(15, 76, 129, .1);
}

.buyer-dashboard {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .06);
}

.dashboard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-heading h1 {
    margin: 8px 0;
}

.dashboard-heading p,
.buyer-order-card p,
.empty-orders {
    color: var(--muted);
}

.buyer-order-list {
    display: grid;
    gap: 14px;
}

.buyer-order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fafafa;
}

.buyer-order-card h3 {
    margin-bottom: 6px;
}

.buyer-order-details {
    display: grid;
    gap: 6px;
    justify-items: end;
    white-space: nowrap;
}

.order-paid {
    color: #047857;
    font-size: .85rem;
    font-weight: 700;
}

.eyebrow {
    color: var(--green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}

.page-footer {
    margin-top: 72px;
    padding: 26px 0 12px;
    color: var(--muted);
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.hidden {
    display: none !important;
}

@media (max-width:620px) {
    .page-shell {
        padding: 0 16px 32px
    }

    .site-header {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
        gap: 16px
    }

    .account-panel {
        align-items: flex-start;
        flex-direction: column
    }

    .dashboard-heading,
    .buyer-order-card {
        align-items: stretch;
        flex-direction: column
    }

    .buyer-order-details {
        justify-items: start
    }

    .button {
        width: 100%
    }
}

.account-page-section {
    margin-top: 0;
}