/* ========================================
   ОСНОВНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
======================================== */

:root {
    /* Цвета Telegram (светлая тема по умолчанию) */
    --tg-bg: #ffffff;
    --tg-text: #000000;
    --tg-hint: #999999;
    --tg-link: #2481cc;
    --tg-button: #2481cc;
    --tg-button-text: #ffffff;
    --tg-secondary-bg: #f4f4f5;
    --tg-accent: #2481cc;
    --tg-destructive: #e53935;
    --tg-success: #4caf50;
    --tg-warning: #ff9800;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Темная тема (автоматически из Telegram) */
body.dark-theme {
    --tg-bg: #212121;
    --tg-text: #ffffff;
    --tg-hint: #aaaaaa;
    --tg-secondary-bg: #181818;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--tg-theme-bg-color, var(--tg-bg));
    color: var(--tg-theme-text-color, var(--tg-text));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 100px;
}

/* ========================================
   ШАПКА
======================================== */

.header {
    text-align: center;
    padding: 24px 0 32px;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 42px;
    animation: bounce 2s infinite;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tg-accent) 0%, #1e88e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 15px;
}

/* ========================================
   ОСНОВНАЯ КАРТОЧКА
======================================== */

.main-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 14px;
}

/* ========================================
   УМНОЕ ПОЛЕ ВВОДА
======================================== */

.input-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.smart-input {
    width: 100%;
    padding: 16px 50px 16px 18px;
    font-size: 18px;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: var(--tg-theme-bg-color, var(--tg-bg));
    color: var(--tg-theme-text-color, var(--tg-text));
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    outline: none;
}

.smart-input:focus {
    border-color: var(--tg-theme-button-color, var(--tg-accent));
    box-shadow: 0 0 0 4px rgba(36, 129, 204, 0.1);
}

.smart-input.valid {
    border-color: var(--tg-success);
    background: rgba(76, 175, 80, 0.05);
}

.smart-input.invalid {
    border-color: var(--tg-destructive);
    background: rgba(229, 57, 53, 0.05);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    pointer-events: none;
    transition: var(--transition);
}

/* Индикатор типа */
.input-type-indicator {
    min-height: 32px;
    margin-bottom: 12px;
}

.type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    animation: fadeIn 0.3s ease-out;
}

.type-badge.vin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.type-badge.grz {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Подсказки */
.hint-box {
    background: var(--tg-theme-bg-color, var(--tg-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    display: none;
}

.hint-box.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.hint-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hint-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.hint-text {
    flex: 1;
}

.hint-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.hint-text small {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 12px;
}

.hint-divider {
    height: 1px;
    background: var(--tg-theme-hint-color, var(--tg-hint));
    opacity: 0.2;
    margin: 12px 0;
}

/* ========================================
   КНОПКА ПРОВЕРКИ
======================================== */

.btn-check {
    width: 100%;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: var(--tg-theme-button-text-color, var(--tg-button-text));
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-check:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-check:active:not(:disabled) {
    transform: translateY(0);
}

.btn-check:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 20px;
}

/* ========================================
   НИЖНЕЕ СТЕКЛЯННОЕ МЕНЮ НАВИГАЦИИ
======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.4s ease-out;
}

body.dark-theme .bottom-nav {
    background: rgba(33, 33, 33, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    transition: var(--transition);
    border-radius: var(--radius-sm);
    min-width: 60px;
    position: relative;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active {
    color: var(--tg-theme-button-color, var(--tg-accent));
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--tg-theme-button-color, var(--tg-accent));
    border-radius: 2px;
    animation: slideDown 0.3s ease-out;
}

.nav-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* Центральная кнопка (большая) */
.nav-item-primary {
    background: linear-gradient(135deg, var(--tg-accent) 0%, #1e88e5 100%);
    color: white !important;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    margin: -24px 0 0;
    box-shadow: 0 4px 16px rgba(36, 129, 204, 0.5);
    padding: 0;
    position: relative;
    z-index: 10000;
}

.nav-item-primary:active {
    transform: scale(0.9);
}

.nav-item-primary::before {
    display: none;
}

.nav-icon-large {
    font-size: 28px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* ========================================
   ПРЕИМУЩЕСТВА
======================================== */

.features {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:active {
    transform: scale(0.98);
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.feature-content p {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 13px;
    line-height: 1.4;
}

/* ========================================
   СТРАНИЦА ПРОВЕРКИ (CHECK)
======================================== */

.check-header {
    text-align: center;
    padding: 40px 0 32px;
    animation: fadeInDown 0.6s ease-out;
}

.check-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.check-icon-pulse {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-accent) 0%, #1e88e5 100%);
    animation: pulse 2s ease-in-out infinite;
}

.check-icon-pulse::before,
.check-icon-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: ripple 2s ease-out infinite;
}

.check-icon-pulse::after {
    animation-delay: 1s;
}

.check-icon {
    font-size: 48px;
    position: relative;
    z-index: 1;
}

.check-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.check-subtitle {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 15px;
    margin-bottom: 20px;
}

.check-value {
    font-size: 20px;
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: inline-block;
}

.check-type-badge {
    margin-top: 12px;
}

/* Таймер обратного отсчета */
.check-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px auto;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(36, 129, 204, 0.15));
    border: 2px solid rgba(30, 136, 229, 0.3);
    border-radius: var(--radius-lg);
    max-width: 400px;
    animation: timerPulse 2s ease-in-out infinite;
}

.timer-icon {
    font-size: 32px;
    animation: timerSpin 3s linear infinite;
}

.timer-info {
    text-align: left;
}

.timer-label {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    margin-bottom: 4px;
}

.timer-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-accent);
}

@keyframes timerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(30, 136, 229, 0.2);
    }
}

@keyframes timerSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Важная информация */
.info-card.important-info {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.3);
    font-weight: 600;
}

.info-card.important-info .info-icon {
    font-size: 28px;
}

/* Прогресс-бар */
.progress-section {
    margin: 32px 0;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.progress-bar-wrapper {
    position: relative;
}

.progress-bar-bg {
    height: 12px;
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--tg-accent) 0%, 
        #1e88e5 50%, 
        var(--tg-accent) 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.5s ease-out;
    animation: shimmer 2s linear infinite;
    position: relative;
}

.progress-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: glow 2s linear infinite;
}

.progress-percentage {
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-button-color, var(--tg-accent));
}

/* Этапы проверки */
.check-stages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.stage-item {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: var(--transition);
    opacity: 0.5;
    animation: fadeInUp 0.4s ease-out backwards;
}

.stage-item[data-stage="1"] { animation-delay: 0.1s; }
.stage-item[data-stage="2"] { animation-delay: 0.15s; }
.stage-item[data-stage="3"] { animation-delay: 0.2s; }
.stage-item[data-stage="4"] { animation-delay: 0.25s; }
.stage-item[data-stage="5"] { animation-delay: 0.3s; }
.stage-item[data-stage="6"] { animation-delay: 0.35s; }
.stage-item[data-stage="7"] { animation-delay: 0.4s; }

.stage-item.active {
    opacity: 1;
    box-shadow: 0 0 20px rgba(36, 129, 204, 0.3);
    border: 2px solid var(--tg-theme-button-color, var(--tg-accent));
}

.stage-item.completed {
    opacity: 1;
}

.stage-icon {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-emoji {
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.stage-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--tg-theme-button-color, var(--tg-accent));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
}

.stage-item.active .stage-loader {
    opacity: 1;
}

.stage-content {
    flex: 1;
}

.stage-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.stage-description {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    margin-bottom: 8px;
}

.stage-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tg-theme-hint-color, var(--tg-hint));
}

.stage-item.active .status-dot {
    background: var(--tg-theme-button-color, var(--tg-accent));
    animation: pulse-dot 1s ease-in-out infinite;
}

.stage-item.completed .status-dot {
    background: var(--tg-success);
}

.status-text {
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.stage-item.active .status-text {
    color: var(--tg-theme-button-color, var(--tg-accent));
}

.stage-item.completed .status-text {
    color: var(--tg-success);
}

.stage-check {
    font-size: 24px;
    color: var(--tg-success);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease-out;
}

.stage-item.completed .stage-check {
    opacity: 1;
    transform: scale(1);
}

/* Информационные карточки */
.check-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.info-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-text {
    color: var(--tg-theme-text-color, var(--tg-text));
}

/* Действия */
.check-actions {
    text-align: center;
    margin-bottom: 100px;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.btn-cancel {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--tg-theme-hint-color, var(--tg-hint));
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    border-color: var(--tg-destructive);
    color: var(--tg-destructive);
}

.btn-cancel:active {
    transform: scale(0.95);
}

/* ========================================
   СТРАНИЦА ИСТОРИИ
======================================== */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.6s ease-out;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    margin-bottom: 32px;
    font-size: 15px;
}

.history-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.4s ease-out;
}

.history-card:active {
    transform: scale(0.98);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-date {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.history-body {
    margin-bottom: 12px;
}

.history-value {
    font-size: 18px;
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.history-info {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.history-footer {
    display: flex;
    justify-content: flex-end;
}

.history-btn {
    padding: 8px 16px;
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: var(--tg-theme-button-text-color, var(--tg-button-text));
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.history-btn:active {
    transform: scale(0.95);
}

/* ========================================
   СТРАНИЦА РЕЗУЛЬТАТОВ (RESULTS)
======================================== */

.results-header {
    text-align: center;
    padding: 32px 0 24px;
    animation: fadeInDown 0.6s ease-out;
}

.results-success-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: scaleIn 0.6s ease-out;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-subtitle {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 15px;
}

/* Карточка информации об авто */
.car-info-card {
    background: linear-gradient(135deg, var(--tg-accent) 0%, #1e88e5 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.car-brand-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo {
    font-size: 32px;
}

.car-details {
    flex: 1;
}

.car-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.car-specs {
    font-size: 14px;
    opacity: 0.9;
}

/* Круговой график оценки */
.car-score {
    text-align: center;
}

.score-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 70.75;
    transition: stroke-dashoffset 1.5s ease-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
}

.score-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Идентификаторы */
.identifiers-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.identifier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identifier-label {
    font-size: 14px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.identifier-value {
    font-size: 15px;
    font-weight: 600;
    font-family: monospace;
    letter-spacing: 1px;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.35s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.45s; }

.stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

/* Алерты */
.alerts-section {
    margin-bottom: 24px;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
}

.alert-item.warning {
    border-color: var(--tg-warning);
}

.alert-item.success {
    border-color: var(--tg-success);
}

.alert-item.danger {
    border-color: var(--tg-destructive);
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
    font-size: 14px;
}

/* Детальная информация */
.details-section {
    margin-bottom: 24px;
}

.detail-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.detail-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.detail-header:active {
    background: rgba(0, 0, 0, 0.03);
}

body.dark-theme .detail-header:active {
    background: rgba(255, 255, 255, 0.03);
}

.detail-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.detail-icon {
    font-size: 24px;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
}

.detail-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--tg-theme-hint-color, var(--tg-hint));
    color: white;
    margin-left: auto;
}

.detail-badge.success {
    background: var(--tg-success);
}

.detail-badge.warning {
    background: var(--tg-warning);
}

.detail-badge.danger {
    background: var(--tg-destructive);
}

.detail-arrow {
    font-size: 24px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    transition: transform 0.3s ease;
}

.detail-card.open .detail-arrow {
    transform: rotate(90deg);
}

.detail-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.detail-card.open .detail-body {
    max-height: 1000px;
    padding: 0 16px 16px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -16px;
    width: 2px;
    background: var(--tg-theme-hint-color, var(--tg-hint));
    opacity: 0.3;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tg-theme-hint-color, var(--tg-hint));
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-item.active .timeline-dot {
    background: var(--tg-theme-button-color, var(--tg-accent));
    box-shadow: 0 0 0 4px rgba(36, 129, 204, 0.2);
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

/* ДТП */
.accident-item {
    background: var(--tg-theme-bg-color, var(--tg-bg));
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.accident-item:last-child {
    margin-bottom: 0;
}

.accident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.accident-date {
    font-size: 14px;
    font-weight: 600;
}

.accident-severity {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.accident-severity.minor {
    background: rgba(76, 175, 80, 0.1);
    color: var(--tg-success);
}

.accident-severity.moderate {
    background: rgba(255, 152, 0, 0.1);
    color: var(--tg-warning);
}

.accident-severity.severe {
    background: rgba(229, 57, 53, 0.1);
    color: var(--tg-destructive);
}

.accident-description {
    font-size: 14px;
    margin-bottom: 8px;
}

.accident-damage {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

/* Результаты проверок */
.check-result {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--tg-theme-bg-color, var(--tg-bg));
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.check-result:last-child {
    margin-bottom: 0;
}

.check-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.check-content {
    flex: 1;
}

.check-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.check-description {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

/* Галерея фотографий */
.gallery-section {
    margin-bottom: 24px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:active img {
    transform: scale(1.1);
}

.photo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

/* Модальное окно фото */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.photo-modal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.photo-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.photo-nav-btn:active {
    transform: scale(0.9);
}

.photo-counter {
    color: white;
    font-size: 16px;
}

/* Рекомендации */
.recommendations-section {
    margin-bottom: 24px;
}

.recommendation-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
}

.recommendation-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.recommendation-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recommendation-content p {
    font-size: 14px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    line-height: 1.5;
}

.recommendation-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.recommendation-content li {
    font-size: 14px;
    color: var(--tg-theme-text-color, var(--tg-text));
    margin-bottom: 6px;
}

/* Действия */
.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 100px;
}

.btn-primary, .btn-secondary {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: var(--tg-theme-button-text-color, var(--tg-button-text));
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    color: var(--tg-theme-text-color, var(--tg-text));
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ========================================
   СТРАНИЦА ТАРИФОВ
======================================== */

.tariffs-section {
    margin-bottom: 32px;
}

.tariff-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.4s ease-out backwards;
}

.tariff-card:nth-child(2) { animation-delay: 0.1s; }
.tariff-card:nth-child(3) { animation-delay: 0.2s; }
.tariff-card:nth-child(4) { animation-delay: 0.3s; }
.tariff-card:nth-child(5) { animation-delay: 0.4s; }

.tariff-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    background: var(--tg-theme-hint-color, var(--tg-hint));
    color: white;
}

.tariff-badge.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tariff-badge.discount {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tariff-badge.vip {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.tariff-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tariff-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tariff-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.price-old {
    font-size: 18px;
    text-decoration: line-through;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.price-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--tg-theme-button-color, var(--tg-accent));
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
}

.tariff-description {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    margin-bottom: 20px;
    font-size: 14px;
}

.tariff-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .feature-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
}

.tariff-button {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--tg-theme-button-color, var(--tg-accent));
    background: transparent;
    color: var(--tg-theme-button-color, var(--tg-accent));
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tariff-button.primary {
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: var(--tg-theme-button-text-color, var(--tg-button-text));
}

.tariff-button:active {
    transform: scale(0.98);
}

/* Сравнение */
.comparison-section {
    margin-bottom: 32px;
}

.comparison-table {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}

.comparison-row.header {
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: white;
    font-weight: 600;
}

.comparison-cell {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-theme .comparison-cell {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.comparison-cell:first-child {
    text-align: left;
}

.comparison-cell.highlight {
    background: rgba(36, 129, 204, 0.1);
}

/* FAQ */
.faq-section {
    margin-bottom: 32px;
}

.faq-item {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 16px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 16px 16px;
}

/* Преимущества */
.benefits-section {
    margin-bottom: 100px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.benefit-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-card p {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

/* ========================================
   СТРАНИЦА ПРОФИЛЯ
======================================== */

.profile-header {
    text-align: center;
    padding: 32px 0 24px;
    animation: fadeInDown 0.6s ease-out;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-accent) 0%, #1e88e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-lg);
}

.avatar-emoji {
    font-size: 50px;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-username {
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 15px;
}

.profile-stats {
    margin-bottom: 24px;
}

.stat-card-profile {
    background: linear-gradient(135deg, var(--tg-accent) 0%, #1e88e5 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
}

.stat-card-profile .stat-icon {
    font-size: 40px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-action {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mini-stat {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.mini-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-stat-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.subscriptions-section,
.recent-checks-section,
.referral-section,
.settings-section {
    margin-bottom: 24px;
}

.empty-subscriptions {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.link-button {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: var(--tg-theme-button-text-color, var(--tg-button-text));
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
}

.see-all-link {
    display: block;
    text-align: center;
    padding: 12px;
    color: var(--tg-theme-button-color, var(--tg-accent));
    text-decoration: none;
    font-weight: 600;
}

.referral-card {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    border-radius: var(--radius-lg);
    padding: 20px;
}

.referral-info {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.referral-icon {
    font-size: 40px;
}

.referral-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.referral-info p {
    font-size: 14px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.referral-stat {
    background: var(--tg-theme-bg-color, var(--tg-bg));
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.referral-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.referral-stat-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.referral-button {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--tg-theme-button-color, var(--tg-accent));
    color: var(--tg-theme-button-text-color, var(--tg-button-text));
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--tg-theme-bg-color, var(--tg-bg));
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.setting-item {
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--tg-theme-text-color, var(--tg-text));
}

.setting-info {
    display: flex;
    gap: 14px;
    align-items: center;
    flex: 1;
}

.setting-icon {
    font-size: 24px;
}

.setting-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.setting-description {
    font-size: 13px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.setting-toggle input {
    display: none;
}

.setting-toggle label {
    width: 50px;
    height: 30px;
    background: var(--tg-theme-hint-color, var(--tg-hint));
    border-radius: 15px;
    display: block;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.setting-toggle label::after {
    content: '';
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.setting-toggle input:checked + label {
    background: var(--tg-success);
}

.setting-toggle input:checked + label::after {
    left: 22px;
}

.setting-arrow {
    font-size: 24px;
    color: var(--tg-theme-hint-color, var(--tg-hint));
}

.profile-actions {
    margin-bottom: 100px;
}

.action-button {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--tg-theme-secondary-bg-color, var(--tg-secondary-bg));
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-button.logout {
    color: var(--tg-destructive);
}

/* ========================================
   ФУТЕР
======================================== */

.footer {
    text-align: center;
    padding: 24px 0;
    color: var(--tg-theme-hint-color, var(--tg-hint));
    font-size: 13px;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.footer p {
    margin: 6px 0;
}

.version {
    font-size: 11px;
    opacity: 0.7;
}

/* ========================================
   АНИМАЦИИ
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes glow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   АДАПТИВНОСТЬ
======================================== */

@media (max-width: 480px) {
    .container {
        padding: 16px 12px 90px;
    }
    
    .main-card {
        padding: 20px 16px;
    }
    
    .smart-input {
        font-size: 16px;
    }
    
    .action-grid {
        gap: 10px;
    }
    
    .action-card {
        padding: 16px 12px;
    }
}


/* ========================================
   SVG ИКОНКИ
======================================== */

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.icon-xl {
    width: 40px;
    height: 40px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

/* Навигация иконки */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.nav-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-large svg {
    width: 28px;
    height: 28px;
}

.nav-item .icon {
    width: 22px;
    height: 22px;
}

.nav-item-primary .icon {
    width: 28px;
    height: 28px;
}

/* Logo иконки */
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    stroke: #2481cc;
    stroke-width: 2.5;
}

/* Feature иконки */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

/* Stat иконки */
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

/* Кнопки с иконками */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Input иконки */
.input-icon svg {
    width: 20px;
    height: 20px;
}

/* Hint иконки */
.hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.hint-icon svg {
    width: 28px;
    height: 28px;
}

/* Цветные иконки для премиального вида */
.feature-icon svg {
    stroke: #2481cc;
    stroke-width: 2;
}

.stat-icon svg {
    stroke: #4caf50;
    stroke-width: 2;
}

.logo-icon svg {
    stroke: url(#icon-gradient-primary);
    stroke-width: 2.5;
}

/* Градиенты для иконок */
.icon-car { stroke: #2481cc; }
.icon-diamond { stroke: #9c27b0; }
.icon-wallet { stroke: #4caf50; }
.icon-gift { stroke: #ff9800; }
.icon-flame { stroke: #ff5722; }
.icon-dollar { stroke: #4caf50; }
.icon-sparkles { stroke: #ffd700; }
.icon-traffic-light { stroke: #2481cc; }
.icon-alert-triangle { stroke: #ff9800; }
.icon-lock { stroke: #9c27b0; }
.icon-taxi { stroke: #ffc107; }
.icon-bar-chart { stroke: #2481cc; }
.icon-camera { stroke: #2196f3; }

