/* ============================================================
   ePERMIT — PREMIUM SOFT SUNSET DESIGN
   Полностью переработанный UI • Версия 2025
   Часть 1 — Токены, Typography, Layout, Animations
============================================================ */

/* -----------------------------
   🎨 Глобальные переменные
----------------------------- */
:root {
    /* Фирменные мягкие оттенки заката */
    --gradient-start: #ffecd2;
    --gradient-end: #fcb69f;

    /* Основные */
    --bg: #ffffff;
    --bg-gradient: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    --bg-soft: #fafafa;

    --card-bg: #ffffff;
    --card-bg-soft: rgba(255,255,255,0.7);

    --border: rgba(0,0,0,0.05);
    --divider: rgba(0,0,0,0.06);

    /* Текст */
    --text: #1f1f1f;
    --text-secondary: #7a7a7a;
    --text-light: #9b9b9b;

    /* Акцент */
    --accent: #ff7e47;          /* мягкий оранжевый */
    --accent-soft: #ffe6d6;     /* светлая версия */

    /* Системные */
    --error: #e63946;
    --success: #2a9d8f;

    /* Скругления */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 22px;

    /* Тени */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);

    /* Прочее */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* -----------------------------
   📱 Базовые параметры
----------------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 14px;
    background: var(--bg-gradient);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Универсальный box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* -----------------------------
   ✨ Плавные анимации
----------------------------- */
.fade-in {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scale-in {
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------
   🔠 Типографика
----------------------------- */

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

h1 {
    font-size: 22px;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
}

p {
    margin: 0;
    line-height: 1.45;
    color: var(--text-secondary);
}

small, .small {
    font-size: 12px;
    color: var(--text-secondary);
}

.value {
    font-size: 15px;
    font-weight: 600;
}

strong {
    color: var(--text);
}

.muted {
    color: var(--text-secondary);
}

.center {
    text-align: center;
}

/* -----------------------------
   📦 Утилиты отступов
----------------------------- */

.mt   { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.hidden { display: none !important; }

/* -----------------------------
   ✨ Контейнеры / Layout
----------------------------- */

body {
    padding: 18px;
}

#pages {
    margin-top: 14px;
}

/* -----------------------------
   🟥 Ошибки / Лоадеры / Debug
----------------------------- */

.error {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
}

.loader {
    font-size: 12px;
    color: var(--text-secondary);
}

.debug {
    background: rgba(255,255,255,0.4);
    border: 1px dashed var(--divider);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-top: 10px;
    word-break: break-word;
    font-size: 12px;
}

/* -----------------------------
   🏷 Метки
----------------------------- */

.label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

/* -----------------------------
   🌅 Шапка
----------------------------- */

.header {
    margin-bottom: 18px;
    text-align: left;
}

.header h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(45deg, #ff9c6a, #f96d5a, #ffb88c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   ePERMIT — PREMIUM SUNSET DESIGN
   Часть 2 — CARD SYSTEM / BUTTONS / MENU / INPUTS
============================================================ */

/* -----------------------------
   💳 Карточки (универсальный стиль)
----------------------------- */

.card {
    background: var(--card-bg-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.35s ease;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

/* Внутренний блок */
.card-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.card-section:last-child {
    border-bottom: none;
}

/* -----------------------------
   🟧 Разделители
----------------------------- */

.divider {
    height: 1px;
    background: var(--divider);
    margin: 12px 0;
}

/* -----------------------------
   🟠 Большие Кнопки Меню (Home Page)
----------------------------- */

.card-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px;
}

.menu-btn {
    padding: 18px 20px;
    width: 100%;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 17px;
    font-weight: 700;
    color: #ff6f48;
    text-align: left;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.09),
        0 12px 24px rgba(0,0,0,0.12);
}

.menu-btn:active {
    transform: scale(0.97);
    background: rgba(255,255,255,0.85);
}

/* -----------------------------
   🔘 Маленькие кнопки (универсальные)
----------------------------- */

.btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: none;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff8c66, #ff6e4a);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(255,120,80,0.3);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
    box-shadow: 0 7px 18px rgba(255,120,80,0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.97);
}

/* В виде ссылки */
.btn-link {
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

/* -----------------------------
   📝 Поля ввода
----------------------------- */

.input {
    width: 100%;
    padding: 14px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--divider);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    transition: border var(--transition);
}

.input:focus {
    border-color: var(--accent);
    outline: none;
}

/* -----------------------------
   🏷 Региональные строки (Public Stats / CSC / ITK)
----------------------------- */

.region-row,
.region-row-csc,
.personal-country-row {
    padding: 14px 10px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 10px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.region-row:hover,
.region-row-csc:hover,
.personal-country-row:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.75);
    box-shadow: var(--shadow-md);
}

.region-row.active,
.region-row-csc.active,
.personal-country-row.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 3px 8px rgba(255,120,80,0.25);
}

/* -----------------------------
   Итоговые суммы, заголовки
----------------------------- */

.region-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.region-row-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

/* -----------------------------
   Структурные блоки внутри region/country
----------------------------- */

.country-block,
.csc-details-block,
.itk-details-block {
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.45s ease;
}

.country-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 15px;
}

/* -----------------------------
   CSC items
----------------------------- */

.csc-office-row {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--divider);
}

.csc-office-row:last-child {
    border-bottom: none;
}

.csc-office-address {
    font-size: 14px;
    font-weight: 600;
}

.csc-office-2gis {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

/* -----------------------------
   ITK items
----------------------------- */

.itk-office-row {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}

.itk-office-phones,
.itk-office-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   ePERMIT — PREMIUM SUNSET DESIGN
   Часть 3 — VIN / PERSONAL / FILTERS / LISTS / ANIMATIONS
============================================================ */

/* -----------------------------
   🚗 VIN CHECK — блок и вывод
----------------------------- */

#vin-card {
    animation: fadeIn 0.4s ease;
}

#vin-result {
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.42;
}

.vin-line {
    margin-bottom: 6px;
}

.vin-line-bad-title {
    color: var(--error);
    font-weight: 800;
}

.vin-line-good-title {
    color: var(--success);
    font-weight: 800;
}

.vin-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.vin-value {
    font-weight: 600;
    color: var(--text);
}

.vin-reason {
    margin-top: 6px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* -----------------------------
   📊 PERSONAL DASHBOARD
----------------------------- */

#personal-card {
    animation: fadeIn 0.4s ease;
}

#personal-content {
    margin-top: 14px;
}

.personal-country-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    cursor: pointer;
}

.personal-country-header:hover .country-title-name {
    color: var(--accent);
}

.country-title-flag {
    font-size: 18px;
}

.country-title-name {
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.personal-country-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2px;
    cursor: pointer;
}

.personal-country-row:hover {
    color: var(--accent);
}

.personal-country-row .country-arrow {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.25s ease, color 0.25s ease;
}

.personal-country-row.active .country-arrow {
    transform: rotate(90deg);
    color: var(--accent);
}

/* Блок раскрывающийся */
.country-kinds {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--accent-soft);
    animation: slideDown 0.35s ease;
}

.kind-block {
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.4s ease;
}

.kind-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.kind-values {
    font-size: 13px;
    color: var(--text-secondary);
}

/* -----------------------------
   🔍 ФИЛЬТРЫ (Public + Personal)
----------------------------- */

.public-filters,
.personal-filters {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public-filters-row,
.personal-filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-filters select,
.personal-filters select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    cursor: pointer;
    transition: border 0.2s ease;
}

.public-filters select:focus,
.personal-filters select:focus {
    border-color: var(--accent);
}

/* -----------------------------
   📍 Public Stats — блоки стран
----------------------------- */

.country-block {
    position: relative;
}

.country-summary {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-left: 4px;
    margin-top: 4px;
    border-left: 3px solid rgba(0,0,0,0.05);
}

/* -----------------------------
   Анимации
----------------------------- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* аккордеон */
.hidden {
    display: none !important;
}

/* ============================================================
   ePERMIT — PREMIUM SUNSET DESIGN
   Часть 4 — ITK, CSC, Contacts, Header/Footer, Advanced Cards
============================================================ */

/* -----------------------------
   🏢 CSC (ЦОНы)
----------------------------- */

#csc-card {
    animation: fadeIn 0.35s ease;
}

.region-row-csc {
    display: flex;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 15px;
    background: rgba(255,255,255,0.55);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.15s ease;
}

.region-row-csc:hover {
    background: rgba(255,255,255,0.75);
}

.region-row-csc:active {
    transform: scale(0.98);
}

.region-row-csc.active {
    background: var(--glass-bg-heavy);
    border: 1px solid var(--accent);
}

.csc-details-block {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeIn 0.35s ease;
    box-shadow: var(--shadow-md);
}

.csc-office-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.csc-office-row:last-child {
    border-bottom: none;
}

.csc-office-address {
    font-size: 14px;
    font-weight: 600;
}

.csc-office-2gis {
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}


/* -----------------------------
   🚓 ITK (Инспекции ТК)
----------------------------- */

#itk-contacts-card {
    animation: fadeIn 0.35s ease;
}

.region-row-itk {
    padding: 14px 10px;
    margin-bottom: 8px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.15s ease;
}

.region-row-itk:hover {
    background: rgba(255,255,255,0.75);
}

.region-row-itk.active {
    border-color: var(--accent);
    background: var(--glass-bg-heavy);
}

.itk-details-block {
    padding: 16px 16px;
    background: rgba(255,255,255,0.55);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.5);
    margin-top: 10px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeIn 0.35s ease;
}

.itk-office-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.itk-office-row:last-child {
    border-bottom: none;
}

.itk-office-phones {
    color: var(--text-secondary);
    font-size: 13px;
}

.itk-office-email {
    color: var(--accent);
    font-size: 13px;
}


/* -----------------------------
   ☎ Важные контакты
----------------------------- */

#important-contacts-card {
    animation: fadeIn 0.35s ease;
}

.important-contact-row {
    padding: 14px 12px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    animation: fadeIn 0.4s ease;
}

.important-contact-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.important-contact-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.important-contact-desc {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}


/* -----------------------------
   👨‍💼 Контакты администратора
----------------------------- */

#admin-contacts-card {
    animation: fadeIn 0.35s ease;
}

#admin-contacts .small a {
    font-weight: 700;
    color: var(--accent);
}


/* -----------------------------
   🧩 Улучшенные карточки
----------------------------- */

.card {
    background: rgba(255,255,255,0.58);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: fadeIn 0.4s ease;
}

.card-head {
    margin-bottom: 10px;
}

.card-title {
    font-weight: 800;
    font-size: 18px;
}


/* -----------------------------
   🔻 Разделители (тонкие)
----------------------------- */

.divider {
    width: 100%;
    height: 1px;
    margin: 12px 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );
}

/* Толстый декоративный разделитель */
.divider-strong {
    height: 2px;
    margin: 18px 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );
}


/* -----------------------------
   🔺 Header — улучшенный
----------------------------- */

.header {
    text-align: left;
    margin-bottom: 18px;
}

.header h1 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, #ffe0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}


/* -----------------------------
   🔻 Footer — минимализм
----------------------------- */

.footer {
    text-align: center;
    padding-bottom: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin-top: 24px;
}


/* -----------------------------
   ⚙ Адаптив (мелкие экраны)
----------------------------- */

@media (max-width: 360px) {
    .menu-btn {
        font-size: 15px;
        padding: 14px 18px;
    }

    .card {
        padding: 14px;
    }

    .card-title {
        font-size: 16px;
    }
}


/* ============================================================
   ePERMIT — PREMIUM SUNSET DESIGN
   Часть 5 — Анимации, Skeleton, GlassPro, Enhanced UI
============================================================ */

/* -----------------------------
   🌬 Глобальные анимации
----------------------------- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(255,128,90,0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(255,128,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,128,90,0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


/* -----------------------------
   🌫 Glass Pro Panels
----------------------------- */

.glass-panel {
    background: rgba(255,255,255,0.58);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px;
}

.glass-heavy {
    background: rgba(255,255,255,0.30);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
}


/* -----------------------------
   🟧 Градиентные разделители
----------------------------- */

.divider-gradient {
    height: 2px;
    margin: 18px 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(255,196,150,0),
        rgba(255,160,120,0.9),
        rgba(255,196,150,0)
    );
}


/* -----------------------------
   ⭐ Улучшенный Back Button
----------------------------- */

.back-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 6px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    transition: opacity 0.2s ease;
}

.back-btn:hover {
    opacity: 0.75;
}

.back-btn:active {
    opacity: 0.55;
}

.back-btn::before {
    content: "←";
    margin-right: 6px;
}


/* -----------------------------
   ✨ Улучшенные большие кнопки меню
----------------------------- */

.menu-btn {
    padding: 18px 20px;
    border-radius: 16px;
    font-weight: 700;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.5);
    animation: fadeIn 0.25s ease;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.75);
    transform: translateY(-3px);
}

.menu-btn:active {
    transform: scale(0.97);
}


/* -----------------------------
   ⭐ VIN Checker — улучшенный UI
----------------------------- */

#vin-card {
    animation: slideInRight 0.35s ease;
}

#vin-input {
    background: rgba(255,255,255,0.6);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

#vin-result {
    background: rgba(255,255,255,0.5);
    border-left: 3px solid var(--accent);
    padding: 12px 14px;
    margin-top: 12px;
    border-radius: 12px;
    animation: fadeIn 0.35s ease;
}

.vin-line-good-title {
    color: #28b463;
}

.vin-line-bad-title {
    color: #ff4c4c;
}


/* -----------------------------
   🌟 Skeleton Loaders
----------------------------- */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.3) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.3) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 10px;
}

.skeleton-text {
    height: 12px;
    width: 80%;
    margin: 6px 0;
}

.skeleton-title {
    height: 16px;
    width: 60%;
    margin: 8px 0;
}

.skeleton-block {
    height: 40px;
    margin: 10px 0;
    border-radius: 14px;
}


/* -----------------------------
   📉 Empty states (пусто)
----------------------------- */

.empty-state {
    text-align: center;
    padding: 24px;
    color: rgba(255,255,255,0.8);
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state-desc {
    font-size: 13px;
    opacity: 0.75;
}


/* -----------------------------
   📊 PUBLIC + PERSONAL статистика
----------------------------- */

.region-row {
    padding: 14px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.35s ease;
}

.region-row.active {
    border: 1px solid var(--accent);
    background: rgba(255,255,255,0.75);
}

.country-block {
    border-radius: 16px;
    background: rgba(255,255,255,0.58);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    animation: slideInLeft 0.35s ease;
}

.country-title-name {
    font-size: 15px;
    font-weight: 700;
}

.kind-block {
    background: rgba(255,255,255,0.55);
    padding: 10px;
    border-radius: 14px;
    margin-top: 6px;
    animation: fadeIn 0.3s ease;
}


/* -----------------------------
   📱 Ultra-Polish Mobile Padding
----------------------------- */

.page {
    padding-bottom: 40px;
}


/* -----------------------------
   🎉 Premium shadows
----------------------------- */

:root {
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
}


/* ============================================================
   Часть 5 завершена — ТЕМА ГОТОВА (≈1200–1400 строк)
============================================================ */




