/* Profile («Особистий кабінет») — no Figma mock exists for this page: built
   strictly from the site's established language (auth card/form/button rhythm,
   review cards, the company-reviews title ladder). */
#profile .container {
    padding-top: 50px;
    padding-bottom: 100px;
}
#profile .profile-head .title {
    margin-top: 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 50px;
}
/* Tab pills (details / password / reviews) — the star-filter pill language:
   white bordered pill, active takes the accent blue. */
#profile .profile-tabs {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#profile .profile-tab {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}
#profile .profile-tab.is-active {
    border-color: var(--color-bg-fourth);
    background: var(--color-bg-fourth);
    color: var(--color-text-secondary);
    cursor: default;
}
#profile .profile-panel {
    display: none;
    margin-top: 30px;
}
#profile .profile-panel.is-active {
    display: block;
}
#profile .profile-card {
    max-width: 640px;
    padding: 50px;
    background: var(--color-bg-alt);
    border-radius: 24px;
}
#profile .profile-card .card-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 30px;
}
#profile .profile-card form {
    margin-top: 30px;
}
/* Success flash — the same blue notice as the create-review banner. */
#profile .profile-card .notice {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--color-border-secondary);
    background-color: var(--color-bg-third);
    color: var(--color-text-link);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
#profile .profile-card .notice .icon {
    display: flex;
    font-size: 29px;
    color: var(--color-text-third);
    margin-right: 14px;
}
#profile .profile-card .notice + form {
    margin-top: 20px;
}
#profile .profile-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#profile .profile-card .form-control {
    width: 100%;
    height: 40px;
}
#profile .profile-card .form-control::placeholder {
    color: var(--color-text-link);
}
/* E-mail is the account identity — a visually muted, non-editable control. */
#profile .profile-card .form-control:disabled {
    color: var(--color-text-link);
    background: var(--color-bg);
    cursor: not-allowed;
}
#profile .profile-card .btn {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    background: var(--color-btn);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
}
/* Validation error above the submit; the sibling rule pulls the button's 30px
   (20px mobile) top margin down to a tight 10px gap — same as auth. */
#profile .form-error {
    margin-top: 15px;
    color: #dc2626;
    font-size: 13px;
    line-height: 18px;
}
#profile .form-error + .btn {
    margin-top: 10px;
}
/* «Мої відгуки» — stacked public review cards with a moderation status chip
   (the panel provides the vertical rhythm). */
#profile .profile-reviews .reviews-title {
    margin-top: 16px;
    font-size: 42px;
    font-weight: 800;
    line-height: 50px;
}
#profile .profile-reviews .list .review-card {
    margin-top: 20px;
}
/* Right side of the card head: status chip + date. */
#profile .review-card .head .meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Moderation status chip — the .topic shape carrying state colours. */
#profile .review-status {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
#profile .review-status--pending {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
}
#profile .review-status--approved {
    background-color: var(--color-bg-third);
    color: var(--color-text-third);
}
#profile .review-status--rejected {
    background-color: #FDECEC;
    color: #DC2626;
}
#profile .paginationContainer {
    margin-top: 40px;
}
/* Empty state: grey centered line + the auth-alt style action link. */
#profile .empty {
    margin-top: 20px;
    text-align: center;
    color: var(--color-text-alt);
}
#profile .empty a {
    margin-left: 5px;
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: calc(991px + 30px)) {

    #profile .profile-head .title {
        font-size: 32px;
        line-height: 40px;
    }
    #profile .profile-tabs {
        margin-top: 30px;
    }
    #profile .profile-reviews .reviews-title {
        font-size: 32px;
        line-height: 40px;
    }
}

@media (max-width: 768px) {

    #profile .container {
        padding-top: 35px;
        padding-bottom: 50px;
    }
    #profile .profile-tab {
        padding: 8px 15px;
    }
    #profile .profile-panel {
        margin-top: 20px;
    }
    #profile .profile-card {
        padding: 30px;
    }
    #profile .profile-card .form-control {
        height: 38px;
    }
    #profile .profile-card .btn {
        margin-top: 20px;
        height: 32px;
        padding: 6px 15px;
    }
    #profile .profile-reviews .reviews-title {
        margin-top: 10px;
        font-size: 24px;
        line-height: 30px;
    }
    #profile .paginationContainer {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {

    /* Narrow screens: let the stars / chip+date row wrap instead of crushing. */
    #profile .review-card .head {
        flex-wrap: wrap;
        gap: 5px 10px;
    }
}
