/* ==========================================================================
   Eman Materials - Master / Specialist Directory & Cabinet Custom Styles
   ========================================================================== */

:root {
    --eman-green: #068c53;
    --eman-green-hover: #057243;
    --eman-green-light: #e8f7ee;
    --eman-green-border: #b7e4cb;
    --eman-dark: #1e293b;
    --eman-muted: #64748b;
    --eman-border: #e2e8f0;
    --eman-bg-gray: #f8fafc;
    --eman-star-gold: #f59e0b;
    --eman-radius: 12px;
    --eman-radius-lg: 16px;
    --eman-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --eman-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --eman-shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------------------
   1. Catalog Page Layout & Filters (Image 2)
   -------------------------------------------------------------------------- */
.masters-catalog-page {
    background-color: var(--eman-bg-gray);
    padding: 24px 0 60px;
    font-family: inherit;
}

.catalog-breadcrumbs ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    gap: 8px;
    font-size: 14px;
    color: var(--eman-muted);
}
.catalog-breadcrumbs a {
    color: var(--eman-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.catalog-breadcrumbs a:hover {
    color: var(--eman-green);
}
.catalog-breadcrumbs .active-crumb {
    color: var(--eman-dark);
    font-weight: 500;
}

.catalog-filter-card {
    background: #ffffff;
    border-radius: var(--eman-radius-lg);
    padding: 20px;
    box-shadow: var(--eman-shadow-sm);
    border: 1px solid var(--eman-border);
    margin-bottom: 24px;
}

.filter-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--eman-border);
}
.filter-header-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-reset-btn {
    background: none;
    border: none;
    color: var(--eman-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.filter-reset-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.filter-group-item {
    margin-bottom: 16px;
}
.filter-group-item label.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--eman-dark);
    margin-bottom: 6px;
}
.filter-input-wrap {
    position: relative;
}
.filter-input-wrap input.filter-input,
.filter-input-wrap select.filter-select,
.filter-select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--eman-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--eman-dark);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-input-wrap input.filter-input:focus,
.filter-input-wrap select.filter-select:focus,
.filter-select:focus {
    border-color: var(--eman-green);
    box-shadow: 0 0 0 3px rgba(6, 140, 83, 0.12);
}
.filter-input-wrap .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--eman-muted);
    pointer-events: none;
}

/* Rating Checkboxes */
.rating-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rating-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--eman-dark);
    margin: 0;
    user-select: none;
}
.rating-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    accent-color: var(--eman-green);
    cursor: pointer;
}
.rating-checkbox-item .star-gold {
    color: var(--eman-star-gold);
    font-size: 15px;
}

.filter-footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--eman-border);
}
.btn-filter-clear {
    flex: 1;
    height: 42px;
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: 10px;
    color: var(--eman-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-filter-clear:hover {
    background: #f1f5f9;
    color: var(--eman-dark);
}
.btn-filter-apply {
    flex: 1.5;
    height: 42px;
    background: var(--eman-green);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-filter-apply:hover {
    background: var(--eman-green-hover);
}

/* Top bar (Count & Sort) */
.catalog-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.catalog-count-badge {
    font-size: 16px;
    font-weight: 600;
    color: var(--eman-dark);
}
.catalog-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.catalog-sort-wrap label {
    font-size: 14px;
    color: var(--eman-muted);
    margin: 0;
}
.catalog-sort-select {
    height: 38px;
    border: 1px solid var(--eman-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--eman-dark);
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. Master Specialist Cards Grid (Image 2)
   -------------------------------------------------------------------------- */
.master-card {
    background: #ffffff;
    border-radius: var(--eman-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 20px;
    position: relative;
}
.master-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.master-card-cover {
    position: relative;
    width: 100%;
    height: 165px;
    background-color: #cbd5e1;
    overflow: hidden;
}
.master-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.master-card:hover .master-card-cover img {
    transform: scale(1.04);
}

.master-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    color: var(--eman-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.master-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.master-card-fav:hover,
.master-card-fav.active {
    color: #ef4444;
    background: #ffffff;
    transform: scale(1.1);
}

.master-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.master-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.master-card-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}
.master-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.verified-checkmark {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    background: var(--eman-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 1.5px solid #ffffff;
}

.master-card-author-info {
    overflow: hidden;
    flex-grow: 1;
}
.master-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.master-card-location {
    font-size: 11px;
    color: var(--eman-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.master-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--eman-dark);
    margin-bottom: 8px;
}
.master-card-rating .star-icon {
    color: var(--eman-star-gold);
}
.master-card-rating .reviews-count {
    color: var(--eman-muted);
    font-weight: 400;
    font-size: 11px;
}

.master-card-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: var(--eman-muted);
    margin-bottom: 10px;
}
.master-card-stats-row {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.master-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.pill-gray {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.btn-master-detail {
    margin-top: auto;
    width: 100%;
    height: 36px;
    background: transparent;
    border: 1px solid var(--eman-green);
    border-radius: 10px;
    color: var(--eman-green);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-master-detail:hover {
    background: var(--eman-green);
    color: #ffffff;
}


/* --------------------------------------------------------------------------
   3. Master Detail Page (Image 3)
   -------------------------------------------------------------------------- */
.master-profile-header-card {
    background: #ffffff;
    border-radius: var(--eman-radius-lg);
    border: 1px solid var(--eman-border);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--eman-shadow-sm);
}

.master-header-grid {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 991px) {
    .master-header-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.master-big-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.master-big-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.master-big-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.master-big-avatar .verified-badge-lg {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: var(--eman-green);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 2px solid #ffffff;
}
.master-online-status {
    font-size: 13px;
    color: var(--eman-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.online-dot {
    width: 8px;
    height: 8px;
    background-color: var(--eman-green);
    border-radius: 50%;
    display: inline-block;
}

.master-header-main-info {
    flex-grow: 1;
}
.master-name-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.master-sub-role {
    font-size: 14px;
    color: var(--eman-muted);
    margin: 0 0 16px;
}

.master-header-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 14px;
}
.master-header-stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--eman-dark);
}
.master-header-stats-item .star-val {
    color: var(--eman-star-gold);
}
.master-header-stats-item .muted-cnt {
    font-weight: 400;
    color: var(--eman-muted);
}

.master-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.badge-pill-outline {
    background: var(--eman-green-light);
    color: var(--eman-green);
    border: 1px solid var(--eman-green-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.master-bio-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    max-width: 680px;
}

.master-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-contact-master {
    height: 44px;
    padding: 0 24px;
    background: var(--eman-green);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-contact-master:hover {
    background: var(--eman-green-hover);
    color: #ffffff;
}
.btn-rate-master {
    height: 44px;
    padding: 0 20px;
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: 10px;
    color: var(--eman-dark);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-rate-master:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* 5 Square Stat Boxes */
.master-stat-boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.master-stat-box {
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--eman-shadow-sm);
}
.master-stat-box-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--eman-green-light);
    color: var(--eman-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.master-stat-box-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--eman-dark);
    line-height: 1.2;
}
.master-stat-box-label {
    font-size: 11px;
    color: var(--eman-muted);
    line-height: 1.2;
}

/* Right Details Card */
.master-right-details-card {
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: var(--eman-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--eman-shadow-sm);
}
.master-right-details-card .detail-section-item {
    margin-bottom: 18px;
}
.detail-section-item:last-child {
    margin-bottom: 0;
}
.detail-sec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--eman-dark);
    margin-bottom: 6px;
}
.detail-sec-header i {
    color: var(--eman-green);
}
.detail-sec-value {
    font-size: 13px;
    color: var(--eman-muted);
    line-height: 1.5;
}

/* Work Types Check-List */
.work-types-checklist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.work-types-checklist li {
    font-size: 13px;
    color: var(--eman-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.work-types-checklist li i.check-icon {
    color: var(--eman-green);
    font-size: 14px;
}

/* Portfolio Works Gallery on Detail Page */
.master-portfolio-section {
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: var(--eman-radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--eman-shadow-sm);
}
.portfolio-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.portfolio-sec-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0;
}
.portfolio-sec-header a.view-all-link {
    color: var(--eman-green);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portfolio-scroll-arrow-btn {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    cursor: pointer;
    z-index: 5;
    font-size: 18px;
    color: var(--eman-dark);
    transition: all 0.2s;
}
.portfolio-scroll-arrow-btn:hover {
    background: var(--eman-green);
    color: #ffffff;
    border-color: var(--eman-green);
    transform: translateY(-50%) scale(1.08);
}

.btn-all-master-works {
    width: 100%;
    height: 42px;
    background: #f8fafc;
    border: 1px solid var(--eman-border);
    border-radius: 10px;
    color: var(--eman-dark);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-all-master-works:hover {
    background: var(--eman-green-light);
    color: var(--eman-green);
    border-color: var(--eman-green-border);
}

.portfolio-work-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--eman-border);
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
}
.portfolio-work-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--eman-shadow);
}
.portfolio-work-img {
    position: relative;
    width: 100%;
    height: 170px;
    background: #cbd5e1;
}
.portfolio-work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-duration-pill {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 600;
    color: var(--eman-dark);
    padding: 3px 8px;
    border-radius: 6px;
}
.portfolio-work-info {
    padding: 12px;
}
.portfolio-work-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portfolio-work-loc {
    font-size: 12px;
    color: var(--eman-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. Portfolio Detail Modal (Image 4)
   -------------------------------------------------------------------------- */
.modal-portfolio-detail .modal-dialog {
    max-width: 960px;
}
.modal-portfolio-detail .modal-content {
    border-radius: var(--eman-radius-lg);
    border: none;
    overflow: hidden;
}
.modal-portfolio-header {
    padding: 20px 24px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--eman-border);
}
.modal-portfolio-title-wrap h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 4px;
}
.modal-portfolio-title-wrap p {
    font-size: 13px;
    color: var(--eman-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-portfolio-body {
    padding: 24px;
}

.portfolio-slider-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    height: 380px;
    margin-bottom: 12px;
}
.portfolio-slider-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-slide-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eman-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.slider-arrow-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow-btn.prev {
    left: 14px;
}
.slider-arrow-btn.next {
    right: 14px;
}

.portfolio-thumbnails-grid,
.portfolio-thumbnails-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.portfolio-thumb-item {
    position: relative;
    width: 100%;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.portfolio-thumb-item:hover {
    opacity: 0.9;
}
.portfolio-thumb-item.active {
    border-color: var(--eman-green);
}
.portfolio-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.project-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.project-spec-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--eman-border);
}
.project-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.project-spec-item .spec-label {
    font-size: 11px;
    color: var(--eman-muted);
}
.project-spec-item .spec-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--eman-dark);
}

.project-materials-block,
.project-hardware-block {
    background: #f8fafc;
    border: 1px solid var(--eman-border);
    border-radius: 12px;
    padding: 14px;
}
.project-block-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--eman-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.project-materials-block ul,
.project-hardware-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.project-materials-block li,
.project-hardware-block li {
    font-size: 12px;
    color: #475569;
    position: relative;
    padding-left: 14px;
}
.project-materials-block li::before,
.project-hardware-block li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--eman-green);
}

.modal-portfolio-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.btn-portfolio-contact {
    flex-grow: 1;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--eman-green);
    border-radius: 10px;
    color: var(--eman-green);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-portfolio-contact:hover {
    background: var(--eman-green);
    color: #ffffff;
}
.btn-portfolio-fav {
    width: 44px;
    height: 44px;
    border: 1px solid var(--eman-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--eman-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}
.btn-portfolio-fav:hover {
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   5. Contact Disclaimer Modal (Image 5)
   -------------------------------------------------------------------------- */
.modal-contact-disclaimer .modal-dialog {
    max-width: 520px;
}
.modal-contact-disclaimer .modal-content {
    border-radius: var(--eman-radius-lg);
    border: none;
    padding: 24px;
}

.disclaimer-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.disclaimer-author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.disclaimer-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.disclaimer-author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.disclaimer-author-loc {
    font-size: 12px;
    color: var(--eman-muted);
    margin: 0;
}

.disclaimer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--eman-dark);
    margin-bottom: 16px;
}

.disclaimer-callout-box {
    background-color: #edf6f0;
    border: none;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.disclaimer-callout-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #2e5b3c;
    color: #2e5b3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: serif;
    flex-shrink: 0;
    margin-top: 2px;
}
.disclaimer-callout-text {
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.55;
}

.disclaimer-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    margin-bottom: 24px;
    user-select: none;
}
.disclaimer-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    accent-color: #2e5b3c;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
}

.disclaimer-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.btn-modal-cancel {
    height: 42px;
    padding: 0 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-modal-cancel:hover {
    background: #f8fafc;
}
.btn-modal-submit-contact {
    height: 42px;
    padding: 0 24px;
    background: #2e5b3c;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-modal-submit-contact:hover:not(:disabled) {
    background: #23472f;
.btn-modal-submit-contact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   6. Review / Rate Modal (Image 6)
   -------------------------------------------------------------------------- */
.modal-rate-master .modal-dialog {
    max-width: 520px;
}
.modal-rate-master .modal-content {
    border-radius: var(--eman-radius-lg);
    border: none;
    padding: 24px;
}
.modal-rate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.modal-rate-title-wrap h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 4px;
}
.modal-rate-title-wrap p {
    font-size: 13px;
    color: var(--eman-muted);
    margin: 0;
}

/* 5 Colored Interactive Stars */
.rating-stars-interactive-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 6px;
    padding: 0 10px;
}
.star-btn-item {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 44px;
    line-height: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.star-btn-item:hover {
    transform: scale(1.2);
}

.star-btn-item.star-red { color: #ef4444; }
.star-btn-item.star-orange { color: #f97316; }
.star-btn-item.star-yellow { color: #eab308; }
.star-btn-item.star-lime { color: #84cc16; }
.star-btn-item.star-green { color: #22c55e; }

.star-rating-hint-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
    padding: 0 4px;
}

.review-textarea-wrap {
    position: relative;
}
.char-counter-text {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.photo-upload-compact-box {
    width: 140px;
    height: 90px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.photo-upload-compact-box:hover {
    border-color: var(--eman-green);
    background: #edf6f0;
}

.review-preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--eman-border);
}
.review-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photos-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.review-preview-thumb {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}
.review-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-preview-thumb .remove-thumb-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: none;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. Reviews Page (Image 7)
   -------------------------------------------------------------------------- */
.reviews-page-wrapper {
    background-color: var(--eman-bg-gray);
    padding: 24px 0 60px;
}
.reviews-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.reviews-title-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 4px;
}
.reviews-title-block p {
    font-size: 14px;
    color: var(--eman-muted);
    margin: 0;
}

.btn-leave-review {
    height: 42px;
    padding: 0 20px;
    background: var(--eman-green);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-leave-review:hover {
    background: var(--eman-green-hover);
    color: #ffffff;
}

.reviews-stat-overview-card {
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: var(--eman-radius-lg);
    padding: 20px 28px;
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--eman-shadow-sm);
}
.stat-overview-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stat-overview-icon {
    font-size: 22px;
}
.stat-overview-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--eman-dark);
    line-height: 1.2;
}
.stat-overview-label {
    font-size: 12px;
    color: var(--eman-muted);
}

.reviews-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.toggle-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--eman-dark);
    cursor: pointer;
}
.switch-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch-slider input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-round {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch-slider input:checked + .slider-round {
    background-color: var(--eman-green);
}
.switch-slider input:checked + .slider-round:before {
    transform: translateX(20px);
}

.reviews-table-list {
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: var(--eman-radius-lg);
    overflow: hidden;
    box-shadow: var(--eman-shadow-sm);
}
.reviews-table-head-row {
    padding: 14px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--eman-border);
    display: grid;
    grid-template-columns: 200px 100px 1fr 180px 100px 60px;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}
@media (max-width: 991px) {
    .reviews-table-head-row {
        display: none;
    }
}
.reviews-table-row {
    padding: 18px 24px;
    border-bottom: 1px solid var(--eman-border);
    display: grid;
    grid-template-columns: 200px 100px 1fr 180px 100px 60px;
    gap: 16px;
    align-items: center;
}
@media (max-width: 991px) {
    .reviews-table-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.reviews-table-row:last-child {
    border-bottom: none;
}

.client-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.client-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}
.client-name-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 2px;
}
.client-city-text {
    font-size: 12px;
    color: var(--eman-muted);
    margin: 0;
}

.review-stars-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--eman-dark);
}
.review-stars-score .star-gold {
    color: var(--eman-star-gold);
}

.review-comment-text {
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    margin: 0;
}

.review-photo-thumbnails {
    display: flex;
    gap: 6px;
}
.rev-thumb-box {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
}
.rev-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rev-thumb-plus-badge {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-date-text {
    font-size: 12px;
    color: var(--eman-muted);
}
.review-like-btn {
    background: none;
    border: none;
    color: var(--eman-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.review-like-btn:hover,
.review-like-btn.liked {
    color: var(--eman-green);
}

/* --------------------------------------------------------------------------
   8. Master Cabinet Edit Form & Interactive Pills (Image 8)
   -------------------------------------------------------------------------- */
.master-cabinet-card {
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: var(--eman-radius-lg);
    padding: 28px;
    box-shadow: var(--eman-shadow-sm);
    margin-bottom: 30px;
}

.cabinet-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eman-border);
}
.cabinet-page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--eman-dark);
    margin: 0 0 4px;
}
.cabinet-page-header p {
    font-size: 14px;
    color: var(--eman-muted);
    margin: 0;
}

.cabinet-form-section {
    margin-bottom: 28px;
}
.cabinet-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--eman-dark);
    margin-bottom: 16px;
}

.avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
.avatar-preview-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--eman-border);
    flex-shrink: 0;
}
.avatar-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-change-avatar {
    height: 38px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid var(--eman-border);
    border-radius: 8px;
    color: var(--eman-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-change-avatar:hover {
    background: #f8fafc;
}
.avatar-hint-text {
    font-size: 12px;
    color: var(--eman-muted);
    margin-top: 4px;
}

/* Interactive Pill Tags (Selected = Green + Check, Unselected = Gray) */
.interactive-pills-group {
    margin-bottom: 16px;
}
.interactive-pills-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--eman-muted);
    margin-bottom: 8px;
}
.interactive-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-toggle-btn {
    background-color: #f1f5f9;
    border: 1px solid transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.pill-toggle-btn:hover {
    background-color: #e2e8f0;
}
.pill-toggle-btn.selected {
    background-color: #e8f7ee;
    border-color: var(--eman-green);
    color: var(--eman-green);
    font-weight: 600;
}
.pill-toggle-btn.selected i.check-icon {
    display: inline-block;
}
.pill-toggle-btn i.check-icon {
    display: none;
    font-size: 12px;
}

.bio-char-count-bar {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: var(--eman-muted);
    margin-top: 4px;
}
.bio-char-count-bar.limit-reached {
    color: #ef4444;
    font-weight: 600;
}

.cabinet-bottom-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--eman-border);
}
.btn-save-master-changes {
    height: 44px;
    padding: 0 28px;
    background: var(--eman-green);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-save-master-changes:hover {
    background: var(--eman-green-hover);
}
.btn-preview-profile {
    font-size: 14px;
    color: var(--eman-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.btn-preview-profile:hover {
    color: var(--eman-green);
}

/* --------------------------------------------------------------------------
   9. User Cabinet Profile Page (Image 2 - "Личный кабинет")
   -------------------------------------------------------------------------- */
.cabinet-wrapper-page {
    padding: 24px 0 60px;
    background-color: #fafbfc;
}
.cabinet-title-section {
    margin-bottom: 24px;
}
.cabinet-title-section h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}
.cabinet-title-section p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Cabinet Sidebar */
.cabinet-sidebar-menu {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    list-style: none;
    margin: 0;
}
.cabinet-sidebar-menu li {
    margin-bottom: 4px;
}
.cabinet-sidebar-menu li:last-child {
    margin-bottom: 0;
}
.cabinet-sidebar-menu li a,
.cabinet-sidebar-menu li button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.cabinet-sidebar-menu li a:hover {
    background-color: #f8fafc;
    color: #068c53;
}
.cabinet-sidebar-menu li a.active {
    color: #068c53 !important;
    font-weight: 600 !important;
    background-color: #edf6f0 !important;
    border-left: 4px solid #068c53;
    border-radius: 4px 10px 10px 4px;
}
.cabinet-sidebar-menu .menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cabinet-sidebar-menu .menu-item-left svg {
    flex-shrink: 0;
}
.cabinet-sidebar-menu .menu-item-arrow {
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    font-weight: 400;
}
.cabinet-sidebar-menu li button.logout-btn {
    color: #ef4444;
}
.cabinet-sidebar-menu li button.logout-btn:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Profile Details Card */
.user-profile-view-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 28px 36px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.user-profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.user-profile-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.btn-edit-user-profile {
    height: 38px;
    padding: 0 20px;
    background: #ffffff;
    border: 1.5px solid #068c53;
    border-radius: 8px;
    color: #068c53;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-edit-user-profile:hover {
    background: #068c53;
    color: #ffffff;
}
.btn-edit-user-profile:hover svg {
    stroke: #ffffff;
}

/* User Card Body */
.user-profile-grid-layout {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
@media (max-width: 991px) {
    .user-profile-grid-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.user-cabinet-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}
.user-cabinet-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.user-avatar-camera-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 34px;
    height: 34px;
    background-color: #068c53;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(6, 140, 83, 0.3);
    transition: transform 0.2s ease;
}
.user-avatar-camera-badge:hover {
    transform: scale(1.1);
}

.user-cabinet-info-wrap {
    flex-grow: 1;
}
.user-cabinet-name-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}
.user-cabinet-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    cursor: pointer;
}
.user-cabinet-id-badge:hover {
    color: #068c53;
}
.user-cabinet-id-badge:hover svg {
    stroke: #068c53;
}

/* 4 Details Grid: 2 Rows Layout (Image 2) */
.user-details-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
    column-gap: 36px;
}
@media (max-width: 768px) {
    .user-details-spec-grid {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }
}
.user-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-spec-header-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}
.user-spec-header-label svg {
    flex-shrink: 0;
}
.user-spec-value-text {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.password-dots-display {
    letter-spacing: 2px;
    font-size: 16px;
}
.password-toggle-eye {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.password-toggle-eye:hover svg {
    transform: scale(1.1);
}

/* Polished personal cabinet */
.cabinet-wrapper-page {
    min-height: calc(100vh - 120px);
    padding: 28px 0 72px;
    background:
        linear-gradient(180deg, #fbfcfd 0%, #f4f7f6 48%, #eef5f1 100%);
    font-family: "Futura New", Arial, sans-serif;
}

.cabinet-wrapper-page .container {
    max-width: 1240px;
}

.cabinet-wrapper-page .catalog-breadcrumbs ul {
    margin-bottom: 18px;
    color: #8a96a5;
}

.cabinet-wrapper-page .catalog-breadcrumbs a,
.cabinet-wrapper-page .catalog-breadcrumbs .active-crumb {
    transition: color 0.25s ease, transform 0.25s ease;
}

.cabinet-wrapper-page .catalog-breadcrumbs a:hover {
    transform: translateY(-1px);
}

.cabinet-title-section {
    margin-bottom: 24px;
    animation: cabinetFadeUp 0.48s ease both;
}

.cabinet-title-section h1 {
    color: #0f172a;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.08;
    margin: 0 0 8px;
}

.cabinet-title-section p {
    color: #606f7f;
    font-size: 16px;
    font-weight: 450;
}

.cabinet-sidebar-menu {
    position: sticky;
    top: 18px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    animation: cabinetFadeUp 0.55s ease 0.04s both;
}

.cabinet-sidebar-menu li {
    margin-bottom: 6px;
}

.cabinet-sidebar-menu li a,
.cabinet-sidebar-menu li button {
    position: relative;
    min-height: 56px;
    overflow: hidden;
    padding: 15px 18px;
    border-radius: 8px;
    color: #263241;
    font-size: 15px;
    font-weight: 450;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cabinet-sidebar-menu li a::before,
.cabinet-sidebar-menu li button::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 0 8px 8px 0;
    background: #068c53;
    opacity: 0;
    transform: scaleY(0.45);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cabinet-sidebar-menu li a:hover,
.cabinet-sidebar-menu li button:hover {
    background: #f3faf6;
    color: #068c53;
    transform: translateX(3px);
    box-shadow: inset 0 0 0 1px rgba(6, 140, 83, 0.08);
}

.cabinet-sidebar-menu li a:hover::before,
.cabinet-sidebar-menu li button:hover::before,
.cabinet-sidebar-menu li a.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.cabinet-sidebar-menu li a.active {
    border-left: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #e9f8ef 0%, #f7fbf8 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(6, 140, 83, 0.12);
}

.cabinet-sidebar-menu .menu-item-left {
    position: relative;
    z-index: 1;
    gap: 14px;
}

.cabinet-sidebar-menu .menu-item-left svg {
    color: currentColor;
    transition: transform 0.25s ease;
}

.cabinet-sidebar-menu li a:hover svg,
.cabinet-sidebar-menu li button:hover svg,
.cabinet-sidebar-menu li a.active svg {
    transform: scale(1.08);
}

.cabinet-sidebar-menu li button.logout-btn:hover {
    background: #fff1f1;
    color: #dc2626;
    transform: translateX(3px);
}

.user-profile-view-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3.5vw, 42px);
    animation: cabinetFadeUp 0.6s ease 0.08s both;
}

.user-profile-view-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #068c53, #2fb475, #f2c94c);
}

.user-profile-card-header {
    position: relative;
    z-index: 1;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 19px;
    border-bottom: 1px solid #edf2f6;
}

.user-profile-card-header h3 {
    color: #0f172a;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.15;
}

.btn-edit-user-profile {
    min-height: 42px;
    height: auto;
    padding: 10px 18px;
    border: 1px solid rgba(6, 140, 83, 0.35);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(6, 140, 83, 0.08);
    color: #068c53;
    font-weight: 500;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.btn-edit-user-profile:hover,
.btn-edit-user-profile:focus {
    background: #068c53;
    border-color: #068c53;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.24);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-edit-user-profile:active {
    transform: translateY(0);
}

.user-profile-grid-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(128px, 168px) 1fr;
    gap: clamp(24px, 4vw, 46px);
    align-items: start;
}

.user-cabinet-avatar-wrap {
    width: clamp(128px, 13vw, 168px);
    height: clamp(128px, 13vw, 168px);
    margin: 6px auto 0;
}

.user-cabinet-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -18px -18px -10px -10px;
    z-index: -1;
    border-radius: 50%;
    background-image: radial-gradient(rgba(6, 140, 83, 0.18) 1.2px, transparent 1.2px);
    background-size: 11px 11px;
}

.user-cabinet-avatar-img {
    border: 5px solid #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-cabinet-avatar-wrap:hover .user-cabinet-avatar-img {
    transform: scale(1.02);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.user-avatar-camera-badge {
    right: 0;
    bottom: 6px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #079657 0%, #067244 100%);
    border: 4px solid #ffffff;
    box-shadow: 0 12px 24px rgba(6, 140, 83, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.user-avatar-camera-badge:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 16px 28px rgba(6, 140, 83, 0.34);
}

.user-cabinet-name-title {
    color: #0f172a;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.12;
    margin-bottom: 8px;
}

.user-cabinet-id-badge {
    margin-bottom: 28px;
    color: #667587;
    font-size: 14px;
    font-weight: 450;
    transition: color 0.25s ease, transform 0.25s ease;
}

.user-cabinet-id-badge:hover {
    color: #068c53;
    transform: translateY(-1px);
}

.user-details-spec-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 26px 42px;
}

.user-spec-item {
    min-width: 0;
}

.user-spec-header-label {
    gap: 10px;
    color: #667587;
    font-size: 14px;
    font-weight: 450;
}

.user-spec-header-label svg {
    color: #068c53;
    transition: transform 0.25s ease;
}

.user-spec-item:hover .user-spec-header-label svg {
    transform: translateY(-2px);
}

.user-spec-value-text {
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.password-toggle-eye svg {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.password-toggle-eye:hover svg {
    opacity: 0.85;
    transform: scale(1.12);
}

@keyframes cabinetFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .cabinet-sidebar-menu {
        position: static;
    }

    .user-profile-grid-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .user-cabinet-info-wrap {
        width: 100%;
    }

    .user-details-spec-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        text-align: left;
    }
}

@media (max-width: 575px) {
    .cabinet-wrapper-page {
        padding: 18px 0 48px;
    }

    .user-profile-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn-edit-user-profile {
        width: 100%;
        justify-content: center;
    }

    .user-details-spec-grid {
        grid-template-columns: 1fr;
    }

    .cabinet-sidebar-menu li a,
    .cabinet-sidebar-menu li button {
        min-height: 52px;
        padding: 13px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-title-section,
    .cabinet-sidebar-menu,
    .user-profile-view-card,
    .cabinet-sidebar-menu li a,
    .cabinet-sidebar-menu li button,
    .btn-edit-user-profile,
    .user-cabinet-avatar-img,
    .user-avatar-camera-badge,
    .user-cabinet-id-badge,
    .user-spec-header-label svg {
        animation: none;
        transition: none;
    }
}

/* Polished master profile edit form */
.master-profile-edit-content {
    width: 100%;
}

.master-profile-edit-content .master-cabinet-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3.5vw, 42px);
}

.master-profile-edit-content .master-cabinet-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #068c53, #2fb475, #f2c94c);
}

.master-profile-edit-content .cabinet-page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f6;
}

.master-profile-edit-content .cabinet-page-header h2 {
    color: #0f172a;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 8px;
}

.master-profile-edit-content .cabinet-page-header p {
    max-width: 660px;
    color: #667587;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.45;
}

.master-profile-edit-content .cabinet-form-section {
    margin-bottom: 32px;
    padding-bottom: 30px;
    border-bottom: 1px solid #edf2f6;
}

.master-profile-edit-content .cabinet-form-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.master-profile-edit-content .cabinet-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 18px;
}

.master-profile-edit-content .cabinet-section-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #068c53;
    box-shadow: 0 0 0 5px rgba(6, 140, 83, 0.12);
    flex: 0 0 auto;
}

.master-profile-edit-content .row {
    row-gap: 18px;
    margin-left: -8px;
    margin-right: -8px;
}

.master-profile-edit-content .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.master-profile-edit-content .cabinet-form-section .row > [class*="col-md-"] {
    flex: 1 1 220px;
    width: auto;
    max-width: none;
}

.master-profile-edit-content .cabinet-form-section .row > .col-md-6 {
    flex-basis: 320px;
}

.master-profile-edit-content .form-group {
    min-width: 0;
}

.master-profile-edit-content .filter-label {
    display: block;
    min-height: 38px;
    margin-bottom: 8px;
    color: #263241;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.master-profile-edit-content .filter-input,
.master-profile-edit-content .filter-select {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.25;
    padding: 0 14px;
    outline: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-profile-edit-content .filter-select {
    appearance: auto;
}

.master-profile-edit-content .filter-input:focus,
.master-profile-edit-content .filter-select:focus {
    border-color: #068c53;
    box-shadow: 0 0 0 4px rgba(6, 140, 83, 0.12);
    transform: translateY(-1px);
}

.master-profile-edit-content .avatar-upload-row {
    align-items: center;
    gap: 22px;
    padding: 18px;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f7faf8 100%);
}

.master-profile-edit-content .avatar-preview-box {
    width: 92px;
    height: 92px;
    border: 5px solid #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.master-profile-edit-content .btn-change-avatar {
    min-height: 42px;
    height: auto;
    padding: 10px 18px;
    border: 1px solid rgba(6, 140, 83, 0.35);
    border-radius: 8px;
    background: #ffffff;
    color: #068c53;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(6, 140, 83, 0.08);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-profile-edit-content .btn-change-avatar:hover {
    background: #068c53;
    border-color: #068c53;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.24);
    color: #ffffff;
    transform: translateY(-2px);
}

.master-profile-edit-content .avatar-hint-text {
    margin-top: 8px;
    color: #667587;
    font-size: 13px;
    font-weight: 450;
}

.master-profile-edit-content .interactive-pills-group {
    margin-bottom: 22px;
}

.master-profile-edit-content .interactive-pills-group-title {
    color: #263241;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.master-profile-edit-content .interactive-pills-wrap {
    gap: 10px;
}

.master-profile-edit-content .pill-toggle-btn {
    min-height: 38px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 450;
    padding: 8px 14px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-profile-edit-content .pill-toggle-btn:hover {
    background: #f3faf6;
    border-color: rgba(6, 140, 83, 0.28);
    color: #068c53;
    transform: translateY(-1px);
}

.master-profile-edit-content .pill-toggle-btn.selected {
    background: #e9f8ef;
    border-color: #068c53;
    box-shadow: inset 0 0 0 1px rgba(6, 140, 83, 0.08);
    color: #068c53;
    font-weight: 500;
}

.master-profile-edit-content .review-textarea-wrap textarea.form-control {
    min-height: 128px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    color: #111827;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.45;
    padding: 14px 16px;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.master-profile-edit-content .review-textarea-wrap textarea.form-control:focus {
    border-color: #068c53;
    box-shadow: 0 0 0 4px rgba(6, 140, 83, 0.12);
}

.master-profile-edit-content .bio-char-count-bar {
    margin-top: 8px;
    color: #667587;
    font-size: 13px;
    font-weight: 450;
}

.master-profile-edit-content .cabinet-bottom-actions {
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid #edf2f6;
}

.master-profile-edit-content .btn-save-master-changes,
.master-profile-edit-content .btn-preview-profile {
    min-height: 46px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-profile-edit-content .btn-save-master-changes {
    padding: 10px 24px;
    background: #068c53;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.22);
}

.master-profile-edit-content .btn-save-master-changes:hover {
    background: #057243;
    box-shadow: 0 18px 34px rgba(6, 140, 83, 0.28);
    transform: translateY(-2px);
}

.master-profile-edit-content .btn-preview-profile {
    padding: 10px 18px;
    border: 1px solid #dfe7ee;
    background: #ffffff;
    color: #334155;
}

.master-profile-edit-content .btn-preview-profile:hover {
    border-color: rgba(6, 140, 83, 0.35);
    background: #f3faf6;
    color: #068c53;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .master-profile-edit-content .filter-label {
        min-height: 0;
    }

    .master-profile-edit-content .avatar-upload-row,
    .master-profile-edit-content .cabinet-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .master-profile-edit-content .btn-save-master-changes,
    .master-profile-edit-content .btn-preview-profile {
        justify-content: center;
        width: 100%;
    }
}

/* Polished master portfolio management */
.master-portfolio-manage-content {
    width: 100%;
}

.master-portfolio-manage-content .master-cabinet-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3.5vw, 42px);
}

.master-portfolio-manage-content .master-cabinet-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #068c53, #2fb475, #f2c94c);
}

.master-portfolio-manage-content .cabinet-page-header {
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f6;
}

.master-portfolio-manage-content .cabinet-page-header h2 {
    color: #0f172a;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 8px;
}

.master-portfolio-manage-content .cabinet-page-header p {
    max-width: 650px;
    color: #667587;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.45;
}

.master-portfolio-manage-content .btn-contact-master {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #068c53;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 22px;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.22);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-portfolio-manage-content .btn-contact-master:hover,
.master-portfolio-manage-content .btn-contact-master:focus {
    background: #057243;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(6, 140, 83, 0.28);
    transform: translateY(-2px);
}

.master-portfolio-manage-content #addPortfolioCollapse {
    margin-bottom: 28px !important;
}

.master-portfolio-manage-content #addPortfolioCollapse .card {
    border: 1px solid #edf2f6 !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #fbfdfc 0%, #f7faf8 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    padding: clamp(18px, 2.4vw, 28px) !important;
}

.master-portfolio-manage-content .cabinet-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 18px !important;
}

.master-portfolio-manage-content .cabinet-section-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #068c53;
    box-shadow: 0 0 0 5px rgba(6, 140, 83, 0.12);
    flex: 0 0 auto;
}

.master-portfolio-manage-content .row {
    row-gap: 18px;
    margin-left: -8px;
    margin-right: -8px;
}

.master-portfolio-manage-content .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.master-portfolio-manage-content #portfolioAddForm .row > [class*="col-md-"] {
    flex: 1 1 220px;
    width: auto;
    max-width: none;
}

.master-portfolio-manage-content #portfolioAddForm .row > .col-md-6 {
    flex-basis: 320px;
}

.master-portfolio-manage-content .form-group {
    min-width: 0;
}

.master-portfolio-manage-content .filter-label {
    display: block;
    min-height: 38px;
    margin-bottom: 8px;
    color: #263241;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.master-portfolio-manage-content .filter-input,
.master-portfolio-manage-content .filter-select {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.25;
    padding: 0 14px;
    outline: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-portfolio-manage-content textarea.filter-input {
    min-height: 118px;
    padding: 14px 16px;
    line-height: 1.45;
    resize: vertical;
}

.master-portfolio-manage-content .filter-input:focus,
.master-portfolio-manage-content .filter-select:focus {
    border-color: #068c53;
    box-shadow: 0 0 0 4px rgba(6, 140, 83, 0.12);
    transform: translateY(-1px);
}

.master-portfolio-manage-content .photo-upload-dropzone {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 1.5px dashed rgba(6, 140, 83, 0.35);
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    padding: 24px;
    text-align: center;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-portfolio-manage-content .photo-upload-dropzone:hover {
    border-color: #068c53;
    background: #f3faf6;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.12);
    transform: translateY(-2px);
}

.master-portfolio-manage-content .photo-upload-dropzone i {
    color: #068c53;
    font-size: 30px;
}

.master-portfolio-manage-content .photo-upload-dropzone span {
    color: #0f172a;
    font-size: 16px;
    font-weight: 500;
}

.master-portfolio-manage-content .photo-upload-dropzone small {
    max-width: 540px;
    color: #667587;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.45;
}

.master-portfolio-manage-content .review-photos-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.master-portfolio-manage-content .review-preview-thumb {
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    background: #ffffff;
}

.master-portfolio-manage-content .review-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-portfolio-manage-content #portfolioAddForm .btn-light,
.master-portfolio-manage-content #portfolioAddForm .btn-success {
    min-height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.master-portfolio-manage-content #portfolioAddForm .btn-light:hover,
.master-portfolio-manage-content #portfolioAddForm .btn-success:hover {
    transform: translateY(-2px);
}

.master-portfolio-manage-content #portfolioAddForm .btn-light {
    border: 1px solid #dfe7ee;
    background: #ffffff;
    color: #334155;
}

.master-portfolio-manage-content #portfolioAddForm .btn-light:hover {
    border-color: rgba(6, 140, 83, 0.35);
    background: #f3faf6;
    color: #068c53;
}

.master-portfolio-manage-content #portfolioAddForm .btn-success {
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.2);
}

.master-portfolio-manage-content .portfolio-work-card {
    overflow: hidden;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.master-portfolio-manage-content .portfolio-work-card:hover {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
    transform: translateY(-3px);
}

.master-portfolio-manage-content .portfolio-work-img {
    aspect-ratio: 4 / 3;
}

.master-portfolio-manage-content .portfolio-work-info {
    padding: 16px;
}

.master-portfolio-manage-content .portfolio-work-title {
    color: #0f172a;
    font-size: 17px;
    font-weight: 500;
}

.master-portfolio-manage-content .portfolio-work-loc {
    color: #667587;
    font-size: 14px;
    line-height: 1.4;
}

.master-portfolio-manage-content .text-center.py-5 {
    border: 1px dashed #dfe7ee;
    border-radius: 8px;
    background: #fbfdfc;
    padding: clamp(30px, 5vw, 54px) 20px !important;
}

@media (max-width: 767px) {
    .master-portfolio-manage-content .cabinet-page-header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .master-portfolio-manage-content .filter-label {
        min-height: 0;
    }

    .master-portfolio-manage-content .btn-contact-master,
    .master-portfolio-manage-content #portfolioAddForm .btn-light,
    .master-portfolio-manage-content #portfolioAddForm .btn-success {
        justify-content: center;
        width: 100%;
    }

    .master-portfolio-manage-content #portfolioAddForm .text-end {
        display: grid;
        gap: 10px;
        text-align: initial !important;
    }

    .master-portfolio-manage-content #portfolioAddForm .btn-light {
        margin-right: 0 !important;
    }
}

/* Polished cabinet orders */
.cabinet-orders-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 34px);
}

.cabinet-orders-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #068c53, #2fb475, #f2c94c);
}

.cabinet-orders-content .profile-orders-header {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px !important;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f6;
}

.cabinet-orders-content .profile-orders-header h3 {
    color: #0f172a;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

.cabinet-orders-content .profile-orders-header ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.cabinet-orders-content .profile-orders-header ul li {
    margin: 0 !important;
}

.cabinet-orders-content .profile-orders-header ul li button {
    min-height: 42px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.15;
    padding: 10px 16px !important;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cabinet-orders-content .profile-orders-header ul li button:hover {
    border-color: rgba(6, 140, 83, 0.35);
    background: #f3faf6;
    color: #068c53;
    transform: translateY(-2px);
}

.cabinet-orders-content .profile-orders-header ul li button.active {
    border-color: #068c53;
    background: #e9f8ef;
    box-shadow: inset 0 0 0 1px rgba(6, 140, 83, 0.08);
    color: #068c53;
}

.cabinet-orders-content .profile-orders-body {
    position: relative;
    z-index: 1;
}

.cabinet-orders-content .tab-pane {
    animation: cabinetFadeUp 0.35s ease both;
}

.cabinet-orders-content .my-table_2 {
    overflow-x: auto;
    border: 1px solid #edf2f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.cabinet-orders-content .my-table_2::-webkit-scrollbar {
    height: 8px;
}

.cabinet-orders-content .my-table_2::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.cabinet-orders-content .my-table_2::-webkit-scrollbar-thumb {
    background: #a8b5c3;
    border-radius: 999px;
}

.cabinet-orders-content .my-table_2 table {
    min-width: 760px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cabinet-orders-content .my-table_2 table th {
    background: #f7faf8;
    color: #667587;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 18px 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cabinet-orders-content .my-table_2 table td {
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    padding: 18px 20px;
    vertical-align: middle;
    white-space: nowrap;
}

.cabinet-orders-content .my-table_2 table tr:not(:last-child) td {
    border-bottom: 1px solid #edf2f6;
}

.cabinet-orders-content .my-table_2 table tbody tr {
    transition: background-color 0.25s ease;
}

.cabinet-orders-content .my-table_2 table tbody tr:hover {
    background: #fbfdfc;
}

.cabinet-orders-content .my-table_2 table td.blue {
    color: #2563eb;
    font-weight: 500;
}

.cabinet-orders-content .button.button-link.green {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(6, 140, 83, 0.35);
    border-radius: 8px;
    background: #ffffff;
    color: #068c53;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cabinet-orders-content .button.button-link.green:hover {
    border-color: #068c53;
    background: #068c53;
    box-shadow: 0 12px 26px rgba(6, 140, 83, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.cabinet-orders-content .button.button-link.green span {
    color: currentColor;
    font-size: inherit;
    font-weight: inherit;
}

.cabinet-orders-content .button.button-link.green i {
    color: currentColor;
    font-size: 16px;
}

@media (max-width: 991px) {
    .cabinet-orders-content .profile-orders-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cabinet-orders-content .profile-orders-header ul {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cabinet-orders-content .profile-orders-header ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cabinet-orders-content .profile-orders-header ul li button {
        width: 100%;
    }
}

/* Polished user profile edit form */
.user-profile-edit-content {
    width: 100%;
}

.user-profile-edit-content .profile-main {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3.5vw, 42px);
}

.user-profile-edit-content .profile-main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #068c53, #2fb475, #f2c94c);
}

.user-profile-edit-content .profile-header {
    position: relative;
    z-index: 1;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f6;
}

.user-profile-edit-content .profile-header h3 {
    color: #0f172a;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

.user-profile-edit-content .profile-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(150px, 190px) 1fr;
    gap: clamp(24px, 4vw, 42px);
    align-items: start;
}

.user-profile-edit-content .profile-avatar {
    width: 100%;
    max-width: none;
}

.user-profile-edit-content .profile-avatar-image {
    position: relative;
    width: clamp(138px, 13vw, 176px);
    height: clamp(138px, 13vw, 176px);
    margin: 4px auto 18px;
}

.user-profile-edit-content .profile-avatar-image::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 50%;
    background-image: radial-gradient(rgba(6, 140, 83, 0.18) 1.2px, transparent 1.2px);
    background-size: 11px 11px;
}

.user-profile-edit-content .profile-avatar-image img {
    width: 100%;
    height: 100%;
    border: 5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-profile-edit-content .profile-avatar-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.user-profile-edit-content .profile-avatar-button {
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
}

.user-profile-edit-content .profile-avatar-button button {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(6, 140, 83, 0.35);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(6, 140, 83, 0.08);
    color: #068c53;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.user-profile-edit-content .profile-avatar-button button:hover,
.user-profile-edit-content .profile-avatar-button button:focus {
    background: #068c53;
    border-color: #068c53;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.24);
    color: #ffffff;
    transform: translateY(-2px);
}

.user-profile-edit-content .profile-form {
    width: 100%;
}

.user-profile-edit-content .profile-form .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px 18px;
    margin: 0;
}

.user-profile-edit-content .profile-form .row > div {
    width: 100%;
    max-width: none;
    padding: 0;
}

.user-profile-edit-content .profile-form .row > .col-auto {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.user-profile-edit-content .form-group label {
    display: block;
    min-height: 38px;
    margin-bottom: 8px;
    color: #263241;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.user-profile-edit-content .form-control,
.user-profile-edit-content .form-select {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 1px solid #dfe7ee;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111827;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.25;
    padding: 0 14px;
    outline: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.user-profile-edit-content .form-control:focus,
.user-profile-edit-content .form-select:focus {
    border-color: #068c53;
    box-shadow: 0 0 0 4px rgba(6, 140, 83, 0.12);
    transform: translateY(-1px);
}

.user-profile-edit-content .form-control.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.user-profile-edit-content .error-message {
    min-height: 18px;
    margin-top: 6px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.35;
}

.user-profile-edit-content .profile-form .button {
    min-width: 220px;
    min-height: 48px;
    height: auto;
    border: 0;
    border-radius: 8px;
    background: #068c53;
    box-shadow: 0 14px 30px rgba(6, 140, 83, 0.22);
    color: #ffffff;
    padding: 11px 30px;
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.user-profile-edit-content .profile-form .button:hover,
.user-profile-edit-content .profile-form .button:focus {
    background: #057243;
    box-shadow: 0 18px 34px rgba(6, 140, 83, 0.28);
    transform: translateY(-2px);
}

.user-profile-edit-content .profile-form .button span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .user-profile-edit-content .profile-body {
        grid-template-columns: 1fr;
    }

    .user-profile-edit-content .profile-form .row {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 575px) {
    .user-profile-edit-content .profile-form .row {
        grid-template-columns: 1fr;
    }

    .user-profile-edit-content .form-group label {
        min-height: 0;
    }

    .user-profile-edit-content .profile-form .button {
        width: 100%;
        min-width: 0;
    }
}
