@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

/* Все шрифты без засечек */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* Специально для заголовков оставляем Montserrat */
h1, h2, h3, .cabinet-title, .auth-title, .floating-title {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 800; /* Для заголовков жирнее */
}

/* Стили для личного кабинета в стиле glass */
.cabinet-page {
    height: 100vh;
    background: linear-gradient(135deg, #1a1f2e, #0f172a);
    padding: 80px 2rem 0 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Заголовок страницы в стиле floating-title */
.cabinet-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.cabinet-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f0f8ff 50%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    animation: premiumFloat 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0;
    position: relative;
    display: inline-block;
}

.cabinet-header h1::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: -1;
    color: transparent;
    background: rgba(0, 0, 0, 0.2);
    -webkit-background-clip: text;
    background-clip: text;
    filter: blur(3px);
    animation: shadowFloat 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Навигация в кабинете */
.cabinet-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cabinet-nav-item {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cabinet-nav-item:hover,
.cabinet-nav-item.active {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-aqua-primary);
    box-shadow:
        0 15px 30px rgba(28, 150, 166, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Профиль пользователя - в стиле glass-card */
.user-profile {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 2.5rem;
    transition: transform 0.4s ease;
}

.user-profile:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-aqua-primary), var(--color-brand-fitness));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(28, 150, 166, 0.4);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-info {
    flex: 1;
}

.user-info h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0.25rem 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.user-rating {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* Контентные блоки */
.cabinet-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.cabinet-content.active {
    display: block;
}

/* Заглушки для будущих разделов */
.placeholder-content {
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.placeholder-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.placeholder-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cabinet-page {
        padding: 70px 1rem 1rem 1rem;
    }

    .cabinet-header h1 {
        font-size: 2rem;
    }

    .user-profile {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .user-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .user-info h2 {
        font-size: 1.6rem;
    }

    .cabinet-nav-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cabinet-page {
        padding: 60px 0.8rem 0.8rem 0.8rem;
    }

    .cabinet-header h1 {
        font-size: 1.6rem;
    }
}

/* Анимации */
@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0) rotateX(5deg);
        filter:
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.2))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.1))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
        filter:
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.15))
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    }
}

@keyframes shadowFloat {
    0%, 100% {
        transform: translateY(2px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.7;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для рейтингов */
.rating-GREEN {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.rating-YELLOW {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.3);
}

.rating-RED {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.rating-BLACK {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.rating-BANNED {
    background: rgba(0, 0, 0, 0.5);
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.3);
}

/* Стили для выбора клиента */
.profile-section {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.profile-section-title {
    font-size: 1.2rem;
    color: var(--color-aqua-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.clients-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.client-card.active {
    border-color: var(--color-aqua-primary);
    background: rgba(255, 255, 255, 0.3);
}

.client-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-aqua-primary), #2a9d8f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

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

.client-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
}

.client-card-phone {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
}

.client-card-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.client-card-badge {
    background: var(--color-aqua-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Карточка профиля */
.profile-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: white;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-aqua-primary);
}

.profile-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}