:root {
    --primary-color: #5b6ac8;
    --primary-hover: #4a58b3;
    --accent-color: #6366f1;
    --success-color: #10b981;
    --border-radius: 12px;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
}

/* Навигация */
.navbar {
    padding: 1rem 0;
}

.brand-icon i {
    font-size: 1.75rem;
}

.user-avatar i {
    font-size: 2rem;
}

.cashback-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Заголовок страницы */
.page-header h1 {
    color: #1d1d1f;
    font-weight: 600;
}

/* Прогресс-бар записи */
.appointment-progress {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: "✓";
}

.step-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    max-width: 80px;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 2rem;
}

.progress-step.completed + .progress-line {
    background: var(--primary-color);
}

/* Табы */
.custom-tabs {
    background: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 0.25rem;
}

.custom-tabs .nav-link {
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-tabs .nav-link:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.custom-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.custom-tabs .nav-link i {
    font-size: 1.125rem;
}

.btn-appointment {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Карточки данных */
.data-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 1rem;
}

.data-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.data-card.selected {
    border-color: var(--primary-color);
    background: #f9fafb;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-badge.active {
    background: #dcfce7;
    color: #059669;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
}

.card-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.services-available {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.services-count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
}

/* Кнопки */
.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 106, 200, 0.3);
}

.btn-continue {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    display: block;
    padding: 1rem;
    font-size: 1rem;
}

/* Футер */
.footer {
    background: white;
}

.contact-info a {
    color: #1d1d1f;
    font-size: 1.125rem;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-tabs {
        flex-direction: column;
    }
    
    .custom-tabs .nav-item.ms-auto {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
    
    .btn-appointment {
        width: 100%;
        justify-content: center;
    }
    
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .progress-step {
        margin-bottom: 1rem;
    }
    
    .user-info {
        margin-bottom: 1rem;
    }
}

/* Спиннер */
.spinner-border {
    width: 3rem;
    height: 3rem;
}
