.client-account-page {
    min-height: 100vh;
    padding: 150px clamp(20px, 5vw, 78px) 80px;
    background:
        radial-gradient(circle at top left, rgba(240, 212, 193, .42), transparent 34%),
        linear-gradient(135deg, #fff9f6, #f4ebe7);
    color: #2f2925;
}

.client-auth-page {
    display: grid;
    place-items: start center;
}

.client-auth-card,
.client-account-hero,
.client-account-card,
.client-account-messages,
.client-account-overview {
    width: min(100%, 1120px);
}

.client-auth-card,
.client-account-hero,
.client-account-card,
.client-account-messages {
    border: 1px solid rgba(199, 119, 112, .15);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 24px 70px rgba(82, 55, 46, .09);
}

.client-auth-card {
    max-width: 560px;
    padding: clamp(28px, 4vw, 48px);
}

.client-login-card {
    max-width: 620px;
    padding: clamp(42px, 5vw, 70px) clamp(28px, 5vw, 70px);
    text-align: center;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .72),
            rgba(255, 255, 255, .56)
        );
    backdrop-filter: blur(18px);
}

.client-login-heading {
    display: grid;
    justify-items: center;
    gap: 0;
    margin-bottom: 34px;
}

.client-login-heading img {
    width: min(270px, 72vw);
    height: auto;
    object-fit: contain;
}

.client-auth-card-wide {
    max-width: 860px;
}

.client-register-card {
    max-width: 920px;
    padding: clamp(34px, 5vw, 62px);
}

.client-register-heading {
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.client-register-heading img {
    width: min(260px, 70vw);
    height: auto;
    object-fit: contain;
}

.client-auth-card > span,
.client-edit-heading > span,
.client-account-hero span,
.client-account-card > span,
.client-card-head span {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.client-auth-card h1,
.client-edit-heading h1,
.client-account-hero h1 {
    margin-top: 14px;
    color: #2c2623;
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 500;
    line-height: .95;
}

.client-auth-card p,
.client-edit-heading p,
.client-account-hero p,
.client-account-empty {
    margin-top: 14px;
    color: #75645f;
    font-size: 15px;
    line-height: 1.7;
}

.client-auth-form {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}

.client-login-card .client-auth-form {
    margin-top: 0;
}

.client-edit-heading {
    margin-top: 24px;
}

.client-locked-field {
    margin-top: 24px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(199, 119, 112, .16);
    border-radius: 18px;
    background: rgba(253, 238, 235, .54);
}

.client-locked-field span {
    color: #8b7770;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.client-locked-field strong {
    color: #2f2925;
}

.client-locked-field a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 119, 112, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0 14px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.client-auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-auth-wide,
.client-auth-password {
    grid-column: 1 / -1;
}

.client-auth-form label {
    display: grid;
    gap: 8px;
    color: #5c4d49;
    font-size: 13px;
    font-weight: 600;
}

.client-login-card .client-auth-form label > span:first-child {
    text-align: left;
}

.client-auth-label-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.client-auth-label-title svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-primary);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-auth-input-wrap {
    position: relative;
    display: block;
}

.client-auth-input-wrap > svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    stroke: #9b8f89;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.client-auth-form input {
    min-height: 50px;
    width: 100%;
    border: 1px solid rgba(94, 76, 70, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    color: #2f2925;
    font: inherit;
    padding: 0 16px;
    outline: none;
}

.client-login-card .client-auth-form input {
    min-height: 62px;
    padding-left: 20px;
    padding-right: 52px;
    border-color: rgba(215, 204, 198, .62);
    border-radius: 16px;
    background: rgba(255, 255, 255, .52);
    backdrop-filter: blur(8px);
}

.client-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8f817c;
    cursor: pointer;
    transition:
        background .24s ease,
        color .24s ease,
        transform .24s ease;
}

.client-password-toggle:hover,
.client-password-toggle.is-visible {
    background: rgba(199, 119, 112, .08);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.04);
}

.client-password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-auth-form input:focus {
    border-color: rgba(199, 119, 112, .42);
    box-shadow: 0 0 0 4px rgba(199, 119, 112, .08);
}

.client-upload-field {
    gap: 12px;
}

.client-upload-control {
    min-height: 58px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(94, 76, 70, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    overflow: hidden;
    transition:
        border-color .24s ease,
        box-shadow .24s ease,
        transform .24s ease;
}

.client-upload-control:hover {
    border-color: rgba(199, 119, 112, .34);
    box-shadow: 0 14px 34px rgba(82, 55, 46, .08);
    transform: translateY(-1px);
}

.client-upload-control input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.client-upload-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(199, 119, 112, .12);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0 16px;
    text-transform: uppercase;
}

.client-upload-button svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-upload-name {
    min-width: 0;
    flex: 1;
    color: #8b7770;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-upload-preview {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(199, 119, 112, .14);
    border-radius: 18px;
    background: rgba(253, 238, 235, .36);
}

.client-upload-preview img {
    width: 58px;
    height: 58px;
    display: block;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.client-upload-preview span {
    display: grid;
    gap: 3px;
}

.client-upload-preview strong {
    color: #2f2925;
    font-size: 13px;
}

.client-upload-preview small {
    color: #8b7770;
}

.client-auth-form small,
.client-auth-alert {
    color: #b35f59;
    font-size: 12px;
    line-height: 1.5;
}

.client-auth-alert {
    padding: 14px 16px;
    border: 1px solid rgba(199, 119, 112, .22);
    border-radius: 16px;
    background: rgba(253, 238, 235, .72);
}

.client-form-error-popup {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 42px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.client-form-error-popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.client-form-error-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 37, 33, .46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.client-form-error-card {
    width: min(100%, 520px);
    max-height: min(84vh, 620px);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid rgba(199, 119, 112, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(253, 238, 235, .72), transparent 44%),
        rgba(255, 255, 255, .94);
    box-shadow: 0 34px 100px rgba(32, 22, 18, .24);
    text-align: center;
    animation: clientErrorBounce .44s cubic-bezier(.2, .9, .24, 1.18);
}

.client-form-error-close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 119, 112, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: var(--color-primary);
    cursor: pointer;
}

.client-form-error-close svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-form-error-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(253, 238, 235, .9);
    color: var(--color-primary);
}

.client-form-error-icon svg {
    width: 27px;
    height: 27px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-form-error-card > span {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.client-form-error-card h2 {
    margin: 10px 0 8px;
    color: #2c2623;
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 500;
    line-height: 1;
}

.client-form-error-card p {
    margin: 0;
    color: #75645f;
    font-size: 14px;
    line-height: 1.7;
}

.client-form-error-card ul {
    margin: 22px 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
    text-align: left;
}

.client-form-error-card li {
    padding: 12px 14px;
    border: 1px solid rgba(199, 119, 112, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .74);
    color: #6f5d58;
    font-size: 13px;
    line-height: 1.55;
}

.client-form-error-card li strong {
    color: #2f2925;
}

.client-form-error-action {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.client-auth-form button:not(.client-password-toggle),
.client-account-hero a,
.client-card-head a,
.client-auth-footer a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 0 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        border-color .22s ease,
        color .22s ease;
}

.client-auth-form button:not(.client-password-toggle):hover {
    background: #bd6f6a;
    border-color: #bd6f6a;
    box-shadow: 0 16px 34px rgba(199, 119, 112, .24);
    transform: translateY(-2px);
}

.client-auth-form button:not(.client-password-toggle):active {
    box-shadow: 0 8px 20px rgba(199, 119, 112, .18);
    transform: translateY(0) scale(.985);
}

.client-login-card .client-auth-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.client-login-card .client-auth-form button[type="submit"]::before {
    content: '';
    position: absolute;
    inset: -45% auto -45% -75%;
    width: 52%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .42),
        transparent
    );
    opacity: 0;
    transition:
        left .52s ease,
        opacity .22s ease;
    pointer-events: none;
}

.client-login-card .client-auth-form button[type="submit"]:hover::before {
    left: 118%;
    opacity: 1;
}

.client-login-card .client-password-toggle {
    min-height: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    right: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8f817c;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.client-login-card .client-password-toggle:hover,
.client-login-card .client-password-toggle.is-visible {
    background: rgba(199, 119, 112, .08);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.04);
}

.client-login-card .client-password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-auth-footer {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #75645f;
}

.client-auth-footer p {
    margin: 0;
}

.client-auth-footer-soft {
    margin-top: 12px;
}

.client-auth-footer-soft a {
    border-color: rgba(199, 119, 112, .2);
    background: transparent;
}

.client-auth-footer a,
.client-account-hero a,
.client-card-head a {
    min-height: 40px;
    background: #fff;
    color: var(--color-primary);
}

.client-transition-page,
.client-onboarding-page {
    place-items: center;
}

.client-transition-card,
.client-onboarding-card {
    width: min(100%, 680px);
    border: 1px solid rgba(199, 119, 112, .16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 8%, rgba(253, 238, 235, .66), transparent 34%),
        rgba(255, 255, 255, .78);
    box-shadow: 0 28px 90px rgba(82, 55, 46, .12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
    animation: clientAuthBounce .48s cubic-bezier(.2, .9, .24, 1.18);
}

.client-transition-card {
    padding: clamp(42px, 5vw, 62px) clamp(28px, 5vw, 58px);
}

.client-transition-card-logout {
    background:
        radial-gradient(circle at 82% 0%, rgba(199, 119, 112, .14), transparent 34%),
        rgba(255, 255, 255, .78);
}

.client-transition-logo,
.client-onboarding-heading img {
    width: min(250px, 68vw);
    height: auto;
    object-fit: contain;
}

.client-transition-logo {
    margin: 0 auto 26px;
    display: block;
}

.client-transition-card > span,
.client-onboarding-heading > span {
    display: block;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.client-transition-card h1,
.client-onboarding-card h1 {
    margin: 8px 0 12px;
    color: #2c2623;
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 500;
    line-height: 1;
}

.client-transition-card p,
.client-onboarding-card p {
    max-width: 460px;
    margin: 0 auto 28px;
    color: #75645f;
    font-size: 15px;
    line-height: 1.7;
}

.client-transition-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.client-transition-loader span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: clientTransitionPulse .9s ease-in-out infinite;
}

.client-transition-loader span:nth-child(2) {
    animation-delay: .15s;
}

.client-transition-loader span:nth-child(3) {
    animation-delay: .3s;
}

.client-onboarding-card {
    width: min(100%, 920px);
    padding: clamp(34px, 5vw, 58px);
}

.client-onboarding-heading {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.client-onboarding-heading img {
    margin-bottom: 10px;
}

.client-onboarding-grid {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.client-onboarding-grid article {
    min-height: 176px;
    position: relative;
    overflow: hidden;
    padding: 24px 20px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    border: 1px solid rgba(199, 119, 112, .14);
    border-radius: 22px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 14px 34px rgba(82, 55, 46, .04);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        background .28s ease;
}

.client-onboarding-grid article::before {
    content: '';
    position: absolute;
    inset: -45% auto -45% -75%;
    width: 54%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .74),
        transparent
    );
    opacity: 0;
    transition:
        left .56s ease,
        opacity .22s ease;
    pointer-events: none;
}

.client-onboarding-grid article:hover {
    border-color: rgba(199, 119, 112, .3);
    background:
        radial-gradient(circle at 50% 0%, rgba(253, 238, 235, .62), transparent 52%),
        rgba(255, 255, 255, .82);
    box-shadow: 0 22px 46px rgba(82, 55, 46, .1);
    transform: translateY(-5px);
}

.client-onboarding-grid article:hover::before {
    left: 120%;
    opacity: 1;
}

.client-onboarding-grid svg {
    width: 34px;
    height: 34px;
    stroke: var(--color-primary);
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .28s ease;
}

.client-onboarding-grid article:hover svg {
    transform: translateY(-2px) scale(1.06);
}

.client-onboarding-grid h2 {
    margin: 0;
    color: #2f2925;
    font-size: 17px;
}

.client-onboarding-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.client-onboarding-card form {
    display: grid;
    justify-items: center;
    gap: 20px;
}

.client-onboarding-upload {
    width: min(100%, 520px);
    display: grid;
    justify-items: stretch;
    gap: 10px;
    text-align: left;
}

.client-onboarding-card button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    padding: 0 30px;
    text-transform: uppercase;
}

.client-account-hero {
    margin: 0 auto 24px;
    padding: clamp(28px, 5vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 14%, rgba(199, 119, 112, .2), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .96), transparent 24%),
        linear-gradient(135deg, rgba(255, 252, 249, .98), rgba(244, 218, 211, .78));
    border-color: rgba(199, 119, 112, .24);
    box-shadow:
        0 26px 70px rgba(82, 55, 46, .12),
        inset 0 1px 0 rgba(255, 255, 255, .82);
}

.client-account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(199, 119, 112, .2) 0 1.2px, transparent 1.8px),
        radial-gradient(circle, rgba(255, 255, 255, .86) 0 1px, transparent 1.6px);
    background-size: 92px 92px, 138px 138px;
    background-position: 0 0, 46px 34px;
    opacity: .68;
    pointer-events: none;
}

.client-account-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    border: 1px solid rgba(199, 119, 112, .16);
    background: rgba(255, 255, 255, .32);
    pointer-events: none;
}

.client-account-hero > * {
    position: relative;
    z-index: 1;
}

.client-account-hero h1 {
    margin-top: 0;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1;
}

.client-account-hero-profile {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 28px);
    min-width: 0;
}

.client-account-hero .client-account-avatar {
    width: clamp(74px, 7vw, 98px);
    height: clamp(74px, 7vw, 98px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(199, 119, 112, .26);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 22%, rgba(255, 255, 255, .92), transparent 42%),
        linear-gradient(145deg, rgba(253, 238, 235, .9), rgba(255, 255, 255, .74));
    box-shadow:
        0 18px 38px rgba(82, 55, 46, .1),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    line-height: 0;
    overflow: hidden;
}

.client-account-avatar-button {
    padding: 0;
    cursor: pointer;
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.client-account-avatar-button:hover {
    border-color: rgba(199, 119, 112, .5);
    box-shadow:
        0 24px 48px rgba(82, 55, 46, .15),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transform: translateY(-2px) scale(1.02);
}

.client-account-avatar-button:focus-visible {
    outline: 3px solid rgba(199, 119, 112, .26);
    outline-offset: 4px;
}

.client-account-hero .client-account-avatar svg {
    width: clamp(32px, 3.2vw, 42px);
    height: clamp(32px, 3.2vw, 42px);
    display: block;
    flex: 0 0 auto;
    stroke: var(--color-primary);
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-account-hero .client-account-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.client-profile-viewer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.client-profile-viewer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.client-profile-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 37, 33, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.client-profile-viewer-dialog {
    width: min(92vw, 620px);
    max-height: min(84vh, 680px);
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(253, 238, 235, .52), transparent 48%),
        rgba(255, 255, 255, .84);
    box-shadow: 0 36px 110px rgba(32, 22, 18, .26);
    transform: translateY(16px) scale(.98);
    transition: transform .28s cubic-bezier(.2, .9, .24, 1.18);
}

.client-profile-viewer.is-open .client-profile-viewer-dialog {
    transform: translateY(0) scale(1);
}

.client-profile-viewer-dialog img {
    width: min(100%, 480px);
    max-height: min(70vh, 520px);
    display: block;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(82, 55, 46, .14);
}

.client-profile-viewer-close {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 119, 112, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--color-primary);
    cursor: pointer;
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.client-profile-viewer-close:hover {
    background: #fff;
    box-shadow: 0 14px 26px rgba(82, 55, 46, .12);
    transform: translateY(-1px);
}

.client-profile-viewer-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.client-profile-viewer-open {
    overflow: hidden;
}

.client-account-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.client-account-hero-actions a {
    gap: 9px;
    position: relative;
    overflow: hidden;
    transition:
        transform .26s ease,
        box-shadow .26s ease,
        background .26s ease,
        color .26s ease,
        border-color .26s ease;
}

.client-account-hero-actions a::before {
    content: '';
    position: absolute;
    inset: -45% auto -45% -70%;
    width: 52%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .46),
        transparent
    );
    opacity: 0;
    transition:
        left .52s ease,
        opacity .24s ease;
    pointer-events: none;
}

.client-account-hero-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(199, 119, 112, .16);
}

.client-account-hero-actions a:hover::before {
    left: 118%;
    opacity: 1;
}

.client-account-hero-actions svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.client-account-hero-actions .client-account-ghost {
    background: rgba(255, 255, 255, .76);
    color: var(--color-primary);
}

.client-account-hero-actions .client-account-ghost:hover {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(199, 119, 112, .62);
}

.client-account-messages {
    margin: 0 auto 24px;
    padding: 16px 20px;
}

.client-account-messages p {
    margin: 0;
    color: #6f8a58;
    font-weight: 600;
}

.client-account-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.client-account-tabs {
    margin-bottom: 26px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    border: 1px solid rgba(199, 119, 112, .15);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 50px rgba(82, 55, 46, .07);
}

.client-account-tabs button {
    min-height: 46px;
    flex: 0 0 auto;
    border: 1px solid rgba(199, 119, 112, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    color: #75645f;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 0 22px;
    text-transform: uppercase;
}

.client-account-tabs button.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 12px 26px rgba(199, 119, 112, .18);
}

.client-account-panel {
    display: none;
    animation: clientAccountPanelIn .28s ease both;
}

.client-account-panel.active {
    display: block;
}

.client-account-overview,
.client-account-grid {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
}

.client-account-overview {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 20px;
    margin-bottom: 20px;
}

.client-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.client-section-list + .client-section-list {
    margin-top: 30px;
}

.client-section-list h2 {
    margin: 0 0 12px;
    color: #2f2925;
    font-size: 18px;
    font-weight: 700;
}

.client-account-card {
    padding: 26px;
}

.client-account-card h2 {
    margin-top: 14px;
    color: #2f2925;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.client-profile-card dl {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.client-profile-card dl div,
.client-account-row,
.client-feature-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.client-profile-card dt,
.client-account-row small,
.client-feature-row small {
    color: #8b7770;
    font-size: 12px;
    line-height: 1.55;
}

.client-profile-card dd,
.client-account-row strong,
.client-feature-row strong {
    margin: 4px 0 0;
    color: #2f2925;
    font-size: 14px;
    font-weight: 700;
}

.client-account-row,
.client-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.client-account-row > div,
.client-feature-row > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.client-account-row strong,
.client-feature-row strong,
.client-account-row small,
.client-feature-row small {
    overflow-wrap: anywhere;
}

.client-row-side {
    flex: 0 0 auto;
    display: grid;
    justify-items: end;
    gap: 8px;
    text-align: right;
}

.client-status-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(232, 218, 212, .72);
    color: #736660;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.client-status-pill[data-status="confirmed"],
.client-status-pill[data-status="paid"],
.client-status-pill[data-status="approved"],
.client-status-pill[data-status="completed"],
.client-status-pill[data-status="delivered"] {
    background: rgba(218, 235, 207, .88);
    color: #587545;
}

.client-status-pill[data-status="pending"],
.client-status-pill[data-status="draft"],
.client-status-pill[data-status="redirected"],
.client-status-pill[data-status="processing"],
.client-status-pill[data-status="shipped"] {
    background: rgba(249, 228, 214, .88);
    color: #9a6048;
}

.client-status-pill[data-status="cancelled"],
.client-status-pill[data-status="rejected"],
.client-status-pill[data-status="expired"],
.client-status-pill[data-status="error"],
.client-status-pill[data-status="no_show"] {
    background: rgba(247, 218, 218, .88);
    color: #a84d4d;
}

.client-detail-link {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.client-payment-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 119, 112, .24);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0 14px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(199, 119, 112, .18);
}

.client-payment-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(199, 119, 112, .24);
}

.client-detail-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.client-back-link,
.client-detail-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 119, 112, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 0 18px;
    text-decoration: none;
    text-transform: uppercase;
}

.client-detail-hero {
    margin-top: 18px;
    margin-bottom: 20px;
    padding: clamp(28px, 5vw, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(199, 119, 112, .15);
    border-radius: 24px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 24px 70px rgba(82, 55, 46, .09);
}

.client-detail-hero-premium {
    overflow: hidden;
    position: relative;
}

.client-detail-hero-premium::after {
    content: "";
    width: 220px;
    height: 220px;
    position: absolute;
    right: -80px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(253, 238, 235, .82);
    pointer-events: none;
}

.client-detail-hero-premium > * {
    position: relative;
    z-index: 1;
}

.client-detail-hero-side {
    display: grid;
    justify-items: end;
    gap: 10px;
    text-align: right;
}

.client-detail-hero-side small {
    color: #8b7770;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.client-detail-hero span:first-child,
.client-detail-list dt {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.client-detail-hero h1 {
    margin-top: 12px;
    color: #2f2925;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 500;
    line-height: .98;
}

.client-detail-hero p {
    margin-top: 10px;
    color: #75645f;
    font-size: 15px;
}

.client-detail-summary {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.client-detail-summary article {
    min-height: 92px;
    padding: 18px;
    display: grid;
    align-content: center;
    border: 1px solid rgba(199, 119, 112, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 46px rgba(82, 55, 46, .07);
}

.client-detail-summary span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.client-detail-summary strong {
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: #2f2925;
    font-size: 17px;
}

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

.client-detail-wide {
    grid-column: 1 / -1;
}

.client-detail-card-soft {
    background:
        radial-gradient(circle at top right, rgba(253, 238, 235, .38), transparent 34%),
        rgba(255, 255, 255, .82);
}

.client-detail-item {
    min-height: 68px;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.client-detail-item:last-child {
    border-bottom: 0;
}

.client-detail-item > div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.client-detail-item strong {
    overflow-wrap: anywhere;
    color: #2f2925;
    font-size: 14px;
}

.client-detail-item small {
    color: #8b7770;
    font-size: 12px;
    line-height: 1.6;
}

.client-detail-note {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(199, 119, 112, .12);
    border-radius: 18px;
    background: rgba(253, 238, 235, .36);
    color: #75645f;
    line-height: 1.7;
}

.client-detail-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.client-detail-list div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.client-detail-list dd {
    margin: 5px 0 0;
    color: #2f2925;
    font-weight: 700;
}

.client-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.client-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.client-profile-head {
    justify-content: flex-end;
    margin-bottom: 6px;
}

.client-icon-actions a {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-color: rgba(199, 119, 112, .2);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 24px rgba(82, 55, 46, .06);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        background .22s ease,
        border-color .22s ease;
}

.client-icon-actions a:hover {
    border-color: rgba(199, 119, 112, .42);
    background: rgba(253, 238, 235, .72);
    box-shadow: 0 16px 30px rgba(82, 55, 46, .1);
    transform: translateY(-2px);
}

.client-icon-actions svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-security-form {
    max-width: 680px;
}

.client-form-help {
    color: #8b7770;
}

@keyframes clientAccountPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clientAuthBounce {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes clientTransitionPulse {
    0%,
    100% {
        opacity: .32;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes clientErrorBounce {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 820px) {
    .client-account-page {
        padding-top: 190px;
    }

    .client-auth-grid,
    .client-account-overview,
    .client-account-grid {
        grid-template-columns: 1fr;
    }

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

    .client-account-hero-profile {
        align-items: flex-start;
    }

    .client-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-detail-grid {
        grid-template-columns: 1fr;
    }

    .client-onboarding-grid {
        grid-template-columns: 1fr;
    }

    .client-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .client-account-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .client-auth-card,
    .client-account-card,
    .client-account-hero,
    .client-account-tabs {
        border-radius: 20px;
        padding: 24px;
    }

    .client-account-tabs {
        justify-content: flex-start;
        padding: 14px;
    }

    .client-auth-footer,
    .client-card-head,
    .client-locked-field {
        align-items: stretch;
        flex-direction: column;
    }

    .client-account-row,
    .client-feature-row,
    .client-detail-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-account-hero-profile {
        width: 100%;
    }

    .client-detail-summary {
        grid-template-columns: 1fr;
    }

    .client-detail-hero-side {
        justify-items: start;
        text-align: left;
    }

    .client-row-side {
        width: 100%;
        justify-items: start;
        text-align: left;
    }

    .client-detail-link {
        white-space: normal;
    }

    .client-payment-action {
        width: 100%;
    }

    .client-card-actions {
        justify-content: stretch;
    }

    .client-card-actions a,
    .client-locked-field a {
        width: 100%;
    }

    .client-upload-control {
        align-items: stretch;
        flex-direction: column;
        padding: 10px;
    }

    .client-upload-button {
        width: 100%;
    }

    .client-upload-name {
        width: 100%;
        text-align: center;
    }
}
