.client-home-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(196, 144, 106, 0.26), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(92, 48, 32, 0.12), transparent 28%),
        linear-gradient(135deg, var(--creme) 0%, var(--creme-escuro) 100%);
    color: var(--texto-escuro);
    display: flex;
    flex-direction: column;
}

.client-home-header-title {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    pointer-events: none;
}

.client-home-header-title h1 {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: var(--marrom);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-nav .drawer-link-active,
.drawer-nav a.active {
    background: var(--marrom);
    color: var(--creme);
}

.client-home-main {
    width: min(980px, calc(100% - 28px));
    margin: 0 auto;
    padding: 92px 0 46px;
    flex: 1;
}

.client-profile-card {
    position: relative;
    width: 100%;
    min-height: 138px;
    border-radius: 30px;
    padding: clamp(16px, 4vw, 24px);
    background:
        linear-gradient(135deg, rgba(253, 248, 244, 0.92), rgba(245, 234, 224, 0.8)),
        radial-gradient(circle at 92% 12%, rgba(92, 48, 32, 0.14), transparent 34%);
    border: 1px solid rgba(92, 48, 32, 0.13);
    box-shadow: var(--sombra-lg);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 4vw, 22px);
    overflow: hidden;
}

.client-profile-card::before {
    content: "";
    position: absolute;
    inset: auto -38px -58px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(92, 48, 32, 0.08);
    pointer-events: none;
}

.client-avatar-wrap {
    position: relative;
    width: clamp(76px, 18vw, 104px);
    height: clamp(76px, 18vw, 104px);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--marrom), var(--marrom-medio));
    border: 4px solid rgba(253, 248, 244, 0.86);
    box-shadow: 0 12px 26px rgba(92, 48, 32, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    z-index: 1;
}

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

.client-avatar-initials {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.55rem, 7vw, 2.45rem);
    font-weight: 700;
    color: var(--creme-claro);
    line-height: 1;
}

.client-profile-info {
    min-width: 0;
    z-index: 1;
}

.client-welcome {
    margin-bottom: 2px;
    color: var(--marrom-medio);
    font-size: var(--texto-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.client-profile-info h2 {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.85rem, 7vw, 2.7rem);
    line-height: 0.95;
    color: var(--marrom);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.client-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: var(--texto-medio);
    font-size: var(--texto-sm);
    line-height: 1.35;
}

.client-meta-line i {
    width: 16px;
    color: var(--marrom-medio);
    text-align: center;
    flex: 0 0 auto;
}

.client-meta-line span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-edit-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(92, 48, 32, 0.1);
    color: var(--marrom);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 48, 32, 0.12);
    transition: all var(--transicao-normal);
    z-index: 1;
}

.client-edit-link:hover {
    transform: translateY(-2px);
    background: var(--marrom);
    color: var(--creme);
}

.client-section-tabs {
    position: sticky;
    top: 74px;
    z-index: 800;
    margin: 18px 0 18px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(253, 248, 244, 0.78);
    border: 1px solid rgba(92, 48, 32, 0.1);
    box-shadow: var(--sombra-md);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.client-tab-btn {
    min-width: 0;
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    padding: 8px 8px;
    background: transparent;
    color: var(--marrom);
    font-family: var(--fonte-corpo);
    font-size: var(--texto-sm);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all var(--transicao-normal);
}

.client-tab-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-tab-btn strong {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: var(--radius-full);
    background: rgba(92, 48, 32, 0.1);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    line-height: 1;
}

.client-tab-btn.active,
.client-tab-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 10px 20px rgba(92, 48, 32, 0.18);
}

.client-tab-btn.active strong,
.client-tab-btn:hover strong {
    background: rgba(255, 255, 255, 0.18);
}

.client-section {
    display: none;
    animation: clientSectionIn 0.24s ease both;
}

.client-section.active {
    display: block;
}

@keyframes clientSectionIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.client-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 2px 12px;
}

.section-kicker {
    margin: 0 0 2px;
    color: var(--marrom-medio);
    font-size: var(--texto-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.client-section-head h2 {
    font-family: var(--fonte-titulo);
    color: var(--marrom);
    font-size: clamp(1.9rem, 7vw, 2.7rem);
    line-height: 1;
}

.section-link-btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: var(--creme-claro);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.13);
    box-shadow: var(--sombra-sm);
    font-size: var(--texto-sm);
    font-weight: 800;
    transition: all var(--transicao-normal);
}

.section-link-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    transform: translateY(-2px);
}

.client-list-card {
    min-height: 190px;
    border-radius: 28px;
    background: rgba(253, 248, 244, 0.78);
    border: 1px solid rgba(92, 48, 32, 0.11);
    box-shadow: var(--sombra-md);
    overflow: hidden;
}

.client-empty-note {
    padding: clamp(28px, 8vw, 44px) 22px;
    text-align: center;
    color: var(--texto-medio);
    font-size: var(--texto-sm);
}

.client-mini-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    transition: background var(--transicao-normal);
}

.client-mini-card:last-child {
    border-bottom: 0;
}

.client-mini-card:hover {
    background: rgba(255, 255, 255, 0.34);
}

.client-mini-thumb {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    object-fit: cover;
    background: var(--creme-escuro);
    border: 1px solid rgba(92, 48, 32, 0.12);
    box-shadow: 0 10px 20px rgba(92, 48, 32, 0.1);
}

.client-mini-main {
    min-width: 0;
}

.client-mini-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--marrom-medio);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.client-mini-title {
    display: block;
    font-family: var(--fonte-titulo);
    font-size: clamp(1.28rem, 5vw, 1.65rem);
    line-height: 1.02;
    color: var(--marrom);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.client-mini-meta {
    color: var(--texto-medio);
    font-size: var(--texto-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-mini-price {
    color: var(--texto-escuro);
    font-weight: 900;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-mini-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 118px;
}

.client-action-btn {
    min-height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(92, 48, 32, 0.12);
    background: var(--creme-claro);
    color: var(--marrom);
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--transicao-normal);
    white-space: nowrap;
}

.client-action-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    transform: translateY(-1px);
}

.client-action-btn.danger:hover {
    background: var(--erro);
    border-color: var(--erro);
}

.client-status-pill {
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 900;
    margin-top: 7px;
}

.status-completed {
    background: rgba(93, 138, 94, 0.14);
    color: var(--sucesso);
}

.status-pending {
    background: rgba(192, 154, 43, 0.14);
    color: var(--aviso);
}

.status-processing {
    background: rgba(92, 48, 32, 0.11);
    color: var(--marrom);
}

.status-cancelled {
    background: rgba(192, 57, 43, 0.12);
    color: var(--erro);
}

.client-cart-summary {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 24px;
    background: rgba(92, 48, 32, 0.92);
    color: var(--creme);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    box-shadow: var(--sombra-lg);
}

.client-cart-summary span {
    color: rgba(245, 234, 224, 0.82);
    font-size: var(--texto-sm);
    font-weight: 700;
}

.client-cart-summary strong {
    font-size: var(--texto-lg);
    white-space: nowrap;
}

.client-cart-summary .btn {
    background: var(--creme);
    color: var(--marrom);
    border-color: transparent;
    white-space: nowrap;
}

.client-cart-summary .btn:hover {
    background: var(--creme-claro);
}

.client-home-footer {
    margin-top: auto;
}

@media (max-width: 760px) {
    .client-home-main {
        width: min(100% - 22px, 980px);
        padding-top: 84px;
    }

    .client-profile-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .client-edit-link {
        position: absolute;
        right: 14px;
        top: 14px;
        width: 36px;
        height: 36px;
    }

    .client-profile-info h2 {
        padding-right: 32px;
    }

    .client-section-tabs {
        top: 72px;
        gap: 6px;
        border-radius: 20px;
        padding: 6px;
    }

    .client-tab-btn {
        min-height: 46px;
        flex-direction: column;
        gap: 3px;
        font-size: 0.72rem;
        padding: 7px 3px;
    }

    .client-tab-btn i {
        font-size: 0.9rem;
    }

    .client-tab-btn strong {
        position: absolute;
        transform: translate(22px, -15px);
        min-width: 20px;
        height: 20px;
        font-size: 0.68rem;
        padding: 0 6px;
    }

    .client-mini-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .client-mini-thumb {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .client-mini-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
    }

    .client-action-btn {
        flex: 1;
        min-width: 0;
    }

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

    .client-cart-summary .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 430px) {
    .client-home-header .auth-logo .logo-tua {
        font-size: 1.9rem;
    }

    .client-home-header .auth-logo .logo-pele {
        font-size: 1.42rem;
    }

    .client-home-header .auth-lema {
        font-size: 0.78rem;
        margin-left: 16px;
    }

    .client-home-header-title h1 {
        font-size: 1.1rem;
    }

    .client-profile-card {
        gap: 12px;
        padding: 15px;
        border-radius: 25px;
    }

    .client-avatar-wrap {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .client-profile-info h2 {
        font-size: 1.65rem;
    }

    .client-meta-line {
        font-size: 0.78rem;
    }

    .client-section-head {
        align-items: center;
    }

    .section-link-btn {
        padding: 7px 10px;
        font-size: 0.78rem;
    }
}
