.header-auth-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 2px;
}

.header-auth-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(23, 59, 43, .18);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    transition: .3s ease;
}

.header-auth-actions .header-register-link {
    border-color: var(--forest);
    background: var(--forest);
    color: white;
}

.header-auth-actions a:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--gold);
    color: var(--forest);
}

.newsletter-auth-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
}

.newsletter-auth-label {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.newsletter-auth-card > strong {
    max-width: 400px;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.3vw, 34px);
    font-weight: 400;
    line-height: 1.15;
}

.newsletter-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .36);
    background: transparent;
    color: white;
}

.btn-ghost {
    border-color: var(--line);
    background: transparent;
    color: var(--forest);
}

.checkout-success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.checkout-success-actions .btn {
    margin-top: 0;
}

.account-page {
    background:
        radial-gradient(circle at 8% 18%, rgba(200, 154, 69, .09), transparent 28%),
        var(--paper);
}

.auth-main,
.account-main {
    min-height: 70vh;
    padding-top: 36px;
}

.auth-main {
    position: relative;
    z-index: 2;
    padding-bottom: 100px;
}

.auth-page {
    overflow-x: hidden;
}

.meyra-fall {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.meyra-fall > span {
    position: absolute;
    top: -18vh;
    left: var(--fall-left);
    width: var(--fall-size);
    height: var(--fall-size);
    opacity: var(--fall-opacity);
    filter: drop-shadow(0 9px 11px rgba(23, 59, 43, .08));
    animation: meyraFall var(--fall-duration) linear var(--fall-delay) infinite;
    will-change: transform;
}

.meyra-fall > span:nth-child(2n) {
    animation-name: meyraFallReverse;
}

.meyra-fall img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes meyraFall {
    0% { transform: translate3d(0, -18vh, 0) rotate(0deg); }
    35% { transform: translate3d(var(--fall-sway), 34vh, 0) rotate(125deg); }
    70% { transform: translate3d(var(--fall-sway-reverse), 82vh, 0) rotate(260deg); }
    100% { transform: translate3d(var(--fall-sway-soft), 122vh, 0) rotate(390deg); }
}

@keyframes meyraFallReverse {
    0% { transform: translate3d(0, -18vh, 0) rotate(360deg); }
    32% { transform: translate3d(var(--fall-sway-reverse), 32vh, 0) rotate(245deg); }
    68% { transform: translate3d(var(--fall-sway), 80vh, 0) rotate(115deg); }
    100% { transform: translate3d(var(--fall-sway-soft), 122vh, 0) rotate(-35deg); }
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
    align-items: stretch;
    gap: 28px;
    padding-top: 46px;
}

.auth-story {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 640px;
    padding: clamp(38px, 6vw, 76px);
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(23, 59, 43, .96), rgba(44, 76, 53, .92)),
        var(--forest);
    color: white;
    box-shadow: var(--shadow);
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.auth-story::before {
    width: 350px;
    height: 350px;
    right: -170px;
    top: -130px;
}

.auth-story::after {
    width: 220px;
    height: 220px;
    left: -110px;
    bottom: -90px;
}

.auth-story .eyebrow {
    color: var(--gold-light);
}

.auth-story h1 {
    max-width: 620px;
    margin-top: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

.auth-story > p {
    max-width: 540px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.8;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 44px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
}

.auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-card {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: clamp(34px, 5vw, 68px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 253, 248, .9);
    box-shadow: 0 22px 70px rgba(23, 59, 43, .08);
}

.auth-card-kicker,
.panel-kicker {
    color: var(--olive);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin-top: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 400;
    letter-spacing: -.04em;
}

.auth-card-lead {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.form-alert {
    margin-top: 24px;
    padding: 14px 17px;
    border: 1px solid rgba(157, 49, 49, .22);
    border-radius: 14px;
    background: rgba(157, 49, 49, .07);
    color: #8e2929;
    font-size: 13px;
    line-height: 1.55;
}

.form-alert.success {
    border-color: rgba(23, 59, 43, .2);
    background: rgba(23, 59, 43, .07);
    color: var(--forest);
}

.premium-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--forest);
    font-size: 11px;
    font-weight: 800;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-label-row a {
    color: var(--olive);
    font-size: 10px;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: rgba(93, 111, 58, .28);
    text-underline-offset: 3px;
}

.form-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    outline: 0;
    border: 1px solid rgba(23, 59, 43, .17);
    border-radius: 14px;
    background: white;
    color: var(--ink);
    transition: .25s ease;
}

.form-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 154, 69, .11);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 72px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--olive);
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    transform: translateY(-50%);
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(23, 59, 43, .045);
}

.password-rules span {
    color: var(--muted);
    font-size: 11px;
}

.password-rules span::before {
    content: "â—‹";
    margin-right: 7px;
}

.password-rules span.valid {
    color: var(--forest);
    font-weight: 750;
}

.password-rules span.valid::before {
    content: "âœ“";
    color: var(--olive);
}

.auth-submit {
    width: 100%;
    margin-top: 3px;
}

.auth-switch {
    margin-top: 23px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch a,
.panel-heading a,
.orders-empty a {
    color: var(--forest);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: rgba(23, 59, 43, .26);
    text-underline-offset: 4px;
}

.auth-shell-login .auth-story,
.auth-shell-login .auth-card {
    min-height: 560px;
}

.account-hero {
    padding: 92px 0 60px;
    border-bottom: 1px solid var(--line);
}

.account-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.account-hero h1 {
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1;
}

.account-hero p {
    max-width: 650px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.7;
}

.account-content,
.orders-content {
    padding-top: 48px;
    padding-bottom: 110px;
}

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

.account-stats article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 110px;
    padding: 25px 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
}

.account-stats span {
    color: var(--muted);
    font-size: 12px;
}

.account-stats strong {
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 400;
}

.account-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 18px;
    margin-top: 18px;
}

.account-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--white);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h2 {
    margin-top: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
}

.panel-heading a {
    margin-top: 8px;
    font-size: 11px;
    white-space: nowrap;
}

.profile-list {
    display: grid;
    gap: 0;
    margin-top: 24px;
}

.profile-list > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.profile-list dt {
    color: var(--muted);
    font-size: 11px;
}

.profile-list dd {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 750;
}

.recent-orders {
    display: grid;
    margin-top: 18px;
}

.recent-orders > a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid var(--line);
}

.recent-orders > a > span {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.recent-orders > a > span:last-child {
    align-items: flex-end;
}

.recent-orders small {
    color: var(--muted);
    font-size: 10px;
}

.recent-orders b {
    font-size: 12px;
}

.status-pill,
.payment-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 99px;
    background: rgba(93, 111, 58, .12);
    color: var(--olive);
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .04em;
    white-space: nowrap;
}

.status-cancelled {
    background: rgba(157, 49, 49, .09);
    color: #912f2f;
}

.status-shipped {
    background: rgba(53, 106, 144, .1);
    color: #356a90;
}

.status-completed {
    background: rgba(23, 59, 43, .1);
    color: var(--forest);
}

.orders-list {
    display: grid;
    gap: 22px;
}

.order-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 18px 55px rgba(23, 59, 43, .055);
}

.order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 28px 30px 24px;
}

.order-card-head > div:first-child > span,
.order-address > span {
    color: var(--olive);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.order-card-head h2 {
    margin-top: 6px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
}

.order-card-head small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}

.order-statuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.payment-pill {
    background: rgba(200, 154, 69, .12);
    color: #856321;
}

.order-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 30px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(23, 59, 43, .04);
}

.order-progress > div {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a0a49e;
    font-size: 10px;
    font-weight: 750;
}

.order-progress > div:not(:last-child)::after {
    width: 35%;
    height: 1px;
    margin-left: auto;
    margin-right: 12%;
    content: "";
    background: rgba(23, 59, 43, .13);
}

.order-progress i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(23, 59, 43, .14);
    border-radius: 50%;
    background: white;
    font-size: 9px;
    font-style: normal;
}

.order-progress .active {
    color: var(--forest);
}

.order-progress .active i {
    border-color: var(--forest);
    background: var(--forest);
    color: white;
}

.shipment-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
    align-items: center;
    gap: 18px;
    margin: 20px 30px 0;
    padding: 20px 22px;
    border: 1px solid rgba(53, 106, 144, .16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(200, 154, 69, .15), transparent 30%),
        linear-gradient(135deg, rgba(53, 106, 144, .08), rgba(255, 253, 248, .95));
}

.shipment-card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #356a90;
    color: white;
    font-size: 18px;
}

.shipment-card > div:nth-child(2),
.shipment-tracking {
    display: grid;
    gap: 4px;
}

.shipment-card span {
    color: #356a90;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shipment-card strong {
    color: var(--forest);
    font-size: 15px;
}

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

.shipment-tracking {
    justify-items: end;
    padding-left: 20px;
    border-left: 1px solid rgba(53, 106, 144, .15);
}

.shipment-tracking strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .04em;
}

.shipment-tracking button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--olive);
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-card-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 36px;
    padding: 26px 30px;
}

.order-items > div,
.order-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.order-items span {
    display: grid;
    gap: 5px;
}

.order-items strong,
.order-items b,
.order-totals dd {
    font-size: 12px;
}

.order-items small,
.order-totals dt {
    color: var(--muted);
    font-size: 10px;
}

.order-totals .grand {
    border-bottom: 0;
    color: var(--forest);
}

.order-totals .grand dt,
.order-totals .grand dd {
    color: inherit;
    font-size: 15px;
    font-weight: 850;
}

.order-address {
    padding: 20px 30px 25px;
    border-top: 1px solid var(--line);
    background: rgba(247, 240, 223, .45);
}

.order-address p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.orders-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 80px 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    text-align: center;
}

.orders-empty > span {
    color: var(--olive);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.orders-empty h2 {
    max-width: 580px;
    margin: 15px 0 25px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
}

.orders-empty a.btn-dark,
.orders-empty a.btn-dark:visited {
    color: #fff;
    text-decoration: none;
}

.orders-empty a.btn-dark:hover {
    color: var(--forest);
}

.orders-empty.compact {
    align-items: flex-start;
    padding: 30px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.orders-empty.compact a {
    margin-top: 12px;
    font-size: 11px;
}

@media (max-width: 1120px) {
    .header-auth-actions a {
        padding: 0 11px;
    }

    .auth-shell {
        grid-template-columns: .9fr 1.1fr;
    }
}

@media (max-width: 980px) {
    .header-auth-actions {
        display: none;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: 440px;
    }

    .account-grid,
    .order-card-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .auth-main,
    .account-main {
        padding-top: 12px;
    }

    .auth-main {
        padding-bottom: 70px;
    }

    .auth-shell {
        width: min(100% - 24px, 560px);
        gap: 14px;
        padding-top: 20px;
    }

    .auth-story {
        min-height: 360px;
        padding: 35px 26px;
        border-radius: 25px;
    }

    .auth-story h1 {
        font-size: 42px;
    }

    .auth-story > p {
        margin-top: 20px;
    }

    .auth-benefits {
        margin-top: 28px;
    }

    .auth-card {
        padding: 32px 22px;
        border-radius: 25px;
    }

    .form-grid,
    .password-rules,
    .account-stats {
        grid-template-columns: 1fr;
    }

    .account-hero {
        padding: 65px 0 38px;
    }

    .account-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-content,
    .orders-content {
        padding-top: 28px;
        padding-bottom: 75px;
    }

    .account-stats article {
        min-height: 86px;
    }

    .account-panel,
    .order-card-head,
    .order-card-body {
        padding-right: 20px;
        padding-left: 20px;
    }

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

    .order-statuses {
        justify-content: flex-start;
    }

    .order-progress {
        margin: 0 20px;
        padding: 16px 13px;
    }

    .shipment-card {
        grid-template-columns: auto 1fr;
        margin-right: 20px;
        margin-left: 20px;
    }

    .shipment-tracking {
        grid-column: 1 / -1;
        justify-items: start;
        padding-top: 15px;
        padding-left: 0;
        border-top: 1px solid rgba(53, 106, 144, .15);
        border-left: 0;
    }

    .order-progress > div {
        align-items: flex-start;
        flex-direction: column;
        font-size: 9px;
    }

    .order-progress > div::after {
        display: none;
    }

    .order-address {
        padding-right: 20px;
        padding-left: 20px;
    }

    .profile-list > div {
        grid-template-columns: 90px 1fr;
    }

    .newsletter-auth-actions .btn {
        flex: 1;
        padding: 0 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .meyra-fall > span {
        animation: none;
    }

    .meyra-fall > span:nth-child(n+9) {
        display: none;
    }
}