        /* === СТИЛИ КАБИНЕТА КЛИЕНТА === */
        .client-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        .client-tab {
            padding: 10px 18px;
            border: 1px solid var(--border);
            background: var(--card);
            border-radius: 12px;
            cursor: pointer;
            font-weight: 500;
            color: var(--muted);
            transition: all 0.2s ease;
        }
        .client-tab:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }
        .client-tab.active {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }
        .client-tab-content {
            display: none;
        }
        .client-tab-content.active {
            display: block;
        }
        .client-section {
            margin-bottom: 32px;
        }
        .client-section-title {
            font-size: 20px;
            font-weight: 600;
            margin: 0 0 16px 0;
            color: var(--text);
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border);
        }
        .client-records-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        /* === ИКОНКА ТЕЛЕФОНА В КАРТОЧКЕ === */
        .record-contacts-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: #eff6ff;
            color: #2563eb;
            border: 1px solid #bfdbfe;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .record-contacts-btn:hover {
            background: #dbeafe;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
        }
        .record-contacts-btn svg {
            width: 14px;
            height: 14px;
        }
        
        /* === МОДАЛКА КОНТАКТОВ МАСТЕРА === */
        .master-contacts-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 20px;
        }
        .master-contacts-modal.active {
            opacity: 1;
            visibility: visible;
        }
        .master-contacts-modal-content {
            background: white;
            border-radius: 20px;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.9) translateY(20px);
            transition: transform 0.3s ease;
            overflow: hidden;
        }
        .master-contacts-modal.active .master-contacts-modal-content {
            transform: scale(1) translateY(0);
        }
        .master-contacts-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
        }
        .master-contacts-header h3 {
            margin: 0;
            font-size: 18px;
            color: #1f2937;
        }
        .master-contacts-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #6b7280;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .master-contacts-close:hover {
            background: #f3f4f6;
            color: #1f2937;
        }
        .master-contacts-body {
            padding: 24px;
        }
        .master-contacts-name {
            font-size: 16px;
            font-weight: 600;
            color: #1f2937;
            margin: 0 0 16px 0;
            text-align: center;
        }
        .master-contacts-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .master-contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            transition: all 0.2s ease;
            text-decoration: none;
            color: #1f2937;
        }
        a.master-contact-item:hover {
            background: #eff6ff;
            border-color: #bfdbfe;
            transform: translateY(-1px);
        }
        .master-contact-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
            border: 1px solid #e5e7eb;
        }
        .master-contact-info {
            flex: 1;
            min-width: 0;
        }
        .master-contact-type {
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 2px;
        }
        .master-contact-value {
            font-size: 14px;
            font-weight: 500;
            color: #1f2937;
            word-break: break-all;
        }
        .master-contacts-empty {
            text-align: center;
            padding: 30px 20px;
            color: #6b7280;
        }
        .master-contacts-empty-icon {
            font-size: 36px;
            margin-bottom: 12px;
            opacity: 0.5;
        }
        .master-contacts-footer {
            display: flex;
            gap: 10px;
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            background: #f9fafb;
        }
        .master-contacts-footer button {
            flex: 1;
            padding: 12px 16px;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .master-contacts-footer .close-btn {
            background: white;
            color: #6b7280;
            border: 1px solid #e5e7eb;
        }
        .master-contacts-footer .close-btn:hover {
            background: #f3f4f6;
            color: #1f2937;
        }
        
        @media (max-width: 500px) {
            .master-contacts-modal-content {
                max-width: 100%;
                border-radius: 16px;
            }
            .master-contacts-header,
            .master-contacts-body,
            .master-contacts-footer {
                padding-left: 16px;
                padding-right: 16px;
            }
        }
/* === СООБЩЕНИЯ В КАБИНЕТЕ КЛИЕНТА === */
#saveNameMessage,
#changePasswordMessage {
    transition: all 0.3s ease;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

#saveNameMessage.error,
#changePasswordMessage.error {
    display: block;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

#saveNameMessage.success,
#changePasswordMessage.success {
    display: block;
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* === СЧЁТЧИК СИМВОЛОВ === */
.client-name-counter {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-align: right;
}

.client-name-counter.limit-reached {
    color: #ef4444;
    font-weight: 600;
}
/* === КНОПКА "ПОКАЗАТЬ ЕЩЁ" === */
.show-more-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.show-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: var(--accent-soft);
    border-color: var(--accent);
}

.show-more-btn:active {
    transform: translateY(0);
}
        /* === ПОИСК МАСТЕРОВ === */
        .search-filters-container {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 14px 16px;
            margin-bottom: 16px;
            box-shadow: var(--shadow);
        }
        .search-title {
            font-size: 16px;
            font-weight: 600;
            margin: 0 0 10px 0;
            color: var(--text);
        }
        .search-filters {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }
        .search-filters .search-select {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            max-width: 420px;
            min-width: 0;
        }
        .search-filters .custom-select {
            flex: 1;
            width: auto;
            min-width: 0;
            padding: 7px 10px;
            font-size: 13px;
            border-radius: 8px;
        }
        .search-filters .search-select label {
            font-size: 13px;
            white-space: nowrap;
        }
        .search-input-row {
            width: 100%;
            max-width: 420px;
        }
        .search-input-row .search-input {
            width: 100%;
            padding: 7px 10px;
            font-size: 13px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--card);
            color: var(--text);
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .search-input-row .search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }
        .search-input-row .search-input::placeholder {
            color: var(--muted);
        }
        .search-results-container {
            margin-top: 4px;
        }
        .search-results-count {
            font-size: 12px;
            color: var(--muted);
            margin-bottom: 10px;
        }

        /* === КАРТОЧКА МАСТЕРА В ПОИСКЕ (компактная) === */
        .search-master-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 10px 14px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s ease;
            box-shadow: var(--shadow);
        }
        .search-master-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
            border-color: var(--accent);
        }
        .search-master-avatar {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
        }
        .search-master-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .search-master-initials {
            font-size: 16px;
            font-weight: 700;
            color: white;
        }
        .search-master-info {
            flex: 1;
            min-width: 0;
        }
        .search-master-header {
            display: flex;
            align-items: baseline;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 4px;
        }
        .search-master-name {
            font-size: 14px;
            font-weight: 600;
            margin: 0;
            color: var(--text);
        }
        .search-master-district {
            font-size: 12px;
            color: var(--muted);
        }
        .search-master-section {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 4px;
        }
        .search-master-section:last-child {
            margin-bottom: 0;
        }
        .search-master-section-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .search-master-price-from {
            display: inline-block;
            padding: 2px 8px;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            color: #16a34a;
        }
        .search-master-item {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 11px;
            color: var(--text);
        }
        .search-master-link {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            background: var(--accent);
            color: white;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .search-master-link:hover {
            background: var(--accent-hover);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
        }

        /* Адаптивность */
        @media (max-width: 640px) {
            .search-input-row {
                max-width: 100%;
            }
            .search-master-card {
                flex-wrap: wrap;
                padding: 10px 12px;
                gap: 10px;
            }
            .search-master-avatar {
                width: 40px;
                height: 40px;
            }
            .search-master-link {
                width: 100%;
                justify-content: center;
            }
        }