/* Основные стили приложения PAX */

/* Предотвращение зума в Telegram Web App */
html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Переопределяем любые линии от Telegram Mini App */
.screen-header,
.profile-header-section,
.header,
.container,
body,
html {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Стили для прогресса загрузки */
.upload-progress {
    display: none;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background-color: #f65446;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Стили для статуса соединения */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.connection-status.connected {
    background: rgba(76, 175, 80, 0.9);
}

.connection-status.disconnected {
    background: rgba(244, 67, 54, 0.9);
}

.connection-status.error {
    background: rgba(255, 152, 0, 0.9);
}

body, html {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    max-width: 100%;
    overflow: hidden;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border: none;
    outline: none;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* Контейнер приложения */
.container {
    max-width: 100%;
    margin: 0;
    background: white;
    height: 100vh;
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* Загрузочный экран */
.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f65446;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 16px;
    color: #666;
    text-align: center;
}

/* Основной контент */
.main-content {
    height: 100vh;
    background: white;
    overflow: hidden;
}

/* Экран */
.screen {
    display: none;
    height: 100vh;
    background: white;
    overflow: hidden;
}

.screen.active {
    display: block;
}

/* Заглушка экрана */
.screen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 210px);
    padding: 40px 20px;
    text-align: center;
}

.placeholder-content {
    max-width: 400px;
    width: 100%;
}

.placeholder-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.placeholder-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.placeholder-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.placeholder-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.placeholder-actions .btn i {
    font-size: 14px;
}

/* Дефолтный аватар */
.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.avatar-placeholder i {
    font-size: 18px;
}

/* Аватар пользователя */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Аватар водителя */
.driver-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.driver-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Аватар в отзывах */
.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.reviewer-avatar:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Заголовок экрана */
.screen-header {
    background: white;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    border: none;
    outline: none;
    box-shadow: none;
}

.screen-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

/* Контент экрана */
.screen-content {
    padding: 16px;
    flex: 1;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

/* Форма поиска */
.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.search-field-group {
    margin-bottom: 15px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 15px;
    height: 55px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.search-input-wrapper:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    height: 100%;
    padding: 0 10px;
    text-align: center;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
    text-align: center;
}

/* Специальные стили для поля даты */


/* Центрирование иконок */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.swap-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    z-index: 1;
}

/* Адаптивность для разных экранов */
@media screen and (max-width: 480px) {
    .search-form {
        padding: 15px;
        max-width: 100%;
    }
    
    .search-input-wrapper {
        height: 50px;
    }
    
    .search-input {
        font-size: 14px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .search-form {
        max-width: 450px;
    }
}

@media screen and (min-width: 769px) {
    .search-form {
        max-width: 500px;
    }
    
    .search-input-wrapper {
        height: 60px;
    }
    
    .search-input {
        font-size: 18px;
    }
}

.search-form .form-group {
    margin-bottom: 16px;
}

.search-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.search-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-form .form-control:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.search-form .form-control.error {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.search-form .form-control.success {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Результаты поиска */
.search-results {
    margin-top: 20px;
}

/* Нижняя навигация */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 4px 0;
    max-width: 100%;
    margin: 0;
    z-index: 100;
    height: 90px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    padding: 0 8px;
    flex: 1;
    transition: color 0.3s;
    min-width: 0;
    min-height: 0;
    user-select: none;
    justify-content: flex-start;
    line-height: 1.3;
    word-break: break-word;
    padding-top: 8px;
}

.nav-item div {
    text-align: center;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1;
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item.active {
    color: #4e89bf;
}

.nav-item.active .nav-icon {
    color: #4e89bf;
}

.nav-icon {
    font-size: 28px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
}

/* Контейнер приложения */
.container {
    max-width: 100%;
    margin: 0;
    background: white;
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px;
}

/* Шапка */
.header {
    background-color: #fff;
    color: #f65446;
    padding: 15px;
    text-align: center;
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(246, 84, 70, 0.08);
    opacity: 0;
    animation: header-fade-slide 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}

.back-btn {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    transition: color 0.2s, text-shadow 0.2s;
    cursor: pointer;
}

.header-title:hover {
    color: #d13a2f;
    text-shadow: 0 2px 8px rgba(246, 84, 70, 0.10);
}

.header button, .header a {
    transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}

.header button:hover, .header a:hover {
    color: #fff;
    background: #f65446;
    box-shadow: 0 2px 8px rgba(246, 84, 70, 0.15);
}

/* Основной контент */
.content {
    padding: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #202124;
}

/* Карточки */
.card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    font-size: 16px;
}

.card-body {
    padding: 16px;
}

/* Кнопки */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    margin: 10px 0;
    transition: all 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #f65446 0%, #e53e3e 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #d32f2f 100%);
}

.btn-secondary {
    background-color: #3895e5;
    color: white;
    border: 1px solid #3895e5;
}

.edit-ride-btn {
    background-color: #3895e5 !important;
    color: white !important;
    border: 1px solid #3895e5 !important;
}

.btn-outline {
    background: transparent;
    color: #f65446;
    border: 1px solid #f65446;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
    display: inline-block;
}

/* Формы */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #5f6368;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 18px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s, box-shadow 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.form-control:focus {
    border-color: #f65446;
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1);
}

.form-control[readonly] {
    cursor: pointer;
    background-color: #f8f9fa;
}

.form-control[readonly]:hover {
    border-color: #f65446;
    background-color: #ffe6e6;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-char-counter {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-top: 4px;
    font-weight: 500;
}

/* Список */
.list {
    list-style: none;
}

.list-item {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Рейтинг */
.rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #ffc107;
    font-size: 18px;
    margin-right: 8px;
}

.rating-value {
    font-weight: 500;
    font-size: 18px;
}

/* Навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 8px 0;
    max-width: 100%;
    margin: 0;
    z-index: 100;
    height: 90px;
}

/* Вспомогательные классы */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.hidden {
    display: none;
}

.flex-1 {
    flex: 1;
}

.w-100 {
    width: 100%;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInFromTop {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInFromLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInFromRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes bounceIn {
    0% { 
        opacity: 0; 
        transform: scale(0.3); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
    70% { 
        transform: scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes rotateIn {
    from { 
        opacity: 0; 
        transform: rotate(-180deg) scale(0.3); 
    }
    to { 
        opacity: 1; 
        transform: rotate(0deg) scale(1); 
    }
}

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

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

/* Применение анимаций к элементам */
.screen {
    animation: fadeIn 0.4s ease-out;
}

.ride-card, .booking-card, .history-card {
    animation: slideInFromBottom 0.5s ease-out;
    transition: all 0.3s ease;
}

.ride-card:hover, .booking-card:hover, .history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tab-button {
    transition: all 0.3s ease;
}

.tab-button:hover {
    transform: translateY(-1px);
}

.tab-button.active {
    animation: scaleIn 0.3s ease-out;
}

.nav-item {
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item.active {
    animation: bounceIn 0.4s ease-out;
}

.btn {
    transition: all 0.3s ease;
}

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

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

.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: scale(1.02);
}

.modal-content {
    animation: scaleIn 0.3s ease-out;
}

.profile-avatar-new {
    transition: all 0.3s ease;
}

.profile-avatar-new:hover {
    transform: scale(1.05);
}

.profile-tab-new {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-tab-new:hover {
    transform: translateY(-1px);
}

.profile-tab-new.active {
    animation: slideInFromBottom 0.3s ease-out;
}

.loading-spinner {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

.search-btn, .create-ride-btn {
    transition: all 0.3s ease;
}

.search-btn:hover, .create-ride-btn:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.search-btn:active, .create-ride-btn:active {
    transform: translateY(0);
}

/* Анимации для состояний загрузки */
.loading-fade {
    animation: fadeIn 0.5s ease-out;
}

.loading-slide {
    animation: slideInFromBottom 0.5s ease-out;
}

/* Анимации для уведомлений */
.notification {
    animation: slideInFromRight 0.4s ease-out;
}

.notification.success {
    animation: slideInFromRight 0.4s ease-out, pulse 2s ease-in-out infinite;
}

.notification.error {
    animation: slideInFromRight 0.4s ease-out, shake 0.5s ease-in-out;
}

/* Анимации для модальных окон */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.3s ease-out;
}

/* Анимации для карточек с задержкой */
.ride-card:nth-child(1) { animation-delay: 0.1s; }
.ride-card:nth-child(2) { animation-delay: 0.2s; }
.ride-card:nth-child(3) { animation-delay: 0.3s; }
.ride-card:nth-child(4) { animation-delay: 0.4s; }
.ride-card:nth-child(5) { animation-delay: 0.5s; }

.booking-card:nth-child(1) { animation-delay: 0.1s; }
.booking-card:nth-child(2) { animation-delay: 0.2s; }
.booking-card:nth-child(3) { animation-delay: 0.3s; }
.booking-card:nth-child(4) { animation-delay: 0.4s; }
.booking-card:nth-child(5) { animation-delay: 0.5s; }

.history-card:nth-child(1) { animation-delay: 0.1s; }
.history-card:nth-child(2) { animation-delay: 0.2s; }
.history-card:nth-child(3) { animation-delay: 0.3s; }
.history-card:nth-child(4) { animation-delay: 0.4s; }
.history-card:nth-child(5) { animation-delay: 0.5s; }

/* Анимации для иконок */
.nav-icon {
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    animation: bounceIn 0.4s ease-out;
}

/* Анимации для статусов */
.status-active {
    animation: pulse 2s ease-in-out infinite;
}

/* Анимации для кнопок действий */
.ride-actions .btn, .booking-actions .btn {
    transition: all 0.3s ease;
}

.ride-actions .btn:hover, .booking-actions .btn:hover {
    transform: scale(1.05);
}

/* Анимации для форм */
.form-group {
    animation: fadeInUp 0.4s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Анимации для профиля */
.profile-check-item {
    animation: slideInFromLeft 0.4s ease-out;
}

.profile-check-item:nth-child(1) { animation-delay: 0.1s; }
.profile-check-item:nth-child(2) { animation-delay: 0.2s; }
.profile-check-item:nth-child(3) { animation-delay: 0.3s; }
.profile-check-item:nth-child(4) { animation-delay: 0.4s; }

/* Анимации для пустых состояний */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 40px 20px;
    animation: fadeInUp 0.6s ease-out;
}

.empty-state-icon {
    margin-bottom: 24px;
    animation: rotateIn 0.8s ease-out;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.empty-state-description {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.4;
    max-width: 280px;
}

/* Стили для иконки автомобиля в пустом состоянии */
.empty-state-car-icon {
    width: 120px;
    height: 120px;
    color: #dadce0;
    animation: emptyStateIcon 2s ease-in-out infinite;
}

.empty-state-car-icon path {
    fill: currentColor;
}

@keyframes emptyStateIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .empty-state {
        min-height: 50vh;
        padding: 32px 16px;
    }
    
    .empty-state-icon {
        margin-bottom: 20px;
    }
    
    .empty-state-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .empty-state-description {
        font-size: 14px;
        max-width: 240px;
    }
    
    .empty-state-car-icon {
        width: 100px;
        height: 100px;
    }
}

/* Анимации для заголовков */
.screen-title {
    animation: slideInFromTop 0.5s ease-out;
}

.screen-description {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
}

/* Анимации для результатов поиска */
.results-container {
    animation: fadeIn 0.5s ease-out;
}

/* Анимации для навигации */
.bottom-nav {
    animation: slideUp 0.4s ease-out;
}

/* Анимации для загрузки */
.loading-container {
    animation: fadeIn 0.3s ease-out;
}

/* Анимации для ошибок */
.error-message {
    animation: shake 0.5s ease-in-out;
}

/* Анимации для успешных действий */
.success-message {
    animation: bounceIn 0.5s ease-out;
}

/* Загрузка */
.loader {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f65446;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Адаптивные стили */
@media (max-width: 480px) {
    .container {
        padding-bottom: 100px;
    }
    
    .content {
        padding: 12px;
    }
    .bottom-nav {
        height: 100px;
        padding: 8px 0 6px 0;
    }
    .nav-item {
        font-size: 14px;
        padding: 0 6px;
        padding-top: 6px;
        justify-content: flex-start;
    }
    .nav-item div {
        font-size: 14px;
        margin-top: 0;
        line-height: 1.3;
    }
    .nav-icon {
        font-size: 28px;
        width: 36px;
        height: 32px;
        margin-bottom: 0;
    }
}

/* --- Новый профиль --- */
.profile-new {
    background: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s;
}

.profile-main-block {
    flex: 1;
    padding: 20px;
    height: calc(100vh - 80px); /* Вычитаем высоту нижней навигации */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Дополнительный отступ снизу для нижней навигации */
    display: flex;
    flex-direction: column;
}

/* Стили для скроллбара в профиле */
.profile-main-block::-webkit-scrollbar {
    width: 6px;
}

.profile-main-block::-webkit-scrollbar-track {
    background: transparent;
}

.profile-main-block::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.profile-main-block::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Стили для центрированной загрузки профиля */
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    z-index: 1000;
}

.profile-loading .loading-spinner {
    margin-bottom: 20px;
}

.profile-loading p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Стили для центрированной загрузки в экране "Мои поездки" */
.rides-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    z-index: 1000;
}

.rides-loading .loading-spinner {
    margin-bottom: 20px;
}

.rides-loading p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0;
}

.profile-header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 0 18px;
    position: relative;
    border: none;
    outline: none;
    box-shadow: none;
}

.profile-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.profile-menu-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    padding: 8px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 50%;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    z-index: 100;
    pointer-events: auto;
}

.profile-menu-button:hover {
    color: #f65446;
    background: rgba(246, 84, 70, 0.1);
}

.profile-refresh-button {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    padding: 8px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.profile-refresh-button:hover {
    color: #f65446;
    background: rgba(246, 84, 70, 0.1);
    transform: scale(1.05);
}

.profile-refresh-button:active {
    transform: scale(0.95);
}

.profile-refresh-button.loading {
    animation: spin 1s linear infinite;
    pointer-events: none;
}

.profile-close-button {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    padding: 8px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    margin-left: 4px;
    flex-shrink: 0;
}

.profile-close-button:hover {
    color: #f65446;
    background: rgba(246, 84, 70, 0.1);
    transform: scale(1.05);
}

.profile-close-button:active {
    transform: scale(0.95);
}

.profile-avatar-new {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #888;
    margin-bottom: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-avatar-new:hover {
    transform: scale(1.05);
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #f65446;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(246, 84, 70, 0.3);
    transition: transform 0.2s ease;
}

.profile-avatar-edit:hover {
    transform: scale(1.1);
}

.profile-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-main-name {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    text-align: center;
}

.profile-balance-rating-new {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 12px;
    margin: 20px 0;
    border-radius: 12px;
}

.profile-balance-item,
.profile-rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-rating-item {
    margin-top: 20px;
}

.profile-balance-label, .profile-rating-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-balance-value-new {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
}

.profile-currency {
    font-size: 14px;
    color: #666;
    margin-left: 2px;
}

.profile-rating-value-new {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
}

.profile-tabs-new {
    display: flex;
    background: #f8f9fa;
    padding: 4px;
    margin: 20px 0;
    border-radius: 12px;
}

.profile-tab-new {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-tab-new.active {
    background: white;
    color: #3895e5;
}

.profile-tab-new:hover:not(.active) {
    color: #333;
}

.profile-tab-new:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-checklist-block {
    background: #f8f9fa;
    padding: 12px;
    margin: 20px 0;
    border-radius: 12px;
}

.profile-check-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #333;
}

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

.profile-check-icon {
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.profile-section-block {
    margin: 20px 0;
    padding: 0 18px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.profile-section-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.profile-info-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.profile-info-value {
    color: #333;
    font-size: 14px;
    font-weight: 400;
}

.profile-car-details-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-car-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.profile-car-detail-label {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.profile-car-detail-value {
    color: #333;
    font-size: 13px;
    font-weight: 400;
}

.profile-preferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

.profile-preference-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.profile-preference-item .preference-icon {
    margin-right: 8px;
    color: #f65446;
    font-size: 16px;
}

.profile-preference-item .preference-text {
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
    padding: 0 18px;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.profile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.profile-menu-content {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.profile-menu-item:hover {
    color: #f65446;
}

.profile-menu-item i {
    margin-right: 12px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.profile-car-photo-block {
    margin: 20px 0;
    text-align: center;
    padding: 0 18px;
}

.profile-car-photo-new {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-car-info-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.profile-car-plate-new {
    font-weight: 600;
    color: #222;
    margin-top: 4px;
}

.profile-check-item[data-status="verified"] .profile-check-icon {
    color: #4caf50;
}

.profile-check-item[data-status="pending"] .profile-check-icon {
    color: #ff9800;
}

.profile-check-item[data-status="rejected"] .profile-check-icon {
    color: #f44336;
}

/* Стили для табов контента */
.profile-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex: 1;
    overflow-y: auto;
}

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

/* Стили для секции "Учетная запись" */
.profile-account-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

.profile-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.profile-account-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.profile-account-value {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

/* Стили для секции "Документы" */
.profile-documents-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

.profile-document-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.profile-document-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f65446;
    font-size: 16px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-document-info {
    flex: 1;
}

.profile-document-name {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    margin-bottom: 2px;
}

.profile-document-status {
    font-size: 13px;
    font-weight: 500;
}

.profile-document-date {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}

/* Стили для вкладки автомобиля */
.profile-car-section {
    padding: 20px 0;
}

.profile-car-photo-container {
    margin-bottom: 20px;
}

.profile-car-photo-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-car-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-car-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-car-photo-preview:hover .profile-car-photo-overlay {
    opacity: 1;
}

.profile-car-photo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-car-photo-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-car-photo-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.profile-car-photo-btn.delete {
    background: #ff4444;
    color: white;
}

.profile-car-photo-btn.delete:hover {
    background: #cc3333;
}

.profile-car-info-section {
    padding: 20px 0;
}

.profile-car-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-car-status-label {
    font-weight: 600;
    color: #333;
}

.profile-car-status-value {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.profile-car-details {
    margin-bottom: 20px;
}

.profile-car-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-car-detail-item:last-child {
    border-bottom: none;
}

.profile-car-detail-label {
    font-weight: 500;
    color: #666;
}

.profile-car-detail-value {
    font-weight: 600;
    color: #333;
}

.profile-car-actions {
    padding: 20px 0;
}

.profile-car-action-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #f65446;
    border-radius: 8px;
    background: white;
    color: #f65446;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-car-action-btn:hover {
    background: #f65446;
    color: white;
}

/* Стили для секции "История" */
.profile-history-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

.profile-history-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.profile-history-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f65446;
    font-size: 16px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.profile-history-title {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    margin-bottom: 2px;
}

.profile-history-desc {
    font-size: 13px;
    color: #666;
}

.profile-history-date {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}

@media (max-width: 480px) {
    .profile-new {
        padding: 0;
    }
    
    .profile-main-block {
        padding: 16px;
        height: calc(100vh - 80px); /* Вычитаем высоту нижней навигации */
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 100px; /* Дополнительный отступ снизу для нижней навигации */
    }
    
    /* Стили для скроллбара в профиле на мобильных устройствах */
    .profile-main-block::-webkit-scrollbar {
        width: 4px;
    }
    
    .profile-main-block::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .profile-main-block::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }
    
    .profile-main-block::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.25);
    }
    
    .profile-header-section {
        padding: 16px 20px;
    }
    
    .profile-menu-button {
        width: 40px;
        height: 40px;
    }
    
    .profile-refresh-button {
        width: 36px;
        height: 36px;
    }
    
    .profile-close-button {
        width: 36px;
        height: 36px;
    }
    
    .profile-car-photo-new {
        width: 60px;
        height: 60px;
    }
    
    .profile-avatar-edit {
        width: 24px;
        height: 24px;
    }
    
    .profile-tab-new {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .profile-account-item,
    .profile-document-item,
    .profile-history-item {
        padding: 6px 0;
    }
    .profile-document-icon,
    .profile-history-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 6px;
    }
    .profile-document-name,
    .profile-history-title {
        font-size: 13px;
    }
    .profile-document-status,
    .profile-history-desc,
    .profile-document-date,
    .profile-history-date {
        font-size: 11px;
    }
    .profile-avatar-new {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    .profile-main-name {
        font-size: 18px;
    }
    .profile-balance-rating-new {
        padding: 10px;
        margin: 8px 0;
    }
    .profile-balance-value-new,
    .profile-rating-value-new {
        font-size: 16px;
    }
    .profile-balance-label,
    .profile-rating-label {
        font-size: 11px;
    }
    .profile-tabs-new {
        margin: 8px 0;
    }
    .profile-checklist-block {
        padding: 10px;
        margin: 8px 0;
    }
    .profile-check-item {
        padding: 6px 0;
        font-size: 13px;
    }
    .profile-section-block {
        margin: 8px 0;
        padding: 0 12px;
    }
    .profile-section-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .profile-section-text {
        font-size: 13px;
    }
    .stats-grid {
        padding: 0 12px;
    }
    .profile-car-photo-block {
        padding: 0 12px;
    }
}



/* Стили для экрана поиска поездок */
.find-ride-screen {
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.search-section {
    flex: 1;
    padding: 0;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.search-form-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 20px 8px 48px 8px;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.search-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.search-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.search-field-group {
    margin-bottom: 15px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 15px;
    height: 55px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.search-input-wrapper:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    height: 100%;
    padding: 0 10px;
    text-align: center;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
    text-align: center;
}

/* Улучшенные стили для поля даты - универсальные для всех платформ */
.search-input-wrapper .search-input[type="date"] {
    text-align: center !important;
    padding: 0 !important;
    width: 100%;
    /* Принудительное центрирование для всех браузеров */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Дополнительные стили для Android */
    -webkit-text-align: center;
    -moz-text-align: center;
    text-align: center;
    /* Убираем стандартные стили браузера */
    background: transparent;
    border: none;
    outline: none;
    /* Принудительное центрирование текста */
    text-align-last: center;
    -webkit-text-align-last: center;
    -moz-text-align-last: center;
    /* Дополнительные стили для принудительного центрирования на Android */
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* Принудительное центрирование через flexbox */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    /* Дополнительные стили для Android WebView */
    -webkit-text-align: center !important;
    -moz-text-align: center !important;
    text-align: center !important;
    text-align-last: center !important;
    -webkit-text-align-last: center !important;
    -moz-text-align-last: center !important;
    /* Переопределяем flexbox родительского контейнера */
    flex: 1 !important;
    min-width: 0 !important;
    /* Принудительное центрирование текста внутри flexbox */
    text-align: center !important;
    -webkit-text-align: center !important;
    -moz-text-align: center !important;
    /* Убираем все отступы */
    padding: 0 !important;
    margin: 0 !important;
}

.search-input-wrapper .search-input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    /* Убираем стандартные стили */
    background: transparent;
    border: none;
    opacity: 0.7;
}

.search-input-wrapper .search-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Специальные стили для Firefox */
.search-input-wrapper .search-input[type="date"]::-moz-calendar-picker-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

/* Специальные стили для родительского контейнера с полем даты */
.search-input-wrapper:has(.search-input[type="date"]) {
    justify-content: center !important;
    align-items: center !important;
}

/* Альтернативный селектор для браузеров без поддержки :has() */
.search-input-wrapper .search-input[type="date"] {
    /* Принудительное центрирование в родительском flexbox */
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    -webkit-text-align: center !important;
    -moz-text-align: center !important;
    /* Убираем все отступы */
    padding: 0 !important;
    margin: 0 !important;
    /* Принудительное центрирование текста */
    text-align-last: center !important;
    -webkit-text-align-last: center !important;
    -moz-text-align-last: center !important;
}

/* Адаптивность для разных экранов */
@media screen and (max-width: 480px) {
    .search-form {
        padding: 15px;
        max-width: 100%;
    }
    
    .search-input-wrapper {
        height: 50px;
    }
    
    .search-input {
        font-size: 14px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .search-form {
        max-width: 450px;
    }
}

@media screen and (min-width: 769px) {
    .search-form {
        max-width: 500px;
    }
    
    .search-input-wrapper {
        height: 60px;
    }
    
    .search-input {
        font-size: 18px;
    }
}

.search-input-wrapper:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: white;
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: #6c757d;
    font-size: 16px;
    flex-shrink: 0;
}

.search-input-wrapper .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 16px 16px 0;
    font-size: 16px;
    color: #333;
    border-radius: 0;
    box-shadow: none;
    height: 56px;
    text-align: center;
    padding-left: 16px;
}

.search-input-wrapper .search-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.search-input-wrapper .search-input::placeholder {
    color: #6c757d;
    text-align: center;
}

/* Стили для полей времени в экране поиска */
.search-input-wrapper .time-inputs {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.search-input-wrapper .time-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 8px;
    font-size: 16px;
    color: #333;
    text-align: center;
    border-radius: 0;
    box-shadow: none;
    height: 56px;
    max-width: 60px;
}

.search-input-wrapper .time-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.search-input-wrapper .time-input::placeholder {
    color: #6c757d;
}

.search-input-wrapper .time-separator {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    padding: 0 4px;
}

.swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
}

.swap-icon:hover {
    color: #007bff;
    transform: scale(1.1);
    background: rgba(0, 123, 255, 0.1);
}

.swap-icon:active {
    transform: scale(0.95);
}

.swap-icon.swapping {
    pointer-events: none;
    color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

.swap-icon i {
    transition: transform 0.3s ease;
}

.search-form .form-label {
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    margin: 0;
}

.search-form .form-control {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 18px;
    font-size: 16px;
    background: white;
    height: auto;
}

/* Стили для контрола пассажиров */
.passengers-control {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.passenger-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
    border: 1px solid #ddd !important;
    background: white !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

.passenger-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.passenger-btn:active {
    background: #e0e0e0;
}

.passenger-input {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    min-width: 90px;
    height: 44px;
}

.search-button-container {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 12px 8px;
    background: white;
    z-index: 100;
}

.search-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: #f65446 !important;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 56px;
    box-shadow: none;
}

.search-btn:hover {
    background: #e53e3e !important;
    transform: translateY(-1px);
}

.search-btn:active {
    background: #d32f2f !important;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .find-ride-screen {
        padding: 0;
    }
    
    .search-section {
        padding: 8px 6px;
        padding-bottom: 80px;
    }
    
    .search-form {
        gap: 30px;
    }
    
    .search-field-group {
        margin-bottom: 12px;
    }
    
    .search-input-wrapper {
        border-radius: 10px;
    }
    
    .input-icon {
        width: 52px;
        height: 52px;
        font-size: 14px;
    }
    
    .swap-icon {
        width: 52px;
        height: 52px;
        font-size: 12px;
    }
    
    .search-input-wrapper .search-input {
        padding: 14px 14px 14px 0;
        font-size: 14px;
        height: 52px;
        text-align: center;
        padding-left: 14px;
    }
    
    .search-input-wrapper .time-input {
        padding: 14px 6px;
        font-size: 14px;
        height: 52px;
        max-width: 50px;
    }
    
    .search-input-wrapper .time-separator {
        font-size: 14px;
        padding: 0 2px;
    }
    
    .search-btn {
        height: 52px;
        padding: 10px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .search-header {
        align-items: stretch;
    }
    
    .search-inputs {
        align-self: stretch;
    }
    
    .search-button-container {
        bottom: 70px;
        padding: 8px 6px;
    }
}

/* Стили для модального окна результатов поиска */
.results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Сводка результатов в модальном окне */
.results-summary {
    margin-bottom: 16px;
}

.results-count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.results-date {
    margin-bottom: 20px;
}

.results-date-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Карточки поездок в модальном окне */
.ride-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    cursor: pointer;
}

.ride-card:hover {
    transform: translateY(-1px);
}

.ride-times {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.time-departure,
.time-arrival {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.location {
    text-align: center;
}

.city {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.address {
    font-size: 12px;
    color: #666;
}

.ride-route-line {
    position: relative;
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-dots {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f65446;
}

.dot.start {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dot.end {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.route-line {
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #dadce0;
    transform: translateY(-50%);
}

.ride-driver {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 20px;
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

.driver-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Ограничения только для карточек поездок */
.ride-card-new .driver-name,
.booking-card-new .driver-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ride-price {
    font-size: 18px;
    font-weight: 600;
    color: #f65446;
    min-width: 80px;
    text-align: right;
}

/* Адаптивность для модального окна */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .ride-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .ride-times {
        gap: 12px;
    }
    
    .time-departure {
        min-width: 70px;
    }
    
    .time {
        font-size: 16px;
    }
    
    .city {
        font-size: 13px;
    }
    
    .address {
        font-size: 11px;
    }
    
    .ride-driver {
        margin: 0 16px;
    }
    
    .driver-avatar {
        width: 36px;
        height: 36px;
    }
    
    .driver-name {
        font-size: 13px;
    }
    
    .ride-price {
        font-size: 16px;
        min-width: 70px;
    }
}

/* Стили для состояния ошибки профиля */
.profile-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 300px;
}

.profile-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.profile-error-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.profile-error-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 300px;
}

.profile-error-retry,
.profile-error-back {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 5px;
}

.profile-error-retry {
    background-color: #f65446;
    color: white;
}

.profile-error-retry:hover {
    background-color: #e54d3f;
}

.profile-error-back {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.profile-error-back:hover {
    background-color: #e8e8e8;
}

/* Улучшенные стили для ошибок профиля */
.profile-error-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-error-retry,
.profile-error-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.retry-icon,
.back-icon {
    font-size: 16px;
}

.profile-error-help {
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.profile-error-help p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.support-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.support-link:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .profile-error-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .profile-error-retry,
    .profile-error-back {
        width: 100%;
        min-width: auto;
    }
    
    .profile-error-help {
        margin-top: 16px;
        padding: 12px;
    }
    
    .profile-error-help p {
        font-size: 12px;
    }
}

/* ===== SKELETON LOADER STYLES ===== */

/* Базовые стили для skeleton элементов */
.skeleton-text,
.skeleton-circle,
.skeleton-rectangle,
.skeleton-dots {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Анимация пульсации для skeleton */
.skeleton-animate {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton для текста */
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

/* Skeleton для имени пользователя */
.skeleton-name {
    height: 24px;
    width: 120px;
    margin-top: 8px;
}

/* Skeleton для заголовков */
.skeleton-title {
    height: 20px;
    width: 80px;
    margin-bottom: 12px;
}

/* Skeleton для лейблов */
.skeleton-label {
    height: 14px;
    width: 60px;
    margin-bottom: 4px;
}

/* Skeleton для значений */
.skeleton-value {
    height: 18px;
    width: 40px;
}

/* Skeleton для линий текста */
.skeleton-line {
    height: 14px;
    width: 100%;
}

.skeleton-line-short {
    width: 70%;
}

/* Skeleton для кругов (аватар, иконки) */
.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.skeleton-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Skeleton для прямоугольников (фото автомобиля) */
.skeleton-rectangle {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Skeleton для кнопок */
.skeleton-button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton для точек меню */
.skeleton-dots {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    position: relative;
}

.skeleton-dots::before,
.skeleton-dots::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: inherit;
}

.skeleton-dots::before {
    top: -8px;
}

.skeleton-dots::after {
    top: 8px;
}

/* Skeleton для табов */
.skeleton-tab {
    height: 40px;
    width: 80px;
    border-radius: 20px;
    margin-right: 8px;
}

.skeleton-tab:last-child {
    margin-right: 0;
}

/* Skeleton для элементов проверки */
.skeleton-check-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

/* Адаптивность для skeleton */
@media (max-width: 480px) {
    .skeleton-name {
        width: 100px;
        height: 20px;
    }
    
    .skeleton-title {
        width: 60px;
        height: 18px;
    }
    
    .skeleton-tab {
        width: 60px;
        height: 36px;
    }
    
    .skeleton-rectangle {
        height: 100px;
    }
    
    .skeleton-circle {
        width: 50px;
        height: 50px;
    }
}

/* Стили для первого экрана создания поездки */
.step1-form {
    position: relative;
    padding: 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.step1-form .form-group {
    margin-bottom: 60px;
    animation: fadeInUp 0.3s ease;
}

.step1-form .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.step1-form .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.location-input {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.location-input:focus {
    background-color: white;
    border-color: #f65446;
    box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1);
    outline: none;
}

.location-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.next-button-container {
    position: fixed;
    bottom: 100px;
    right: 0;
    z-index: 100;
}

.btn-next-step {
    width: 56px;
    height: 56px;
    background-color: #ff6b35;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next-step:hover {
    background-color: #ff5722;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-next-step:active {
    transform: scale(0.95);
}

.btn-next-step:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-next-step i {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .step1-form {
        padding: 16px;
        height: calc(100vh - 180px);
    }
    
    .location-input {
        height: 52px;
        padding: 0 16px;
        font-size: 15px;
        border-radius: 3px;
    }
    
    .next-button-container {
        bottom: 90px;
        right: 0;
    }
    
    .btn-next-step {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }
    
    .btn-next-step i {
        font-size: 18px;
    }
}

/* Стили для второго экрана создания поездки */
.step2-form {
    position: relative;
    padding: 8px;
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Календарь */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
    animation-delay: 0.1s;
    flex-shrink: 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.calendar-nav-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
}

.calendar-nav-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.calendar-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    padding: 4px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: transparent;
    min-height: 24px;
}

.calendar-day:hover:not(.other-month):not(.past) {
    background: #f8f9fa;
    transform: scale(1.1);
}

.calendar-day.selected {
    background: #f65446;
    color: white;
    border-color: #f65446;
}

.calendar-day.today {
    border-color: #f65446;
    color: #f65446;
}

.calendar-day.today.selected {
    background: #f65446;
    color: white;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}

/* Специальные стили для мобильных устройств */
@media (max-width: 480px) {
    .calendar-container {
        padding: 2px;
        margin-bottom: 1px;
    }
    
    .calendar-header {
        margin-bottom: 1px;
    }
    
    .calendar-title {
        font-size: 10px;
    }
    
    .calendar-day {
        font-size: 8px;
        min-height: 8px;
        padding: 0;
        line-height: 0.8;
        border-radius: 2px;
        margin: 0;
    }
    
    .weekday {
        font-size: 7px;
        padding: 0;
        line-height: 0.8;
    }
    
    .calendar-nav-btn {
        width: 12px;
        height: 12px;
        font-size: 5px;
    }
    
    .calendar-weekdays {
        margin-bottom: 1px;
        gap: 0;
    }
    
    .calendar-grid {
        gap: 0;
    }
    
    .time-selection-container {
        padding: 2px;
        margin-bottom: 1px;
    }
    
    .time-title {
        font-size: 9px;
        margin-bottom: 1px;
    }
    
    .time-input {
        width: 35px;
        height: 20px;
        font-size: 10px;
        border-radius: 2px;
    }
    
    .time-separator {
        font-size: 10px;
        margin: 0 1px;
    }
    
    .time-hint {
        font-size: 6px;
        margin-top: 0;
    }
    
    .calendar-header {
        margin-bottom: 1px;
    }
    
    .calendar-nav-btn {
        font-size: 6px;
        padding: 0;
    }
    
    .step2-form {
        padding: 0;
        height: calc(100vh - 130px);
    }
    
    /* Дополнительные стили для предотвращения наложения */
    .calendar-day {
        border-radius: 2px;
        margin: 0;
    }
    
    .calendar-day.selected {
        border-radius: 2px;
    }
    
    .calendar-day.today {
        border-radius: 2px;
    }
    
    .calendar-day:hover:not(.other-month):not(.past) {
        transform: scale(1.05);
    }
}

/* Дополнительные улучшения для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-day {
        font-size: 12px;
        min-height: 22px;
    }
}

/* Выбор времени */
.time-selection-container {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
    animation-delay: 0.2s;
    flex-shrink: 0;
    margin-top: 4px;
}

.time-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.time-input {
    width: 55px;
    height: 38px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.time-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: scale(1.05);
}

.time-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.time-separator {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 3px;
}

.time-hint {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    margin-top: 4px;
    opacity: 0.8;
}

/* Специальные стили для мобильных устройств */
@media (max-width: 480px) {
    .time-selection-container {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .time-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .time-input {
        width: 50px;
        height: 34px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .time-separator {
        font-size: 16px;
        margin: 0 4px;
    }
    
    .time-hint {
        font-size: 9px;
        margin-top: 3px;
    }
}

/* Дополнительные улучшения для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .time-input {
        width: 52px;
        height: 36px;
        font-size: 14px;
    }
    
    .time-separator {
        font-size: 17px;
    }
}

/* Анимация при фокусе на полях времени */
.time-input:focus {
    animation: timeInputFocus 0.3s ease;
}

@keyframes timeInputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Стили для подсказки пользователю */
.time-hint {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    margin-top: 6px;
    opacity: 0.8;
}

/* Улучшенные стили для контейнера времени */
.time-selection-container {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.time-selection-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-selection-container:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

/* Секция количества мест */
.seats-section {
    background: white;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
    animation-delay: 0.4s;
    flex-shrink: 0;
}

.seats-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.seats-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.seats-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #f65446;
    border-radius: 50%;
    background: white;
    color: #f65446;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seats-btn:hover {
    background-color: #f65446;
    color: white;
}

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

.seats-number {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .step2-form {
        padding: 4px;
        height: calc(100vh - 160px);
    }
    
    .calendar-container,
    .time-selection-container,
    .seats-section {
        padding: 4px;
        margin-bottom: 6px;
    }
    
    .calendar-title {
        font-size: 12px;
    }
    
    .calendar-day {
        font-size: 10px;
        min-height: 18px;
    }
    
    .weekday {
        font-size: 9px;
        padding: 1px 0;
    }
    
    .time-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .time-input {
        width: 48px;
        height: 30px;
        font-size: 13px;
    }
    
    .time-separator {
        font-size: 15px;
    }
    
    .time-hint {
        font-size: 9px;
        margin-top: 4px;
    }
    
    .calendar-header {
        margin-bottom: 6px;
    }
    
    .calendar-nav-btn {
        font-size: 12px;
        padding: 3px;
    }
    
    .seats-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .seats-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .seats-number {
        font-size: 16px;
        min-width: 40px;
        padding: 6px 10px;
    }
}

/* Стили для третьего экрана создания поездки */
.step3-form {
    position: relative;
    padding: 20px;
    height: calc(100vh - 210px);
    display: flex;
    flex-direction: column;
}

/* Секция количества пассажиров */
.passengers-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.passengers-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.counter-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background: white;
    color: #007bff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background-color: #007bff;
    color: white;
}

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

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

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

.passengers-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    min-width: 60px;
    text-align: center;
}

/* Опция комфорта */
.comfort-option {
    margin-top: 16px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
}

.comfort-checkbox {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #f65446;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.comfort-checkbox:checked + .checkmark {
    background-color: #f65446;
}

.comfort-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
}

.checkbox-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.checkbox-description {
    font-size: 14px;
    color: #666;
}

/* Секция цены */
.price-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
    animation-delay: 0.2s;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.price-slider-container {
    margin-bottom: 16px;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 12px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f65446;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(246, 84, 70, 0.3);
}

.price-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f65446;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(246, 84, 70, 0.3);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* Стили для поля ввода цены */
.price-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.price-input {
    width: 120px;
    height: 48px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.price-input:focus {
    border-color: #f65446;
    box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1);
}

.price-input::placeholder {
    color: #999;
    font-weight: normal;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type=number] {
    -moz-appearance: textfield;
}

/* Стили для режима ввода цены */
.step3-form.price-input-mode {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f65446 0%, #ff6b5b 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step3-form.price-input-mode .passengers-section {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.step3-form.price-input-mode .price-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    text-align: center;
    z-index: 100;
}

.step3-form.price-input-mode .price-input-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step3-form.price-input-mode .price-input {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    border: 3px solid #f65446;
    border-radius: 15px;
    padding: 15px;
    width: 150px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
}

.step3-form.price-input-mode .price-input:focus {
    border-color: #f65446;
    box-shadow: 0 0 0 5px rgba(246, 84, 70, 0.2);
    transform: scale(1.05);
}

.step3-form.price-input-mode .price-currency {
    font-size: 28px;
    font-weight: bold;
    color: #f65446;
}

.step3-form.price-input-mode .section-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Стили для фокуса на поле ввода цены (старый режим) */
.step3-form.price-input-focused {
    padding-bottom: 280px;
    transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-input-container:focus-within {
    /* Убираем зум при фокусе */
    transition: none;
}

.price-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-section:focus-within {
    box-shadow: 0 8px 25px rgba(246, 84, 70, 0.15);
}

/* Стили для фокуса на полях времени */
.step2-form.time-input-focused {
    padding-bottom: 280px;
    transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-selection-container:focus-within {
    /* Убираем зум при фокусе */
    transition: none;
}

.time-selection-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-selection-container:focus-within {
    box-shadow: 0 8px 25px rgba(246, 84, 70, 0.15);
}

.price-input:focus {
    border-color: #f65446;
    box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1), 0 4px 12px rgba(246, 84, 70, 0.15);
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes priceInputFocus {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.2), 0 8px 20px rgba(246, 84, 70, 0.2);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1), 0 4px 12px rgba(246, 84, 70, 0.15);
    }
}

.price-input:focus {
    animation: priceInputFocus 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .step3-form {
        padding: 16px;
        height: calc(100vh - 190px);
    }
    
    .passengers-section,
    .price-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .passengers-counter {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .counter-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .passengers-number {
        font-size: 28px;
        min-width: 50px;
    }
    
    .price-amount {
        font-size: 40px;
    }
    
    .price-currency {
        font-size: 20px;
    }
    
    .price-input {
        width: 100px;
        height: 40px;
        font-size: 20px;
    }
    
    .step3-form.price-input-focused {
        padding-bottom: 150px;
    }
    
    .step2-form.time-input-focused {
        padding-bottom: 220px;
    }
    
    .step3-form.price-input-focused {
        padding-bottom: 220px;
    }
    
    .step3-form.price-input-mode .price-section {
        min-width: 280px;
        padding: 30px 20px;
    }
    
    .step3-form.price-input-mode .price-input {
        font-size: 28px;
        width: 120px;
        padding: 12px;
    }
    
    .step3-form.price-input-mode .price-currency {
        font-size: 24px;
    }
    
        .step3-form.price-input-mode .section-title {
        font-size: 20px;
    }
    
    .step1-form.address-input-focused {
        padding-bottom: 200px;
    }
    
    .step1-form.city-input-focused {
        padding-bottom: 180px;
    }

/* Стили для фокуса на полях ввода адреса */
.step1-form.address-input-focused {
    padding-bottom: var(--keyboard-padding-address);
    transition: padding-bottom var(--keyboard-transition);
}

/* Стили для фокуса на полях ввода города */
.step1-form.city-input-focused {
    padding-bottom: var(--keyboard-padding-city);
    transition: padding-bottom var(--keyboard-transition);
}

.location-section:focus-within {
    /* Убираем зум при фокусе */
    transition: none;
}
    
    .checkbox-title {
        font-size: 15px;
    }
    
    .checkbox-description {
        font-size: 13px;
    }
}

/* Стили для четвертого экрана создания поездки */
.step4-form {
    position: relative;
    padding: 20px;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* Секция маршрута */
.route-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
}

.route-visual {
    margin-bottom: 20px;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.route-point:last-child {
    margin-bottom: 0;
}

.point-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.stop-icon {
    background: #6c757d;
}

.point-info {
    flex: 1;
}

.point-city {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.point-address {
    font-size: 14px;
    color: #666;
}

.route-line {
    position: relative;
    height: 20px;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.line-dots {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        #007bff 0px,
        #007bff 4px,
        transparent 4px,
        transparent 8px
    );
    margin-left: 19px;
}

.remove-stop-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-stop-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Кнопка добавления остановки */
.add-stop-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 2px solid #f65446;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.add-stop-btn:hover {
    background-color: #f65446;
    color: white;
}

.add-stop-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f65446;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.add-stop-text {
    font-size: 16px;
    font-weight: 500;
    color: #f65446;
}

.add-stop-btn:hover .add-stop-text {
    color: white;
}

/* Секция условий */
.conditions-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
    animation-delay: 0.2s;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.condition-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.condition-info {
    flex: 1;
}

.condition-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.condition-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .step4-form {
        padding: 16px;
        height: calc(100vh - 180px);
    }
    
    .route-section,
    .conditions-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .point-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .point-city {
        font-size: 15px;
    }
    
    .point-address {
        font-size: 13px;
    }
    
    .add-stop-btn {
        padding: 10px 14px;
    }
    
    .add-stop-text {
        font-size: 15px;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .condition-item {
        padding: 10px;
    }
    
    .condition-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .condition-label {
        font-size: 11px;
    }
    
    .condition-value {
        font-size: 13px;
    }
}

/* Стили для экрана моих поездок */
.my-rides-screen {
    display: block;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow: hidden;
}

.my-rides-screen .screen-content {
    padding: 20px;
    height: calc(100vh - 80px); /* Вычитаем высоту нижней навигации */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Дополнительный отступ снизу для нижней навигации */
}

.my-rides-screen .rides-container {
    min-height: 200px;
    padding-bottom: 20px; /* Отступ снизу для последней карточки */
}

/* Стили для карточек поездок в экране "Мои поездки" */
.my-rides-screen .ride-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.my-rides-screen .ride-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.my-rides-screen .ride-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.my-rides-screen .ride-route {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.my-rides-screen .ride-from,
.my-rides-screen .ride-to {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.my-rides-screen .ride-city {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.my-rides-screen .ride-time {
    font-size: 12px;
    color: #666;
}

.my-rides-screen .ride-arrow {
    font-size: 18px;
    color: #f65446;
    font-weight: bold;
    margin: 0 8px;
}

.my-rides-screen .ride-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.my-rides-screen .ride-status.status-active {
    background: #d4edda;
    color: #155724;
}

.my-rides-screen .ride-status.status-completed {
    background: #cce5ff;
    color: #004085;
}

.my-rides-screen .ride-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.my-rides-screen .ride-details {
    margin-bottom: 12px;
}

.my-rides-screen .ride-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-rides-screen .ride-price {
    font-size: 18px;
    font-weight: 600;
    color: #f65446;
}

.my-rides-screen .ride-seats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.my-rides-screen .seats-icon {
    font-size: 12px;
}

.my-rides-screen .ride-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.my-rides-screen .ride-actions .btn {
    flex: 1;
    min-width: 60px;
    padding: 6px 8px;
    font-size: 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-rides-screen .ride-actions .btn:hover {
    transform: translateY(-1px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .my-rides-screen .ride-card {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .my-rides-screen .ride-city {
        font-size: 14px;
    }
    
    .my-rides-screen .ride-time {
        font-size: 11px;
    }
    
    .my-rides-screen .ride-price {
        font-size: 16px;
    }
    
    .my-rides-screen .ride-actions {
        gap: 3px;
    }
    
    .my-rides-screen .ride-actions .btn {
        padding: 4px 6px;
        font-size: 9px;
        min-width: 50px;
    }
}

/* Стили для вкладок в экране "Мои поездки" */
.my-rides-screen .rides-header {
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding-bottom: 10px;
}

.my-rides-screen .rides-tabs {
    display: flex;
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.my-rides-screen .tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-rides-screen .tab-button:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateY(-1px);
}

.my-rides-screen .tab-button.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.my-rides-screen .tab-button.active:hover {
    background: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .my-rides-screen .rides-tabs {
        padding: 3px;
        gap: 3px;
    }
    
    .my-rides-screen .tab-button {
        padding: 10px 12px;
        font-size: 11px;
        min-height: 40px;
    }
}

/* Стили для прогресс-бара создания поездки */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f65446 0%, #ff6b35 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Стили для заголовков шагов */
.step-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background-color: #f5f5f5;
    color: #333;
}

.step-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin-left: 60px;
    margin-right: 60px;
}

.step-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .progress-bar {
        margin-bottom: 16px;
    }
    
    .step-header {
        margin-bottom: 16px;
        padding: 0 16px;
    }
    
    .back-button {
        left: 16px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .step-subtitle {
        font-size: 16px;
    }
}

/* Стили для прокрутки на 4-м экране создания поездки */
.step4-scrollable {
    display: block;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.step4-scrollable .screen-content {
    padding: 20px;
    height: calc(100vh - 80px); /* Вычитаем высоту нижней навигации */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Дополнительный отступ снизу для нижней навигации */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
    scroll-behavior: smooth; /* Плавная прокрутка */
    will-change: scroll-position; /* Оптимизация прокрутки */
    transform: translateZ(0); /* Включение аппаратного ускорения */
}

/* Оптимизированные анимации для полей ввода */
.form-control:focus,
.city-input:focus,
.address-input:focus,
.time-input:focus,
.price-input:focus {
    transform: translateZ(0); /* Включение аппаратного ускорения */
    will-change: transform; /* Оптимизация для GPU */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Оптимизированные анимации для кнопок */
.btn-next-step,
.step4-next-btn {
    transform: translateZ(0); /* Включение аппаратного ускорения */
    will-change: transform; /* Оптимизация для GPU */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Оптимизированные анимации для переходов между шагами */
.step-content {
    transform: translateZ(0); /* Включение аппаратного ускорения */
    will-change: transform; /* Оптимизация для GPU */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step4-scrollable .step-content {
    min-height: 200px;
    padding-bottom: 20px; /* Отступ снизу для последнего элемента */
}

/* Улучшенная прокрутка для Telegram Mini App */
@media (max-width: 768px) {
    .step4-scrollable {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }
    
    .step4-scrollable .screen-content {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain; /* Предотвращает bounce эффект */
    }
    
    .step4-scrollable .step-content {
        padding-bottom: 120px; /* Увеличенный отступ для кнопки */
    }
}

/* Кнопка "Создать поездку" внизу экрана на 4-м этапе */
.step4-bottom-button-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    padding: 0;
}

.step4-next-btn {
    width: 100%;
    height: 56px;
    background: #f65446;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(246, 84, 70, 0.3);
}

.step4-next-btn:hover {
    background: #e54537;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(246, 84, 70, 0.4);
}

.step4-next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(246, 84, 70, 0.3);
}

.step4-next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.step4-next-btn i {
    font-size: 14px;
}

/* Стили для кликабельного рейтинга */
.clickable-rating {
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(56, 149, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.clickable-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 149, 229, 0.4);
    background: linear-gradient(135deg, #2d7dd2 0%, #1f6bb8 100%);
}

.clickable-rating:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(56, 149, 229, 0.3);
}

.rating-hint {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 8px;
    display: inline-block;
}

.rating-click-indicator {
    display: none; /* Убираем стрелку */
}

/* Адаптивность для кликабельного рейтинга */
@media (max-width: 768px) {
    .rating-hint {
        font-size: 0.6rem;
        margin-left: 4px;
    }
    
    .rating-click-indicator {
        display: none; /* Убираем стрелку на всех устройствах */
    }
}

@media (max-width: 480px) {
    .clickable-rating {
        padding: 6px 10px;
    }
    
    .rating-hint {
        display: none;
    }
    
    .rating-click-indicator {
        display: none; /* Убираем стрелку */
    }
}

/* Гибкий поиск */
.flexible-search-group {
    margin-top: 10px;
}

.flexible-search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flexible-search-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(56, 149, 229, 0.3);
}

.flexible-search-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 149, 229, 0.4);
}

.flexible-search-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #3895e5;
    cursor: pointer;
}

.flexible-search-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

.flexible-search-text i {
    font-size: 16px;
}

.flexible-search-hint {
    font-size: 12px;
    color: #666;
    margin-left: 28px;
    font-style: italic;
}

/* Анимация для активного состояния */
.flexible-search-checkbox:checked + .flexible-search-text {
    color: #fff;
}

.flexible-search-checkbox:checked ~ .flexible-search-hint {
    color: #e0e0e0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .flexible-search-label {
        padding: 8px;
        font-size: 13px;
    }
    
    .flexible-search-text {
        font-size: 13px;
    }
    
    .flexible-search-hint {
        font-size: 11px;
        margin-left: 26px;
    }
}

/* Индикатор гибкого поиска в результатах */
.flexible-search-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 149, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 149, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 149, 229, 0);
    }
}

.results-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.results-count i {
    color: #3895e5;
}

.profile-car-upload-section {
    margin-top: 15px;
    text-align: center;
}

.profile-car-upload-btn {
    padding: 10px 20px;
    border: 2px solid #007AFF;
    border-radius: 8px;
    background: white;
    color: #007AFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.profile-car-upload-btn:hover {
    background: #007AFF;
    color: white;
    transform: translateY(-2px);
}

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

/* Кнопка меню чата */
.menu-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    color: #666;
    font-size: 16px;
}

.menu-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.menu-button:active {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Контекстное меню */
.context-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
}

.context-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
    animation: slideInFromTop 0.2s ease-out;
}

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.context-menu-item:active {
    background-color: #e9ecef;
}

.context-menu-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .context-menu {
        min-width: 180px;
        max-width: 240px;
        margin: 0 10px;
    }
    
    .context-menu-item {
        padding: 14px 16px;
    }
    
    .context-menu-text {
        font-size: 15px;
    }
}

/* Новые стили для карточек в экране "Мои поездки" */
.ride-card-new, .booking-card-new {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
}

.ride-card-new:hover, .booking-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ride-date, .booking-date {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

.ride-card-content, .booking-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ride-route-section, .booking-route-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ride-times, .booking-times {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.time-departure {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.route-line-dashed {
    display: none;
}

.ride-locations, .booking-locations {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.location-from, .location-to {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.city {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.address {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.2;
}

.ride-user-section, .booking-user-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.ride-driver-section, .booking-driver-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-avatar-new {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: block;
}

.driver-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.ride-price-new, .booking-price-new {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.ride-actions-new, .booking-actions-new {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.ride-actions-new .btn, .booking-actions-new .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ride-actions-new .btn:hover, .booking-actions-new .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .ride-card-new, .booking-card-new {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .ride-date, .booking-date {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .time {
        font-size: 15px;
    }
    
    .city {
        font-size: 13px;
    }
    
    .address {
        font-size: 10px;
    }
    
    .driver-avatar-new {
        width: 32px;
        height: 32px;
    }
    
    .driver-name {
        font-size: 12px;
    }
    
    /* Ограничения только для карточек поездок на мобильных */
    .ride-card-new .driver-name,
    .booking-card-new .driver-name {
        max-width: 100px;
    }
    
    .ride-price-new, .booking-price-new {
        font-size: 14px;
    }
    
    .ride-actions-new, .booking-actions-new {
        gap: 6px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .ride-actions-new .btn, .booking-actions-new .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .route-line-dashed {
        margin: 0 12px;
    }
}

/* Стили для экрана результатов поиска */
.ride-results-screen {
    display: block;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow: hidden;
}

.ride-results-screen .screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
    position: relative;
}

.ride-results-screen .back-btn,
.ride-results-screen .modify-search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ride-results-screen .back-btn:hover,
.ride-results-screen .modify-search-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.ride-results-screen .screen-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    width: 100%;
}

.ride-results-screen .search-summary {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ride-results-screen .search-route {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ride-results-screen .search-route .from,
.ride-results-screen .search-route .to {
    flex: 1;
}

.ride-results-screen .search-route i {
    color: #f65446;
    font-size: 14px;
}

.ride-results-screen .search-details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6c757d;
}

.ride-results-screen .screen-content {
    padding: 20px;
    height: calc(100vh - 80px); /* Вычитаем высоту нижней навигации */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Дополнительный отступ снизу для нижней навигации */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
    scroll-behavior: smooth; /* Плавная прокрутка */
}

.ride-results-screen .results-container {
    min-height: 200px;
    padding-bottom: 20px; /* Отступ снизу для последней карточки */
}

.ride-results-screen .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ride-results-screen .results-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ride-results-screen .sort-options {
    display: flex;
    gap: 8px;
}

.ride-results-screen .sort-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ride-results-screen .sort-btn:hover {
    background: #e9ecef;
    color: #333;
}

.ride-results-screen .sort-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.ride-results-screen .rides-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ride-results-screen .empty-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.ride-results-screen .empty-results .empty-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.ride-results-screen .empty-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ride-results-screen .empty-results p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .ride-results-screen .screen-header {
        padding: 12px 16px;
    }
    
    .ride-results-screen .screen-header h1 {
        font-size: 16px;
    }
    
    .ride-results-screen .search-summary {
        padding: 12px 16px;
    }
    
    .ride-results-screen .search-route {
        font-size: 14px;
    }
    
    .ride-results-screen .search-details {
        font-size: 12px;
    }
    
    .ride-results-screen .results-container {
        padding: 16px;
        height: calc(100vh - 120px);
    }
    
    .ride-results-screen .results-header {
        margin-bottom: 16px;
    }
    
    .ride-results-screen .results-header h3 {
        font-size: 14px;
    }
    
    .ride-results-screen .sort-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .ride-results-screen .rides-list {
        gap: 12px;
    }
}

/* Скрытие нижнего меню при прокрутке на экране результатов поиска */
.ride-results-screen .bottom-nav {
    transition: transform 0.3s ease;
}

.ride-results-screen .bottom-nav.hidden {
    transform: translateY(100%);
}

/* Показываем меню при прокрутке вверх */
.ride-results-screen .bottom-nav.visible {
    transform: translateY(0);
}

/* Специальные стили для мобильных устройств */
@media (max-width: 768px) {
    .ride-results-screen .bottom-nav {
        transition: transform 0.2s ease;
        /* Увеличиваем z-index чтобы меню было поверх контента */
        z-index: 1000;
    }
    
    .ride-results-screen .bottom-nav.hidden {
        transform: translateY(100%);
        /* Добавляем тень для лучшего визуального эффекта */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Увеличиваем отступ снизу для мобильных */
.ride-results-screen .results-container {
    padding-bottom: 120px;
}
}

/* Стили для экрана профиля водителя */
.driver-profile-screen {
    display: block;
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
    overflow: hidden;
}

.driver-profile-screen .screen-header {
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.driver-profile-screen .btn-back {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.driver-profile-screen .btn-back:hover {
    background: #f8f9fa;
    color: #333;
}

.driver-profile-screen .btn-back i {
    font-size: 16px;
}

/* Медиа-запросы для экрана профиля водителя */
@media (max-width: 480px) {
    .driver-profile-screen .screen-content {
        padding: 16px;
        height: calc(100vh - 70px);
        padding-bottom: 80px;
    }
    
    .driver-profile-screen .screen-header {
        padding: 12px 16px;
    }
    
    .driver-profile-screen .screen-header h1 {
        font-size: 16px;
    }
    
    .driver-profile-screen .btn-back {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .driver-profile-screen .btn-back i {
        font-size: 14px;
    }
    
    .driver-card {
        padding: 16px;
    }
    
    .driver-avatar-img {
        width: 60px;
        height: 60px;
    }
    
    .driver-profile-screen .driver-name {
        font-size: 20px;
    }
    
    .stars i {
        font-size: 12px;
    }
    
    .rating-text {
        font-size: 14px;
    }
    
    .reviews-count {
        font-size: 11px;
    }
    
    .car-card,
    .profile-card,
    .reviews-card {
        padding: 16px;
    }
    
    .driver-actions {
        padding: 16px;
    }
    
    .driver-actions .btn {
        margin-bottom: 12px;
    }
}

.driver-profile-screen .screen-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    width: 100%;
}

.driver-profile-screen .screen-content {
    padding: 20px;
    height: calc(100vh - 80px); /* Вычитаем высоту header */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Дополнительный отступ снизу для нижней навигации */
}

/* Секция информации о водителе */
.driver-info-section {
    margin-bottom: 20px;
}

.driver-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.driver-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.driver-avatar {
    flex-shrink: 0;
}

.driver-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.driver-details {
    flex: 1;
}

.driver-profile-screen .driver-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.driver-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 1px;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

.rating-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.reviews-count {
    font-size: 12px;
    color: #6c757d;
}

.driver-about {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.driver-about h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.driver-about p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Секция информации об автомобиле */
.car-info-section {
    margin-bottom: 20px;
}

.car-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.car-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.car-photo {
    margin-bottom: 16px;
}

.car-photo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.car-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.car-model {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.car-color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.car-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

/* Секция профиля и верификации */
.profile-info-section {
    margin-bottom: 20px;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.profile-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.verification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.verification-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verification-icon {
    color: #28a745;
    font-size: 16px;
}

.verification-item span {
    font-size: 14px;
    color: #333;
}

.registration-date {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* Секция отзывов */
.reviews-section {
    margin-bottom: 20px;
}

.reviews-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.reviews-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

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

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #6c757d;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #ffc107;
    font-size: 12px;
}

.review-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-reviews i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-reviews p {
    font-size: 16px;
    margin: 0;
}

/* Кнопки действий */
.driver-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.driver-actions .btn {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.driver-actions .btn-primary {
    background: #007bff;
    color: #fff;
}

.driver-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.driver-actions .btn-outline {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.driver-actions .btn-outline:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Стили для экрана редактирования профиля */
.edit-profile-screen {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Исправление для Telegram Mini App */
    height: 100vh;
    overflow: hidden;
}

.edit-profile-screen .screen-header {
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    /* Исправление для Telegram Mini App */
    position: sticky;
    top: 0;
    z-index: 100;
}

.edit-profile-screen .screen-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    text-align: center;
}

.edit-profile-screen .back-btn {
    background: transparent;
    border: none;
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.edit-profile-screen .back-btn:hover {
    background: rgba(0, 123, 255, 0.1);
}

.edit-profile-screen .save-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-profile-screen .save-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.edit-profile-screen .save-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.edit-profile-screen .screen-content {
    padding: 20px;
    flex: 1;
    /* Исправление для Telegram Mini App */
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 140px;
    /* Дополнительные стили для мобильных */
    height: calc(100vh - 80px); /* Вычитаем высоту заголовка */
}

/* Специальные стили для Telegram Mini App */
@media (max-width: 768px) {
    .edit-profile-screen {
        height: 100vh;
        overflow: hidden;
    }
    
    .edit-profile-screen .screen-content {
        height: calc(100vh - 80px);
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 160px; /* Больше отступа для нижнего меню */
    }
    
    /* Улучшение прокрутки на iOS */
    .edit-profile-screen .screen-content::-webkit-scrollbar {
        width: 0;
        background: transparent;
    }
    
    .edit-profile-screen .screen-content {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
}

/* Секция аватара */
.avatar-section {
    margin-bottom: 20px;
}

.avatar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

.avatar-overlay i {
    color: #fff;
    font-size: 24px;
}

.change-avatar-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.change-avatar-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Секции форм */
.form-section {
    margin-bottom: 20px;
}

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

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #6c757d;
    font-size: 16px;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #6c757d;
    text-align: center;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 80px;
    text-align: left;
}

/* Сетка предпочтений */
.preferences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.preference-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.preference-item:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.02);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.preference-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.preference-icon {
    color: #007bff;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.preference-content span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Карточка действий */
.actions-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.action-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #333;
}

.action-btn:last-child {
    border-bottom: none;
}

.action-btn:hover {
    background: rgba(0, 123, 255, 0.05);
}

.action-btn i:first-child {
    color: #007bff;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.action-btn span {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.action-btn i:last-child {
    color: #6c757d;
    font-size: 12px;
}

.change-password-btn i:first-child {
    color: #007bff;
}

.export-data-btn i:first-child {
    color: #28a745;
}

.delete-account-btn i:first-child {
    color: #dc3545;
}

/* Адаптивные стили */
@media (max-width: 480px) {
    .edit-profile-screen .screen-content {
        padding: 16px;
        padding-bottom: 140px;
    }
    
    .avatar-card {
        padding: 20px;
    }
    
    .avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .form-card {
        padding: 16px;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 10px 10px 10px 36px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 10px;
        font-size: 14px;
    }
    
    .preferences-grid {
        gap: 8px;
    }
    
    .preference-item {
        padding: 12px;
    }
    
    .action-btn {
        padding: 14px 16px;
    }
}

/* Дополнительные стили для Telegram Mini App */
@media (max-width: 768px) {
    /* Предотвращаем прокрутку body */
    body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Улучшение прокрутки для iOS */
    .edit-profile-screen .screen-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Скрываем скроллбары */
    .edit-profile-screen .screen-content::-webkit-scrollbar {
        display: none;
    }
    
    /* Улучшение отзывчивости на touch */
    .edit-profile-screen .screen-content {
        touch-action: pan-y;
    }
    
    /* Улучшение фокуса на полях ввода */
    .edit-profile-screen input:focus,
    .edit-profile-screen textarea:focus,
    .edit-profile-screen select:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
}

/* Стили для фильтров времени */
.time-filters {
    background: white;
    border-radius: 12px;
    margin: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.toggle-filters-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-filters-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.filter-content {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.time-range-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.time-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.time-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.time-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.time-input:focus {
    outline: none;
    border-color: #f65446;
    background: white;
    box-shadow: 0 0 0 3px rgba(246, 84, 70, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.filter-actions .btn-secondary {
    background: #f65446;
    color: white;
}

.filter-actions .btn-secondary:hover {
    background: #e54537;
}

.filter-actions .btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.filter-actions .btn-outline:hover {
    background: #f5f5f5;
    color: #333;
}

/* Адаптивность для фильтров времени */
@media (max-width: 480px) {
    .time-filters {
        margin: 12px;
        padding: 12px;
    }
    
    .time-range-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

/* Стили для прокрутки на мобильных устройствах */
.ride-results-screen .results-container {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .ride-results-screen {
        height: 100vh;
        overflow: hidden;
    }
    
    .ride-results-screen .results-container {
        max-height: calc(100vh - 200px);
        overflow-y: scroll;
        padding-bottom: 80px; /* Место для нижнего меню */
    }
}

/* Стили для экрана успеха */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.success-header {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 40px 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

.icon-container {
    margin-bottom: 20px;
}

.icon-container i {
    font-size: 60px;
    color: #4caf50;
}

.success-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.success-message {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.success-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

.booking-details {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.booking-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #f8f9fa;
}

.booking-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.info-row .value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-align: right;
}

.success-actions {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 20px 40px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.success-actions .btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

.success-actions .btn-outline {
    background: transparent;
    color: #4caf50;
    border: 2px solid #4caf50;
}

.success-actions .btn-outline:hover {
    background: #4caf50;
    color: white;
    transform: translateY(-2px);
}

/* Улучшенная прокрутка для 4-го шага */
.step4-scrollable {
    height: 100vh;
    overflow: hidden;
    will-change: transform; /* Оптимизация для GPU */
}

.step4-scrollable .step-content {
    height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 100px;
    will-change: scroll-position; /* Оптимизация прокрутки */
    transform: translateZ(0); /* Включение аппаратного ускорения */
}

.step4-scrollable .next-button-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Кнопка "Создать поездку" внизу экрана на 4-м этапе */
.step4-bottom-button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.step4-next-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: #f65446 !important;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 56px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step4-next-btn:hover {
    background: #e53e3e !important;
    transform: translateY(-1px);
}

.step4-next-btn:active {
    background: #d32f2f !important;
    transform: translateY(0);
}

.step4-next-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.step4-next-btn i {
    font-size: 16px;
}

/* Адаптивность для 4-го этапа */
@media (max-width: 768px) {
    .step4-scrollable .step-content {
        height: calc(100vh - 180px);
        padding-bottom: 120px;
    }
    
    .step4-scrollable .next-button-container {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .step4-bottom-button-container {
        padding: 15px;
    }
    
    .step4-next-btn {
        height: 52px;
        padding: 10px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .step4-next-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .step4-scrollable .step-content {
        height: calc(100vh - 160px);
        padding-bottom: 100px;
    }
    
    .step4-bottom-button-container {
        padding: 12px;
    }
    
    .step4-next-btn {
        height: 48px;
        padding: 8px 12px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .step4-next-btn i {
        font-size: 13px;
    }
}

/* Стили для улучшенной формы первого шага */
.location-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    margin: 4px 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.location-section:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.location-icon {
    width: 28px;
    height: 28px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.location-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.location-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.city-input,
.address-input {
    width: 100%;
    height: 38px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.city-input:focus,
.address-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    /* Убираем зум при фокусе */
}

.city-input::placeholder,
.address-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Анимация при фокусе на полях */
.city-input:focus,
.address-input:focus {
    /* Убираем анимацию зума */
}

@keyframes inputFocus {
    /* Убираем анимацию зума */
    0% {
        /* Без изменений */
    }
    50% {
        /* Без изменений */
    }
    100% {
        /* Без изменений */
    }
}

/* Специальные стили для мобильных устройств */
@media (max-width: 480px) {
    .location-section {
        padding: 6px;
        margin: 3px 0;
        border-radius: 10px;
    }
    
    .location-header {
        margin-bottom: 4px;
    }
    
    .location-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .location-title {
        font-size: 14px;
    }
    
    .city-input,
    .address-input {
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .location-inputs {
        gap: 4px;
    }
}

/* Дополнительные улучшения для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .location-section {
        padding: 12px;
    }
    
    .city-input,
    .address-input {
        height: 46px;
        font-size: 15px;
    }
}

/* Компактные стили для первого шага */
.step1-form {
    padding: 5px 0;
    margin-top: -10px;
}

.step1-form .form-group {
    margin-bottom: 8px;
}

.step1-form .form-label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #666;
    font-weight: 500;
}

/* Уменьшенные отступы для кнопки */
.step1-form .next-button-container {
    margin-top: 15px;
    padding: 0;
    right: 0;
}

/* Уменьшение отступа между заголовком и контентом */
.step-content {
    margin-top: 10px;
}

/* Специальные стили для мобильных устройств */
@media (max-width: 480px) {
    .step1-form {
        padding: 3px 0;
        margin-top: -15px;
    }
    
    .step1-form .form-group {
        margin-bottom: 6px;
    }
    
    .step1-form .form-label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .step1-form .next-button-container {
        margin-top: 12px;
    }
    
    .step-content {
        margin-top: 8px;
    }
}

/* Компактные стили для второго шага */
.step2-form {
    padding: 10px 0;
    margin-bottom: 80px; /* Отступ для кнопки "Далее" */
}

.step2-form .form-group {
    margin-bottom: 8px;
}

.step2-form .form-label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #666;
    font-weight: 500;
}

/* Уменьшенные отступы для кнопки */
.step2-form .next-button-container {
    margin-top: 15px;
    padding: 0;
    right: 0;
}

/* Специальные стили для мобильных устройств */
@media (max-width: 480px) {
    .step2-form {
        padding: 8px 0;
        margin-bottom: 70px; /* Меньший отступ для мобильных */
    }
    
    .step2-form .form-group {
        margin-bottom: 6px;
    }
    
    .step2-form .form-label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .step2-form .next-button-container {
        margin-top: 12px;
    }
}

/* Стили для статуса истории в новых карточках */
.history-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-height: 36px;
    transition: all 0.3s ease;
}

.history-status.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.history-status.status-cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.history-status.status-unknown {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Адаптивность для статуса истории */
@media (max-width: 480px) {
    .history-status {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .user-name {
        font-size: 12px;
        line-height: 1.2;
        height: auto;
        overflow: visible;
    }
    
    .history-price {
        font-size: 10px;
        line-height: 1;
    }
    
    .user-info {
        align-items: flex-start;
    }
    
    .user-avatar-new {
        width: 20px;
        height: 20px;
    }
}

/* Кнопка "Изменить поиск" */
.change-search-btn {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #f65446;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(246, 84, 70, 0.3);
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 160px;
    text-align: center;
}

.change-search-btn:hover {
    background: #e53e3e;
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 84, 70, 0.4);
}

.change-search-btn:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 1px 4px rgba(246, 84, 70, 0.3);
}

.change-search-btn i {
    margin-right: 6px;
    font-size: 12px;
}

@media (max-width: 480px) {
    .change-search-btn {
        bottom: 80px;
        padding: 8px 16px;
        font-size: 13px;
        min-width: 140px;
    }
    
    .change-search-btn i {
        font-size: 11px;
        margin-right: 5px;
    }
}

/* Стили для истории поисков */
.search-history-section {
    margin: 20px 0;
    padding: 0 20px;
}

.search-history-header {
    margin-bottom: 15px;
}

.search-history-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.history-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.history-route {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.history-from,
.history-to {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-from i,
.history-to i {
    color: #6c757d;
    font-size: 12px;
}

.history-arrow {
    color: #6c757d;
    font-size: 12px;
    margin: 0 8px;
}

.history-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    margin-right: 10px;
}

.history-date i {
    font-size: 10px;
}

.history-use-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-use-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.history-use-btn:active {
    transform: scale(0.95);
}

.history-use-btn i {
    font-size: 10px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .search-history-section {
        margin: 15px 0;
        padding: 0 15px;
    }
    
    .history-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-route {
        width: 100%;
        justify-content: space-between;
    }
    
    .history-from,
    .history-to {
        max-width: 100px;
        font-size: 13px;
    }
    
    .history-date {
        margin-right: 0;
        font-size: 11px;
    }
    
    .history-use-btn {
        align-self: flex-end;
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Анимации для истории поисков */
.history-item {
    animation: slideInFromTop 0.3s ease;
}

.history-item:nth-child(1) { animation-delay: 0.1s; }
.history-item:nth-child(2) { animation-delay: 0.2s; }
.history-item:nth-child(3) { animation-delay: 0.3s; }
.history-item:nth-child(4) { animation-delay: 0.4s; }

/* Состояние пустой истории */
.search-history-section:empty::after {
    content: "История поисков пуста";
    display: block;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
    font-style: italic;
}

.history-empty {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.history-empty p {
    margin: 0;
    font-size: 14px;
}

/* Карточки истории */
.history-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.history-card-content {
    padding: 16px;
}

.history-date-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.history-date {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.history-time {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.history-route-section {
    margin-bottom: 16px;
}

.history-locations {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-from,
.location-to {
    flex: 1;
}

.location-from .city,
.location-to .city {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.location-from .address,
.location-to .address {
    font-size: 12px;
    color: #666;
}

.route-line-dashed {
    width: 20px;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #ccc 0,
        #ccc 4px,
        transparent 4px,
        transparent 8px
    );
    flex-shrink: 0;
}

.history-user-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-new {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.history-price {
    font-size: 12px;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.2;
}

.history-status-section {
    display: flex;
    justify-content: flex-end;
}

.history-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.history-status.status-completed {
    background: #e8f5e8;
    color: #27ae60;
}

.history-status.status-cancelled {
    background: #ffeaea;
    color: #e74c3c;
}

.history-status.status-active {
    background: #e3f2fd;
    color: #2196f3;
}

.history-status i {
    font-size: 10px;
}

/* Исправление наслоения на экранах с высоким разрешением */
@media screen and (min-height: 1000px) {
    .find-ride-screen {
        padding-bottom: 120px;
    }
    
    .search-form {
        margin-bottom: 40px;
    }
    
    .search-inputs {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .search-field-group {
        margin-bottom: 20px;
    }
    
    .search-input-wrapper {
        height: 60px;
    }
    
    .search-input {
        height: 60px;
        font-size: 16px;
    }
    
    .search-btn {
        margin-top: 30px;
        height: 60px;
        font-size: 18px;
    }
}

/* Дополнительные отступы для экранов с очень высоким разрешением */
@media screen and (min-height: 1200px) {
    .find-ride-screen {
        padding-bottom: 150px;
    }
    
    .search-form {
        margin-bottom: 60px;
    }
    
    .search-inputs {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .search-field-group {
        margin-bottom: 25px;
    }
    
    .search-input-wrapper {
        height: 70px;
    }
    
    .search-input {
        height: 70px;
        font-size: 18px;
    }
    
    .search-btn {
        margin-top: 40px;
        height: 70px;
        font-size: 20px;
    }
}

/* Общие улучшения для формы поиска */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.search-field-group {
    margin-bottom: 15px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 15px;
    height: 55px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    height: 100%;
    padding: 0 10px;
    /* Убираем text-align для обычных полей, чтобы не конфликтовать с полем даты */
    text-align: left;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    width: 100%;
    height: 55px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.search-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

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

/* Дополнительные стили для универсального отображения поля даты */
@media screen and (max-width: 480px) {
    .search-input-wrapper .search-input[type="date"] {
        font-size: 14px;
        /* Принудительное центрирование для Android */
        text-align: center !important;
        -webkit-text-align: center !important;
        -moz-text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
        /* Дополнительные стили для Android */
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        /* Принудительное центрирование через flexbox */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .search-input-wrapper .search-input[type="date"] {
        text-align: center !important;
        -webkit-text-align: center !important;
        -moz-text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
    }
}

@media screen and (min-width: 769px) {
    .search-input-wrapper .search-input[type="date"] {
        text-align: center !important;
        -webkit-text-align: center !important;
        -moz-text-align: center !important;
        text-align-last: center !important;
        -webkit-text-align-last: center !important;
        -moz-text-align-last: center !important;
    }
}

/* Стили для фокуса на полях ввода адреса */
.step1-form.address-input-focused {
    padding-bottom: var(--keyboard-padding-address);
    transition: padding-bottom var(--keyboard-transition);
}

/* Стили для фокуса на полях ввода города */
.step1-form.city-input-focused {
    padding-bottom: var(--keyboard-padding-city);
    transition: padding-bottom var(--keyboard-transition);
}

.location-section:focus-within {
    /* Убираем зум при фокусе */
    transition: none;
}


    
    .checkbox-title {
        font-size: 15px;
    }
    
    .checkbox-description {
        font-size: 13px;
    }

/* Специальные стили для поля адреса назначения при фокусе */
#toAddressInput:focus {
    /* Убираем агрессивную трансформацию */
    transition: none;
}

/* Поднимаем только первую секцию (Откуда) при фокусе на адресе назначения */
.screen-content.address-input-focused .step1-form .location-section:first-child {
    transform: translateY(-250px);
    transition: transform 0.3s ease;
}

/* Поднимаем вторую секцию (Куда едете) при фокусе на адресе назначения */
.screen-content.address-input-focused .step1-form .location-section:nth-child(2) {
    transform: translateY(-150px);
    transition: transform 0.3s ease;
}

/* Скрываем заголовок при фокусе на адресе назначения */
.screen-content.address-input-focused .step-header {
    transform: translateY(-100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Стили для экрана деталей поездки */
.ride-details-screen {
    display: block;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.ride-details-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ride-details-header .btn-back {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #3895e5;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(56, 149, 229, 0.2);
    font-weight: 500;
}

.ride-details-header .btn-back:hover {
    background: rgba(255, 255, 255, 1);
    color: #2d7dd2;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 149, 229, 0.3);
}

.ride-details-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    flex: 1;
}

.ride-details-screen .screen-content {
    padding: 20px;
    height: calc(100vh - 80px); /* Вычитаем высоту заголовка */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Дополнительный отступ снизу */
}

.ride-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    padding-bottom: 20px; /* Отступ снизу для последней карточки */
}

/* Стили для карточек в экране деталей поездки */
.ride-details-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

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

.ride-details-card .card-header {
    margin-bottom: 20px;
}

.ride-details-card .card-header h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ride-details-card .card-header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    border-radius: 2px;
}

/* Стили для секции водителя */
.driver-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.driver-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: transparent;
    border-radius: 16px;
    border: none;
}

.driver-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.driver-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
}

.driver-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.driver-name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.driver-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.rating-stars i {
    color: #ffd700;
    font-size: 8px;
}

.rating-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 8px;
}

.reviews-count {
    color: #718096;
    font-size: 7px;
}

.driver-experience {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
}

.driver-experience i {
    color: #3895e5;
}

/* Кнопки действий водителя */
.driver-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.driver-actions .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.driver-actions .btn-secondary {
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    box-shadow: 0 4px 16px rgba(56, 149, 229, 0.3);
}

.driver-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 149, 229, 0.4);
}

.driver-actions .btn-secondary:active {
    transform: translateY(0);
}

/* Статус онлайн */
.driver-status {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #48bb78;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

/* Стили для секции маршрута */
.route-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.route-date-time {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(56, 149, 229, 0.05) 0%, rgba(45, 125, 210, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(56, 149, 229, 0.1);
}

.date-item, .time-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-weight: 500;
}

.date-item i, .time-item i {
    color: #3895e5;
    font-size: 16px;
}

.route-timeline {
    position: relative;
    padding: 20px 0;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    animation: slideInLeft 0.6s ease-out;
}

.route-point:last-child {
    margin-bottom: 0;
    animation: slideInRight 0.6s ease-out;
}

.point-time {
    font-weight: 600;
    color: #3895e5;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.point-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.point-dot.start {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.point-dot.end {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.point-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.point-city {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.point-address {
    color: #718096;
    font-size: 14px;
}

.route-line {
    position: relative;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line {
    width: 2px;
    height: 40px;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    border-radius: 1px;
    position: relative;
    animation: lineGrow 1s ease-out;
}

.line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.travel-info {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(56, 149, 229, 0.2);
    font-size: 12px;
    font-weight: 500;
    color: #3895e5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Стили для деталей поездки */
.ride-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    background: linear-gradient(135deg, rgba(56, 149, 229, 0.05) 0%, rgba(45, 125, 210, 0.05) 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 149, 229, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 149, 229, 0.15);
}

.detail-label {
    color: #718096;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.detail-value.price {
    color: #48bb78;
    font-size: 20px;
}

/* Особенности и правила поездки */
.ride-features, .ride-rules {
    margin-top: 20px;
}

.ride-features h4, .ride-rules h4 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ride-features h4::before {
    content: '✨';
    font-size: 14px;
}

.ride-rules h4::before {
    content: '📋';
    font-size: 14px;
}

.features-list, .rules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item, .rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
}

.feature-item i {
    color: #48bb78;
}

.rule-item i {
    color: #667eea;
}

/* Стили для секции бронирования */
.booking-section {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(56, 161, 105, 0.05) 100%);
    border: 1px solid rgba(72, 187, 120, 0.1);
}

.booking-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seats-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.seats-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.seats-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3895e5 0%, #2d7dd2 100%);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(56, 149, 229, 0.3);
}

.seats-btn {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #3895e5;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seats-btn:hover:not(:disabled) {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

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

.seats-number {
    color: white;
    font-weight: 600;
    font-size: 9px;
    min-width: 15px;
    text-align: center;
}

.total-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.total-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #48bb78;
    text-shadow: 0 2px 4px rgba(72, 187, 120, 0.2);
}

/* Кнопка бронирования */
.book-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
    position: relative;
    overflow: hidden;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(72, 187, 120, 0.5);
}

.book-btn:hover::before {
    left: 100%;
}

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

.book-btn i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

/* Стили для секции автомобиля */
.car-info {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.car-info h4 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-info h4::before {
    content: '🚗';
    font-size: 14px;
}

.car-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.car-model, .car-color, .car-number {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
}

.car-model i, .car-color i, .car-number i {
    color: #667eea;
    font-size: 16px;
}

/* Прогресс-бар загрузки */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(102, 126, 234, 0.2);
    z-index: 1000;
    overflow: hidden;
}

.loading-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Красивые разделители */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 24px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

/* Микроанимации для элементов */
.ride-details-card {
    animation: slideInUp 0.6s ease-out;
}

.ride-details-card:nth-child(1) { animation-delay: 0.1s; }
.ride-details-card:nth-child(2) { animation-delay: 0.2s; }
.ride-details-card:nth-child(3) { animation-delay: 0.3s; }
.ride-details-card:nth-child(4) { animation-delay: 0.4s; }

/* Анимация для иконок */
.driver-avatar i,
.route-date-time i,
.car-model i,
.car-color i,
.car-number i {
    transition: transform 0.3s ease;
}

.driver-avatar:hover i,
.route-date-time:hover i,
.car-model:hover i,
.car-color:hover i,
.car-number:hover i {
    transform: scale(1.2);
}

/* Эффект параллакса для фона */
.ride-details-screen {
    background-attachment: fixed;
}

/* Плавающие элементы */
.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

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

@keyframes lineGrow {
    from {
        height: 0;
    }
    to {
        height: 40px;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Стили для скроллбара в экране деталей поездки */
.ride-details-screen .screen-content::-webkit-scrollbar {
    width: 6px;
}

.ride-details-screen .screen-content::-webkit-scrollbar-track {
    background: transparent;
}

.ride-details-screen .screen-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.ride-details-screen .screen-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Медиа-запросы для экрана деталей поездки */
@media (max-width: 480px) {
    .ride-details-screen .screen-content {
        padding: 16px;
        height: calc(100vh - 70px);
        padding-bottom: 80px;
    }
    
    .ride-details-content {
        gap: 12px;
        padding-bottom: 16px;
    }
    
    .ride-details-header {
        padding: 12px 16px;
    }
    
    .ride-details-header h1 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .ride-details-screen .screen-content {
        padding: 18px;
        height: calc(100vh - 75px);
        padding-bottom: 90px;
    }
}

/* Анимации для карточек в экране деталей поездки */
.ride-details-card:nth-child(1) { animation-delay: 0.1s; }
.ride-details-card:nth-child(2) { animation-delay: 0.2s; }
.ride-details-card:nth-child(3) { animation-delay: 0.3s; }
.ride-details-card:nth-child(4) { animation-delay: 0.4s; }
.ride-details-card:nth-child(5) { animation-delay: 0.5s; }