﻿
.empty-favorites h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.empty-favorites p {
    margin: 0;
    color: #888;
}

@media (max-width: 768px) {
    .user-modal {
        width: 95%;
        max-width: none;
        border-radius: 15px;
    }
    
    .user-modal-header {
        padding: 1rem 1.5rem 0.8rem;
    }
    
    .user-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .user-modal-body {
        padding: 1.5rem;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-warning {
    background: #f59e0b;
}

.notification-info {
    background: #3b82f6;
}

/* ==================== РЕГИСТРАЦИЯ КОМПАНИИ ==================== */

.business-registration-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Стили для модального окна редактирования */
.edit-business-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Стили для кнопки закрытия в модальном окне редактирования */
.edit-business-modal-content .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-business-modal-content .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.edit-business-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #ffffff;
}

.business-form {
    padding: 0;
}

.edit-business-form .form-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 2px solid rgba(80, 140, 85, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.edit-business-form .form-section:hover {
    border-color: rgba(80, 140, 85, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.edit-business-form .form-section h3 {
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(80, 140, 85, 0.2);
}

.edit-business-form .form-section h3 i {
    color: var(--primary-green);
    font-size: 1.4rem;
}

.form-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 2px;
}

.business-hours {
    display: grid;
    gap: 1rem;
}

.day-hours {
    display: grid;
    grid-template-columns: 120px 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.edit-business-form .day-hours {
    display: grid;
    grid-template-columns: 140px 1fr auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.edit-business-form .day-hours:hover {
    border-color: rgba(80, 140, 85, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.edit-business-form .day-hours label:first-child {
    font-weight: 700;
    color: #2d3436;
    font-size: 1rem;
    margin: 0;
    min-width: 140px;
}

.edit-business-form .day-hours input[type="time"] {
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3436;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-business-form .day-hours input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(80, 140, 85, 0.15);
}

.edit-business-form .day-hours span {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 1.1rem;
    padding: 0 0.5rem;
}

.edit-business-form .day-hours label:not(:first-child) {
    font-weight: 600;
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.edit-business-form .day-hours label:not(:first-child):hover {
    background: rgba(80, 140, 85, 0.1);
}

.edit-business-form .day-hours input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.day-hours label {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.day-hours input[type="time"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.day-hours span {
    text-align: center;
    font-weight: 500;
    color: #666;
}

.business-form .form-group {
    margin-bottom: 1.5rem;
}

.edit-business-form .form-group {
    margin-bottom: 1.8rem;
}

.edit-business-form .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #2d3436;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.business-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.edit-business-form .form-group input,
.edit-business-form .form-group select,
.edit-business-form .form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3436;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-business-form .form-group input:focus,
.edit-business-form .form-group select:focus,
.edit-business-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(80, 140, 85, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.edit-business-form .form-group input::placeholder,
.edit-business-form .form-group textarea::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.business-form .form-group input,
.business-form .form-group select,
.business-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.business-form .form-group input:focus,
.business-form .form-group select:focus,
.business-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.business-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.edit-business-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: inherit;
}

.business-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem 1.5rem 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.edit-business-form .form-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-end;
    padding: 2rem 0 0;
    margin-top: 2rem;
    border-top: 2px solid rgba(80, 140, 85, 0.15);
    padding-top: 2rem;
}

.business-form .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-business-form .btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.edit-business-form .btn i {
    font-size: 1.1rem;
}

.business-form .btn.primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
}

.edit-business-form .btn-primary {
    background: linear-gradient(135deg, #508c55 0%, #2b4e3a 100%);
    color: white;
}

.edit-business-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(80, 140, 85, 0.4);
    background: linear-gradient(135deg, #5a9c60 0%, #326441 100%);
}

.business-form .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.business-form .btn.secondary {
    background: #6c757d;
    color: white;
}

.edit-business-form .btn-secondary {
    background: #6c757d;
    color: white;
}

.edit-business-form .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.4);
}

.business-form .btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Стили для подсказок и дополнительных элементов в форме редактирования */
.edit-business-form .form-hint {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(80, 140, 85, 0.08);
    border-left: 3px solid var(--primary-green);
    border-radius: 8px;
}

.edit-business-form .location-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(80, 140, 85, 0.1) 0%, rgba(80, 140, 85, 0.05) 100%);
    border: 2px solid rgba(80, 140, 85, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3436;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(80, 140, 85, 0.1);
}

.edit-business-form .location-display i {
    color: var(--primary-green);
    font-size: 1.3rem;
}

.edit-business-form .location-display span {
    flex: 1;
    color: #495057;
}

.edit-business-form .form-group button.btn-secondary {
    margin-top: 0.5rem;
}

/* Стили для категорий в форме редактирования */
.edit-business-form .category-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-business-form .category-checkbox:hover {
    background: rgba(80, 140, 85, 0.05);
    border-color: rgba(80, 140, 85, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.edit-business-form .category-checkbox:has(input:checked) {
    background: linear-gradient(135deg, rgba(80, 140, 85, 0.1) 0%, rgba(80, 140, 85, 0.05) 100%);
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(80, 140, 85, 0.2);
}

.edit-business-form .edit-category-checkbox {
    margin-right: 1rem;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.edit-business-form .category-checkbox span {
    font-weight: 600;
    color: #2d3436;
    font-size: 1rem;
}

.edit-business-form .category-checkbox:has(input:checked) span {
    color: var(--primary-green);
}

/* Стили для подкатегорий в форме редактирования */
.edit-business-form .edit-subcategories-container {
    margin-left: 2rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(80, 140, 85, 0.2);
}

.edit-business-form .edit-subcategories-container p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(80, 140, 85, 0.05);
    border-radius: 8px;
}

.edit-business-form .subcategory-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.edit-business-form .subcategory-checkbox:hover {
    background: rgba(80, 140, 85, 0.08);
    border-color: rgba(80, 140, 85, 0.3);
    transform: translateX(4px);
}

.edit-business-form .subcategory-checkbox:has(input:checked) {
    background: rgba(80, 140, 85, 0.12);
    border-color: var(--primary-green);
}

.edit-business-form .edit-subcategory-checkbox {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.edit-business-form .subcategory-checkbox span {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

.edit-business-form .subcategory-checkbox:has(input:checked) span {
    color: var(--primary-green);
    font-weight: 600;
}

/* Responsive для формы регистрации компании */
@media (max-width: 768px) {
    .business-registration-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .edit-business-modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .edit-business-body {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .edit-business-form .form-section {
        padding: 1.5rem;
    }
    
    .edit-business-form .form-section h3 {
        font-size: 1.15rem;
    }
    
    .day-hours {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .edit-business-form .day-hours {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
        padding: 1rem;
    }
    
    .edit-business-form .day-hours label:first-child {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .edit-business-form .day-hours input[type="time"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .edit-business-form .day-hours span {
        display: none;
    }
    
    .edit-business-form .day-hours label:not(:first-child) {
        margin-top: 0.5rem;
    }
    
    .day-hours label {
        font-weight: 600;
    }
    
    .business-form .form-actions {
        flex-direction: column;
    }
    
    .edit-business-form .form-actions {
        flex-direction: column;
    }
    
    .business-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .edit-business-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .edit-business-form .location-display {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ==================== ПРОГРЕСС ЗАГРУЗКИ ==================== */

#uploadProgressContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 10001;
    min-width: 300px;
    text-align: center;
    display: none;
}

#uploadProgressContainer h3 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

#uploadProgress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

#uploadProgress::before {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#uploadProgressContainer .progress-text {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ==================== МОДАЛЬНОЕ ОКНО ЗАГРУЗКИ ФОТО ==================== */

.photo-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-upload-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-upload-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.photo-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.photo-upload-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
}

.close-upload-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-upload-btn:hover {
    background: var(--shadow-soft);
    color: var(--text-dark);
}

.upload-dropzone {
    border: 2px dashed var(--border-green);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: var(--cream-white);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-dropzone:hover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.05);
}

.upload-dropzone.dragover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.1);
    transform: scale(1.02);
}

.upload-dropzone i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.upload-dropzone h3 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.upload-dropzone p {
    margin: 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.upload-file-input {
    display: none;
}

.upload-preview {
    margin-top: 20px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.upload-description {
    margin-top: 20px;
}

.upload-description label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.upload-description textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.upload-description textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.upload-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.upload-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.upload-btn.primary {
    background: var(--primary-green);
    color: white;
}

.upload-btn.primary:hover {
    background: var(--deep-green);
    transform: translateY(-1px);
}

.upload-btn.secondary {
    background: #f3f4f6;
    color: var(--text-medium);
    border: 1px solid var(--border-light);
}

.upload-btn.secondary:hover {
    background: #e5e7eb;
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность для модального окна загрузки */
@media (max-width: 768px) {
    .photo-upload-content {
        padding: 20px;
        width: 95%;
    }
    
    .photo-upload-header h2 {
        font-size: 1.2rem;
    }
    
    .upload-dropzone {
        padding: 30px 15px;
    }
    
    .upload-dropzone i {
        font-size: 2.5rem;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-btn {
        width: 100%;
    }
}

/* ==================== УВЕДОМЛЕНИЯ ПОЛЬЗОВАТЕЛЯ ==================== */
.notification-badge {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    min-width: 1.2rem;
    text-align: center;
    line-height: 1;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.notification-item.read {
    opacity: 0.7;
}

.unread-indicator {
    color: #007bff;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.notification-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-icon.success {
    background-color: #d4edda;
    color: #155724;
}

.notification-icon.error {
    background-color: #f8d7da;
    color: #721c24;
}

.notification-icon.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    color: #333;
}

.notification-title i {
    margin-right: 0.5rem;
    color: var(--primary-green);
}

.notification-message {
    margin: 0 0 0.5rem 0;
    color: #666;
    line-height: 1.4;
}

.notification-place {
    color: #007bff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem 0;
}

.notification-place i {
    margin-right: 0.3rem;
    color: var(--primary-green);
}

.notification-time {
    font-size: 0.8rem;
    color: #999;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-btn.primary {
    background-color: #007bff;
    color: white;
}

.notification-btn.primary:hover {
    background-color: #0056b3;
}

.notification-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.notification-btn.secondary:hover {
    background-color: #545b62;
}

.empty-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-notifications i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-notifications h3 {
    margin: 0 0 0.5rem 0;
    color: #999;
}

.empty-notifications p {
    margin: 0;
    font-size: 0.9rem;
}

/* Стили для кнопки загрузки фото */
.photo-upload-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.photo-upload-btn:hover {
    background: var(--deep-green);
    transform: translateY(-1px);
}

.photo-upload-btn:active {
    transform: translateY(0);
}

/* ==============================================
   СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПРОФИЛЯ
   ============================================== */

.profile-modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
    position: relative;
}

/* Переопределяем общие стили для профиля */
.user-modal#profileModal {
    width: auto;
    max-width: 800px;
    height: auto;
    max-height: 90vh;
}

.user-modal#profileModal .user-modal-content {
    width: 100%;
    height: auto;
    max-height: 90vh;
    overflow: hidden;
}

.profile-content {
    padding: 0;
}

/* Заголовок профиля */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-email {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 5px 0;
}

.profile-join-date {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.profile-edit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Статистика профиля */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.stat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Вкладки профиля */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin: 0 20px 20px 20px;
}

.profile-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-tab.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.profile-tab:hover {
    color: var(--primary-green);
}

/* Содержимое вкладок */
.profile-tab-content {
    padding: 0 20px 20px 20px;
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* История загрузок фото */
.photo-history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.photo-history-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.photo-history-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.photo-history-info {
    flex: 1;
}

.photo-history-place {
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.photo-history-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 5px 0;
}

.photo-history-date {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.photo-history-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.photo-history-status.pending {
    background: #fff3cd;
    color: #856404;
}

.photo-history-status.approved {
    background: #d4edda;
    color: #155724;
}

.photo-history-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Форма редактирования профиля */
.profile-edit-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-edit-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-save {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: var(--deep-green);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #545b62;
}

/* ==============================================
   СТИЛИ ДЛЯ РЕДАКТИРОВАНИЯ ПРОФИЛЯ
   ============================================== */

/* Заголовок формы редактирования */
.edit-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.edit-form-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

/* Секция загрузки аватара */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.current-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.current-avatar:hover {
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.current-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.avatar-overlay span {
    font-size: 0.8rem;
    font-weight: 500;
}

#editAvatar {
    display: none;
}

.avatar-info {
    flex: 1;
}

.avatar-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.avatar-help {
    font-size: 0.8rem !important;
    color: #999 !important;
}

/* Справка для форм */
.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Форма удаления аккаунта */
.account-deletion-form {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.deletion-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.deletion-warning i {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 10px;
}

.deletion-warning h3 {
    margin: 10px 0 5px 0;
    color: #856404;
}

.deletion-warning p {
    margin: 0;
    color: #856404;
}

.deletion-checklist {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.deletion-checklist h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.deletion-checklist ul {
    margin: 0;
    padding-left: 20px;
}

.deletion-checklist li {
    margin: 5px 0;
    color: #666;
}

.deletion-checklist li i {
    color: var(--primary-green);
    margin-right: 8px;
}

/* Кнопка удаления */
.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-delete:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Чекбокс */
.form-group label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* Секция настроек */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.setting-item.danger {
    border-color: #dc3545;
    background: #fff5f5;
}

.setting-item.danger:hover {
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.setting-info h4 i {
    margin-right: 8px;
    color: var(--primary-green);
}

.setting-item.danger .setting-info h4 i {
    color: #dc3545;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* ==============================================
   СТИЛИ ДЛЯ НАСТРОЕК БЕЗПИЕЧНОСТИ
   ============================================== */

/* Заголовок формы безопасности */
.security-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.security-form-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

/* Секции безопасности */
.security-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.security-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.security-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h4 i {
    color: var(--primary-green);
}

.section-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Список сессий */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.session-item.current {
    background: #e8f5e8;
    border-color: var(--primary-green);
}

.session-info {
    flex: 1;
}

.session-device {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.session-device i {
    color: var(--primary-green);
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.session-details span {
    font-size: 0.8rem;
    color: #666;
}

.session-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

/* Действия с сессиями */
.session-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Двухфакторная аутентификация */
.two-factor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.status-info i {
    color: #6c757d;
}

/* История logowań */
.login-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.login-info {
    flex: 1;
}

.login-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.login-time i {
    color: var(--primary-green);
}

.login-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-details span {
    font-size: 0.8rem;
    color: #666;
}

.login-status {
    display: flex;
    align-items: center;
}

/* Адаптивность для настроек безопасности */
@media (max-width: 768px) {
    .security-form-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .session-item,
    .login-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .session-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .session-actions button {
        width: 100%;
    }
    
    .two-factor-status {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==============================================
   СТИЛИ ДЛЯ НАСТРОЕК ПРИЛОЖЕНИЯ
   ============================================== */

.settings-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-content {
    padding: 0;
}

/* Секции настроек */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.settings-section:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-section-header {
    margin-bottom: 15px;
}

.settings-section-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section-header h3 i {
    color: var(--primary-green);
}

.settings-section-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Настройки переключателей */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.setting-info p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
}

/* Переключатели */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-green);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Селекты */
.setting-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Кнопки действий */
.settings-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #545b62;
}

.btn-save-settings {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-settings:hover {
    background: var(--deep-green);
}

/* Адаптивность для настроек */
@media (max-width: 768px) {
    .settings-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions button {
        width: 100%;
    }
}

/* Адаптивность для форм редактирования */
@media (max-width: 768px) {
    .avatar-upload-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .current-avatar {
        width: 80px;
        height: 80px;
    }
    
    .edit-form-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .user-modal#profileModal {
        width: 95%;
        max-width: none;
        max-height: 95vh;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .profile-tabs {
        margin: 0 10px 20px 10px;
        overflow-x: auto;
    }
    
    .profile-tab-content {
        padding: 0 10px 20px 10px;
    }
    
    .photo-history-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Анимации для кнопок статусов */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
}

/* Модальное окно подтверждения удаления */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirmation-modal.active {
    display: flex;
}

.confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.confirmation-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirmation-icon {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.confirmation-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.confirmation-cancel {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.confirmation-cancel:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.confirmation-confirm {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    border: 2px solid #ff4757;
}

.confirmation-confirm:hover {
    background: linear-gradient(135deg, #ff3742, #ff4757);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Стили для вкладок избранного */
.favorites-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
}

.favorites-tabs {
    display: flex;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 12px 12px 0 0;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px var(--shadow-green);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 10;
}

.favorites-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.favorites-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.favorites-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -3px 0 var(--light-green);
}

.favorites-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(38, 224, 127, 0.1), rgba(21, 101, 192, 0.1));
    z-index: -1;
}

.favorites-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.favorites-tab.active i {
    transform: scale(1.1);
}

.favorites-tab-content {
    background: white;
    border-radius: 0;
    min-height: 400px;
    position: relative;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.favorites-tab-panel {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.favorites-tab-panel.active {
    display: block;
}

/* Кнопка "ZOBACZ SWOJĄ MAPĘ" */
.favorites-map-button {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin-top: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    animation: pulse-text 2s infinite;
}

.favorites-map-button:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.favorites-map-button:active {
    transform: translateY(0);
}

.favorites-map-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.favorites-map-button:hover i {
    transform: scale(1.1);
}

/* Пульсация текста кнопки карты */
@keyframes pulse-text {
    0% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

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

/* Адаптивность для вкладок */
@media (max-width: 768px) {
    .favorites-tabs {
        flex-direction: column;
        border-radius: 12px 12px 0 0;
    }
    
    .favorites-tab {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .favorites-tab:last-child {
        border-bottom: none;
    }
    
    .favorites-tab.active {
        box-shadow: inset 3px 0 0 #ff6b6b;
    }
}

/* Улучшенные стили для пустых состояний */
.empty-favorites {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-favorites i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.empty-favorites h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.empty-favorites p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Стили для сообщений об ошибках */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #e74c3c;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.error-message h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.error-message p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Стили для личной карты */
.personal-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.personal-map-modal.active {
    display: flex;
    opacity: 1;
}

.personal-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.personal-map-content {
    position: relative;
    width: 95%;
    height: 90%;
    max-width: 1400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin: auto;
    overflow: hidden;
}

.personal-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.personal-map-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-personal-map {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-personal-map:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.personal-map-filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.map-filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    justify-content: space-between;
    min-width: 120px;
}

.map-filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.map-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.map-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.personal-map-container {
    flex: 1;
    display: flex;
    position: relative;
    min-height: 0;
}

.personal-map {
    flex: 1;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.personal-map-sidebar {
    width: 350px;
    background: white;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.place-info-panel {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.place-info-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.place-info-empty i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.place-info-empty h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.place-info-empty p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.place-info-content {
    display: none;
}

.place-info-content.active {
    display: block;
}

.place-info-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.place-info-photo {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.place-info-photo.main {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.place-info-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.place-info-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.place-info-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.place-info-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #666;
    padding: 0.5rem 0;
}

.place-info-meta-item i {
    width: 20px;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.place-info-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.place-info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.personal-map {
    flex: 1;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

/* Стили для Leaflet карты */
.personal-map .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 0;
}

/* Кастомные стили для маркеров */
.custom-marker {
    background: white;
    border: 3px solid #e74c3c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.custom-marker.favorite {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.custom-marker.want-to-visit {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.custom-marker.visited {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

/* Стили для кластеров */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-red {
    background-color: rgba(231, 76, 60, 0.6);
}

.marker-cluster-red div {
    background-color: rgba(231, 76, 60, 0.8);
}

.marker-cluster-orange {
    background-color: rgba(243, 156, 18, 0.6);
}

.marker-cluster-orange div {
    background-color: rgba(243, 156, 18, 0.8);
}

.marker-cluster-green {
    background-color: rgba(46, 204, 113, 0.6);
}

.marker-cluster-green div {
    background-color: rgba(46, 204, 113, 0.8);
}

/* Стили для popup карты */
.map-popup {
    min-width: 200px;
    padding: 0.5rem;
}

.map-popup h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.map-popup p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.popup-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

/* Стили для Leaflet popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: white;
}

.personal-map-legend {
    width: 200px;
    background: white;
    border-left: 1px solid #e9ecef;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.legend-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Стили для пинов карты */

/* Адаптивность для личной карты */
@media (max-width: 768px) {
    .personal-map-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .personal-map-header {
        padding: 1rem;
    }
    
    .personal-map-header h2 {
        font-size: 1.2rem;
    }
    
    .personal-map-filters {
        padding: 0.5rem;
        flex-wrap: wrap;
    }
    
    .map-filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .personal-map-container {
        flex-direction: column;
    }
    
    .personal-map-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
}

/* Стили для пинов карты */
.map-placeholder {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-pins-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
}

.map-pin {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
}

.map-pin:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.pin-emoji {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.pin-info {
    flex: 1;
}

.pin-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.pin-location {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.map-note {
    background: rgba(0, 200, 83, 0.1);
    color: var(--primary-green);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

/* Адаптивность для пинов */
@media (max-width: 768px) {
    .map-pins-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .map-pin {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .pin-emoji {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
    
    .pin-name {
        font-size: 1rem;
    }
    
    .pin-location {
        font-size: 0.8rem;
    }
    
    .map-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .map-note {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
}

/* ==================== ДЕТАЛЬНЫЙ ПРОСМОТР УВЕДОМЛЕНИЯ ==================== */

.notification-detail-content {
    max-width: 600px;
    background: white;
}

.notification-detail-content .modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
}

.notification-detail-content .modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-detail-content .modal-body {
    padding: 2rem;
    color: #1f2937;
}

.notification-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-message-preview {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== ПАНЕЛЬ УПРАВЛЕНИЯ КОМПАНИЕЙ ==================== */

.business-management-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.business-management-body {
    padding: 0;
}

.business-status-banner {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.business-status-banner.pending {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

.business-status-banner.approved {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
}

.business-status-banner.inactive {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.business-status-banner.rejected {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.business-status-banner i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.business-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.business-info-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.business-info-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.business-info-item label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.business-info-item .value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.business-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.business-action-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.business-action-btn i {
    font-size: 2rem;
    color: var(--primary-green);
}

.business-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.2);
    border-color: var(--primary-green);
}

.business-action-btn.support {
    border-color: #3b82f6;
}

.business-action-btn.support i {
    color: #3b82f6;
}

.business-action-btn.support:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.business-action-btn.locked {
    opacity: 0.6;
    border-color: #d1d5db;
    position: relative;
}

.business-action-btn.locked:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #f59e0b;
}

.business-action-btn.locked i {
    color: #9ca3af;
}

.business-action-btn .premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.business-action-btn.delete {
    border-color: #dc3545;
}

.business-action-btn.delete i {
    color: #dc3545;
}

.business-action-btn.delete:hover {
    border-color: #dc3545;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
    background: rgba(220, 53, 69, 0.05);
}

/* ==================== СТРАНИЦА ВЫБОРА ПЛАНА ПОДПИСКИ ==================== */

#subscriptionPlansModal {
    z-index: 3000 !important;
}

.subscription-plans-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.subscription-plans-body {
    padding: 2rem;
}

.plans-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Переключатель месяц/год */
.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    padding: 0.75rem;
    border-radius: 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #d1d5db;
}

.toggle-btn {
    padding: 1rem 2.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-green);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-green), #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Сетка планов */
.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Карточка плана */
.plan-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.plan-card.basic {
    border-color: #e5e7eb;
}

.plan-card.standard {
    border-color: #10b981;
}

.plan-card.premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, white 100%);
}

.plan-card.recommended {
    border-color: #10b981;
    border-width: 3px;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Заголовок плана */
.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-card.basic .plan-badge {
    background: #e5e7eb;
    color: #6b7280;
}

.plan-card.standard .plan-badge {
    background: #d1fae5;
    color: #065f46;
}

.plan-card.premium .plan-badge {
    background: #fef3c7;
    color: #92400e;
}

/* Цена */
.plan-price {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-price .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.plan-price .currency {
    font-size: 1.5rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.plan-price .period {
    font-size: 1rem;
    color: #9ca3af;
}

.yearly-savings {
    text-align: center;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Список возможностей */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.plan-features li i {
    color: #10b981;
    font-size: 1.1rem;
}

.plan-features li.disabled {
    color: #9ca3af;
}

.plan-features li.disabled i {
    color: #d1d5db;
}

/* Кнопки выбора плана */
.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.basic-btn {
    background: #e5e7eb;
    color: #6b7280;
}

.basic-btn:hover {
    background: #d1d5db;
}

.standard-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.standard-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.premium-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.trial-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

/* Футер с информацией */
.plans-footer {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.plans-footer p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    margin: 0;
}

.plans-footer i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Карточка подписки в панели управления */
.business-subscription-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.business-subscription-card.standard {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #10b981;
}

.business-subscription-card.premium {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.subscription-info {
    flex: 1;
}

.subscription-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.subscription-badge-basic {
    background: #e5e7eb;
    color: #6b7280;
}

.subscription-badge-standard {
    background: #10b981;
    color: white;
}

.subscription-badge-premium {
    background: #f59e0b;
    color: white;
}

.subscription-info p {
    margin: 0.25rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.upgrade-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.subscription-limits {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.limit-item i {
    color: #10b981;
    font-size: 1rem;
}

.limit-item strong {
    color: var(--text-dark);
}

.premium-crown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.premium-crown i {
    font-size: 2.5rem;
    color: #f59e0b;
    animation: pulse 2s infinite;
}

.premium-crown span {
    font-weight: 700;
    color: #92400e;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .subscription-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-toggle {
        flex-direction: column;
        width: 100%;
    }
    
    .plans-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .business-subscription-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .subscription-limits {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==================== ПАНЕЛЬ УПРАВЛЕНИЯ ФИРМАМИ (АДМИН) ==================== */

.admin-btn.business-management {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.admin-btn.business-management:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.business-management-header {
    margin-bottom: 2rem;
}

.business-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 2rem;
    color: #6366f1;
}

.stat-card.pending i {
    color: #f59e0b;
}

.stat-card.approved i {
    color: #10b981;
}

.stat-card.rejected i {
    color: #ef4444;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.business-management-list {
    display: grid;
    gap: 1rem;
}

.business-management-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.business-management-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.business-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.business-quick-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.business-quick-info i {
    color: #6366f1;
}

.business-management-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.view {
    background: #6366f1;
    color: white;
}

.action-btn.view:hover {
    background: #4f46e5;
}

.action-btn.edit {
    background: #f59e0b;
    color: white;
}

.action-btn.edit:hover {
    background: #d97706;
}

.action-btn.approve {
    background: #10b981;
    color: white;
}

.action-btn.approve:hover {
    background: #059669;
}

.action-btn.reject {
    background: #ef4444;
    color: white;
}

.action-btn.reject:hover {
    background: #dc2626;
}

.action-btn.deactivate {
    background: #f59e0b;
    color: white;
}

.action-btn.deactivate:hover {
    background: #d97706;
}

.action-btn.delete {
    background: #ef4444;
    color: white;
}

.action-btn.delete:hover {
    background: #dc2626;
}

/* ==================== ФОТОГРАФИИ В КАРТОЧКЕ БИЗНЕСА (АДМИН ПАНЕЛЬ) ==================== */

.business-card-photos {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.business-card-photos h4 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.business-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.business-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.business-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.business-photo-item:hover img {
    filter: brightness(1.1);
}

/* ==================== ЗАГРУЗКА ФОТОГРАФИЙ В ФОРМЕ РЕГИСТРАЦИИ ==================== */

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.photo-upload-label:hover {
    border-color: var(--primary-green);
    background: rgba(0, 200, 83, 0.05);
}

.photo-upload-label i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.photo-upload-label span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.photo-upload-label small {
    font-size: 0.85rem;
    color: #6b7280;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-preview-item .remove-photo:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.photo-limit-indicator {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.photo-limit-indicator .limit-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.photo-limit-indicator #photoCount {
    color: #10b981;
    font-size: 1.3rem;
}

.photo-limit-indicator #photoLimit {
    color: #6b7280;
    font-size: 1.3rem;
}

.photo-limit-indicator .limit-hint {
    padding: 0.35rem 0.85rem;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.85rem;
}

.upgrade-limit-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.upgrade-limit-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .photo-limit-indicator {
        flex-direction: column;
    }
    
    .upgrade-limit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== МОДАЛЬНОЕ ОКНО УВЕДОМЛЕНИЯ О ЛИМИТЕ ==================== */

#limitReachedModal {
    z-index: 3500 !important;
}

.limit-reached-content {
    max-width: 550px;
    text-align: center;
}

.limit-reached-body {
    padding: 2rem;
}

.limit-icon {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.limit-reached-body h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.limit-reached-body p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.upgrade-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.upgrade-option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upgrade-option:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.upgrade-option.premium:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.option-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.option-badge.standard {
    background: #10b981;
    color: white;
}

.option-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.option-features {
    flex: 1;
    text-align: left;
}

.option-features strong {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.option-features span {
    color: #6b7280;
    font-size: 0.85rem;
}

.option-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.limit-reached-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.limit-reached-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.limit-reached-actions .btn.secondary {
    background: #6c757d;
    color: white;
}

.limit-reached-actions .btn.secondary:hover {
    background: #5a6268;
}

.limit-reached-actions .btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.limit-reached-actions .btn.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 768px) {
    .limit-reached-actions {
        flex-direction: column;
    }
    
    .upgrade-option {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ УДАЛЕНИЯ ==================== */

#deleteConfirmModal {
    z-index: 3000 !important;
}

.delete-confirm-content {
    max-width: 500px;
    text-align: center;
}

.delete-confirm-body {
    padding: 2rem;
}

.warning-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.delete-confirm-body h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.warning-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.warning-message p {
    margin: 0 0 1rem 0;
    color: #856404;
}

.warning-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-message li {
    color: #856404;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-message li i {
    color: #dc3545;
    font-size: 1.1rem;
}

.confirmation-input {
    margin-bottom: 1.5rem;
}

.confirmation-input label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.confirmation-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirmation-input input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.delete-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.delete-confirm-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delete-confirm-actions .btn.secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.delete-confirm-actions .btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.delete-confirm-actions .btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.delete-confirm-actions .btn.danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.delete-confirm-actions .btn.danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .delete-confirm-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .delete-confirm-body {
        padding: 1.5rem;
    }
    
    .warning-icon {
        font-size: 3rem;
    }
    
    .delete-confirm-body h3 {
        font-size: 1.2rem;
    }
    
    .delete-confirm-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .business-management-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .business-actions {
        grid-template-columns: 1fr;
    }
}

/* ==================== ВЫБОР ПЛАНА В ФОРМЕ РЕГИСТРАЦИИ ==================== */

.subscription-plan-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.plan-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-option input[type="radio"]:checked + .plan-option-content {
    border-color: var(--primary-green);
}

.plan-option input[type="radio"]:checked ~ .plan-option-content::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.plan-option.recommended {
    border-color: #10b981;
    border-width: 3px;
}

.plan-option.premium {
    border-color: #f59e0b;
}

.recommended-mini-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.plan-option-content {
    position: relative;
}

.plan-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-option-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.plan-price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.plan-option-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-option-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.plan-option-features li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* ==================== МАРКЕРЫ ПОДПИСОК НА КАРТЕ ==================== */

/* Пульсация для Standard маркеров */
.marker-pulse {
    animation: marker-pulse-animation 2s ease-in-out infinite;
}

@keyframes marker-pulse-animation {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Premium маркеры (круг с градиентом и пульсацией) */
.premium-marker-pulse {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-marker-dot {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 70%, #FF8C00 100%);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    z-index: 3;
    animation: premiumPulse 2s infinite;
    position: relative;
}

.premium-marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

.premium-marker-ring {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    opacity: 0.6;
    animation: premiumRing 2s infinite;
}

.premium-marker-ring-2 {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid #FFD700;
    border-radius: 50%;
    opacity: 0.3;
    animation: premiumRing2 2s infinite;
}

@keyframes premiumPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); 
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 0 15px rgba(255, 215, 0, 1); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); 
    }
}

@keyframes premiumRing {
    0% { 
        transform: scale(0.8); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.2; 
    }
    100% { 
        transform: scale(0.8); 
        opacity: 0.6; 
    }
}

@keyframes premiumRing2 {
    0% { 
        transform: scale(0.7); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.5); 
        opacity: 0.1; 
    }
    100% { 
        transform: scale(0.7); 
        opacity: 0.3; 
    }
}

/* Hover эффекты для маркеров */
.custom-marker:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
    z-index: 1000 !important;
}

.marker-pulse:hover {
    animation: none;
    transform: scale(1.3) !important;
}

.premium-marker-pulse:hover .premium-marker-dot {
    transform: scale(1.3) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 1) !important;
    transition: all 0.3s ease;
}

.premium-marker-pulse:hover .premium-marker-ring,
.premium-marker-pulse:hover .premium-marker-ring-2 {
    animation-play-state: paused;
    opacity: 0.8;
}

/* ==================== ОТОБРАЖЕНИЕ ЛОКАЛИЗАЦИИ ==================== */
.location-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.location-display i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.location-display span {
    flex: 1;
}

/* ==================== УПРАВЛЕНИЕ ЛОКАЛИЗАЦИЯМИ ==================== */

/* Индикатор лимита локализаций */
.locations-limit-indicator {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(21, 101, 192, 0.1));
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.locations-limit-indicator h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locations-limit-indicator h4 i {
    color: var(--primary-green);
}

.limit-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.limit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--deep-green));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.limit-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.limit-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.limit-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.limit-upgrade-hint {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Контейнер списка локализаций */
.locations-list-container {
    margin-bottom: 1.5rem;
}

.locations-list-container > h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locations-list-container > h3 i {
    color: var(--primary-green);
}

/* Список карточек локализаций */
.locations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Карточка локализации */
.location-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.location-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.location-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.location-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.location-card-info {
    flex: 1;
}

.location-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.location-card-address {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-card-address i {
    color: var(--text-light);
    font-size: 0.8rem;
}

.location-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.location-card-status.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.location-card-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.location-card-status.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.location-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.location-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-action-btn.primary {
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
}

.location-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.location-action-btn.secondary {
    background: #f3f4f6;
    color: var(--text-dark);
}

.location-action-btn.secondary:hover {
    background: #e5e7eb;
}

.location-action-btn.danger {
    background: #fee2e2;
    color: #dc2626;
}

.location-action-btn.danger:hover {
    background: #fecaca;
}

.location-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопка добавления локализации */
.add-location-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(21, 101, 192, 0.1));
    border: 2px dashed rgba(0, 200, 83, 0.3);
    border-radius: 12px;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.add-location-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(21, 101, 192, 0.15));
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.add-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
    color: var(--text-light);
}

.add-location-btn i {
    font-size: 1.2rem;
}

/* Дополнительные действия */
.business-additional-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.business-additional-actions .business-action-btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .location-card-actions {
        flex-direction: column;
    }
    
    .location-action-btn {
        width: 100%;
        min-width: unset;
    }
    
    .business-additional-actions {
        flex-direction: column;
    }
}

/* ==================== ЧАТ С АДМИНИСТРАЦИЕЙ ==================== */

.support-chat-content {
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: calc(90vh - 100px);
}

.chat-status {
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-welcome {
    text-align: center;
    padding: 2rem;
    color: var(--text-medium);
}

.chat-welcome i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.chat-welcome h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.chat-welcome p {
    margin: 0;
    font-size: 0.95rem;
}

.chat-message {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.admin {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
}

.chat-message-header i {
    font-size: 0.9rem;
}

.chat-message-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-input-container {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.chat-input-container textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: all 0.3s ease;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Системное сообщение */
.chat-system-message {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.5rem;
    font-style: italic;
}

/* Бейдж на кнопке чатов */
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.admin-btn.support-chat {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    position: relative;
}

/* Индикатор печатания */
.typing-indicator {
    align-self: flex-start;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    max-width: 75px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==================== АДМИНСКАЯ ПАНЕЛЬ ЧАТОВ ==================== */

.support-chats-container {
    display: flex;
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.chats-list {
    width: 350px;
    flex-shrink: 0;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
}

.chats-list-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.chats-list-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.chats-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.filter-btn span {
    background: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    color: white;
    border-color: var(--primary-green);
}

.filter-btn.active span {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.chats-items {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease;
    background: white;
}

.chat-item:hover {
    background: #f9fafb;
}

.chat-item.active {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(21, 101, 192, 0.1));
    border-left: 3px solid var(--primary-green);
}

.chat-item.unread {
    background: rgba(59, 130, 246, 0.05);
    position: relative;
}

.chat-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    background: #3b82f6;
    border-radius: 0 4px 4px 0;
}

.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.chat-item-business {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.chat-item-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.chat-item-preview {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-item-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Окно чата */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-window-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 2rem;
}

.chat-window-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chat-window-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-window-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-user-info i {
    font-size: 2rem;
    color: var(--primary-green);
}

.chat-user-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.chat-user-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.close-chat-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-chat-btn:hover {
    color: var(--text-dark);
}

.admin-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-chat-input {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.admin-chat-input textarea {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: all 0.3s ease;
}

.admin-chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* ==================== СТАТИСТИКА БИЗНЕСА ==================== */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.stats-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.stats-periods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.period-stat {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.period-label {
    font-weight: 600;
    color: var(--text-dark);
}

.period-bar {
    height: 32px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.period-fill {
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.period-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
}

/* Дополнительные метрики для Premium */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-item-label {
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* График по дням */
.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem 0;
}

.daily-bar {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green), var(--deep-green));
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.daily-bar:hover {
    opacity: 0.8;
    transform: translateY(-4px);
}

.daily-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-medium);
    white-space: nowrap;
}

.daily-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==================== ИСТОРИЯ ИЗМЕНЕНИЙ ==================== */

.history-timeline {
    padding: 1rem 0;
}

.history-entry {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.history-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.history-entry-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.history-entry-content {
    flex: 1;
}

.history-entry-action {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.history-entry-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== АДМИН - ПРЕВЬЮ ФОТО ЛОКАЛИЗАЦИИ ==================== */

.admin-photos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-photo-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-photo-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-green);
}

.admin-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-photo-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.admin-photo-preview:hover .admin-photo-delete-btn {
    opacity: 1;
}

.admin-photo-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ==================== УБИРАЕМ БЕЛЫЙ ФОН У МАРКЕРОВ ==================== */
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

/* ==================== МОДАЛЬНОЕ ОКНО UPGRADE ==================== */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upgrade-modal.active {
    opacity: 1;
}

.upgrade-modal-content {
    background: #2c2c2c;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.upgrade-modal.active .upgrade-modal-content {
    transform: scale(1);
}

.upgrade-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.upgrade-modal-header i.fa-crown {
    font-size: 24px;
    color: #ffd700;
}

.upgrade-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    flex: 1;
}

.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.upgrade-modal-body {
    padding: 32px 24px;
    text-align: center;
}

.upgrade-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-icon i {
    font-size: 36px;
    color: white;
}

.upgrade-message {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.upgrade-plan-badge {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #e0e0e0;
}

.upgrade-plan-badge i {
    color: #ffd700;
}

.upgrade-plan-badge strong {
    color: #667eea;
    font-weight: 700;
}

.upgrade-modal-footer {
    padding: 24px;
    background: #242424;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.upgrade-btn-cancel,
.upgrade-btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-btn-cancel {
    background: #444;
    color: #e0e0e0;
}

.upgrade-btn-cancel:hover {
    background: #555;
}

.upgrade-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.upgrade-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.upgrade-btn-confirm i {
    color: #ffd700;
}

/* Стили для информационных подсказок статистики */
.stat-info-tooltip {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.stat-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #1f2937;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    width: 280px;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    line-height: 1.5;
    text-align: left;
    pointer-events: none;
}

.stat-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 1rem;
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

.stat-tooltip-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.stat-info-tooltip:hover .stat-tooltip-content {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.stat-info-tooltip i {
    transition: color 0.2s ease;
}

.stat-info-tooltip:hover i {
    color: #3b82f6 !important;
}

/* Анимация обновления статистики */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

button:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

/* ============================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ РАЗНЫХ РАЗРЕШЕНИЙ ЭКРАНА
   ============================================ */

/* Full HD (1920x1080) - базовые размеры */
@media (min-width: 1920px) and (max-width: 2559px) {
    /* main-content layout is handled by the map-first layout */
    
    .place-card {
        min-height: 320px;
        max-height: 450px;
    }
    
    .place-card-image {
        height: 200px;
    }
    
    .map-zoom-controls {
        left: calc(var(--sidebar-width) + 24px);
    }
    
    .map-styles-button {
        left: calc(var(--sidebar-width) + 18px);
    }
}

/* 2K/QHD (2560x1440) - увеличенные размеры */
@media (min-width: 2560px) and (max-width: 3839px) {
    /* main-content layout is handled by the map-first layout */
    
    .place-card {
        min-height: 400px;
        max-height: 560px;
        border-radius: 18px;
    }
    
    .place-card-image {
        height: 250px;
    }
    
    .place-card-title {
        font-size: 1.4rem;
    }
    
    .place-card-location {
        font-size: 1rem;
    }
    
    .map-zoom-controls {
        left: calc(var(--sidebar-width) + 24px);
        bottom: 180px;
    }
    
    .zoom-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .map-styles-button {
        left: calc(var(--sidebar-width) + 18px);
        bottom: 100px;
    }
    
    .styles-toggle {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
}

/* 4K/UHD (3840x2160) - максимальные размеры */
@media (min-width: 3840px) {
    /* main-content layout is handled by the map-first layout */
    
    .place-card {
        min-height: 500px;
        max-height: 700px;
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(34, 139, 34, 0.15);
    }
    
    .place-card-image {
        height: 320px;
    }
    
    .place-card-title {
        font-size: 1.8rem;
        padding: 1rem;
    }
    
    .place-card-location {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .place-card-description {
        font-size: 1.1rem;
        padding: 0 1rem 1rem 1rem;
        line-height: 1.6;
    }
    
    .map-zoom-controls {
        left: calc(25% + 3rem);
        bottom: 200px;
    }
    
    .zoom-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .map-styles-button {
        left: calc(25% + 2.5rem);
        bottom: 110px;
    }
    
    .styles-toggle {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
    }
}

/* Средние экраны (1280-1919px) - немного уменьшенные размеры */
@media (min-width: 1280px) and (max-width: 1919px) {
    .main-content {
        grid-template-columns: repeat(auto-fill, minmax(340px, 340px));
        max-width: 28% !important;
    }
    
    .place-card {
        min-height: 300px;
        max-height: 420px;
    }
    
    .place-card-image {
        height: 180px;
    }
    
    .map-zoom-controls {
        left: calc(28% + 1.8rem);
    }
    
    .map-styles-button {
        left: calc(28% + 1.3rem);
    }
}

/* Боковые фоновые панели (скрыты по умолчанию) */
.map-background-left,
.map-background-right {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(45px) saturate(220%);
    -webkit-backdrop-filter: blur(45px) saturate(220%);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Большие экраны (>= 2000px) - Фиксация ширины и центрирование ===== */
/* Этот медиа-запрос должен быть последним для приоритета */
@media (min-width: 2000px) {
    
    /* Ограничиваем и центрируем карту */
    .fullscreen-map-background {
        left: calc((100vw - 2000px) / 2) !important;
        width: 2000px !important;
        max-width: 2000px !important;
    }
    
    /* Показываем боковые фоновые панели - левая */
    .map-background-left {
        display: block !important;
        left: 0 !important;
        width: calc((100vw - 2000px) / 2) !important;
    }
    
    /* Показываем боковые фоновые панели - правая */
    .map-background-right {
        display: block !important;
        right: 0 !important;
        width: calc((100vw - 2000px) / 2) !important;
    }
    
    /* Ограничиваем и центрируем сайдбар - начинается с левого края центрированного контейнера */
    .main-content {
        left: calc((100vw - 2000px) / 2) !important;
        max-width: var(--sidebar-width) !important;
        width: var(--sidebar-width) !important;
    }
    
    /* Ограничиваем и центрируем панель категорий - после сайдбара */
    .categories-panel {
        left: calc((100vw - 2000px) / 2 + var(--sidebar-width)) !important;
        right: calc((100vw - 2000px) / 2) !important;
        width: calc(2000px - var(--sidebar-width)) !important;
        max-width: calc(2000px - var(--sidebar-width)) !important;
    }
    
    /* Ограничиваем детальную карточку места */
    /* Когда сайдбар виден - карточка после него */
    .place-details:not(.active) {
        left: calc((100vw - 2000px) / 2 + var(--sidebar-width)) !important;
        max-width: calc(2000px - var(--sidebar-width)) !important;
        width: calc(2000px - var(--sidebar-width)) !important;
    }
    
    /* Когда детальная карточка активна (сайдбар скрыт) - начинается с левого края центрированного контейнера, ширина как у сайдбара */
    /* Важно: используем !important чтобы переопределить базовый стиль left: 0 */
    .place-details.active {
        left: calc((100vw - 2000px) / 2) !important;
        width: var(--sidebar-width) !important;
        max-width: var(--sidebar-width) !important;
        /* Мгновенное позиционирование без transition для left и width */
        transition-property: transform, opacity, visibility !important;
        transition-duration: 0.3s !important;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease, ease !important;
    }
    
    /* Также для неактивного состояния на больших экранах */
    .place-details:not(.active) {
        transition-property: transform, opacity, visibility !important;
        transition-duration: 0.3s !important;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease, ease !important;
    }
    
    /* Убираем transition для left и width на больших экранах - мгновенное позиционирование */
    .place-details,
    .place-details.active {
        /* Отключаем transition для left и width - только transform, opacity, visibility */
        transition-property: transform, opacity, visibility !important;
        transition-duration: 0.3s !important;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1), ease, ease !important;
        /* Явно исключаем left и width из transition */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease !important;
    }
    
    /* Ограничиваем панель фильтров - справа от центрированного контейнера, фиксированная ширина */
    .filters-panel {
        /* Позиционируем справа от центрированного контейнера */
        right: calc((100vw - 2000px) / 2) !important; /* Выравниваем с левой панелью */
        /* Уменьшили еще на 10% (было 320px) */
        width: 288px !important;
        max-width: 288px !important;
        /* Убираем left, чтобы не конфликтовал с right */
        left: auto !important;
    }
    
    .filters-button {
        width: 288px !important; /* Соответствует ширине панели фильтров */
    }
    
    /* Центрируем кнопки управления картой - после сайдбара */
    .map-zoom-controls {
        left: calc((100vw - 2000px) / 2 + var(--sidebar-width) + 1rem) !important;
    }
    
    .map-styles-button {
        left: calc((100vw - 2000px) / 2 + var(--sidebar-width) + 1rem) !important;
    }
}
