.account-page {
    max-width: 100vw;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
}

.account-page * {
    min-width: 0;
}

.account-hero {
    position: relative;
    padding: 118px 0 78px;
    color: #fff;
    background:
            linear-gradient(90deg, rgba(6, 8, 8, 0.96) 0%, rgba(6, 8, 8, 0.78) 54%, rgba(6, 8, 8, 0.42) 100%),
            url("../../img/foodtruck.png") center / cover no-repeat;
}

.account-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 42px;
    background: linear-gradient(180deg, rgba(244, 241, 236, 0), var(--paper) 88%);
}

.account-script {
    margin: 0 0 12px;
    color: var(--olive);
    font-family: "Caveat", cursive;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
}

.account-hero h1,
.account-card h2,
.dashboard-card h2,
.dashboard-order h3 {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.account-hero h1 {
    font-size: clamp(4.8rem, 9vw, 8rem);
}

.account-lead {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
    line-height: 1.7;
}

.account-main {
    padding: 76px 0 82px;
}

.account-card,
.dashboard-card,
.dashboard-order {
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 22px 64px rgba(18, 20, 20, 0.1);
}

.account-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px;
}

.account-card h2 {
    font-size: clamp(3rem, 5vw, 5rem);
}

.account-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.account-form label {
    display: grid;
    gap: 8px;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-form textarea {
    min-height: 54px;
    width: 100%;
    border: 1px solid rgba(18, 20, 20, 0.14);
    border-radius: 0;
    background: #fbfaf7;
    color: var(--ink);
    font: 600 1rem "Inter", Arial, sans-serif;
    padding: 0 16px;
    outline: 0;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    border-color: var(--olive);
    box-shadow: 0 0 0 4px rgba(152, 165, 31, 0.12);
}

.account-form select,
.account-form textarea {
    padding: 14px 16px;
}

.account-form textarea {
    min-height: 120px;
    resize: vertical;
}

.account-check {
    display: flex !important;
    align-items: flex-start;
    gap: 12px !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 0.96rem !important;
    line-height: 1.5;
    text-transform: none !important;
}

.account-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--olive);
}

.account-check a {
    color: var(--olive-dark);
    font-weight: 800;
}

.account-form.was-validated input:invalid {
    border-color: #b74732;
}

.account-switch {
    margin: 20px 0 0;
    color: #55514d;
    line-height: 1.6;
}

.account-switch a,
.account-status a {
    color: var(--olive-dark);
    font-weight: 800;
    text-decoration: none;
}

.account-status {
    min-height: 24px;
    margin: 8px 0 0;
    font-weight: 800;
}

.account-status.is-error {
    color: #b74732;
}

.account-status.is-success {
    color: var(--olive-dark);
}

.dashboard-grid {
    align-items: start;
}

.dashboard-card {
    padding: 34px;
}

.dashboard-card h2 {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.dashboard-profile {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.dashboard-profile span {
    display: flex;
    gap: 12px;
    color: #383430;
    font-weight: 800;
}

.dashboard-profile i {
    margin-top: 4px;
    color: var(--olive);
}

.dashboard-actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.dashboard-orders {
    display: grid;
    gap: 18px;
}

.dashboard-section + .dashboard-section {
    margin-top: 28px;
}

.dashboard-section-head {
    margin-bottom: 18px;
}

.dashboard-section-head h2,
.invoice-card h3 {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dashboard-section-head h2 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.dashboard-order {
    padding: 28px;
}

.dashboard-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-order h3 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.order-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    background: var(--olive);
    color: #fff;
    font-family: "Bebas Neue", Impact, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-lines {
    display: grid;
    gap: 8px;
    margin: 22px 0;
}

.order-lines div,
.order-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.order-lines div {
    color: #3b3732;
}

.order-total {
    padding-top: 16px;
    border-top: 1px solid rgba(18, 20, 20, 0.1);
    color: var(--olive-dark);
    font-size: 1.2rem;
    font-weight: 900;
}

.order-meta {
    margin: 14px 0 0;
    color: #5a554f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.empty-orders {
    padding: 34px;
    border: 1px dashed rgba(18, 20, 20, 0.22);
    background: #fff;
    color: #504b45;
    line-height: 1.7;
}

.dashboard-invoices {
    display: grid;
    gap: 14px;
}

.invoice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(18, 20, 20, 0.1);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(18, 20, 20, 0.08);
}

.invoice-card h3 {
    color: var(--olive-dark);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.invoice-card p {
    margin: 10px 0 0;
    color: #56514a;
    line-height: 1.55;
}

.invoice-actions {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.invoice-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    background: rgba(152, 165, 31, 0.14);
    color: var(--olive-dark);
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .account-hero .container-xl,
    .account-main .container-xl {
        width: auto !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 22px;
        margin-right: 48px;
    }

    .account-main .row {
        --bs-gutter-x: 0;
    }

    .account-hero {
        padding: 104px 0 60px;
    }

    .account-hero h1 {
        font-size: clamp(3.7rem, 16vw, 5.4rem);
    }

    .account-lead {
        font-size: 1rem;
        max-width: 280px;
    }

    .account-main {
        padding: 54px 0 60px;
    }

    .account-card,
    .dashboard-card,
    .dashboard-order {
        width: calc(100vw - 112px);
        max-width: calc(100vw - 112px);
        padding: 26px 24px;
        overflow: hidden;
    }

    .account-card h2,
    .dashboard-card h2,
    .dashboard-order h3,
    .dashboard-section-head h2,
    .invoice-card h3,
    .account-form,
    .account-switch,
    .dashboard-profile,
    .dashboard-actions,
    .order-lines,
    .order-total,
    .order-meta {
        max-width: calc(100vw - 140px);
    }

    .dashboard-order-head {
        flex-direction: column;
    }

    .invoice-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-actions {
        width: 100%;
        justify-items: stretch;
    }
}
