/* ==============================
   CSS SAAS
============================== */
:root {
    /* Основные цвета - как в dashboard.css */
    --sidebar-color: #f1effe;
    --sidebarDark-color: #e4e2fb;
    --primary-dark: #3a0ca3;
    --primary-light: #4895ef;
    --secondary-color: #4cc9f0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    /* Оттенки серого */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    /* Текст */
    --text-primary: #1a1d28;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    /* Границы */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    /* Тени - как в dashboard.css */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 35px rgba(0,0,0,0.12);
    /* Радиусы скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    /* Переходы */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-success: linear-gradient(135deg, var(--success-color), #27ae60);
    --gradient-warning: linear-gradient(135deg, var(--warning-color), #e67e22);
    --gradient-danger: linear-gradient(135deg, var(--danger-color), #c0392b);
    --bg-top: #F0EDFF;
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    --accordion-icon-color: #212529;
    --accordion-icon-active: #4b4bbf;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-y: scroll;
    overflow-x: hidden;
}

#scrollToTopBtn {
    transform: translateX(-20px);
}
@media (max-width: 767.98px) {
    #scrollToTopBtn {
        transform: translateX(0);
    }
}
/* ==============================
   ШРИФТЫ И ИКОНКИ
============================== */
@font-face {
    font-family: 'Material Symbols Rounded';
    src: url('/fonts/material/MaterialSymbolsRounded-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* Иконки Material Symbols в карточках */
.qr-icon {
    font-size: 1.8rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--primary-color, #0d6efd);
    transition: transform 0.2s ease;
}

.card:hover .qr-icon {
    transform: scale(1.1);
}

.hover-card .qr-icon {
    display: inline-block;
    line-height: 1;
}

/* ==============================
   БАЗОВЫЕ СТИЛИ
============================== */
.abstract {
    background: var(--bg-top);
}

.right-header {
    background: transparent;
}

/* ==============================
   КОНТЕЙНЕРЫ И РАЗДЕЛЫ
============================== */
.content-container {
    padding-bottom: 2rem;
}

.hero-section {
    min-height: 25vh;
    color: var(--primary-color);
    padding: 0 15px;
}

    .hero-section h1 {
        font-size: 3rem;
        font-weight: bold;
    }

    .hero-section p {
        font-size: 1.5rem;
        opacity: 0.85;
    }

.fullScreen {
    min-height: 100vh;
    padding: 2rem;
    display: block;
    background: var(--bg-top);
}

    .fullScreen h1,
    .fullScreen h3 {
        text-align: center;
    }

/* ==============================
   СЕКЦИЯ ФИЧЕЙ
============================== */
.features-section {
    padding: 4rem 1rem;
}

.feature-item {
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    margin: 30px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

    .feature-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    .feature-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

/* ==============================
   АНИМАЦИИ
============================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

.fade-grow {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .fade-grow.visible {
        opacity: 1;
        transform: scale(1);
    }

    .fade-grow.delay {
        transition-delay: 0.3s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==============================
   QR CODE САЙДБАР
============================== */
.sticky-wrapper {
    position: sticky;
    display: flex;
    width: fit-content;
    max-width: 100%;
    min-width: 240px;
    margin: 0 auto;
    padding: 10px;
    transition: all 0.2s ease;
}

    /* Внутренний контейнер */
    .sticky-wrapper .inner-container {
        width: 100%;
        max-width: 400px;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

/* Адаптация */
@media (max-width: 992px) {
    .sticky-wrapper .inner-container {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .sticky-wrapper {
        position: static;
        width: 100%;
        margin: 20px 0;
    }

        .sticky-wrapper .inner-container {
            max-width: 300px;
        }
}

@media (max-width: 480px) {
    .sticky-wrapper .inner-container {
        max-width: 260px;
    }
}
#resetDesign {
    margin-bottom: 20px;
}
#qrSidebar {
    position: sticky;
    top: 80px; /* Высота шапки (зависит от вашей шапки) */
    height: auto;
    max-height: calc(100vh - 100px); /* Высота экрана минус отступы */
    overflow-y: auto;
    margin-bottom: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

#resetDesign {
    border: 3px solid groove;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    height: auto;
    margin-bottom: 20px;
}

.qr-code-container #qrSidebar {
    position: sticky;
    top: 200px; /* Отступ от верха экрана */
    height: fit-content;
    max-height: calc(100vh - 140px);
    transition: all 0.2s ease-out;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

    /* Для Webkit-браузеров (Chrome, Safari, Edge) */
    .qr-code-container  #qrSidebar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: transparent;
    /* Центрирование и масштабирование */
    width: 100%;
    flex-shrink: 0;
}

    .qr-code-container svg {
        /* Более гибкое масштабирование с учетом доступного пространства */
        margin-top: 70px;
        width: clamp(140px, min(25vw, 30vh), 280px) !important;
        height: auto !important;
        max-width: 100%;
        max-height: 100%;
        /* Плавное масштабирование */
        transition: width 0.2s ease-out, height 0.2s ease-out;
        /* Сохраняем пропорции */
        object-fit: contain;
    }

/* Опционально: добавляем контейнер-обертку для лучшего контроля */
.qr-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
    flex: 1;
}

/* ==============================
   АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ
============================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .qr-code-container #qrSidebar {
        top: 80px;
        padding: 15px;
        max-height: calc(100vh - 120px);
    }

        .qr-code-container #qrSidebar .qr-code-container svg {
            width: clamp(140px, 22vw, 240px);
            margin-top: 20px;
        }
}



/* ==============================
   ДЛЯ БОЛЬШИХ ДЕСКТОПОВ (опционально)
============================== */
@media (min-width: 1400px) {
    .qr-code-container #qrSidebar .qr-code-container svg {
        width: clamp(200px, 20vw, 320px);
        margin-top: 40px;
    }
}

#UpdateBtn {
    margin-bottom: 20px;
}

.qr-info-panel {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

    .qr-info-panel:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border-color: #c0c0c0;
    }

.tip-of-day {
    border-left: 3px solid var(--bs-primary);
}



/* Мобильная панель - фиксированная внизу */
.mobile-qr-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 20px 20px 0 0;
    z-index: 100;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    transition: transform 0.3s ease;
}

    /* Скрываем панель при скролле вниз (опционально) */
    .mobile-qr-panel.hide {
        transform: translateY(100%);
    }

.mobile-qr-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* QR код */
.mobile-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .mobile-qr-code .qr-code-container svg {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px;
    }

/* Информация о QR */
.mobile-qr-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex: 1;
}

    .info-row .small {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Подсказка дня */
.mobile-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
}

/* Кнопка сохранения */
.mobile-save-btn {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border: none;
    color: white;
}

/* Отступ нужен только содержимому страницы. Отступ у body создавал
   белую полосу под футером на мобильных устройствах. */
@media (max-width: 768px) {
    .main-content, .row.abstract {
        padding-bottom: 30px;
    }
}
/* ==============================
   МОБИЛЬНАЯ ПАНЕЛЬ - ПРОСТО НИЖЕ КОНТЕНТА
============================== */

.mobile-qr-panel {
    position: relative;
    margin-top: 0;
    background: var(--bg-top);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    /* QR код - увеличенный */
    .mobile-qr-panel .qr-code-container {
        margin-top: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

        .mobile-qr-panel .qr-code-container svg {
            margin-top: 0;
            width: 100% !important;
            max-width: 280px !important;
            height: auto !important;
        }

/* Информация о QR */
.mobile-qr-info {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    gap: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

    .info-row i {
        font-size: 14px;
        color: #6c757d;
    }

    .info-row .small {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Подсказка дня */
.mobile-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 12px;
}

    .mobile-tip i {
        font-size: 14px;
        flex-shrink: 0;
        margin-top: 2px;
    }

/* Кнопка сохранения */
.mobile-save-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border: none;
    color: white;
    cursor: pointer;
}

    .mobile-save-btn:active {
        transform: scale(0.98);
    }

/* Для маленьких телефонов */
@media (max-width: 480px) {
    .mobile-qr-panel .qr-code-container svg {
        max-width: 240px !important;
    }

    .mobile-qr-info {
        flex-direction: column;
        gap: 8px;
    }

    .info-row .small {
        white-space: normal;
        word-break: break-all;
    }
}
/* ==============================
   АККОРДИОН
============================== */
.accordion-button {
    background-color: var(--sidebar-color);
    color: #212529;
    font-weight: 800;
    transition: var(--transition);
    border: none;
    box-shadow: none;
    height: 70px;
}

    .accordion-button:not(.collapsed) {
        background-color: #f1effe;
        color: #0d6efd;
    }

    .accordion-button:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        border-color: #f1effe;
    }
.accordion-body {
    background: var(--light-color);
}
/* ==============================
   ФОРМЫ И ИНПУТЫ
============================== */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-300);
    border-radius: 30px;
    height: 3px;
    outline: none;
    transition: background-color var(--transition);
    width: 100%;
}

    .form-range::-webkit-slider-runnable-track {
        background: #a0c4f4;
        border-radius: 30px;
        height: 3px;
    }

    .form-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        background: var(--primary-dark);
        border: 2px solid white;
        border-radius: 50%;
        cursor: pointer;
        width: 16px;
        height: 16px;
        margin-top: -7px;
    }

    .form-range:hover {
        background: #a0c4f4;
    }

/* ==============================
   КНОПКИ
============================== */
#usePasswordToggle {
    margin-right: 20px !important;
}

#generateQrBtn {
    background-color: var(--primary-color);
    border: none;
    transition: all var(--transition);
}

    #generateQrBtn:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

/* ==============================
   ИКОНКИ (ПРЕВЬЮ И ВЫБОР)
============================== */
.icon-option {
    display: inline-block;
    margin: 10px;
}

    .icon-option input[type="radio"] {
        display: none;
    }

.icon-label {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

    .icon-label:hover {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(var(--primary-color), 0.5);
    }

.icon-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.icon-option input[type="radio"]:checked + .icon-label {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color), 0.7);
}

/* ==============================
   МОДАЛЬНЫЕ ОКНА
============================== */
.modal {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity var(--transition);
    width: 100%;
    z-index: 1000;
}

    .modal.show {
        display: flex;
        opacity: 1;
    }

.modal-footerMy {
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding: .75rem;
    border-top: 1px solid var(--border-color);
    border-bottom-right-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.close {
    color: var(--text-primary);
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    transition: color var(--transition);
}

    .close:hover {
        color: var(--danger-color);
    }

/* ==============================
   ПИКЕР ЦВЕТА
============================== */
.color-picker {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-400);
}

/* ==============================
   КНОПКИ ФОРМЫ (ШЕЙПЫ)
============================== */
.shape-btn {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 10px;
    border: 3px solid var(--border-light);
    transition: all 0.2s ease;
}

    .shape-btn:hover {
        border: 2px solid;
        border-color: var(--primary-color);
        box-shadow: 0 0 5px rgba(var(--primary-color), 0.5);
        border-color: aquamarine;
        border: 3px solid;
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
    }

    .shape-btn.active {
        border-color: var(--primary-color);
        background-color: #f0f8ff;
    }

    .shape-btn svg {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
        color: var(--text-primary);
        display: block;
    }

    .shape-btn span {
        font-size: 0.85rem;
        color: var(--gray-800);
    }

/* ==============================
   КОНТЕЙНЕРЫ ПРЕВЬЮ
============================== */
.preview-container {
    margin-top: 10px;
    display: inline-block;
    position: relative;
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-sizing: border-box;
    background-color: var(--gray-100);
}

.preview-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
    background-color: white;
    padding: 0 5px;
    border-radius: var(--radius-sm);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ==============================
   ТИТУЛЫ
============================== */
.title {
    font-size: 24px;
    font-weight: bold;
    padding-left: 30px;
    color: var(--text-primary);
}

/* ==============================
   PCR-APP (ПИКЕР ЦВЕТА)
============================== */
.pcr-app {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 9999 !important;
}

.pcr-button {
    display: flex;
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-picker-btn:hover {
    transform: scale(1.05);
    border-color: #adb5bd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-picker-btn i {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==============================
   КАРТОЧКИ И ХОВЕР ЭФФЕКТЫ
============================== */
.card {
    transition: all var(--transition);
}

    .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-xl);
        transform: translateY(-8px) scale(1.02) rotateZ(0.5deg);
    }

        .card:hover i {
            color: var(--primary-color);
            transform: scale(1.1);
        }

    .card i {
        transition: transform var(--transition), color var(--transition);
    }

/* ==============================
   ИНФО КОНТЕЙНЕР
============================== */
.container-info {
    padding-left: 100px;
    padding-right: 50px;
    padding-bottom: 50px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: var(--radius-lg);
}

.shadow-3d {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3), 1px 1px 0 rgba(255, 255, 255, 0.1) inset, -2px -2px 5px rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition);
}

/* ==============================
   QR ПРЕСЕТЫ (ШАБЛОНЫ)
============================== */
.qr-presets-container {
    margin: 20px 0;
    margin-top: 50px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.preset-card {
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

    .preset-card:hover {
        transform: translateY(-5px);
    }

    .preset-card:active {
        transform: translateY(-2px);
    }

.preset-preview {
    width: 100%;
    height: 100px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: border-color var(--transition);
    box-shadow: var(--shadow-md);
}

.preset-card:hover .preset-preview {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.qr-demo {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qr-corner {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    border-radius: var(--radius-sm);
}

.qr-dots {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.preset-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

/* ==============================
   КОСМИЧЕСКИЕ ЭФФЕКТЫ (АНИМАЦИИ)
============================== */
.cosmic-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

    .star:nth-child(1) {
        width: 2px;
        height: 2px;
        top: 20px;
        left: 20px;
        animation-delay: 0s;
    }

    .star:nth-child(2) {
        width: 1px;
        height: 1px;
        top: 40px;
        right: 15px;
        animation-delay: 1s;
    }

    .star:nth-child(3) {
        width: 1.5px;
        height: 1.5px;
        bottom: 25px;
        left: 30px;
        animation-delay: 2s;
    }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ==============================
   СЛАЙДЕР РАЗМЕРА QR
============================== */
.size-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--gray-300), var(--gray-300));
    border-radius: 4px;
    outline: none;
    margin: 15px 0;
}

    .size-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        border: 3px solid white;
        box-shadow: var(--shadow-md);
        transition: all 0.2s;
    }

        .size-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg);
        }

    .size-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        border: 3px solid white;
        box-shadow: var(--shadow-md);
    }

        .size-slider::-moz-range-thumb:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg);
        }

.slider-container {
    position: relative;
    margin: 15px 0;
}

#qrSizeValue {
    display: inline-block;
    min-width: 50px;
    font-weight: bold;
    color: var(--primary-color);
}

.slider-container::before {
    content: "200";
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.slider-container::after {
    content: "2000";
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==============================
   ТУЛТИПЫ
============================== */
.tooltip-inner {
    max-width: 850px;
    white-space: normal;
}

/* ==============================
   ФОРМА НАСТРОЕК QR
============================== */
.qr-settings-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.setting-group {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.setting-title {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.setting-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.shape-buttons {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(4, 1fr);
}

.custom-content {
    font-size: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

/* ==============================
   ПОПАП ДЛЯ КАРТЫ
============================== */
#infoPopup {
    display: none;
}

.popup {
    max-width: 550px;
    max-height: 250px;
    padding-right: 10px;
    font-size: 12px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    line-height: 1.4;
}

.popup-content {
    font-size: 10px;
    border-radius: var(--radius-md);
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 5px;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-600);
    font-weight: bold;
    user-select: none;
    transition: color var(--transition);
    margin-bottom: 10px;
}

    .popup-close:hover {
        color: var(--text-primary);
    }

/* ==============================
   СТРАНИЦЫ АУТЕНТИФИКАЦИИ И ДОСТУПА
============================== */
.access-denied {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #122b52 0%, #0b1f3a 60%, #08162b 100%);
}

.access-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.access-title {
    color: #0b1f3a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.access-text {
    color: #6c7a92;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.access-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 1.75rem;
    background-color: #163a6b;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .access-button:hover {
        background-color: #1e4d8f;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(22, 58, 107, 0.35);
    }

    .access-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   КНОПКА GOOGLE
============================== */
.gsi-material-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    height: 48px;
    border-radius: 4px;
    background-color: #4285F4;
    color: white;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.gsi-material-button-content-wrapper {
    display: flex;
    align-items: center;
}

.gsi-material-button-icon {
    background: white;
    border-radius: 2px;
    padding: 2px;
    margin-right: 12px;
}

    .gsi-material-button-icon svg {
        width: 20px;
        height: 20px;
        display: block;
    }

/* ==============================
   СТРАНИЦЫ ОШИБОК
============================== */
.errorPage {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at top, white 0%, #f1f5f9 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wave {
    transform-origin: center;
    animation: float 18s ease-in-out infinite;
}

.wave-1 {
    opacity: 0.7;
    animation-duration: 22s;
}

.wave-2 {
    opacity: 0.35;
    animation-duration: 28s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.error-card {
    position: relative;
    z-index: 1;
    background: white;
    max-width: 480px;
    width: 100%;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.4s ease-out;
}

    .error-card h1 {
        font-size: 4.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .error-card h2 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1rem;
    }

    .error-card p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

.actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    padding: 0.55rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn-primary:hover {
        background-color: #152c5b;
        border-color: #152c5b;
        transform: translateY(-1px);
    }

.btn-outline-secondary {
    color: #334155;
    border-color: var(--border-light);
    padding: 0.55rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn-outline-secondary:hover {
        background-color: var(--gray-100);
        border-color: var(--gray-500);
    }

.footer {
    margin-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.error-404 .error-card h1 {
    color: var(--primary-color);
}

.error-403 .error-card h1 {
    color: var(--warning-color);
}

.error-403 .error-card {
    border-left: 4px solid var(--warning-color);
}

.error-500 .error-card h1 {
    color: var(--danger-color);
}

.error-500 .error-card {
    border-left: 4px solid var(--danger-color);
}

/* ==============================
   МОДАЛЬНЫЕ ОКНА АУТЕНТИФИКАЦИИ
============================== */
.auth-btn-primary {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

    .auth-btn-primary:hover {
        background-color: #157347;
        border-color: #157347;
        color: white;
    }

.custom-btn-close {
    top: 1rem;
    right: 1rem;
    z-index: 1055;
    background-color: white;
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .custom-btn-close:hover {
        background-color: var(--gray-200);
        transform: scale(1.05);
        transition: all var(--transition);
    }

    .custom-btn-close::after {
        background-color: var(--gray-800);
    }

.modal-dialog {
    margin-top: 4rem !important;
}

.modal-backdrop {
    display: none !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.modal {
    pointer-events: none;
}

    .modal .modal-content {
        pointer-events: auto;
        border-radius: 60px;
    }

.modal-xl {
    max-width: 900px;
}

#forgotPasswordModal .modal-dialog {
    max-width: 450px;
}

.modal-content-container {
    isolation: isolate;
    position: relative;
    z-index: 1;
}

    .modal-content-container * {
        position: static !important;
        z-index: auto !important;
    }

    .modal-content-container .modal,
    .modal-content-container .modal-backdrop {
        display: none !important;
    }

.modal-content.bg-transparent {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

.modal-body .login-card,
.modal-body .register-card {
    margin: 0 auto;
    box-shadow: var(--shadow-xl) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 520px;
    max-height: 90vh;
}

.modal-body .login-form,
.modal-body .register-form {
    padding: 2rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-content-container h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.modal-content-container .form-floating {
    margin-bottom: 1rem;
}

.modal-content-container .form-control {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
}

.modal-content-container button.btn {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    font-weight: 500;
}

.modal-content-container .text-center p {
    margin-bottom: 0.5rem;
}

.modal-content-container .gsi-material-button {
    margin-bottom: 0.5rem;
}

.login-image,
.register-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 50%;
    background: linear-gradient(135deg, var(--gray-100) 0%, #c3cfe2 100%);
}

.fog-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        filter: blur(0px) brightness(1.1);
        transition: all 0.4s ease;
    }

    .fog-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient( ellipse at center, transparent 30%, rgba(255, 255, 255, 0.4) 70%, rgba(255, 255, 255, 0.8) 100% );
        pointer-events: none;
        z-index: 1;
    }

    .fog-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient( circle at center, transparent 40%, rgba(0, 0, 0, 0.05) 100% );
        pointer-events: none;
        z-index: 2;
    }

    .fog-image:hover img {
        filter: blur(0) brightness(1.3);
        transform: scale(1.03);
    }

#forgotPasswordModalBody .card {
    border: none;
    padding: 2rem;
}

#forgotPasswordModalBody .form-floating {
    margin-bottom: 1.5rem;
}

#forgotPasswordModalBody .btn-primary {
    background: var(--primary-dark);
    border: none;
    padding: 0.75rem;
    width: 100%;
}

    #forgotPasswordModalBody .btn-primary:hover {
        background: var(--primary-color);
    }

#forgotPasswordModalBody .btn-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

    #forgotPasswordModalBody .btn-link:hover {
        text-decoration: underline;
    }

.position-relative .btn-close {
    opacity: 0.8;
    transition: opacity var(--transition), transform var(--transition);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

    .position-relative .btn-close:hover {
        opacity: 1;
        transform: scale(1.1);
    }

.auth-loader {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .auth-loader .spinner-border {
        width: 3rem;
        height: 3rem;
    }

.modal-form-container {
    padding: 1rem;
}

.compact-form .form-floating {
    margin-bottom: 0.75rem;
}

.compact-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.forgot-password-link {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

    .forgot-password-link:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

.switch-to-register-link,
.switch-to-login-link {
    color: var(--primary-dark);
    font-weight: 500;
}

    .switch-to-register-link:hover,
    .switch-to-login-link:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

/* ==============================
   АДАПТАЦИЯ (MEDIA QUERIES)
============================== */

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .qr-icon {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }

    .abstract {
        /*display: flex;*/
        overflow: hidden;
        justify-content: center;
    }

    .hero-section {
        padding: 60px 20px;
        padding-bottom: 0;
    }

    .features-section {
        padding: 60px 10px;
    }

    .feature-item {
        margin-bottom: 25px;
        padding: 15px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.95rem;
    }

    .container-info {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qr-info-panel {
        margin-bottom: 0px;
    }


    #mainContent.blurred {
        filter: blur(4px);
        transition: filter var(--transition);
    }

    .pcr-app {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1.5);
        z-index: 9999 !important;
    }

    .qr-code-container {
        padding-bottom: 20px;
        min-height: 300px;
        width: 100%;
        margin-top: 100px;
    }

        .qr-code-container svg {
            width: 100%;
            height: auto;
            max-width: 300px;
        }

    .shape-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        grid-template-columns: repeat(3, 1fr);
    }

    .shape-btn {
        flex: 0 1 calc(50% - 20px);
        text-align: center;
        box-sizing: border-box;
    }


    #oneColorOptions {
        justify-content: center;
        margin-left: 0px;
    }

    .form-label {
        text-align: center;
    }

    .modal-footerMy {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }

    .custom-content {
        font-size: 1.25rem;
        padding: 2rem;
        max-width: 300px;
        margin: auto;
    }

    #infoPopup {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--gray-900);
        padding: 10px;
        border-radius: var(--radius-sm);
        z-index: 10;
    }

    .unstyled1 li {
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-sm);
        padding: 8px 12px;
        margin-bottom: 10px;
        transition: background var(--transition), border-color var(--transition);
    }

        .unstyled1 li:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: white;
        }

    .setting-group {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 20px;
        background: var(--light-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .icon-select-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
        margin-top: 20px;
        padding: 0;
        align-content: center;
        justify-items: center;
    }

    .fullScreen {
        margin-bottom: 80px;
    }

    .cardChoice {
        margin-bottom: 75px;
    }

    .sidebarChoice {
        display: none;
    }

    .sidebar {
        position: static;
        margin-top: 20px;
        background: var(--sidebar-color);
    }

    #qrSidebar {
        position: static;
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .accordion-body {
        justify-content: center;
    }

    .preset-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .preset-preview {
        height: 80px;
    }

    .qr-demo {
        width: 40px;
        height: 40px;
    }

    .error-card {
        padding: 2rem 1.5rem;
    }

        .error-card h1 {
            font-size: 3.5rem;
        }

    .modal-xl {
        max-width: 95%;
    }

    .modal-body .login-card,
    .modal-body .register-card {
        height: auto;
        min-height: 400px;
    }

    #usePasswordToggle {
        margin-right: 10px;
    }

    .modal-body .login-card,
    .modal-body .register-card {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .login-form,
    .register-form,
    .login-image,
    .register-image {
        width: 100% !important;
    }

    .modal-body .login-form,
    .modal-body .register-form {
        padding: 1.5rem !important;
    }

    .login-image,
    .register-image {
        display: none !important;
    }

    .position-relative .btn-close {
        top: 0.5rem;
        right: 0.5rem;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
    }

    .modal-content-container h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .modal-content-container .form-floating {
        margin-bottom: 1rem !important;
    }

    .modal-content-container .form-control {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.95rem !important;
    }

    .modal-content-container button.btn {
        padding: 0.6rem !important;
    }
}

@media (max-width: 576px) {
    .preset-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #forgotPasswordModal .modal-dialog {
        margin: 0.5rem;
    }

    #forgotPasswordModalBody .card {
        padding: 1.5rem !important;
    }

    .modal-body .login-form,
    .modal-body .register-form {
        padding: 1rem !important;
    }
}

@media (min-width: 992px) {
    .qr-code-frame-container {
        max-width: 400px;
    }

    #infoPopup {
        min-width: 600px;
        display: none;
    }

    .hero-section {
        padding: 60px 20px;
        padding-bottom: 0;
    }

    .features-section {
        padding: 60px 10px;
    }

    .feature-item {
        margin-bottom: 25px;
        padding: 15px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.95rem;
    }

    .container-info {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (orientation: landscape) {
    .hero-section {
        padding: 60px 20px;
        padding-bottom: 0;
    }

    .features-section {
        padding: 60px 10px;
    }
}

@media (max-width: 900px) {
    .qr-section {
        overflow: auto;
        justify-content: center !important;
        margin: 0;
        padding: 0 20px 0 20px !important;
    }

    .qr-tab {
        margin-left: 0;
        margin-right: 0;
    }

    .qr-tabs {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .qr-tab {
        min-width: 70px !important;
        max-width: 100px !important;
        flex: 0 1 auto !important;
    }

    .qr-text {
        text-align: center;
    }

    .qr-benefits {
        text-align: left;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .qr-text .btn-create,
    .qr-text .qr-cta {
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==============================
   АДАПТАЦИЯ ПИКЕРОВ ЦВЕТА ДЛЯ МОБИЛЬНЫХ (ГРАДИЕНТ)
   ============================== */

@media (max-width: 768px) {
    .modal-body .login-card,
    .modal-body .register-card {
        justify-content: center;
    }
    /* Основной контейнер с опциями цвета */
    #colorOptions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    /* Группа с одним цветом (когда градиент выключен) */
    #oneColorOptions {
        width: 100% !important;
        text-align: center !important;
    }

        /* Когда блок виден - центрируем содержимое */
        #oneColorOptions[style*="display: block"] {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
        }

    /* Блок с опциями градиента (когда включен) */
    #gradientOptions {
        width: 100% !important;
        text-align: center !important;
    }

        /* Когда блок градиента виден - центрируем */
        #gradientOptions[style*="display: block"] {
            display: block !important;
        }

        /* Контейнер с двумя пикерами цвета */
        #gradientOptions .d-flex.gap-4 {
            display: flex !important;
            flex-direction: row !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 1.5rem !important;
            flex-wrap: wrap !important;
        }

        /* Каждая группа пикера (Цвет 1 и Цвет 2) */
        #gradientOptions .form-group.text-center.mb-3 {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            margin-bottom: 1rem !important;
            width: auto !important;
            min-width: 100px !important;
        }

        /* Контейнер с выбором типа градиента */
        #gradientOptions .d-flex.gap-4.my {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            margin-top: 1rem !important;
            margin-bottom: 0.5rem !important;
            width: 100% !important;
        }

        /* Группа с типом градиента */
        #gradientOptions .form-group.text-center.mb-3:has(.btn-group) {
            width: 100% !important;
        }

        /* Кнопки выбора типа градиента */
        #gradientOptions .btn-group {
            display: flex !important;
            flex-direction: row !important;
            justify-content: center !important;
            gap: 0.75rem !important;
            width: auto !important;
        }

            /* Стили для кнопок */
            #gradientOptions .btn-group label.btn {
                padding: 0.5rem 1.25rem !important;
                font-size: 0.9rem !important;
                border-radius: 2rem !important;
                min-width: 100px !important;
            }

    /* Блок с цветом фона - только когда видим */
    #customBgColorTextDiv {
        text-align: center !important;
    }

        #customBgColorTextDiv[style*="display: block"] {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            width: 100% !important;
        }

    /* Блок с цветом глаз */
    #colorOptions .form-group.text-center.mb-3:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Общие стили для пикеров */
    .color-picker-wrapper {
        display: flex !important;
        justify-content: center !important;
        margin-top: 0.5rem !important;
    }

    .color-picker {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        cursor: pointer !important;
        border: 3px solid white !important;
    }

        .color-picker:hover {
            transform: scale(1.05) !important;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
        }

    /* Метки пикеров */
    #colorOptions .d-block.mb-2.fw-medium {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
        color: #333 !important;
        text-align: center !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    #gradientOptions .d-flex.gap-4 {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #gradientOptions .btn-group label.btn {
        min-width: 80px !important;
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .color-picker {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Для альбомной ориентации */
@media (max-width: 768px) and (orientation: landscape) {
    #colorOptions {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }

    #gradientOptions .d-flex.gap-4 {
        flex-direction: row !important;
    }
}
.navbar-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border: 1px solid #4f6ef7;
    border-radius: 9px;
    background: #4f6ef7;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .navbar-cta:hover {
        border-color: #3654d8;
        background: #3654d8;
        color: #fff;
        transform: translateY(-1px);
    }

    .navbar-cta:active {
        transform: translateY(0);
    }

    .navbar-cta:focus-visible {
        outline: 3px solid rgba(79, 110, 247, 0.3);
        outline-offset: 3px;
    }
@media (max-width: 991.98px) {
    .navbar-cta {
        width: 100%;
        margin-top: 0.5rem;
    }
}


@media (orientation: landscape) and (max-width: 932px) and (max-height: 500px) {

    .modal.show {
        position: fixed !important;
        inset: 0 !important;
        z-index: 9999 !important;
        padding: 4px !important;
        overflow: hidden !important;
    }

        .modal.show .modal-dialog {
            width: min(720px, calc(100vw - 8px));
            height: calc(100dvh - 8px);
            max-height: calc(100dvh - 8px);
            margin: 0 auto !important;
            z-index: 10000 !important;
        }

        .modal.show .modal-content {
            position: relative;
            height: 100%;
            max-height: 100%;
            overflow: hidden;
            border-radius: 16px !important;
            z-index: 10001 !important;
        }
    .login-card {
        min-height: 100% !important;
        zoom: 0.80;
        margin: 5px;
    }
  
    .modal-body {
        height: 100%;
        max-height: 100%;
        padding: 0 !important;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .modal-content-container {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }

    /* Остальные ваши правила остаются здесь */

    .position-relative .btn-close {
        position: fixed !important;
        top: 10px !important;
        right: 14px !important;
        z-index: 10002 !important;
        background-color: rgba(255, 255, 255, 0.95);
    }
    /* Отдельная настройка регистрации */
    .register-page .login-card {
        zoom: 1 !important;
        min-height: 0 !important;
        height: calc(100dvh - 8px) !important;
        max-height: calc(100dvh - 8px) !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .register-page .login-form {
        height: 100% !important;
        min-height: 0 !important;
        padding: 10px 14px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    .register-page .login-form-content {
        width: 100%;
    }

    .register-page .login-form h2 {
        margin: 0 0 6px !important;
        padding: 0 !important;
        font-size: 1.15rem !important;
        line-height: 1.2;
    }

    .register-page .form-floating {
        margin-bottom: 6px !important;
    }

        .register-page .form-floating > .form-control {
            height: 42px !important;
            min-height: 42px !important;
            padding: 15px 10px 3px !important;
            font-size: 0.85rem !important;
        }

        .register-page .form-floating > label {
            padding: 10px !important;
            font-size: 0.8rem !important;
        }

    .register-page .text-danger {
        margin-top: 1px !important;
        font-size: 0.7rem !important;
        line-height: 1.1;
    }

    .register-page .auth-btn-primary {
        min-height: 34px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        font-size: 0.85rem !important;
    }

    .register-page .login-footer p {
        margin: 0 !important;
        padding: 6px 0 !important;
        font-size: 0.8rem !important;
    }

    .register-page .gsi-material-button {
        min-height: 34px !important;
        margin-bottom: 4px !important;
    }

    .register-page .login-image {
        height: 100% !important;
    }
}

/* Боковые отступы формы логина на планшетах */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
}
/* === CONSENT MANAGER === */
.consent-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    align-items: end;
    padding: 1rem;
    background: rgba(16, 42, 67, .62);
    backdrop-filter: blur(2px);
}

.consent-dialog {
    width: min(760px, 100%);
    max-height: calc(100dvh - 2rem);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    overflow-y: auto;
    color: #102a43;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(16, 42, 67, .28);
}

.consent-dialog h2,
.consent-dialog h3 {
    color: #102a43;
}

.consent-dialog a {
    color: #2445d8;
    font-weight: 600;
    text-underline-offset: 3px;
}

.consent-dialog .btn {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 650;
}

.consent-dialog .btn-primary {
    color: #fff;
    background: #3157f6;
    border-color: #3157f6;
}

.consent-dialog .btn-primary:hover {
    background: #2445d8;
    border-color: #2445d8;
}

.consent-dialog .btn-outline-primary {
    color: #2445d8;
    border-color: #3157f6;
}

.consent-dialog .btn:focus-visible,
.consent-dialog a:focus-visible,
.consent-dialog input:focus-visible,
.consent-settings-link:focus-visible {
    outline: 3px solid rgba(49, 87, 246, .3);
    outline-offset: 3px;
    box-shadow: none;
}

.consent-category {
    padding: 1rem;
    border: 1px solid #dce4ee;
    border-radius: 11px;
    background: #f8f9fc;
}

.consent-settings-link {
    color: #e0e7ff !important;
    font: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-settings-link:hover {
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .consent-layer {
        padding: .65rem;
    }

    .consent-dialog {
        max-height: calc(100dvh - 1.3rem);
        padding: 1.1rem;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-layer,
    .consent-dialog {
        scroll-behavior: auto;
    }
}
/* === SITE FOOTER ALIGNMENT === */
.site-footer__top,
.site-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 2rem;
}

.site-footer__top-left,
.site-footer__bottom-left {
    justify-self: start;
    text-align: left;
}

.site-footer__top-center,
.site-footer__socials {
    justify-self: center;
    text-align: center;
}

.site-footer__top-right,
.site-footer__bottom-right {
    justify-self: end;
    width: 100%;
    text-align: right;
}

.site-footer__top-right ul,
.site-footer__top-right p {
    margin-left: auto;
}

.site-footer__top-right p {
    max-width: 31rem;
}

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

.site-footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer__bottom--without-socials .site-footer__bottom-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: auto;
    text-align: center;
}

@media (max-width: 767.98px) {
    .site-footer__top,
    .site-footer__bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 1.5rem;
    }

    .site-footer__top-left,
    .site-footer__top-center,
    .site-footer__top-right,
    .site-footer__bottom-left,
    .site-footer__bottom-right {
        justify-self: center;
        width: 100%;
        text-align: center;
    }

    .site-footer__top-right ul,
    .site-footer__top-right p {
        margin-right: auto;
    }

    .site-footer__bottom--without-socials .site-footer__bottom-right {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        width: 100%;
    }
}

/* Shared footer call-to-action button */
.footer-cta-button {
    position: relative;
    min-height: 48px;
    overflow: hidden;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: linear-gradient(135deg, #6d5dfb, #4f6ef7);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(79, 110, 247, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .footer-cta-button span {
        position: relative;
        z-index: 2;
    }

    /* Световой блик */
    .footer-cta-button::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -75%;
        width: 45%;
        height: 200%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.38), transparent );
        transform: skewX(-20deg);
        animation: footer-button-shine 3.8s ease-in-out infinite;
    }

@keyframes footer-button-shine {
    0%, 55% {
        left: -75%;
    }

    100% {
        left: 135%;
    }
}

.footer-cta-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 27px rgba(79, 110, 247, 0.4);
}

.footer-cta-button:active {
    transform: translateY(0);
}

.footer-cta-button:focus-visible {
    outline: 3px solid rgba(151, 167, 255, 0.7);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta-button::before {
        animation: none;
    }
}
