/* Базовые стили */
:root {
    --primary: #6C63FF;
    --primary-light: #8A85FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6584;
    --accent: #36D1DC;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --text: #2D3748;
    --text-light: #718096;
    --background: #F7FAFC;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    font-size: 15px;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Навигация */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    text-decoration: none;
}

.logo i {
    font-size: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-nav-link:active {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.mobile-nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.close-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-menu:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Основной контент */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Для главной страницы - всегда полная ширина */
.home-page .container,
body:has(.hero-section) .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Для ПК (больше 1024px) - все страницы на полную ширину */
@media (min-width: 1025px) {
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Убираем ограничение ширины для главной страницы на всех экранах */
    .home-page .container,
    body:has(.hero-section) .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

.section {
    max-width: 100%;
    margin: 0;
    padding: 40px 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Компоненты */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
    width: 100%;
}

.card:active {
    transform: scale(0.98);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:active {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:active {
    background-color: #E55A70;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:active {
    background-color: rgba(108, 99, 255, 0.1);
}

/* Кнопка outline в hero секции - белая с прозрачным фоном */
.hero-section .btn-outline {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    backdrop-filter: blur(10px);
}

.hero-section .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-outline:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    width: auto;
}

.btn-block {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin-top: auto;
}

/* Заголовки */
h1, h2, h3, h4 {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.3;
}

h1 {
    font-size: 24px;
    font-weight: 700;
}

h2 {
    font-size: 20px;
    font-weight: 700;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
}

/* Формы */
.form-group {
    margin-bottom: 16px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--card-bg);
    -webkit-appearance: none;
    appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group, .radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    width: 100%;
}

.checkbox-group input, .radio-group input {
    width: auto;
}

.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 4px;
}

/* Календарь */
.calendar {
    margin-bottom: 20px;
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    width: 100%;
}

.calendar-day {
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    color: var(--text-light);
    font-size: 13px;
}

.calendar-date {
    text-align: center;
    padding: 12px 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
}

.calendar-date:active:not(.disabled) {
    background-color: var(--primary-light);
    color: white;
    transform: scale(0.95);
}

.calendar-date.disabled {
    color: var(--border);
    cursor: not-allowed;
    opacity: 0.4;
}

.calendar-date.today {
    background-color: rgba(108, 99, 255, 0.1);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.calendar-date:hover:not(.disabled) {
    background-color: rgba(108, 99, 255, 0.1);
    transform: scale(1.05);
}

.calendar-date.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.calendar-date.has-appointments::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--secondary);
}

/* Временные слоты */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    background: var(--card-bg);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary);
    background-color: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
}

.time-slot:active:not(.disabled) {
    transform: scale(0.95);
}

.time-slot.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(108, 99, 255, 0.4);
}

.time-slot.disabled {
    background-color: var(--background);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Карточка мастера */
.master-card {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: var(--radius);
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
    gap: 16px;
}

.master-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.master-card:active {
    transform: scale(0.98);
    border-color: var(--primary-light);
}

.master-card.selected {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.master-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid var(--primary-light);
    background: var(--border);
}

.master-info {
    flex: 1;
}

.master-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 16px;
}

.master-specialty {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 6px;
}

.master-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.star {
    color: #FFC107;
    margin-right: 4px;
}

.master-status {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.status-available {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.status-busy {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.status-offline {
    background-color: rgba(113, 128, 150, 0.2);
    color: #4A5568;
    border: 1px solid rgba(113, 128, 150, 0.3);
    font-weight: 700;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

/* Уведомления */
.notification {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    width: 100%;
}

.notification:active {
    transform: translateX(4px);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 18px;
}

.notification-info {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 13px;
    color: var(--text-light);
}

/* Вкладки */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 14px 16px;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.tab:active {
    background-color: rgba(108, 99, 255, 0.1);
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

@media (min-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

@media (max-width: 480px) {
    .service-card {
        padding: 12px;
        min-height: 180px;
    }
}

.service-card:active {
    transform: scale(0.98);
    border-color: var(--primary-light);
}

.service-card.selected {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
}

.service-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
}

.service-icon i {
    display: block !important;
    font-size: 36px !important;
    color: var(--primary) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Стили для выбора иконки в модальном окне */
.icon-radio-label {
    position: relative;
    user-select: none;
}

.icon-radio-label:hover {
    border-color: var(--primary-light) !important;
    background-color: rgba(108, 99, 255, 0.05) !important;
}

.icon-radio-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid var(--border) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.icon-radio-input:checked {
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}

.icon-radio-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

.icon-radio-input:checked + i {
    color: var(--primary) !important;
    transform: scale(1.15);
    transition: transform 0.2s ease;
}

.icon-radio-label:has(.icon-radio-input:checked) {
    border-color: var(--primary) !important;
    background-color: rgba(108, 99, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1) !important;
}

/* Стили для модального окна добавления услуги */
.add-service-modal-content {
    max-width: 600px !important;
    width: 100%;
}

.add-service-modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Компактные стили для выбора иконки в модальном окне */
.icon-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.icon-radio-label-compact {
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--card-bg);
    text-align: center;
    min-height: 75px;
    box-sizing: border-box;
}

.icon-radio-label-compact:hover {
    border-color: var(--primary-light) !important;
    background-color: rgba(108, 99, 255, 0.05) !important;
    transform: translateY(-2px);
}

.icon-radio-label-compact.icon-selected {
    border-color: var(--primary) !important;
    background-color: rgba(108, 99, 255, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15) !important;
}

.icon-radio-label-compact.icon-selected i {
    color: var(--primary) !important;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.icon-radio-label-compact i {
    color: var(--primary);
    font-size: 22px;
    margin-top: 2px;
    display: block;
    transition: transform 0.2s ease;
}

.icon-radio-label-compact span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    word-wrap: break-word;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .add-service-modal-content {
        max-width: 95% !important;
    }
    
    .icon-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .add-service-modal-content {
        max-width: 100% !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
    }
    
    .add-service-modal-body {
        padding: 16px !important;
        max-height: calc(100vh - 100px) !important;
    }
    
    .icon-selection-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .icon-radio-label-compact {
        padding: 8px 4px !important;
        min-height: 70px !important;
    }
    
    .icon-radio-label-compact i {
        font-size: 20px !important;
    }
    
    .icon-radio-label-compact span {
        font-size: 10px !important;
    }
    
}

.service-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}

.service-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
}

.service-duration {
    font-size: 12px;
    color: var(--text-light);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
}

/* Стили для модального окна подтверждения записи */
.booking-confirm-modal .modal-content {
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
}

.booking-confirm-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.booking-confirm-body {
    padding: 24px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.booking-confirm-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    background: rgba(108, 99, 255, 0.02);
}

.booking-confirm-success {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(76, 175, 80, 0.2);
}

.success-icon-circle i {
    font-size: 36px;
    color: var(--success);
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    animation: ripple 1.5s ease-out infinite;
    z-index: 1;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.success-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.booking-confirm-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.confirm-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(108, 99, 255, 0.03);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.confirm-detail-item:hover {
    background: rgba(108, 99, 255, 0.05);
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.confirm-detail-item.highlight {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: rgba(76, 175, 80, 0.3);
}

.detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
}

.detail-value.price-value {
    font-size: 20px;
    color: var(--success);
    font-weight: 800;
}

.booking-confirm-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(108, 99, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    margin-top: 8px;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 16px;
}

.notification-text {
    flex: 1;
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.booking-confirm-btn {
    position: relative;
    overflow: hidden;
}

.booking-confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.booking-confirm-btn:hover::before {
    width: 300px;
    height: 300px;
}

.booking-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.booking-confirm-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .booking-confirm-modal .modal-content {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .booking-confirm-header {
        padding: 16px 16px 0;
    }
    
    .booking-confirm-header h3 {
        font-size: 18px !important;
    }
    
    .booking-confirm-body {
        padding: 16px;
        max-height: calc(100vh - 180px);
    }
    
    .booking-confirm-footer {
        padding: 16px;
    }
    
    .success-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .success-icon-circle i {
        font-size: 32px;
    }
    
    .success-title {
        font-size: 20px;
    }
    
    .success-subtitle {
        font-size: 13px;
    }
    
    .confirm-detail-item {
        padding: 12px;
        gap: 10px;
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .detail-value.price-value {
        font-size: 18px;
    }
    
    .booking-confirm-notification {
        padding: 12px;
        gap: 10px;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .notification-text {
        font-size: 12px;
    }
    
    .booking-confirm-btn {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 360px) {
    .booking-confirm-header {
        padding: 14px 14px 0;
    }
    
    .booking-confirm-body {
        padding: 14px;
    }
    
    .booking-confirm-footer {
        padding: 14px;
    }
    
    .success-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .success-icon-circle i {
        font-size: 28px;
    }
    
    .success-title {
        font-size: 18px;
    }
    
    .confirm-detail-item {
        padding: 10px;
        gap: 8px;
    }
    
    .detail-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .detail-value.price-value {
        font-size: 16px;
    }
    
    .booking-confirm-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

/* Стили для страницы master/dashboard */
.master-dashboard-section .quick-action-card {
    transition: var(--transition);
}

.master-dashboard-section .quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.2);
    border-color: var(--primary);
}

.master-dashboard-section .appointment-card-today:hover,
.master-dashboard-section .appointment-card-upcoming:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.master-dashboard-section .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Стили для расписания в master/settings */
.schedule-day-row {
    transition: var(--transition);
}

.schedule-day-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.break-item {
    transition: var(--transition);
}

.break-item:hover {
    background: rgba(244, 67, 54, 0.1) !important;
}

@media (max-width: 480px) {
    .master-dashboard-section .section-header h1 {
        font-size: 22px !important;
    }
    
    .master-dashboard-section .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .master-dashboard-section .quick-action-card {
        padding: 12px !important;
    }
    
    .master-dashboard-section .quick-action-card > div:first-child {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .master-dashboard-section .quick-action-card span {
        font-size: 12px !important;
    }
    
    .master-dashboard-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .master-dashboard-section .stat-card {
        padding: 14px !important;
    }
    
    .master-dashboard-section .stat-value {
        font-size: 24px !important;
    }
    
    .master-dashboard-section .stat-label {
        font-size: 12px !important;
    }
    
    .master-dashboard-section .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .master-dashboard-section .card-header .btn {
        width: 100%;
    }
    
    .master-dashboard-section form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .master-dashboard-section .status-btn {
        width: 100%;
    }
    
    /* Расписание на мобильных */
    .schedule-day-row {
        padding: 12px !important;
    }
    
    .schedule-day-row > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .schedule-day-row > div[id*="schedule_"][id*="_times"] {
        width: 100%;
        margin-top: 10px;
    }
    
    .break-item {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .break-item input {
        width: 100% !important;
    }
    
    .break-item .remove-break-btn {
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .master-dashboard-section .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .master-dashboard-section .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .master-dashboard-section .appointment-card-today,
    .master-dashboard-section .appointment-card-upcoming {
        padding: 12px !important;
    }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.admin-dashboard-section,
.admin-masters-section,
.admin-organizations-section,
.admin-clients-section,
.admin-appointments-section {
    max-width: 100%;
}

.admin-quick-action,
.admin-stat-card,
.admin-list-item {
    transition: var(--transition);
}

.admin-quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.admin-list-item:hover {
    background: rgba(108, 99, 255, 0.05) !important;
    transform: translateX(4px);
}

.admin-master-card:hover,
.admin-organizations-section .card:hover,
.admin-clients-section .card:hover,
.admin-appointments-section .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .admin-dashboard-section .section-header h1,
    .admin-masters-section .section-header h1,
    .admin-organizations-section .section-header h1,
    .admin-clients-section .section-header h1,
    .admin-appointments-section .section-header h1 {
        font-size: 24px !important;
    }
    
    .admin-dashboard-section .admin-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .admin-dashboard-section .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .admin-dashboard-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .admin-dashboard-section .admin-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-dashboard-section .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-dashboard-section .admin-stat-card {
        padding: 16px !important;
    }
    
    .admin-dashboard-section .admin-stat-card > div:first-child > div {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .admin-dashboard-section .admin-stat-card > div:nth-child(2) {
        font-size: 24px !important;
    }
    
    .admin-masters-section .card[style*="margin-bottom: 24px"] form,
    .admin-organizations-section .card[style*="margin-bottom: 24px"] form,
    .admin-clients-section .card[style*="margin-bottom: 24px"] form,
    .admin-appointments-section .card[style*="margin-bottom: 24px"] form {
        flex-direction: column;
    }
    
    .admin-masters-section .card[style*="margin-bottom: 24px"] form > div,
    .admin-masters-section .card[style*="margin-bottom: 24px"] form button,
    .admin-masters-section .card[style*="margin-bottom: 24px"] form a,
    .admin-organizations-section .card[style*="margin-bottom: 24px"] form > div,
    .admin-organizations-section .card[style*="margin-bottom: 24px"] form button,
    .admin-organizations-section .card[style*="margin-bottom: 24px"] form a,
    .admin-clients-section .card[style*="margin-bottom: 24px"] form > div,
    .admin-clients-section .card[style*="margin-bottom: 24px"] form button,
    .admin-clients-section .card[style*="margin-bottom: 24px"] form a {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .admin-dashboard-section .section-header,
    .admin-masters-section .section-header,
    .admin-organizations-section .section-header,
    .admin-clients-section .section-header,
    .admin-appointments-section .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .admin-dashboard-section .section-header > div:last-child,
    .admin-masters-section .section-header > div:last-child,
    .admin-organizations-section .section-header > div:last-child,
    .admin-clients-section .section-header > div:last-child,
    .admin-appointments-section .section-header > div:last-child {
        width: 100%;
    }
    
    .admin-dashboard-section .section-header > div:last-child .btn,
    .admin-masters-section .section-header > div:last-child .btn,
    .admin-organizations-section .section-header > div:last-child .btn,
    .admin-clients-section .section-header > div:last-child .btn,
    .admin-appointments-section .section-header > div:last-child .btn {
        flex: 1;
        min-width: 0;
    }
    
    .admin-masters-section .admin-master-card,
    .admin-organizations-section .card[style*="padding: 20px"],
    .admin-clients-section .card[style*="padding: 20px"],
    .admin-appointments-section .card[style*="padding: 20px"] {
        padding: 14px !important;
    }
    
    .admin-masters-section .admin-master-card > div > div:first-child > div:first-child,
    .admin-organizations-section .card[style*="padding: 20px"] > div > div:first-child > div:first-child,
    .admin-clients-section .card[style*="padding: 20px"] > div > div:first-child > div:first-child {
        flex-direction: column;
        text-align: center;
    }
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text);
    transform: scale(1.1);
}

.close-modal:active {
    color: var(--text);
    transform: scale(0.95);
}

/* Аватар с статусом */
.avatar-with-status {
    position: relative;
    display: inline-block;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-online {
    background-color: var(--success);
}

.status-offline {
    background-color: var(--text-light);
}

.status-busy {
    background-color: var(--warning);
}

/* Быстрое меню действий */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

@media (min-width: 480px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius);
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.quick-action:active {
    transform: scale(0.95);
    background-color: rgba(108, 99, 255, 0.1);
}

.quick-action i {
    font-size: 20px;
    color: var(--primary);
}

.quick-action span {
    font-size: 12px;
    font-weight: 600;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптивность для очень маленьких экранов */
.hide-mobile-text {
    display: inline;
}

@media (max-width: 480px) and (min-width: 361px) {
    .hide-mobile-text {
        display: none !important;
    }
    
    /* Показываем текст в кнопках мастеров на мобильных */
    .master-card .btn span:not(.hide-mobile-text) {
        display: inline !important;
    }
    
    .master-card .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }
}

@media (max-width: 360px) {
    /* Показываем текст "Записаться" на мобильных 360px и меньше во всех блоках главной страницы - переопределяем стили для 480px */
    /* Топ салоны и Топ мастера (карусели) */
    .section-top-salons .carousel-slide .btn span.hide-mobile-text,
    .section-top-masters .carousel-slide .btn span.hide-mobile-text,
    .carousel-slide .organization-card.top-card .btn span.hide-mobile-text,
    .carousel-slide .master-card.top-card .btn span.hide-mobile-text,
    /* Все салоны и Все мастера (сетки) */
    .section-all-salons .organization-card .btn span.hide-mobile-text,
    .section-all-masters .master-card .btn span.hide-mobile-text,
    .organizations-grid .organization-card .btn span.hide-mobile-text,
    .masters-grid .master-card .btn span.hide-mobile-text,
    /* Рекомендуемые (уже работают, но добавим для надежности) */
    .featured-card .btn span.hide-mobile-text,
    .section-featured-salons .btn span.hide-mobile-text,
    .section-featured-masters .btn span.hide-mobile-text,
    /* Общие селекторы */
    .section-top-salons .btn span.hide-mobile-text,
    .section-top-masters .btn span.hide-mobile-text,
    .section-all-salons .btn span.hide-mobile-text,
    .section-all-masters .btn span.hide-mobile-text,
    .organization-card .btn span.hide-mobile-text,
    .master-card .btn span.hide-mobile-text,
    .top-card .btn span.hide-mobile-text,
    .carousel-slide .btn span.hide-mobile-text,
    /* Переопределяем глобальное правило для hide-mobile-text на главной странице */
    .section-top-salons .hide-mobile-text,
    .section-top-masters .hide-mobile-text,
    .section-all-salons .hide-mobile-text,
    .section-all-masters .hide-mobile-text,
    .section-featured-salons .hide-mobile-text,
    .section-featured-masters .hide-mobile-text {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
    }
    
    .section-top-salons .btn,
    .section-top-masters .btn,
    .section-all-salons .btn,
    .section-all-masters .btn,
    .organization-card .btn,
    .master-card .btn,
    .top-card .btn,
    .featured-card .btn,
    .carousel-slide .btn,
    .section-top-salons .carousel-slide .btn,
    .section-top-masters .carousel-slide .btn,
    .organizations-grid .organization-card .btn,
    .masters-grid .master-card .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    
    .section {
        padding: 16px 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .time-slot {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-date {
        padding: 8px 4px;
        font-size: 13px;
    }
    
    .calendar-day {
        padding: 8px 0;
        font-size: 11px;
    }
    
    .calendar-header {
        margin-bottom: 12px;
    }
    
    .calendar-header span {
        font-size: 14px;
    }
    
    .calendar-header button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-section .card {
        padding: 14px !important;
        margin-bottom: 16px !important;
    }
    
    .booking-section h3 {
        font-size: 16px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Выбор роли при регистрации */
.role-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.role-option {
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card-bg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.role-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
}

.role-card span {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.role-card small {
    color: var(--text-light);
    font-size: 12px;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: var(--primary);
    background-color: rgba(108, 99, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.role-card:active {
    transform: scale(0.98);
}

/* Улучшенные карточки */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Статусные бейджи */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.badge-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error);
}

.badge-info {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

/* Адаптивность для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Для планшетов - небольшое ограничение для удобства чтения */
    .container {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 24px;
    }
    
    /* Для главной страницы - полная ширина */
    .home-page .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .role-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Дополнительные улучшения */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text);
}

/* Улучшенные карточки с hover эффектом */
@media (hover: hover) {
    .card:hover {
        box-shadow: var(--shadow-hover);
    }
    
    .master-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }
    
    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Улучшенные кнопки */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Улучшенные формы */
input:invalid {
    border-color: var(--error);
}

input:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* Улучшенные кнопки статуса */
.btn-success {
    background-color: var(--success);
    color: white;
    border: none;
}

.btn-success:active {
    background-color: #45a049;
}

/* Улучшенные формы времени */
input[type="time"] {
    font-size: 14px;
}

input[type="time"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Улучшенные карточки услуг в настройках */
.service-card:hover {
    transform: translateY(-2px);
}

/* Улучшенные уведомления */
.notification {
    cursor: default;
}

.notification.clickable {
    cursor: pointer;
}

.notification.clickable:hover {
    background-color: rgba(108, 99, 255, 0.02);
}

/* Улучшенные checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

input[type="checkbox"]:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    transform: scale(1.05);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

input[type="checkbox"]:active {
    transform: scale(0.95);
}

/* Стили для отключенных checkbox */
input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Загрузка аватара */
#avatar-preview {
    transition: all 0.3s ease;
}

#avatar-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Улучшенные иконки услуг */
.service-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
}

.service-icon i {
    display: block !important;
    font-size: 36px !important;
    color: var(--primary) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Кликабельные услуги */
.clickable-service {
    transition: all 0.3s ease;
}

.clickable-service:hover {
    transform: translateY(-4px);
}

/* Улучшения для таблиц на мобильных */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px 6px !important;
    }
    
    table th:first-child,
    table td:first-child {
        position: sticky;
        left: 0;
        background: var(--card-bg);
        z-index: 1;
    }
}

/* Улучшения для organization dashboard */
@media (min-width: 1024px) {
    .section {
        max-width: 1400px;
        margin: 0 auto;
        padding: 24px;
    }
    
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: box-shadow 0.3s ease;
    }
    
    .card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    
    table tr {
        transition: all 0.2s ease;
    }
    
    table tr:hover {
        background: rgba(108, 99, 255, 0.02);
        transform: scale(1.01);
    }
}

/* Адаптивность для мобильных 360px */
@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .section-header h1 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .quick-actions {
        grid-template-columns: 1fr !important;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table thead,
    table tbody,
    table tr,
    table td,
    table th {
        display: block;
    }
    
    table thead {
        display: none;
    }
    
    table tr {
        margin-bottom: 12px;
        border: 2px solid var(--border);
        border-radius: var(--radius);
        padding: 12px;
    }
    
    table td {
        border: none;
        padding: 8px 0 !important;
        text-align: left !important;
    }
    
    table td:before {
        content: attr(data-label) ": ";
        font-weight: 700;
        display: inline-block;
        min-width: 100px;
        color: var(--text-light);
    }
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    margin: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: var(--border);
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-width: 200px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-stat-label {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40%;
    opacity: 0.1;
}

.hero-decoration {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
    font-size: 24px;
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

.section-top-salons,
.section-top-masters {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(138, 133, 255, 0.05) 100%);
    padding: 60px 24px;
}

.section-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

@media (min-width: 1025px) {
    .section-controls {
        gap: 20px;
    }
    
    .search-box {
        min-width: 280px;
        max-width: 450px;
    }
    
    .sort-select {
        min-width: 200px;
    }
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--card-bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.sort-select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 auto;
    width: calc(33.333% - 11px);
    min-width: 260px;
    box-sizing: border-box;
}

.carousel-slide .master-card,
.carousel-slide .organization-card {
    height: 100%;
    min-height: 360px;
    padding: 16px;
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: 240px;
    }
    
    .carousel-slide .master-card,
    .carousel-slide .organization-card {
        min-height: 320px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        min-width: 200px;
        width: calc(50% - 8px);
    }
    
    .carousel-slide .master-card,
    .carousel-slide .organization-card {
        min-height: 300px;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .carousel-slide {
        min-width: 180px;
        width: calc(50% - 6px);
    }
    
    .carousel-slide .master-card,
    .carousel-slide .organization-card {
        min-height: 280px;
        padding: 10px;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: var(--transition);
    color: var(--primary);
    font-size: 18px;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

@media (min-width: 1025px) {
    .carousel-btn-prev {
        left: 20px;
    }
    
    .carousel-btn-next {
        right: 20px;
    }
}

@media (min-width: 1025px) {
    .carousel-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .carousel-btn-prev {
        left: -28px;
    }
    
    .carousel-btn-next {
        right: -28px;
    }
}

@media (min-width: 1400px) {
    .carousel-btn {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }
    
    .carousel-btn-prev {
        left: -32px;
    }
    
    .carousel-btn-next {
        right: -32px;
    }
}

/* ============================================
   ORGANIZATION CARDS
   ============================================ */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.organization-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    min-height: 300px;
}

@media (max-width: 768px) {
    .organizations-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    
    .organization-card {
        padding: 14px;
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .organizations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .organization-card {
        padding: 12px;
        min-height: 260px;
    }
}

@media (max-width: 360px) {
    .organizations-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .organization-card {
        padding: 10px;
        min-height: 240px;
    }
}

.organization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.organization-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.organization-card:hover::before {
    opacity: 1;
}

.organization-card.top-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.organization-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.organization-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 12px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .organization-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }
}

.organization-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organization-logo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 12px;
}

@media (max-width: 480px) {
    .organization-logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 auto 10px;
    }
}

.organization-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.organization-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .organization-name {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

.organization-info .btn {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.organization-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .organization-rating {
        gap: 4px;
        margin-bottom: 8px;
    }
}

.stars {
    display: flex;
    gap: 2px;
    color: #FFD700;
    font-size: 14px;
}

.rating-value {
    font-weight: 700;
    color: var(--text);
}

.reviews-count {
    color: var(--text-light);
    font-size: 14px;
}

.organization-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .organization-details {
        gap: 4px;
        margin-bottom: 10px;
    }
}

.org-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.org-detail i {
    color: var(--primary);
    width: 16px;
}

/* ============================================
   MASTER CARDS
   ============================================ */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.master-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    min-height: 320px;
}

@media (max-width: 768px) {
    .masters-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    
    .master-card {
        padding: 14px;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .master-card {
        padding: 12px;
        min-height: 280px;
    }
}

@media (max-width: 360px) {
    .masters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .master-card {
        padding: 10px;
        min-height: 260px;
    }
}

.master-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.master-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.master-card:hover::before {
    opacity: 1;
}

.master-card.top-card {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.master-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 2;
}

.master-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    margin-bottom: 16px;
}

.master-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

@media (max-width: 480px) {
    .master-avatar-wrapper {
        width: 70px;
        height: 70px;
        margin: 0 auto 10px;
    }
}

.master-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.master-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    border: 3px solid var(--primary-light);
}

@media (max-width: 480px) {
    .master-avatar-placeholder {
        font-size: 28px;
        border-width: 2px;
    }
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 5;
}

.status-indicator.status-online {
    background: #10B981;
}

.status-indicator.status-busy {
    background: #F59E0B;
}

.status-indicator.status-offline {
    background: #9CA3AF;
}

@media (max-width: 768px) {
    .master-avatar-wrapper .status-indicator,
    .status-indicator {
        width: 12px !important;
        height: 12px !important;
        border-width: 2px !important;
        bottom: 1px !important;
        right: 1px !important;
    }
}

@media (max-width: 480px) {
    .master-avatar-wrapper .status-indicator,
    .status-indicator {
        width: 11px !important;
        height: 11px !important;
        border-width: 2px !important;
        bottom: 1px !important;
        right: 1px !important;
    }
}

@media (max-width: 360px) {
    .master-avatar-wrapper .status-indicator,
    .status-indicator {
        width: 10px !important;
        height: 10px !important;
        border-width: 1.5px !important;
        bottom: 1px !important;
        right: 1px !important;
    }
}

.master-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.master-card .btn {
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.master-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .master-name {
        font-size: 15px;
        margin-bottom: 4px;
    }
}

.master-specialty {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.master-organization {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.master-organization i {
    color: var(--primary);
    font-size: 12px;
}

.master-organization-info,
.master-address-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    justify-content: center;
}

.master-organization-info i,
.master-address-info i {
    color: var(--primary);
    font-size: 11px;
    width: 14px;
}

.master-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.master-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.master-status-badge.status-available {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.master-status-badge.status-busy {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.master-status-badge.status-offline {
    background: rgba(113, 128, 150, 0.2);
    color: #4A5568;
    border: 1px solid rgba(113, 128, 150, 0.3);
    font-weight: 700;
}

/* ============================================
   APPOINTMENTS LIST
   ============================================ */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.appointment-card:hover {
    box-shadow: var(--shadow-hover);
}

.appointment-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.appointment-info {
    flex: 1;
}

.appointment-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.appointment-master {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.appointment-time {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.appointment-time i {
    color: var(--primary);
}

.appointment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.appointment-status.status-confirmed {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.appointment-status.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

/* ============================================
   RESPONSIVE DESIGN (360px first mobile)
   ============================================ */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-section {
        padding: 40px 16px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .hero-stats {
        gap: 24px;
        justify-content: space-around;
    }
    
    .hero-stat-number {
        font-size: 28px;
    }
    
    .hero-stat-label {
        font-size: 12px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-controls {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .section-top-salons,
    .section-top-masters {
        padding: 40px 16px;
    }
    
    .section {
        padding: 30px 16px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .carousel-container {
        padding: 0 10px;
    }
    
    .carousel-btn-prev {
        left: -10px;
    }
    
    .carousel-btn-next {
        right: -10px;
    }
    
    /* Carousel */
    .carousel-slide {
        width: calc(50% - 8px);
        min-width: calc(50% - 8px);
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-btn-prev {
        left: -18px;
    }
    
    .carousel-btn-next {
        right: -18px;
    }
    
    /* Organizations Grid */
    .organizations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .organization-card {
        padding: 16px;
    }
    
    .organization-logo,
    .organization-logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .organization-logo-placeholder {
        font-size: 24px;
    }
    
    .organization-name {
        font-size: 18px;
    }
    
    .organization-details {
        font-size: 13px;
    }
    
    /* Masters Grid - 2 в ряд на мобильном */
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .master-card {
        padding: 16px;
        min-height: auto;
    }
    
    .master-card-link {
        margin-bottom: 12px;
    }
    
    .master-avatar-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    .master-avatar-placeholder {
        font-size: 24px;
    }
    
    .master-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .master-specialty {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .master-organization {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .master-rating {
        font-size: 11px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .stars {
        font-size: 10px;
    }
    
    .rating-value,
    .reviews-count {
        font-size: 11px;
    }
    
    .master-status-badge {
        font-size: 10px;
        padding: 3px 8px;
        margin-bottom: 12px;
    }
    
    .master-card .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Organization Cards */
    .organization-card {
        padding: 16px;
        min-height: auto;
    }
    
    .organization-info {
        min-height: auto;
    }
    
    .organization-logo,
    .organization-logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .organization-logo-placeholder {
        font-size: 24px;
    }
    
    .organization-name {
        font-size: 18px;
    }
    
    /* Appointments */
    .appointment-card {
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .appointment-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .appointment-status {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .carousel-slide {
        width: calc(50% - 8px);
    }
    
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .organizations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-slide {
        width: calc(33.333% - 11px);
        min-width: 280px;
    }
    
    .masters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .organizations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-content {
        padding: 0 60px;
        max-width: 1200px;
    }
    
    .section {
        padding: 60px 60px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .section-top-salons,
    .section-top-masters {
        padding: 80px 60px;
    }
    
    .carousel-container {
        padding: 0 30px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .section-header {
        max-width: 1200px;
        margin: 0 auto 28px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (min-width: 1025px) {
    .carousel-slide {
        width: calc(25% - 12px);
        min-width: 300px;
    }
    
    .masters-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        max-width: 100%;
        margin: 0;
    }
    
    .organizations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        max-width: 100%;
        margin: 0;
    }
    
    .hero-content {
        padding: 0 80px;
        max-width: 100%;
        margin: 0;
    }
    
    .section {
        padding: 80px 80px;
        max-width: 100%;
        margin: 0;
    }
    
    .section-top-salons,
    .section-top-masters {
        padding: 100px 80px;
    }
    
    .carousel-container {
        padding: 0 40px;
        max-width: 100%;
        margin: 0;
    }
    
    .section-header {
        max-width: 100%;
        margin: 0 0 32px 0;
        padding: 0;
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 52px;
        max-width: 900px;
    }
    
    .hero-subtitle {
        font-size: 21px;
        max-width: 750px;
    }
    
    .hero-actions {
        gap: 20px;
    }
    
    .hero-actions .btn {
        min-width: 220px;
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 60px;
        margin-top: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .organization-card,
    .master-card {
        padding: 28px;
    }
    
    .carousel-slide .master-card,
    .carousel-slide .organization-card {
        min-height: 450px;
    }
}

@media (min-width: 1400px) {
    .masters-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 36px;
        max-width: 100%;
        margin: 0;
    }
    
    .organizations-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 36px;
        max-width: 100%;
        margin: 0;
    }
    
    .carousel-slide {
        width: calc(20% - 13px);
        min-width: 320px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 120px;
        margin: 0;
    }
    
    .section {
        max-width: 100%;
        padding: 100px 120px;
        margin: 0;
    }
    
    .section-top-salons,
    .section-top-masters {
        padding: 120px 120px;
    }
    
    .carousel-container {
        max-width: 100%;
        padding: 0 60px;
        margin: 0;
    }
    
    .section-header {
        max-width: 100%;
        margin: 0 0 40px 0;
    }
    
    .hero-title {
        font-size: 64px;
        max-width: 1000px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 24px;
        max-width: 850px;
        line-height: 1.7;
    }
    
    .hero-stat-number {
        font-size: 52px;
    }
    
    .hero-stat-label {
        font-size: 20px;
    }
    
    .hero-section {
        min-height: 650px;
        padding: 120px 0;
    }
    
    .hero-actions .btn {
        min-width: 240px;
        padding: 18px 36px;
        font-size: 17px;
    }
    
    .hero-stats {
        gap: 80px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .organization-card,
    .master-card {
        padding: 32px;
    }
    
    .carousel-slide .master-card,
    .carousel-slide .organization-card {
        min-height: 480px;
    }
}

@media (min-width: 1600px) {
    .section {
        max-width: 100%;
        padding: 120px 140px;
        margin: 0;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 140px;
        margin: 0;
    }
    
    .section-top-salons,
    .section-top-masters {
        padding: 140px 140px;
    }
    
    .carousel-container {
        max-width: 100%;
        padding: 0 80px;
        margin: 0;
    }
    
    .section-header {
        max-width: 100%;
        margin: 0 0 40px 0;
    }
    
    .masters-grid,
    .organizations-grid {
        max-width: 100%;
        gap: 40px;
        margin: 0;
    }
    
    .hero-title {
        font-size: 72px;
        max-width: 1100px;
    }
    
    .hero-subtitle {
        font-size: 26px;
        max-width: 950px;
    }
    
    .hero-section {
        min-height: 700px;
        padding: 140px 0;
    }
    
    .hero-actions .btn {
        min-width: 260px;
        padding: 20px 40px;
        font-size: 18px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .organization-card,
    .master-card {
        padding: 36px;
    }
    
    .carousel-slide .master-card,
    .carousel-slide .organization-card {
        min-height: 500px;
    }
}

/* Рекламные карточки */
.featured-card {
    position: relative;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 107, 0.5);
    }
}

.highlighted-card {
    position: relative;
}

.ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.ad-badge-small {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #6C63FF 0%, #8A85FF 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 700;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Адаптация рекламных карточек для мобильных */
@media (max-width: 768px) {
    .featured-card,
    .highlighted-card {
        border-width: 2px !important;
    }
    
    .ad-badge,
    .ad-badge-small {
        font-size: 8px;
        padding: 2px 6px;
    }
}

/* Страницы organizations и masters */
.organizations-page,
.masters-page {
    padding: 20px;
}

.organizations-header,
.masters-header {
    margin-bottom: 30px;
    text-align: center;
}

.organizations-header .section-title,
.masters-header .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.organizations-header .section-subtitle,
.masters-header .section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.featured-section {
    margin-bottom: 40px;
}

.featured-section .section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Адаптация для мобильных (360px first mobile) */
@media (max-width: 360px) {
    .organizations-page,
    .masters-page {
        padding: 12px;
    }
    
    .organizations-header .section-title,
    .masters-header .section-title {
        font-size: 24px;
    }
    
    .organizations-header .section-subtitle,
    .masters-header .section-subtitle {
        font-size: 14px;
    }
    
    .filters-card {
        padding: 16px !important;
    }
    
    .featured-section .section-header h2 {
        font-size: 20px;
    }
}

/* Адаптация для ПК */
@media (min-width: 1025px) {
    .organizations-page,
    .masters-page {
        padding: 40px;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .organizations-header .section-title,
    .masters-header .section-title {
        font-size: 40px;
    }
    
    .organizations-header .section-subtitle,
    .masters-header .section-subtitle {
        font-size: 18px;
    }
    
    .filters-card {
        padding: 24px !important;
    }
    
    .filters-row {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

