* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

.nav-links a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.flash-message {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 0.5rem;
}

.transport-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    margin-right: 0.5rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.btn-primary:hover {
    background: #2980b9;
}

.dashboard {
    display: grid;
    gap: 2rem;
}

.user-info, .matches {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

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

.match-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.match-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.btn-chat {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

.btn-chat:hover {
    background: #219a52;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    color: white;
    text-decoration: none;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 70%;
}

.own-message {
    background: #3498db;
    color: white;
    margin-left: auto;
}

.other-message {
    background: white;
    border: 1px solid #e9ecef;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.message-time {
    opacity: 0.8;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

#messageForm {
    display: flex;
    gap: 0.5rem;
}

#messageInput {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-send {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-send:hover {
    background: #2980b9;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.profile-photo.placeholder {
    background: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-details h3 {
    margin: 0;
    color: #2c3e50;
}

.match-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #27ae60;
}

.match-photo.placeholder {
    background: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.8rem;
    font-weight: bold;
}

.match-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.match-details h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.match-details p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

/* Стили для формы загрузки фото */
.form-group input[type="file"] {
    padding: 0.5rem 0;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .match-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
    }
    
    .match-photo {
        width: 50px;
        height: 50px;
    }
}

/* Улучшенные стили для карточек */
.profile-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.match-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.profile-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3498db;
}

.profile-photo-large.placeholder {
    background: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
    font-size: 1rem;
}

.btn-edit {
    background: #f39c12;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

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

.current-photo {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Добавить эти стили в конец файла */

/* Стили для бейджей уведомлений */
.notification-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

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

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Стили для чата */
.chat-route {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

.message {
    transition: background-color 0.3s ease;
}

.message.new-message {
    background-color: #e8f4fd;
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: #e8f4fd; }
    100% { background-color: transparent; }
}

/* Улучшенные стили для скролла */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f8f9fa;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Индикатор загрузки */
.loading-indicator {
    text-align: center;
    padding: 10px;
    color: #7f8c8d;
    font-style: italic;
}

/* Анимация для новых сообщений */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message:last-child {
    animation: slideIn 0.3s ease;
}

/* Добавить эти стили */

/* Маленькое фото в чате */
.chat-user-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.chat-user-photo-small.placeholder {
    background: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.7rem;
    font-weight: bold;
}

.chat-user-details-compact h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-user-meta {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-route-small {
    margin: 0;
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* Уведомления на карточках пользователей */
.match-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.match-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.match-card {
    position: relative;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Улучшенный заголовок чата */
.chat-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .chat-user-photo-small {
        width: 35px;
        height: 35px;
    }

    .chat-header {
        padding: 0.8rem 1rem;
    }

    .chat-user-info {
        gap: 0.6rem;
    }

    .chat-user-details-compact h3 {
        font-size: 1rem;
    }

    .match-notification {
        top: -3px;
        right: -3px;
        padding: 3px 6px;
        font-size: 0.6rem;
        min-width: 18px;
    }
}

/* Анимация для новых уведомлений */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.match-notification.new-notification {
    animation: bounce 1s ease;
}

/* Стили для групповых чатов */
.group-chats {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-create-chat {
    background: #9b59b6;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-create-chat:hover {
    background: #8e44ad;
}

.chats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.group-chat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.group-chat-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.chat-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.chat-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.chat-info p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Стили для формы выбора пользователей */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.user-option {
    cursor: pointer;
}

.user-option input {
    display: none;
}

.user-option input:checked + .user-card-small {
    border-color: #3498db;
    background: #e8f4fd;
}

.user-card-small {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-card-small:hover {
    border-color: #bdc3c7;
}

.user-photo-tiny {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
}

.user-photo-tiny.placeholder {
    background: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.7rem;
    font-weight: bold;
}

.user-info-small {
    flex: 1;
}

.user-info-small strong {
    display: block;
    font-size: 0.9rem;
}

.user-info-small span {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.selection-counter {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Стили для чата */
.group-chat-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.chat-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.participant-tag {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-add-user {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-add-user:hover {
    background: #219a52;
}

.btn-leave {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-leave:hover {
    background: #c0392b;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .chat-actions {
        flex-wrap: wrap;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для такси-виджета */
.taxi-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.taxi-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.taxi-progress {
    position: relative;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.taxi-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

.taxi-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.taxi-toggle {
    flex: 1;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-text {
    font-weight: bold;
    font-size: 0.95rem;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.toggle-input:checked + .slider {
    background-color: #27ae60;
}

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

.btn-order-taxi {
    background: #f39c12;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-order-taxi:enabled {
    background: #e67e22;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-order-taxi:enabled:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.btn-order-taxi:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.taxi-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.user-status.ready {
    border-left: 4px solid #27ae60;
}

.user-status.not-ready {
    border-left: 4px solid #e74c3c;
}

.user-name {
    font-weight: bold;
}

.status-indicator {
    font-size: 0.8rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #2c3e50;
}

.taxi-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
}

.taxi-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-footer .btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-footer .btn-primary:hover {
    background: #2980b9;
}

/* Адаптивность */
@media (max-width: 768px) {
    .taxi-controls {
        flex-direction: column;
        align-items: stretch;
    }

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

    .btn-order-taxi {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Анимация для успешного заказа */
@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.taxi-widget.all-ready {
    animation: celebrate 0.5s ease;
}

/* Стили для модального окна уведомления */
.modal-content .modal-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.close-notification {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-notification:hover {
    opacity: 0.8;
}

/* Анимация для уведомления */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Дополнительные стили для такси-виджета */
.taxi-widget.all-ready {
    animation: pulse 2s infinite;
}

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

/* Стили для прогресс-бара */
.taxi-progress {
    position: relative;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    overflow: hidden;
}

.taxi-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    width: var(--progress, 0%);
    transition: width 0.5s ease;
    z-index: 1;
}

.taxi-progress span {
    position: relative;
    z-index: 2;
}